Get future-specific session information and validate current backend

futureSessionInfo(test = TRUE)

Arguments

test

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

Value

Nothing.

Examples

plan(multisession, workers = 2)
futureSessionInfo()
#> *** Package versions
#> future 1.23.0.9005, parallelly 1.30.0.9000, parallel 4.1.2, globals 0.14.0, listenv 0.8.0
#> 
#> *** Allocations
#> availableCores():
#> system  nproc 
#>      8      8 
#> availableWorkers():
#> $system
#> [1] "localhost" "localhost" "localhost" "localhost" "localhost" "localhost"
#> [7] "localhost" "localhost"
#> 
#> *** Settings
#> - future.plan=<not set>
#> - future.fork.multithreading.enable=<not set>
#> - future.globals.maxSize=5e+06
#> - future.globals.onReference=<not set>
#> - future.resolve.recursive=<not set>
#> - future.rng.onMisuse=‘error’
#> - future.wait.timeout=<not set>
#> - future.wait.interval=<not set>
#> - future.wait.alpha=<not set>
#> - future.startup.script=<not set>
#> 
#> *** Backends
#> Number of workers: 2
#> List of future strategies:
#> 1. multisession:
#>    - args: function (..., workers = 2, envir = parent.frame())
#>    - tweaked: TRUE
#>    - call: plan(multisession, workers = 2)
#> 
#> *** Basic tests
#>   worker   pid     r sysname          release
#> 1      1 28978 4.1.2   Linux 5.4.0-96-generic
#> 2      2 28977 4.1.2   Linux 5.4.0-96-generic
#>                                                version nodename machine login
#> 1 #109~18.04.1-Ubuntu SMP Thu Jan 13 15:06:26 UTC 2022    hb-x1  x86_64    hb
#> 2 #109~18.04.1-Ubuntu SMP Thu Jan 13 15:06:26 UTC 2022    hb-x1  x86_64    hb
#>   user effective_user
#> 1   hb             hb
#> 2   hb             hb
#> Number of unique PIDs: 2 (as expected)
plan(sequential)