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.68.0, parallelly 1.45.1, parallel 4.5.1, globals 0.18.0, listenv 0.10.0
#> 
#> *** 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 1273570 4.5.1   Linux 6.8.0-1030-aws
#>                                       version nodename machine   login    user
#> 1 #32-Ubuntu SMP Wed May 28 19:48:56 UTC 2025  host001  x86_64 user002 user001
#>   effective_user
#> 1        user001
#> Worker R session details:
#>   worker     pid     r sysname        release
#> 1      1 1274879 4.5.1   Linux 6.8.0-1030-aws
#> 2      2 1274880 4.5.1   Linux 6.8.0-1030-aws
#>                                       version nodename machine   login    user
#> 1 #32-Ubuntu SMP Wed May 28 19:48:56 UTC 2025  host001  x86_64 user002 user001
#> 2 #32-Ubuntu SMP Wed May 28 19:48:56 UTC 2025  host001  x86_64 user002 user001
#>   effective_user
#> 1        user001
#> 2        user001
#> Number of unique worker PIDs: 2 (as expected)
plan(sequential)