Get future-specific session information and validate current backend

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.29.0.9000, parallelly 1.32.1.9004, parallel 4.2.2, globals 0.16.1, listenv 0.8.0.9001
#> 
#> *** Allocations
#> availableCores():
#>         system cgroups.cpuset          nproc 
#>              8              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
#> Main R session details:
#>       pid     r sysname           release
#> 1 2574595 4.2.2   Linux 5.4.0-131-generic
#>                                        version nodename machine   login    user
#> 1 #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022  host001  x86_64 user001 user001
#>   effective_user
#> 1        user001
#> Worker R session details:
#>   worker     pid     r sysname           release
#> 1      1 2575477 4.2.2   Linux 5.4.0-131-generic
#> 2      2 2575478 4.2.2   Linux 5.4.0-131-generic
#>                                        version nodename machine   login    user
#> 1 #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022  host001  x86_64 user001 user001
#> 2 #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022  host001  x86_64 user001 user001
#>   effective_user
#> 1        user001
#> 2        user001
#> Number of unique worker PIDs: 2 (as expected)
plan(sequential)