Skip to contents

Get future-specific session information and validate current backend

Usage

futureSessionInfo(test = TRUE, anonymize = TRUE)

Arguments

test

If TRUE, one or more futures are created to query workers and validate their information.

anonymize

If TRUE, user names and host names are anonymized.

Value

Nothing.

Examples

plan(multisession, workers = 2)
futureSessionInfo()
#> *** Package versions
#> future 1.70.0, parallelly 1.46.1, parallel 4.5.1, globals 0.19.1, listenv 0.10.1
#> 
#> *** Allocations
#> availableCores():
#>            system /proc/self/status  cgroups2.cpu.max             nproc 
#>                 4                 4                 3                 4 
#> availableWorkers():
#> $cgroups2.cpu.max
#> [1] "localhost" "localhost" "localhost"
#> 
#> $nproc
#> [1] "localhost" "localhost" "localhost" "localhost"
#> 
#> $system
#> [1] "localhost" "localhost" "localhost" "localhost"
#> 
#> *** Settings
#> - future.plan=<not set>
#> - future.fork.multithreading.enable=<not set>
#> - future.globals.maxSize=<not set>
#> - future.globals.onReference=<not set>
#> - future.resolve.recursive=<not set>
#> - future.rng.onMisuse=<not set>
#> - future.wait.timeout=<not set>
#> - future.wait.interval=<not set>
#> - future.wait.alpha=<not set>
#> - future.startup.script=FALSE
#> 
#> *** Backends
#> Number of workers: 2
#> List of future strategies:
#> 1. multisession:
#>    - args: function (..., workers = 2)
#>    - tweaked: TRUE
#>    - call: plan(multisession, workers = 2)
#> 
#> *** Basic tests
#> Main R session details:
#>       pid     r sysname         release
#> 1 3077924 4.5.1   Linux 6.14.0-1018-aws
#>                                               version nodename machine   login
#> 1 #18~24.04.1-Ubuntu SMP Mon Nov 24 19:46:27 UTC 2025  host001  x86_64 user002
#>      user effective_user
#> 1 user001        user001
#> Worker R session details:
#>   worker     pid     r sysname         release
#> 1      1 3079124 4.5.1   Linux 6.14.0-1018-aws
#> 2      2 3079123 4.5.1   Linux 6.14.0-1018-aws
#>                                               version nodename machine   login
#> 1 #18~24.04.1-Ubuntu SMP Mon Nov 24 19:46:27 UTC 2025  host001  x86_64 user002
#> 2 #18~24.04.1-Ubuntu SMP Mon Nov 24 19:46:27 UTC 2025  host001  x86_64 user002
#>      user effective_user
#> 1 user001        user001
#> 2 user001        user001
#> Number of unique worker PIDs: 2 (as expected)
plan(sequential)