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.75.0, parallelly 1.48.0, parallel 4.6.1, globals 0.19.1, listenv 1.0.0
#> 
#> *** Allocations
#> availableCores():
#>                         system              /proc/self/status 
#>                              2                              2 
#> cgroups2.cpuset.cpus.effective                          nproc 
#>                              2                              2 
#> availableWorkers():
#> $cgroups2.cpuset.cpus.effective
#> [1] "localhost" "localhost"
#> 
#> $nproc
#> [1] "localhost" "localhost"
#> 
#> $system
#> [1] "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 45922 4.6.1   Linux 6.17.0-1020-azure
#>                                               version nodename machine   login
#> 1 #20~24.04.1-Ubuntu SMP Fri Jun 19 20:09:14 UTC 2026  host001  x86_64 user002
#>      user effective_user
#> 1 user001        user001
#> Worker R session details:
#>   worker   pid     r sysname           release
#> 1      1 46634 4.6.1   Linux 6.17.0-1020-azure
#> 2      2 46633 4.6.1   Linux 6.17.0-1020-azure
#>                                               version nodename machine   login
#> 1 #20~24.04.1-Ubuntu SMP Fri Jun 19 20:09:14 UTC 2026  host001  x86_64 user002
#> 2 #20~24.04.1-Ubuntu SMP Fri Jun 19 20:09:14 UTC 2026  host001  x86_64 user002
#>      user effective_user
#> 1 user001        user001
#> 2 user001        user001
#> Number of unique worker PIDs: 2 (as expected)
plan(sequential)