
Get future-specific session information and validate current backend
Source:R/utils_api-futureSessionInfo.R
futureSessionInfo.RdGet future-specific session information and validate current backend
Examples
plan(multisession, workers = 2)
futureSessionInfo()
#> *** Package versions
#> future 1.82.0.9011, parallelly 1.50.0, parallel 4.6.2, globals 0.20.0, listenv 1.1.0
#>
#> *** Allocations
#> availableCores():
#> system /proc/self/status
#> 8 8
#> cgroups2.cpuset.cpus.effective nproc
#> 8 8
#> availableWorkers():
#> $cgroups2.cpuset.cpus.effective
#> [1] "localhost" "localhost" "localhost" "localhost" "localhost" "localhost"
#> [7] "localhost" "localhost"
#>
#> $nproc
#> [1] "localhost" "localhost" "localhost" "localhost" "localhost" "localhost"
#> [7] "localhost" "localhost"
#>
#> $`/proc/self/status`
#> [1] "localhost" "localhost" "localhost" "localhost" "localhost" "localhost"
#> [7] "localhost" "localhost"
#>
#> $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=Inf
#> - 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 2974439 4.6.2 Linux 7.0.0-38-generic
#> version nodename
#> 1 #38~24.04.4-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 14 16:37:11 UTC 2 host001
#> machine login user effective_user
#> 1 x86_64 user001 user001 user001
#> Worker R session details:
#> worker pid r sysname release
#> 1 1 2976080 4.6.2 Linux 7.0.0-38-generic
#> 2 2 2976079 4.6.2 Linux 7.0.0-38-generic
#> version nodename
#> 1 #38~24.04.4-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 14 16:37:11 UTC 2 host001
#> 2 #38~24.04.4-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 14 16:37:11 UTC 2 host001
#> machine login user effective_user
#> 1 x86_64 user001 user001 user001
#> 2 x86_64 user001 user001 user001
#> Number of unique worker PIDs: 2 (as expected)
plan(sequential)