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.80.0, parallelly 1.48.0, parallel 4.6.2, globals 0.20.0, listenv 1.1.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 129239 4.6.2   Linux 7.0.0-1017-azure
#>                                                       version nodename machine
#> 1 #17~24.04.1-Ubuntu SMP PREEMPT Thu Sep 24 18:46:57 UTC 2026  host001  x86_64
#>     login    user effective_user
#> 1 user002 user001        user001
#> Worker R session details:
#>   worker    pid     r sysname          release
#> 1      1 129895 4.6.2   Linux 7.0.0-1017-azure
#> 2      2 129896 4.6.2   Linux 7.0.0-1017-azure
#>                                                       version nodename machine
#> 1 #17~24.04.1-Ubuntu SMP PREEMPT Thu Sep 24 18:46:57 UTC 2026  host001  x86_64
#> 2 #17~24.04.1-Ubuntu SMP PREEMPT Thu Sep 24 18:46:57 UTC 2026  host001  x86_64
#>     login    user effective_user
#> 1 user002 user001        user001
#> 2 user002 user001        user001
#> Number of unique worker PIDs: 2 (as expected)
plan(sequential)