R Under development (unstable) (2024-07-28 r86931 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [17:29:51.716] plan(): Setting new future strategy stack: [17:29:51.718] List of future strategies: [17:29:51.718] 1. sequential: [17:29:51.718] - args: function (..., envir = parent.frame(), workers = "") [17:29:51.718] - tweaked: FALSE [17:29:51.718] - call: future::plan("sequential") [17:29:51.746] plan(): nbrOfWorkers() = 1 > > maxCores <- min(2L, availableCores(methods = "system")) > > > plan("default") [17:29:51.757] plan(): Setting new future strategy stack: [17:29:51.757] List of future strategies: [17:29:51.757] 1. sequential: [17:29:51.757] - args: function (..., envir = parent.frame(), workers = "") [17:29:51.757] - tweaked: FALSE [17:29:51.757] - call: NULL [17:29:51.785] plan(): nbrOfWorkers() = 1 > strategy0 <- plan() > > message("*** parseCmdArgs() ...") *** parseCmdArgs() ... > > args <- parseCmdArgs() > str(args) list() > > options(future.plan = NULL, future.cmdargs = c("-p", 1L)) > args <- parseCmdArgs() > str(args) List of 1 $ p: int 1 > stopifnot(args$p == 1L) > > options(future.plan = NULL, future.cmdargs = c(sprintf("--parallel=%d", maxCores))) > args <- parseCmdArgs() > str(args) List of 1 $ p: int 2 > stopifnot(args$p == maxCores) > > options(future.plan = NULL, future.cmdargs = c("-p", 1L, sprintf("--parallel=%d", maxCores))) > args <- parseCmdArgs() > str(args) List of 1 $ p: int 2 > stopifnot(args$p == maxCores) > > options(future.plan = NULL, future.cmdargs = c("-p", 0L)) > args <- parseCmdArgs() Warning: future: Ignoring invalid number of processes specified in command-line option: -p 0 > stopifnot(is.null(args$p)) > res <- tryCatch(parseCmdArgs(), warning = function(w) w) > stopifnot(inherits(res, "warning")) > > options(future.plan = NULL, future.cmdargs = c("-p", .Machine$integer.max)) > args <- parseCmdArgs() Warning: future: Ignoring requested number of processes, because it is greater than the number of cores/child processes available (= 96) to this R process: -p 2147483647 > stopifnot(is.null(args$p)) > res <- tryCatch(parseCmdArgs(), warning = function(w) w) > stopifnot(inherits(res, "warning")) > > options(future.plan = NULL, future.cmdargs = NULL) > > message("*** parseCmdArgs() ... DONE") *** parseCmdArgs() ... DONE > > > > message("*** .onLoad() ...") *** .onLoad() ... > plan("default") [17:29:51.797] plan(): Setting new future strategy stack: [17:29:51.797] List of future strategies: [17:29:51.797] 1. sequential: [17:29:51.797] - args: function (..., envir = parent.frame(), workers = "") [17:29:51.797] - tweaked: FALSE [17:29:51.797] - call: NULL [17:29:51.798] plan(): nbrOfWorkers() = 1 > pkgname <- "future" > > message("- .onLoad() w/out command-line options ...") - .onLoad() w/out command-line options ... > options(future.plan = NULL, future.cmdargs = NULL) > .onLoad(pkgname, pkgname) [17:29:51.801] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:29:51.801] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:29:51.801] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:29:51.801] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:29:51.802] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:29:51.802] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:29:51.802] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:29:51.803] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:29:51.803] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:29:51.803] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:29:51.804] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:29:51.804] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:29:51.804] Environment variable 'R_FUTURE_PLAN' not set [17:29:51.804] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:29:51.805] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:29:51.805] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:29:51.805] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:29:51.806] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:29:51.806] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:29:51.806] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:29:51.806] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:29:51.807] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:29:51.807] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:29:51.807] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:29:51.808] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:29:51.808] R_FUTURE_WAIT_INTERVAL='0.01' [17:29:51.808] Coercing from character to numeric: '0.01' [17:29:51.809] => options("future.wait.interval" = '0.01') [n=1, mode=double] [17:29:51.809] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:29:51.810] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:29:51.810] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:29:51.810] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:29:51.811] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:29:51.811] Environment variable 'R_FUTURE_JOURNAL' not set [17:29:51.811] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:29:51.812] Environment variable 'R_FUTURE_GLOBALS_OBJECTSIZE_METHOD' not set [17:29:51.812] Environment variable 'R_FUTURE_PLAN_CLEANUP_LEGACY' not set [17:29:51.812] R process uuid: 69cc3a46-0951-b7eb-a35a-7628bb935b84 [17:29:51.812] Setting plan('default') [17:29:51.813] plan(): Setting new future strategy stack: [17:29:51.813] List of future strategies: [17:29:51.813] 1. sequential: [17:29:51.813] - args: function (..., envir = parent.frame(), workers = "") [17:29:51.813] - tweaked: FALSE [17:29:51.813] - call: NULL [17:29:51.814] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) sequential: - args: function (..., envir = parent.frame(), workers = "") - tweaked: FALSE - call: NULL > stopifnot(all(class(strategy) == class(strategy0))) > plan("default") [17:29:51.815] plan(): Setting new future strategy stack: [17:29:51.815] List of future strategies: [17:29:51.815] 1. sequential: [17:29:51.815] - args: function (..., envir = parent.frame(), workers = "") [17:29:51.815] - tweaked: FALSE [17:29:51.815] - call: NULL [17:29:51.816] plan(): nbrOfWorkers() = 1 > message("- .onLoad() w/out command-line options ... DONE") - .onLoad() w/out command-line options ... DONE > > message("- .onLoad() w/ -p 1 ...") - .onLoad() w/ -p 1 ... > options(future.plan = NULL, future.cmdargs = c("-p", 1)) > .onLoad(pkgname, pkgname) [17:29:51.818] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:29:51.818] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:29:51.818] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:29:51.818] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:29:51.818] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:29:51.819] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:29:51.819] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:29:51.819] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:29:51.819] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:29:51.819] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:29:51.820] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:29:51.820] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:29:51.820] Environment variable 'R_FUTURE_PLAN' not set [17:29:51.820] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:29:51.820] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:29:51.820] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:29:51.821] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:29:51.821] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:29:51.821] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:29:51.821] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:29:51.821] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:29:51.821] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:29:51.822] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:29:51.822] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:29:51.822] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:29:51.822] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:29:51.822] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:29:51.823] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:29:51.823] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:29:51.823] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:29:51.823] Environment variable 'R_FUTURE_JOURNAL' not set [17:29:51.823] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:29:51.823] Environment variable 'R_FUTURE_GLOBALS_OBJECTSIZE_METHOD' not set [17:29:51.824] Environment variable 'R_FUTURE_PLAN_CLEANUP_LEGACY' not set [17:29:51.824] R command-line argument: -p 1 [17:29:51.824] => options(future.plan = sequential) [17:29:51.825] R process uuid: 69cc3a46-0951-b7eb-a35a-7628bb935b84 [17:29:51.825] Setting plan('default') [17:29:51.825] plan(): Setting new future strategy stack: [17:29:51.825] List of future strategies: [17:29:51.825] 1. sequential: [17:29:51.825] - args: function (..., envir = parent.frame(), workers = "") [17:29:51.825] - tweaked: FALSE [17:29:51.825] - call: NULL [17:29:51.826] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) sequential: - args: function (..., envir = parent.frame(), workers = "") - tweaked: FALSE - call: NULL > ## future.plan can be either a string or a future function > default <- getOption("future.plan", "sequential") > if (is.function(default)) default <- class(default) > stopifnot(inherits(strategy, default)) > plan("default") [17:29:51.826] plan(): Setting new future strategy stack: [17:29:51.827] List of future strategies: [17:29:51.827] 1. sequential: [17:29:51.827] - args: function (..., envir = parent.frame(), workers = "") [17:29:51.827] - tweaked: FALSE [17:29:51.827] - call: NULL [17:29:51.827] plan(): nbrOfWorkers() = 1 > message("- .onLoad() w/ -p 1 ... DONE") - .onLoad() w/ -p 1 ... DONE > > message("- .onLoad() w/ --parallel=1 ...") - .onLoad() w/ --parallel=1 ... > plan("default") [17:29:51.827] plan(): Setting new future strategy stack: [17:29:51.828] List of future strategies: [17:29:51.828] 1. sequential: [17:29:51.828] - args: function (..., envir = parent.frame(), workers = "") [17:29:51.828] - tweaked: FALSE [17:29:51.828] - call: NULL [17:29:51.828] plan(): nbrOfWorkers() = 1 > options(future.plan = NULL, future.cmdargs = "-parallel=1") > .onLoad(pkgname, pkgname) [17:29:51.830] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:29:51.830] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:29:51.830] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:29:51.830] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:29:51.830] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:29:51.831] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:29:51.831] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:29:51.831] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:29:51.831] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:29:51.831] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:29:51.832] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:29:51.832] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:29:51.832] Environment variable 'R_FUTURE_PLAN' not set [17:29:51.833] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:29:51.833] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:29:51.833] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:29:51.834] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:29:51.834] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:29:51.834] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:29:51.835] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:29:51.835] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:29:51.838] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:29:51.839] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:29:51.839] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:29:51.839] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:29:51.840] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:29:51.840] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:29:51.840] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:29:51.840] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:29:51.841] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:29:51.841] Environment variable 'R_FUTURE_JOURNAL' not set [17:29:51.841] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:29:51.841] Environment variable 'R_FUTURE_GLOBALS_OBJECTSIZE_METHOD' not set [17:29:51.842] Environment variable 'R_FUTURE_PLAN_CLEANUP_LEGACY' not set [17:29:51.842] R process uuid: 69cc3a46-0951-b7eb-a35a-7628bb935b84 [17:29:51.842] Setting plan('default') [17:29:51.843] plan(): Setting new future strategy stack: [17:29:51.843] List of future strategies: [17:29:51.843] 1. sequential: [17:29:51.843] - args: function (..., envir = parent.frame(), workers = "") [17:29:51.843] - tweaked: FALSE [17:29:51.843] - call: NULL [17:29:51.844] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) sequential: - args: function (..., envir = parent.frame(), workers = "") - tweaked: FALSE - call: NULL > ## future.plan can be either a string or a future function > default <- getOption("future.plan", "sequential") > if (is.function(default)) default <- class(default) > stopifnot(inherits(strategy, default)) > plan("default") [17:29:51.845] plan(): Setting new future strategy stack: [17:29:51.845] List of future strategies: [17:29:51.845] 1. sequential: [17:29:51.845] - args: function (..., envir = parent.frame(), workers = "") [17:29:51.845] - tweaked: FALSE [17:29:51.845] - call: NULL [17:29:51.846] plan(): nbrOfWorkers() = 1 > message("- .onLoad() w/ --parallel=1 ... DONE") - .onLoad() w/ --parallel=1 ... DONE > > message("- .onLoad() w/ -p 2 ...") - .onLoad() w/ -p 2 ... > options(future.plan = NULL, future.cmdargs = c("-p", 2)) > .onLoad(pkgname, pkgname) [17:29:51.849] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:29:51.849] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:29:51.849] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:29:51.849] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:29:51.850] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:29:51.850] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:29:51.851] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:29:51.851] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:29:51.851] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:29:51.852] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:29:51.852] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:29:51.852] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:29:51.853] Environment variable 'R_FUTURE_PLAN' not set [17:29:51.853] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:29:51.853] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:29:51.854] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:29:51.854] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:29:51.854] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:29:51.855] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:29:51.855] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:29:51.856] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:29:51.856] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:29:51.856] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:29:51.857] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:29:51.857] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:29:51.857] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:29:51.858] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:29:51.858] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:29:51.859] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:29:51.859] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:29:51.859] Environment variable 'R_FUTURE_JOURNAL' not set [17:29:51.860] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:29:51.860] Environment variable 'R_FUTURE_GLOBALS_OBJECTSIZE_METHOD' not set [17:29:51.860] Environment variable 'R_FUTURE_PLAN_CLEANUP_LEGACY' not set [17:29:51.862] R command-line argument: -p 2 [17:29:51.862] => options(future.plan = tweak(multisession, workers = 2)) [17:29:51.865] R process uuid: 69cc3a46-0951-b7eb-a35a-7628bb935b84 [17:29:51.866] Setting plan('default') [17:29:51.866] plan(): Setting new future strategy stack: [17:29:51.866] List of future strategies: [17:29:51.866] 1. multisession: [17:29:51.866] - args: function (..., workers = 2L, envir = parent.frame()) [17:29:51.866] - tweaked: TRUE [17:29:51.866] - call: NULL [17:29:51.868] plan(): nbrOfWorkers() = 2 > strategy <- plan("next") > print(strategy) multisession: - args: function (..., workers = 2L, envir = parent.frame()) - tweaked: TRUE - call: NULL > if (maxCores >= 2) { + ## Exactly which type of 'multiprocess' future depends on R_FUTURE_PLAN + stopifnot(inherits(strategy, "multiprocess")) + } else { + stopifnot(all(class(strategy) == class(strategy0))) + } > plan("default") [17:29:51.869] plan(): Setting new future strategy stack: [17:29:51.869] List of future strategies: [17:29:51.869] 1. multisession: [17:29:51.869] - args: function (..., workers = 2L, envir = parent.frame()) [17:29:51.869] - tweaked: TRUE [17:29:51.869] - call: NULL [17:29:51.870] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:29:51.870] multisession: [17:29:51.870] - args: function (..., workers = 2L, envir = parent.frame()) [17:29:51.870] - tweaked: TRUE [17:29:51.870] - call: NULL [17:29:51.873] getGlobalsAndPackages() ... [17:29:51.873] Not searching for globals [17:29:51.874] - globals: [0] [17:29:51.874] getGlobalsAndPackages() ... DONE [17:29:51.876] [local output] makeClusterPSOCK() ... [17:29:51.929] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:29:51.936] [local output] Base port: 37764 [17:29:51.937] [local output] Getting setup options for 2 cluster nodes ... [17:29:51.937] [local output] - Node #1 of 2 ... [17:29:51.938] [local output] localMachine=TRUE => revtunnel=FALSE [17:29:51.939] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpu2pucU/worker.rank=1.parallelly.parent=86628.1526450d65fde.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/Rtmpu2pucU/worker.rank=1.parallelly.parent=86628.1526450d65fde.pid\")"' [17:29:52.270] - Possible to infer worker's PID: TRUE [17:29:52.271] [local output] Rscript port: 37764 [17:29:52.271] [local output] - Node #2 of 2 ... [17:29:52.272] [local output] localMachine=TRUE => revtunnel=FALSE [17:29:52.273] [local output] Rscript port: 37764 [17:29:52.274] [local output] Getting setup options for 2 cluster nodes ... done [17:29:52.274] [local output] - Parallel setup requested for some PSOCK nodes [17:29:52.275] [local output] Setting up PSOCK nodes in parallel [17:29:52.275] List of 36 [17:29:52.275] $ worker : chr "localhost" [17:29:52.275] ..- attr(*, "localhost")= logi TRUE [17:29:52.275] $ master : chr "localhost" [17:29:52.275] $ port : int 37764 [17:29:52.275] $ connectTimeout : num 120 [17:29:52.275] $ timeout : num 120 [17:29:52.275] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:29:52.275] $ homogeneous : logi TRUE [17:29:52.275] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=startup.R:86628:CRANWIN3:CRAN\" "| __truncated__ [17:29:52.275] $ rscript_envs : NULL [17:29:52.275] $ rscript_libs : chr [1:2] "D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda" "D:/RCompile/recent/R/library" [17:29:52.275] $ rscript_startup : NULL [17:29:52.275] $ rscript_sh : chr [1:2] "cmd" "cmd" [17:29:52.275] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:29:52.275] $ methods : logi TRUE [17:29:52.275] $ socketOptions : chr "no-delay" [17:29:52.275] $ useXDR : logi FALSE [17:29:52.275] $ outfile : chr "/dev/null" [17:29:52.275] $ renice : int NA [17:29:52.275] $ rshcmd : NULL [17:29:52.275] $ user : chr(0) [17:29:52.275] $ revtunnel : logi FALSE [17:29:52.275] $ rshlogfile : NULL [17:29:52.275] $ rshopts : chr(0) [17:29:52.275] $ rank : int 1 [17:29:52.275] $ manual : logi FALSE [17:29:52.275] $ dryrun : logi FALSE [17:29:52.275] $ quiet : logi FALSE [17:29:52.275] $ setup_strategy : chr "parallel" [17:29:52.275] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:29:52.275] $ pidfile : chr "D:/temp/Rtmpu2pucU/worker.rank=1.parallelly.parent=86628.1526450d65fde.pid" [17:29:52.275] $ rshcmd_label : NULL [17:29:52.275] $ rsh_call : NULL [17:29:52.275] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:29:52.275] $ localMachine : logi TRUE [17:29:52.275] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:29:52.275] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:29:52.275] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:29:52.275] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:29:52.275] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:29:52.275] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [17:29:52.275] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [17:29:52.275] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:29:52.275] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:29:52.275] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:29:52.275] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:29:52.275] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:29:52.275] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:29:52.275] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:29:52.275] $ arguments :List of 28 [17:29:52.275] ..$ worker : chr "localhost" [17:29:52.275] ..$ master : NULL [17:29:52.275] ..$ port : int 37764 [17:29:52.275] ..$ connectTimeout : num 120 [17:29:52.275] ..$ timeout : num 120 [17:29:52.275] ..$ rscript : NULL [17:29:52.275] ..$ homogeneous : NULL [17:29:52.275] ..$ rscript_args : NULL [17:29:52.275] ..$ rscript_envs : NULL [17:29:52.275] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda" "D:/RCompile/recent/R/library" [17:29:52.275] ..$ rscript_startup : NULL [17:29:52.275] ..$ rscript_sh : chr "auto" [17:29:52.275] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:29:52.275] ..$ methods : logi TRUE [17:29:52.275] ..$ socketOptions : chr "no-delay" [17:29:52.275] ..$ useXDR : logi FALSE [17:29:52.275] ..$ outfile : chr "/dev/null" [17:29:52.275] ..$ renice : int NA [17:29:52.275] ..$ rshcmd : NULL [17:29:52.275] ..$ user : NULL [17:29:52.275] ..$ revtunnel : logi NA [17:29:52.275] ..$ rshlogfile : NULL [17:29:52.275] ..$ rshopts : NULL [17:29:52.275] ..$ rank : int 1 [17:29:52.275] ..$ manual : logi FALSE [17:29:52.275] ..$ dryrun : logi FALSE [17:29:52.275] ..$ quiet : logi FALSE [17:29:52.275] ..$ setup_strategy : chr "parallel" [17:29:52.275] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:29:52.306] [local output] System call to launch all workers: [17:29:52.306] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=startup.R:86628:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpu2pucU/worker.rank=1.parallelly.parent=86628.1526450d65fde.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=37764 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:29:52.306] [local output] Starting PSOCK main server [17:29:52.316] [local output] Workers launched [17:29:52.316] [local output] Waiting for workers to connect back [17:29:52.316] - [local output] 0 workers out of 2 ready [17:29:52.574] - [local output] 0 workers out of 2 ready [17:29:52.575] - [local output] 1 workers out of 2 ready [17:29:52.577] - [local output] 1 workers out of 2 ready [17:29:52.577] - [local output] 2 workers out of 2 ready [17:29:52.578] [local output] Launching of 2 workers completed [17:29:52.578] [local output] Number of nodes in cluster: 2 [17:29:52.578] [local output] Collecting session information from 2 workers [17:29:52.580] [local output] - Worker #1 of 2 [17:29:52.581] [local output] - Worker #2 of 2 [17:29:52.581] [local output] makeClusterPSOCK() ... done [17:29:52.600] Packages needed by the future expression (n = 0): [17:29:52.601] Packages needed by future strategies (n = 0): [17:29:52.602] { [17:29:52.602] { [17:29:52.602] { [17:29:52.602] ...future.startTime <- base::Sys.time() [17:29:52.602] { [17:29:52.602] { [17:29:52.602] { [17:29:52.602] { [17:29:52.602] base::local({ [17:29:52.602] has_future <- base::requireNamespace("future", [17:29:52.602] quietly = TRUE) [17:29:52.602] if (has_future) { [17:29:52.602] ns <- base::getNamespace("future") [17:29:52.602] version <- ns[[".package"]][["version"]] [17:29:52.602] if (is.null(version)) [17:29:52.602] version <- utils::packageVersion("future") [17:29:52.602] } [17:29:52.602] else { [17:29:52.602] version <- NULL [17:29:52.602] } [17:29:52.602] if (!has_future || version < "1.8.0") { [17:29:52.602] info <- base::c(r_version = base::gsub("R version ", [17:29:52.602] "", base::R.version$version.string), [17:29:52.602] platform = base::sprintf("%s (%s-bit)", [17:29:52.602] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:29:52.602] os = base::paste(base::Sys.info()[base::c("sysname", [17:29:52.602] "release", "version")], collapse = " "), [17:29:52.602] hostname = base::Sys.info()[["nodename"]]) [17:29:52.602] info <- base::sprintf("%s: %s", base::names(info), [17:29:52.602] info) [17:29:52.602] info <- base::paste(info, collapse = "; ") [17:29:52.602] if (!has_future) { [17:29:52.602] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:29:52.602] info) [17:29:52.602] } [17:29:52.602] else { [17:29:52.602] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:29:52.602] info, version) [17:29:52.602] } [17:29:52.602] base::stop(msg) [17:29:52.602] } [17:29:52.602] }) [17:29:52.602] } [17:29:52.602] ...future.mc.cores.old <- base::getOption("mc.cores") [17:29:52.602] base::options(mc.cores = 1L) [17:29:52.602] } [17:29:52.602] ...future.strategy.old <- future::plan("list") [17:29:52.602] options(future.plan = NULL) [17:29:52.602] Sys.unsetenv("R_FUTURE_PLAN") [17:29:52.602] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:29:52.602] } [17:29:52.602] ...future.workdir <- getwd() [17:29:52.602] } [17:29:52.602] ...future.oldOptions <- base::as.list(base::.Options) [17:29:52.602] ...future.oldEnvVars <- base::Sys.getenv() [17:29:52.602] } [17:29:52.602] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:29:52.602] future.globals.maxSize = NULL, future.globals.method = NULL, [17:29:52.602] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:29:52.602] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:29:52.602] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:29:52.602] future.stdout.windows.reencode = NULL, width = 80L) [17:29:52.602] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:29:52.602] base::names(...future.oldOptions)) [17:29:52.602] } [17:29:52.602] if (FALSE) { [17:29:52.602] } [17:29:52.602] else { [17:29:52.602] if (TRUE) { [17:29:52.602] ...future.stdout <- base::rawConnection(base::raw(0L), [17:29:52.602] open = "w") [17:29:52.602] } [17:29:52.602] else { [17:29:52.602] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:29:52.602] windows = "NUL", "/dev/null"), open = "w") [17:29:52.602] } [17:29:52.602] base::sink(...future.stdout, type = "output", split = FALSE) [17:29:52.602] base::on.exit(if (!base::is.null(...future.stdout)) { [17:29:52.602] base::sink(type = "output", split = FALSE) [17:29:52.602] base::close(...future.stdout) [17:29:52.602] }, add = TRUE) [17:29:52.602] } [17:29:52.602] ...future.frame <- base::sys.nframe() [17:29:52.602] ...future.conditions <- base::list() [17:29:52.602] ...future.rng <- base::globalenv()$.Random.seed [17:29:52.602] if (FALSE) { [17:29:52.602] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:29:52.602] "...future.value", "...future.globalenv.names", ".Random.seed") [17:29:52.602] } [17:29:52.602] ...future.result <- base::tryCatch({ [17:29:52.602] base::withCallingHandlers({ [17:29:52.602] ...future.value <- base::withVisible(base::local({ [17:29:52.602] ...future.makeSendCondition <- base::local({ [17:29:52.602] sendCondition <- NULL [17:29:52.602] function(frame = 1L) { [17:29:52.602] if (is.function(sendCondition)) [17:29:52.602] return(sendCondition) [17:29:52.602] ns <- getNamespace("parallel") [17:29:52.602] if (exists("sendData", mode = "function", [17:29:52.602] envir = ns)) { [17:29:52.602] parallel_sendData <- get("sendData", mode = "function", [17:29:52.602] envir = ns) [17:29:52.602] envir <- sys.frame(frame) [17:29:52.602] master <- NULL [17:29:52.602] while (!identical(envir, .GlobalEnv) && [17:29:52.602] !identical(envir, emptyenv())) { [17:29:52.602] if (exists("master", mode = "list", envir = envir, [17:29:52.602] inherits = FALSE)) { [17:29:52.602] master <- get("master", mode = "list", [17:29:52.602] envir = envir, inherits = FALSE) [17:29:52.602] if (inherits(master, c("SOCKnode", [17:29:52.602] "SOCK0node"))) { [17:29:52.602] sendCondition <<- function(cond) { [17:29:52.602] data <- list(type = "VALUE", value = cond, [17:29:52.602] success = TRUE) [17:29:52.602] parallel_sendData(master, data) [17:29:52.602] } [17:29:52.602] return(sendCondition) [17:29:52.602] } [17:29:52.602] } [17:29:52.602] frame <- frame + 1L [17:29:52.602] envir <- sys.frame(frame) [17:29:52.602] } [17:29:52.602] } [17:29:52.602] sendCondition <<- function(cond) NULL [17:29:52.602] } [17:29:52.602] }) [17:29:52.602] withCallingHandlers({ [17:29:52.602] NA [17:29:52.602] }, immediateCondition = function(cond) { [17:29:52.602] sendCondition <- ...future.makeSendCondition() [17:29:52.602] sendCondition(cond) [17:29:52.602] muffleCondition <- function (cond, pattern = "^muffle") [17:29:52.602] { [17:29:52.602] inherits <- base::inherits [17:29:52.602] invokeRestart <- base::invokeRestart [17:29:52.602] is.null <- base::is.null [17:29:52.602] muffled <- FALSE [17:29:52.602] if (inherits(cond, "message")) { [17:29:52.602] muffled <- grepl(pattern, "muffleMessage") [17:29:52.602] if (muffled) [17:29:52.602] invokeRestart("muffleMessage") [17:29:52.602] } [17:29:52.602] else if (inherits(cond, "warning")) { [17:29:52.602] muffled <- grepl(pattern, "muffleWarning") [17:29:52.602] if (muffled) [17:29:52.602] invokeRestart("muffleWarning") [17:29:52.602] } [17:29:52.602] else if (inherits(cond, "condition")) { [17:29:52.602] if (!is.null(pattern)) { [17:29:52.602] computeRestarts <- base::computeRestarts [17:29:52.602] grepl <- base::grepl [17:29:52.602] restarts <- computeRestarts(cond) [17:29:52.602] for (restart in restarts) { [17:29:52.602] name <- restart$name [17:29:52.602] if (is.null(name)) [17:29:52.602] next [17:29:52.602] if (!grepl(pattern, name)) [17:29:52.602] next [17:29:52.602] invokeRestart(restart) [17:29:52.602] muffled <- TRUE [17:29:52.602] break [17:29:52.602] } [17:29:52.602] } [17:29:52.602] } [17:29:52.602] invisible(muffled) [17:29:52.602] } [17:29:52.602] muffleCondition(cond) [17:29:52.602] }) [17:29:52.602] })) [17:29:52.602] future::FutureResult(value = ...future.value$value, [17:29:52.602] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:29:52.602] ...future.rng), globalenv = if (FALSE) [17:29:52.602] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:29:52.602] ...future.globalenv.names)) [17:29:52.602] else NULL, started = ...future.startTime, version = "1.8") [17:29:52.602] }, condition = base::local({ [17:29:52.602] c <- base::c [17:29:52.602] inherits <- base::inherits [17:29:52.602] invokeRestart <- base::invokeRestart [17:29:52.602] length <- base::length [17:29:52.602] list <- base::list [17:29:52.602] seq.int <- base::seq.int [17:29:52.602] signalCondition <- base::signalCondition [17:29:52.602] sys.calls <- base::sys.calls [17:29:52.602] `[[` <- base::`[[` [17:29:52.602] `+` <- base::`+` [17:29:52.602] `<<-` <- base::`<<-` [17:29:52.602] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:29:52.602] calls[seq.int(from = from + 12L, to = length(calls) - [17:29:52.602] 3L)] [17:29:52.602] } [17:29:52.602] function(cond) { [17:29:52.602] is_error <- inherits(cond, "error") [17:29:52.602] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:29:52.602] NULL) [17:29:52.602] if (is_error) { [17:29:52.602] sessionInformation <- function() { [17:29:52.602] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:29:52.602] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:29:52.602] search = base::search(), system = base::Sys.info()) [17:29:52.602] } [17:29:52.602] ...future.conditions[[length(...future.conditions) + [17:29:52.602] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:29:52.602] cond$call), session = sessionInformation(), [17:29:52.602] timestamp = base::Sys.time(), signaled = 0L) [17:29:52.602] signalCondition(cond) [17:29:52.602] } [17:29:52.602] else if (!ignore && TRUE && inherits(cond, c("condition", [17:29:52.602] "immediateCondition"))) { [17:29:52.602] signal <- TRUE && inherits(cond, "immediateCondition") [17:29:52.602] ...future.conditions[[length(...future.conditions) + [17:29:52.602] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:29:52.602] if (TRUE && !signal) { [17:29:52.602] muffleCondition <- function (cond, pattern = "^muffle") [17:29:52.602] { [17:29:52.602] inherits <- base::inherits [17:29:52.602] invokeRestart <- base::invokeRestart [17:29:52.602] is.null <- base::is.null [17:29:52.602] muffled <- FALSE [17:29:52.602] if (inherits(cond, "message")) { [17:29:52.602] muffled <- grepl(pattern, "muffleMessage") [17:29:52.602] if (muffled) [17:29:52.602] invokeRestart("muffleMessage") [17:29:52.602] } [17:29:52.602] else if (inherits(cond, "warning")) { [17:29:52.602] muffled <- grepl(pattern, "muffleWarning") [17:29:52.602] if (muffled) [17:29:52.602] invokeRestart("muffleWarning") [17:29:52.602] } [17:29:52.602] else if (inherits(cond, "condition")) { [17:29:52.602] if (!is.null(pattern)) { [17:29:52.602] computeRestarts <- base::computeRestarts [17:29:52.602] grepl <- base::grepl [17:29:52.602] restarts <- computeRestarts(cond) [17:29:52.602] for (restart in restarts) { [17:29:52.602] name <- restart$name [17:29:52.602] if (is.null(name)) [17:29:52.602] next [17:29:52.602] if (!grepl(pattern, name)) [17:29:52.602] next [17:29:52.602] invokeRestart(restart) [17:29:52.602] muffled <- TRUE [17:29:52.602] break [17:29:52.602] } [17:29:52.602] } [17:29:52.602] } [17:29:52.602] invisible(muffled) [17:29:52.602] } [17:29:52.602] muffleCondition(cond, pattern = "^muffle") [17:29:52.602] } [17:29:52.602] } [17:29:52.602] else { [17:29:52.602] if (TRUE) { [17:29:52.602] muffleCondition <- function (cond, pattern = "^muffle") [17:29:52.602] { [17:29:52.602] inherits <- base::inherits [17:29:52.602] invokeRestart <- base::invokeRestart [17:29:52.602] is.null <- base::is.null [17:29:52.602] muffled <- FALSE [17:29:52.602] if (inherits(cond, "message")) { [17:29:52.602] muffled <- grepl(pattern, "muffleMessage") [17:29:52.602] if (muffled) [17:29:52.602] invokeRestart("muffleMessage") [17:29:52.602] } [17:29:52.602] else if (inherits(cond, "warning")) { [17:29:52.602] muffled <- grepl(pattern, "muffleWarning") [17:29:52.602] if (muffled) [17:29:52.602] invokeRestart("muffleWarning") [17:29:52.602] } [17:29:52.602] else if (inherits(cond, "condition")) { [17:29:52.602] if (!is.null(pattern)) { [17:29:52.602] computeRestarts <- base::computeRestarts [17:29:52.602] grepl <- base::grepl [17:29:52.602] restarts <- computeRestarts(cond) [17:29:52.602] for (restart in restarts) { [17:29:52.602] name <- restart$name [17:29:52.602] if (is.null(name)) [17:29:52.602] next [17:29:52.602] if (!grepl(pattern, name)) [17:29:52.602] next [17:29:52.602] invokeRestart(restart) [17:29:52.602] muffled <- TRUE [17:29:52.602] break [17:29:52.602] } [17:29:52.602] } [17:29:52.602] } [17:29:52.602] invisible(muffled) [17:29:52.602] } [17:29:52.602] muffleCondition(cond, pattern = "^muffle") [17:29:52.602] } [17:29:52.602] } [17:29:52.602] } [17:29:52.602] })) [17:29:52.602] }, error = function(ex) { [17:29:52.602] base::structure(base::list(value = NULL, visible = NULL, [17:29:52.602] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:29:52.602] ...future.rng), started = ...future.startTime, [17:29:52.602] finished = Sys.time(), session_uuid = NA_character_, [17:29:52.602] version = "1.8"), class = "FutureResult") [17:29:52.602] }, finally = { [17:29:52.602] if (!identical(...future.workdir, getwd())) [17:29:52.602] setwd(...future.workdir) [17:29:52.602] { [17:29:52.602] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:29:52.602] ...future.oldOptions$nwarnings <- NULL [17:29:52.602] } [17:29:52.602] base::options(...future.oldOptions) [17:29:52.602] if (.Platform$OS.type == "windows") { [17:29:52.602] old_names <- names(...future.oldEnvVars) [17:29:52.602] envs <- base::Sys.getenv() [17:29:52.602] names <- names(envs) [17:29:52.602] common <- intersect(names, old_names) [17:29:52.602] added <- setdiff(names, old_names) [17:29:52.602] removed <- setdiff(old_names, names) [17:29:52.602] changed <- common[...future.oldEnvVars[common] != [17:29:52.602] envs[common]] [17:29:52.602] NAMES <- toupper(changed) [17:29:52.602] args <- list() [17:29:52.602] for (kk in seq_along(NAMES)) { [17:29:52.602] name <- changed[[kk]] [17:29:52.602] NAME <- NAMES[[kk]] [17:29:52.602] if (name != NAME && is.element(NAME, old_names)) [17:29:52.602] next [17:29:52.602] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:52.602] } [17:29:52.602] NAMES <- toupper(added) [17:29:52.602] for (kk in seq_along(NAMES)) { [17:29:52.602] name <- added[[kk]] [17:29:52.602] NAME <- NAMES[[kk]] [17:29:52.602] if (name != NAME && is.element(NAME, old_names)) [17:29:52.602] next [17:29:52.602] args[[name]] <- "" [17:29:52.602] } [17:29:52.602] NAMES <- toupper(removed) [17:29:52.602] for (kk in seq_along(NAMES)) { [17:29:52.602] name <- removed[[kk]] [17:29:52.602] NAME <- NAMES[[kk]] [17:29:52.602] if (name != NAME && is.element(NAME, old_names)) [17:29:52.602] next [17:29:52.602] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:52.602] } [17:29:52.602] if (length(args) > 0) [17:29:52.602] base::do.call(base::Sys.setenv, args = args) [17:29:52.602] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:29:52.602] } [17:29:52.602] else { [17:29:52.602] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:29:52.602] } [17:29:52.602] { [17:29:52.602] if (base::length(...future.futureOptionsAdded) > [17:29:52.602] 0L) { [17:29:52.602] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:29:52.602] base::names(opts) <- ...future.futureOptionsAdded [17:29:52.602] base::options(opts) [17:29:52.602] } [17:29:52.602] { [17:29:52.602] { [17:29:52.602] base::options(mc.cores = ...future.mc.cores.old) [17:29:52.602] NULL [17:29:52.602] } [17:29:52.602] options(future.plan = function (..., workers = 2L, [17:29:52.602] envir = parent.frame()) [17:29:52.602] strategy(..., workers = workers, envir = envir)) [17:29:52.602] if (is.na(NA_character_)) [17:29:52.602] Sys.unsetenv("R_FUTURE_PLAN") [17:29:52.602] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:29:52.602] future::plan(...future.strategy.old, .cleanup = FALSE, [17:29:52.602] .init = FALSE) [17:29:52.602] } [17:29:52.602] } [17:29:52.602] } [17:29:52.602] }) [17:29:52.602] if (TRUE) { [17:29:52.602] base::sink(type = "output", split = FALSE) [17:29:52.602] if (TRUE) { [17:29:52.602] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:29:52.602] } [17:29:52.602] else { [17:29:52.602] ...future.result["stdout"] <- base::list(NULL) [17:29:52.602] } [17:29:52.602] base::close(...future.stdout) [17:29:52.602] ...future.stdout <- NULL [17:29:52.602] } [17:29:52.602] ...future.result$conditions <- ...future.conditions [17:29:52.602] ...future.result$finished <- base::Sys.time() [17:29:52.602] ...future.result [17:29:52.602] } [17:29:52.778] MultisessionFuture started [17:29:52.779] result() for ClusterFuture ... [17:29:52.779] receiveMessageFromWorker() for ClusterFuture ... [17:29:52.780] - Validating connection of MultisessionFuture [17:29:52.865] - received message: FutureResult [17:29:52.866] - Received FutureResult [17:29:52.871] - Erased future from FutureRegistry [17:29:52.872] result() for ClusterFuture ... [17:29:52.872] - result already collected: FutureResult [17:29:52.873] result() for ClusterFuture ... done [17:29:52.873] receiveMessageFromWorker() for ClusterFuture ... done [17:29:52.873] result() for ClusterFuture ... done [17:29:52.874] result() for ClusterFuture ... [17:29:52.874] - result already collected: FutureResult [17:29:52.874] result() for ClusterFuture ... done [17:29:52.875] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:29:52.875] plan(): nbrOfWorkers() = 2 > message("- .onLoad() w/ -p 2 ... DONE") - .onLoad() w/ -p 2 ... DONE > > message("- .onLoad() w/ -p 0 ...") - .onLoad() w/ -p 0 ... > options(future.plan = NULL, future.cmdargs = c("-p", 0)) > .onLoad(pkgname, pkgname) [17:29:52.878] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:29:52.878] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:29:52.879] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:29:52.879] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:29:52.879] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:29:52.880] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:29:52.880] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:29:52.880] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:29:52.881] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:29:52.881] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:29:52.881] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:29:52.882] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:29:52.882] Environment variable 'R_FUTURE_PLAN' not set [17:29:52.882] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:29:52.883] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:29:52.883] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:29:52.883] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:29:52.884] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:29:52.884] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:29:52.884] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:29:52.885] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:29:52.885] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:29:52.885] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:29:52.886] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:29:52.886] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:29:52.887] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:29:52.887] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:29:52.887] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:29:52.888] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:29:52.888] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:29:52.888] Environment variable 'R_FUTURE_JOURNAL' not set [17:29:52.889] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:29:52.889] Environment variable 'R_FUTURE_GLOBALS_OBJECTSIZE_METHOD' not set [17:29:52.889] Environment variable 'R_FUTURE_PLAN_CLEANUP_LEGACY' not set Warning: future: Ignoring invalid number of processes specified in command-line option: -p 0 [17:29:52.891] R process uuid: 69cc3a46-0951-b7eb-a35a-7628bb935b84 [17:29:52.891] Setting plan('default') [17:29:52.892] plan(): Setting new future strategy stack: [17:29:52.892] List of future strategies: [17:29:52.892] 1. sequential: [17:29:52.892] - args: function (..., envir = parent.frame(), workers = "") [17:29:52.892] - tweaked: FALSE [17:29:52.892] - call: NULL [17:29:52.902] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) sequential: - args: function (..., envir = parent.frame(), workers = "") - tweaked: FALSE - call: NULL > stopifnot(all(class(strategy) == class(strategy0))) > plan("default") [17:29:52.904] plan(): Setting new future strategy stack: [17:29:52.904] List of future strategies: [17:29:52.904] 1. sequential: [17:29:52.904] - args: function (..., envir = parent.frame(), workers = "") [17:29:52.904] - tweaked: FALSE [17:29:52.904] - call: NULL [17:29:52.906] plan(): nbrOfWorkers() = 1 > message("- .onLoad() w/ -p 0 ... DONE") - .onLoad() w/ -p 0 ... DONE > > message("- .onLoad() w/ -p -1 ...") - .onLoad() w/ -p -1 ... > options(future.plan = NULL, future.cmdargs = c("-p", -1)) > .onLoad(pkgname, pkgname) [17:29:52.908] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:29:52.908] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:29:52.909] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:29:52.909] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:29:52.909] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:29:52.910] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:29:52.910] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:29:52.910] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:29:52.910] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:29:52.911] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:29:52.911] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:29:52.911] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:29:52.912] Environment variable 'R_FUTURE_PLAN' not set [17:29:52.912] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:29:52.912] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:29:52.912] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:29:52.913] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:29:52.913] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:29:52.913] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:29:52.914] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:29:52.914] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:29:52.914] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:29:52.914] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:29:52.914] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:29:52.915] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:29:52.915] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:29:52.915] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:29:52.916] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:29:52.916] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:29:52.916] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:29:52.916] Environment variable 'R_FUTURE_JOURNAL' not set [17:29:52.916] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:29:52.917] Environment variable 'R_FUTURE_GLOBALS_OBJECTSIZE_METHOD' not set [17:29:52.917] Environment variable 'R_FUTURE_PLAN_CLEANUP_LEGACY' not set Warning: future: Ignoring invalid number of processes specified in command-line option: -p -1 [17:29:52.918] R process uuid: 69cc3a46-0951-b7eb-a35a-7628bb935b84 [17:29:52.918] Setting plan('default') [17:29:52.918] plan(): Setting new future strategy stack: [17:29:52.918] List of future strategies: [17:29:52.918] 1. sequential: [17:29:52.918] - args: function (..., envir = parent.frame(), workers = "") [17:29:52.918] - tweaked: FALSE [17:29:52.918] - call: NULL [17:29:52.919] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) sequential: - args: function (..., envir = parent.frame(), workers = "") - tweaked: FALSE - call: NULL > stopifnot(all(class(strategy) == class(strategy0))) > plan("default") [17:29:52.920] plan(): Setting new future strategy stack: [17:29:52.920] List of future strategies: [17:29:52.920] 1. sequential: [17:29:52.920] - args: function (..., envir = parent.frame(), workers = "") [17:29:52.920] - tweaked: FALSE [17:29:52.920] - call: NULL [17:29:52.921] plan(): nbrOfWorkers() = 1 > message("- .onLoad() w/ -p -1 ... DONE") - .onLoad() w/ -p -1 ... DONE > > message("- .onLoad() w/ -p foo ...") - .onLoad() w/ -p foo ... > options(future.plan = NULL, future.cmdargs = c("-p", "foo")) > .onLoad(pkgname, pkgname) [17:29:52.923] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:29:52.923] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:29:52.924] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:29:52.924] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:29:52.924] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:29:52.924] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:29:52.924] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:29:52.925] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:29:52.925] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:29:52.925] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:29:52.926] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:29:52.926] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:29:52.926] Environment variable 'R_FUTURE_PLAN' not set [17:29:52.926] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:29:52.927] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:29:52.927] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:29:52.927] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:29:52.927] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:29:52.928] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:29:52.928] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:29:52.928] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:29:52.928] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:29:52.929] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:29:52.929] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:29:52.929] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:29:52.929] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:29:52.930] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:29:52.930] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:29:52.930] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:29:52.930] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:29:52.930] Environment variable 'R_FUTURE_JOURNAL' not set [17:29:52.931] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:29:52.931] Environment variable 'R_FUTURE_GLOBALS_OBJECTSIZE_METHOD' not set [17:29:52.931] Environment variable 'R_FUTURE_PLAN_CLEANUP_LEGACY' not set Warning in parseCmdArgs() : NAs introduced by coercion Warning: future: Ignoring invalid number of processes specified in command-line option: -p foo [17:29:52.932] R process uuid: 69cc3a46-0951-b7eb-a35a-7628bb935b84 [17:29:52.932] Setting plan('default') [17:29:52.932] plan(): Setting new future strategy stack: [17:29:52.933] List of future strategies: [17:29:52.933] 1. sequential: [17:29:52.933] - args: function (..., envir = parent.frame(), workers = "") [17:29:52.933] - tweaked: FALSE [17:29:52.933] - call: NULL [17:29:52.934] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) sequential: - args: function (..., envir = parent.frame(), workers = "") - tweaked: FALSE - call: NULL > stopifnot(all(class(strategy) == class(strategy0))) > plan("default") [17:29:52.934] plan(): Setting new future strategy stack: [17:29:52.935] List of future strategies: [17:29:52.935] 1. sequential: [17:29:52.935] - args: function (..., envir = parent.frame(), workers = "") [17:29:52.935] - tweaked: FALSE [17:29:52.935] - call: NULL [17:29:52.935] plan(): nbrOfWorkers() = 1 > message("- .onLoad() w/ -p foo ... DONE") - .onLoad() w/ -p foo ... DONE > > message("- .onLoad() w/ R_FUTURE_PLAN = 'multisession' ...") - .onLoad() w/ R_FUTURE_PLAN = 'multisession' ... > Sys.setenv(R_FUTURE_PLAN = "multisession") > options(future.plan = NULL, future.cmdargs = NULL) > .onLoad(pkgname, pkgname) [17:29:52.937] Future-specific environment variables: - R_FUTURE_PLAN='multisession' - R_FUTURE_WAIT_INTERVAL='0.01' [17:29:52.938] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:29:52.938] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:29:52.938] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:29:52.938] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:29:52.939] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:29:52.939] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:29:52.939] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:29:52.939] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:29:52.939] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:29:52.940] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:29:52.940] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:29:52.940] R_FUTURE_PLAN='multisession' [17:29:52.940] => options("future.plan" = 'multisession') [n=1, mode=character] [17:29:52.941] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:29:52.941] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:29:52.941] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:29:52.941] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:29:52.942] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:29:52.942] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:29:52.942] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:29:52.942] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:29:52.943] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:29:52.943] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:29:52.943] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:29:52.943] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:29:52.944] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:29:52.944] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:29:52.944] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:29:52.944] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:29:52.945] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:29:52.945] Environment variable 'R_FUTURE_JOURNAL' not set [17:29:52.945] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:29:52.945] Environment variable 'R_FUTURE_GLOBALS_OBJECTSIZE_METHOD' not set [17:29:52.946] Environment variable 'R_FUTURE_PLAN_CLEANUP_LEGACY' not set [17:29:52.946] Option 'future.plan' = 'multisession' [17:29:52.946] R process uuid: 69cc3a46-0951-b7eb-a35a-7628bb935b84 [17:29:52.946] Setting plan('default') [17:29:52.947] plan(): Setting new future strategy stack: [17:29:52.947] List of future strategies: [17:29:52.947] 1. multisession: [17:29:52.947] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:52.947] - tweaked: FALSE [17:29:52.947] - call: plan("default", .init = FALSE) [17:29:52.950] plan(): nbrOfWorkers() = 2 > strategy <- plan("next") > print(strategy) multisession: - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) - tweaked: FALSE - call: plan("default", .init = FALSE) > stopifnot(inherits(strategy, "multisession")) > plan("default") [17:29:52.951] plan(): Setting new future strategy stack: [17:29:52.951] List of future strategies: [17:29:52.951] 1. multisession: [17:29:52.951] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:52.951] - tweaked: FALSE [17:29:52.951] - call: plan("default") [17:29:52.952] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:29:52.952] multisession: [17:29:52.952] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:52.952] - tweaked: FALSE [17:29:52.952] - call: plan("default") [17:29:52.955] getGlobalsAndPackages() ... [17:29:52.956] Not searching for globals [17:29:52.956] - globals: [0] [17:29:52.956] getGlobalsAndPackages() ... DONE [17:29:52.957] [local output] makeClusterPSOCK() ... [17:29:52.966] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:29:52.969] [local output] Base port: 29368 [17:29:52.970] [local output] Getting setup options for 2 cluster nodes ... [17:29:52.970] [local output] - Node #1 of 2 ... [17:29:52.971] [local output] localMachine=TRUE => revtunnel=FALSE [17:29:52.973] [local output] Rscript port: 29368 [17:29:52.974] [local output] - Node #2 of 2 ... [17:29:52.975] [local output] localMachine=TRUE => revtunnel=FALSE [17:29:52.977] [local output] Rscript port: 29368 [17:29:52.977] [local output] Getting setup options for 2 cluster nodes ... done [17:29:52.978] [local output] - Parallel setup requested for some PSOCK nodes [17:29:52.978] [local output] Setting up PSOCK nodes in parallel [17:29:52.978] List of 36 [17:29:52.978] $ worker : chr "localhost" [17:29:52.978] ..- attr(*, "localhost")= logi TRUE [17:29:52.978] $ master : chr "localhost" [17:29:52.978] $ port : int 29368 [17:29:52.978] $ connectTimeout : num 120 [17:29:52.978] $ timeout : num 120 [17:29:52.978] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:29:52.978] $ homogeneous : logi TRUE [17:29:52.978] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=startup.R:86628:CRANWIN3:CRAN\" "| __truncated__ [17:29:52.978] $ rscript_envs : NULL [17:29:52.978] $ rscript_libs : chr [1:2] "D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda" "D:/RCompile/recent/R/library" [17:29:52.978] $ rscript_startup : NULL [17:29:52.978] $ rscript_sh : chr [1:2] "cmd" "cmd" [17:29:52.978] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:29:52.978] $ methods : logi TRUE [17:29:52.978] $ socketOptions : chr "no-delay" [17:29:52.978] $ useXDR : logi FALSE [17:29:52.978] $ outfile : chr "/dev/null" [17:29:52.978] $ renice : int NA [17:29:52.978] $ rshcmd : NULL [17:29:52.978] $ user : chr(0) [17:29:52.978] $ revtunnel : logi FALSE [17:29:52.978] $ rshlogfile : NULL [17:29:52.978] $ rshopts : chr(0) [17:29:52.978] $ rank : int 1 [17:29:52.978] $ manual : logi FALSE [17:29:52.978] $ dryrun : logi FALSE [17:29:52.978] $ quiet : logi FALSE [17:29:52.978] $ setup_strategy : chr "parallel" [17:29:52.978] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:29:52.978] $ pidfile : chr "D:/temp/Rtmpu2pucU/worker.rank=1.parallelly.parent=86628.152644c433bab.pid" [17:29:52.978] $ rshcmd_label : NULL [17:29:52.978] $ rsh_call : NULL [17:29:52.978] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:29:52.978] $ localMachine : logi TRUE [17:29:52.978] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:29:52.978] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:29:52.978] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:29:52.978] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:29:52.978] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:29:52.978] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [17:29:52.978] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [17:29:52.978] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:29:52.978] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:29:52.978] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:29:52.978] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:29:52.978] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:29:52.978] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:29:52.978] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:29:52.978] $ arguments :List of 28 [17:29:52.978] ..$ worker : chr "localhost" [17:29:52.978] ..$ master : NULL [17:29:52.978] ..$ port : int 29368 [17:29:52.978] ..$ connectTimeout : num 120 [17:29:52.978] ..$ timeout : num 120 [17:29:52.978] ..$ rscript : NULL [17:29:52.978] ..$ homogeneous : NULL [17:29:52.978] ..$ rscript_args : NULL [17:29:52.978] ..$ rscript_envs : NULL [17:29:52.978] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda" "D:/RCompile/recent/R/library" [17:29:52.978] ..$ rscript_startup : NULL [17:29:52.978] ..$ rscript_sh : chr "auto" [17:29:52.978] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:29:52.978] ..$ methods : logi TRUE [17:29:52.978] ..$ socketOptions : chr "no-delay" [17:29:52.978] ..$ useXDR : logi FALSE [17:29:52.978] ..$ outfile : chr "/dev/null" [17:29:52.978] ..$ renice : int NA [17:29:52.978] ..$ rshcmd : NULL [17:29:52.978] ..$ user : NULL [17:29:52.978] ..$ revtunnel : logi NA [17:29:52.978] ..$ rshlogfile : NULL [17:29:52.978] ..$ rshopts : NULL [17:29:52.978] ..$ rank : int 1 [17:29:52.978] ..$ manual : logi FALSE [17:29:52.978] ..$ dryrun : logi FALSE [17:29:52.978] ..$ quiet : logi FALSE [17:29:52.978] ..$ setup_strategy : chr "parallel" [17:29:52.978] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:29:53.005] [local output] System call to launch all workers: [17:29:53.006] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=startup.R:86628:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpu2pucU/worker.rank=1.parallelly.parent=86628.152644c433bab.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=29368 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:29:53.006] [local output] Starting PSOCK main server [17:29:53.015] [local output] Workers launched [17:29:53.015] [local output] Waiting for workers to connect back [17:29:53.016] - [local output] 0 workers out of 2 ready [17:29:53.239] - [local output] 0 workers out of 2 ready [17:29:53.240] - [local output] 1 workers out of 2 ready [17:29:53.311] - [local output] 1 workers out of 2 ready [17:29:53.312] - [local output] 2 workers out of 2 ready [17:29:53.312] [local output] Launching of 2 workers completed [17:29:53.312] [local output] Number of nodes in cluster: 2 [17:29:53.312] [local output] Collecting session information from 2 workers [17:29:53.313] [local output] - Worker #1 of 2 [17:29:53.314] [local output] - Worker #2 of 2 [17:29:53.315] [local output] makeClusterPSOCK() ... done [17:29:53.329] Packages needed by the future expression (n = 0): [17:29:53.329] Packages needed by future strategies (n = 0): [17:29:53.329] { [17:29:53.329] { [17:29:53.329] { [17:29:53.329] ...future.startTime <- base::Sys.time() [17:29:53.329] { [17:29:53.329] { [17:29:53.329] { [17:29:53.329] { [17:29:53.329] base::local({ [17:29:53.329] has_future <- base::requireNamespace("future", [17:29:53.329] quietly = TRUE) [17:29:53.329] if (has_future) { [17:29:53.329] ns <- base::getNamespace("future") [17:29:53.329] version <- ns[[".package"]][["version"]] [17:29:53.329] if (is.null(version)) [17:29:53.329] version <- utils::packageVersion("future") [17:29:53.329] } [17:29:53.329] else { [17:29:53.329] version <- NULL [17:29:53.329] } [17:29:53.329] if (!has_future || version < "1.8.0") { [17:29:53.329] info <- base::c(r_version = base::gsub("R version ", [17:29:53.329] "", base::R.version$version.string), [17:29:53.329] platform = base::sprintf("%s (%s-bit)", [17:29:53.329] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:29:53.329] os = base::paste(base::Sys.info()[base::c("sysname", [17:29:53.329] "release", "version")], collapse = " "), [17:29:53.329] hostname = base::Sys.info()[["nodename"]]) [17:29:53.329] info <- base::sprintf("%s: %s", base::names(info), [17:29:53.329] info) [17:29:53.329] info <- base::paste(info, collapse = "; ") [17:29:53.329] if (!has_future) { [17:29:53.329] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:29:53.329] info) [17:29:53.329] } [17:29:53.329] else { [17:29:53.329] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:29:53.329] info, version) [17:29:53.329] } [17:29:53.329] base::stop(msg) [17:29:53.329] } [17:29:53.329] }) [17:29:53.329] } [17:29:53.329] ...future.mc.cores.old <- base::getOption("mc.cores") [17:29:53.329] base::options(mc.cores = 1L) [17:29:53.329] } [17:29:53.329] ...future.strategy.old <- future::plan("list") [17:29:53.329] options(future.plan = NULL) [17:29:53.329] Sys.unsetenv("R_FUTURE_PLAN") [17:29:53.329] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:29:53.329] } [17:29:53.329] ...future.workdir <- getwd() [17:29:53.329] } [17:29:53.329] ...future.oldOptions <- base::as.list(base::.Options) [17:29:53.329] ...future.oldEnvVars <- base::Sys.getenv() [17:29:53.329] } [17:29:53.329] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:29:53.329] future.globals.maxSize = NULL, future.globals.method = NULL, [17:29:53.329] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:29:53.329] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:29:53.329] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:29:53.329] future.stdout.windows.reencode = NULL, width = 80L) [17:29:53.329] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:29:53.329] base::names(...future.oldOptions)) [17:29:53.329] } [17:29:53.329] if (FALSE) { [17:29:53.329] } [17:29:53.329] else { [17:29:53.329] if (TRUE) { [17:29:53.329] ...future.stdout <- base::rawConnection(base::raw(0L), [17:29:53.329] open = "w") [17:29:53.329] } [17:29:53.329] else { [17:29:53.329] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:29:53.329] windows = "NUL", "/dev/null"), open = "w") [17:29:53.329] } [17:29:53.329] base::sink(...future.stdout, type = "output", split = FALSE) [17:29:53.329] base::on.exit(if (!base::is.null(...future.stdout)) { [17:29:53.329] base::sink(type = "output", split = FALSE) [17:29:53.329] base::close(...future.stdout) [17:29:53.329] }, add = TRUE) [17:29:53.329] } [17:29:53.329] ...future.frame <- base::sys.nframe() [17:29:53.329] ...future.conditions <- base::list() [17:29:53.329] ...future.rng <- base::globalenv()$.Random.seed [17:29:53.329] if (FALSE) { [17:29:53.329] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:29:53.329] "...future.value", "...future.globalenv.names", ".Random.seed") [17:29:53.329] } [17:29:53.329] ...future.result <- base::tryCatch({ [17:29:53.329] base::withCallingHandlers({ [17:29:53.329] ...future.value <- base::withVisible(base::local({ [17:29:53.329] ...future.makeSendCondition <- base::local({ [17:29:53.329] sendCondition <- NULL [17:29:53.329] function(frame = 1L) { [17:29:53.329] if (is.function(sendCondition)) [17:29:53.329] return(sendCondition) [17:29:53.329] ns <- getNamespace("parallel") [17:29:53.329] if (exists("sendData", mode = "function", [17:29:53.329] envir = ns)) { [17:29:53.329] parallel_sendData <- get("sendData", mode = "function", [17:29:53.329] envir = ns) [17:29:53.329] envir <- sys.frame(frame) [17:29:53.329] master <- NULL [17:29:53.329] while (!identical(envir, .GlobalEnv) && [17:29:53.329] !identical(envir, emptyenv())) { [17:29:53.329] if (exists("master", mode = "list", envir = envir, [17:29:53.329] inherits = FALSE)) { [17:29:53.329] master <- get("master", mode = "list", [17:29:53.329] envir = envir, inherits = FALSE) [17:29:53.329] if (inherits(master, c("SOCKnode", [17:29:53.329] "SOCK0node"))) { [17:29:53.329] sendCondition <<- function(cond) { [17:29:53.329] data <- list(type = "VALUE", value = cond, [17:29:53.329] success = TRUE) [17:29:53.329] parallel_sendData(master, data) [17:29:53.329] } [17:29:53.329] return(sendCondition) [17:29:53.329] } [17:29:53.329] } [17:29:53.329] frame <- frame + 1L [17:29:53.329] envir <- sys.frame(frame) [17:29:53.329] } [17:29:53.329] } [17:29:53.329] sendCondition <<- function(cond) NULL [17:29:53.329] } [17:29:53.329] }) [17:29:53.329] withCallingHandlers({ [17:29:53.329] NA [17:29:53.329] }, immediateCondition = function(cond) { [17:29:53.329] sendCondition <- ...future.makeSendCondition() [17:29:53.329] sendCondition(cond) [17:29:53.329] muffleCondition <- function (cond, pattern = "^muffle") [17:29:53.329] { [17:29:53.329] inherits <- base::inherits [17:29:53.329] invokeRestart <- base::invokeRestart [17:29:53.329] is.null <- base::is.null [17:29:53.329] muffled <- FALSE [17:29:53.329] if (inherits(cond, "message")) { [17:29:53.329] muffled <- grepl(pattern, "muffleMessage") [17:29:53.329] if (muffled) [17:29:53.329] invokeRestart("muffleMessage") [17:29:53.329] } [17:29:53.329] else if (inherits(cond, "warning")) { [17:29:53.329] muffled <- grepl(pattern, "muffleWarning") [17:29:53.329] if (muffled) [17:29:53.329] invokeRestart("muffleWarning") [17:29:53.329] } [17:29:53.329] else if (inherits(cond, "condition")) { [17:29:53.329] if (!is.null(pattern)) { [17:29:53.329] computeRestarts <- base::computeRestarts [17:29:53.329] grepl <- base::grepl [17:29:53.329] restarts <- computeRestarts(cond) [17:29:53.329] for (restart in restarts) { [17:29:53.329] name <- restart$name [17:29:53.329] if (is.null(name)) [17:29:53.329] next [17:29:53.329] if (!grepl(pattern, name)) [17:29:53.329] next [17:29:53.329] invokeRestart(restart) [17:29:53.329] muffled <- TRUE [17:29:53.329] break [17:29:53.329] } [17:29:53.329] } [17:29:53.329] } [17:29:53.329] invisible(muffled) [17:29:53.329] } [17:29:53.329] muffleCondition(cond) [17:29:53.329] }) [17:29:53.329] })) [17:29:53.329] future::FutureResult(value = ...future.value$value, [17:29:53.329] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:29:53.329] ...future.rng), globalenv = if (FALSE) [17:29:53.329] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:29:53.329] ...future.globalenv.names)) [17:29:53.329] else NULL, started = ...future.startTime, version = "1.8") [17:29:53.329] }, condition = base::local({ [17:29:53.329] c <- base::c [17:29:53.329] inherits <- base::inherits [17:29:53.329] invokeRestart <- base::invokeRestart [17:29:53.329] length <- base::length [17:29:53.329] list <- base::list [17:29:53.329] seq.int <- base::seq.int [17:29:53.329] signalCondition <- base::signalCondition [17:29:53.329] sys.calls <- base::sys.calls [17:29:53.329] `[[` <- base::`[[` [17:29:53.329] `+` <- base::`+` [17:29:53.329] `<<-` <- base::`<<-` [17:29:53.329] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:29:53.329] calls[seq.int(from = from + 12L, to = length(calls) - [17:29:53.329] 3L)] [17:29:53.329] } [17:29:53.329] function(cond) { [17:29:53.329] is_error <- inherits(cond, "error") [17:29:53.329] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:29:53.329] NULL) [17:29:53.329] if (is_error) { [17:29:53.329] sessionInformation <- function() { [17:29:53.329] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:29:53.329] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:29:53.329] search = base::search(), system = base::Sys.info()) [17:29:53.329] } [17:29:53.329] ...future.conditions[[length(...future.conditions) + [17:29:53.329] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:29:53.329] cond$call), session = sessionInformation(), [17:29:53.329] timestamp = base::Sys.time(), signaled = 0L) [17:29:53.329] signalCondition(cond) [17:29:53.329] } [17:29:53.329] else if (!ignore && TRUE && inherits(cond, c("condition", [17:29:53.329] "immediateCondition"))) { [17:29:53.329] signal <- TRUE && inherits(cond, "immediateCondition") [17:29:53.329] ...future.conditions[[length(...future.conditions) + [17:29:53.329] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:29:53.329] if (TRUE && !signal) { [17:29:53.329] muffleCondition <- function (cond, pattern = "^muffle") [17:29:53.329] { [17:29:53.329] inherits <- base::inherits [17:29:53.329] invokeRestart <- base::invokeRestart [17:29:53.329] is.null <- base::is.null [17:29:53.329] muffled <- FALSE [17:29:53.329] if (inherits(cond, "message")) { [17:29:53.329] muffled <- grepl(pattern, "muffleMessage") [17:29:53.329] if (muffled) [17:29:53.329] invokeRestart("muffleMessage") [17:29:53.329] } [17:29:53.329] else if (inherits(cond, "warning")) { [17:29:53.329] muffled <- grepl(pattern, "muffleWarning") [17:29:53.329] if (muffled) [17:29:53.329] invokeRestart("muffleWarning") [17:29:53.329] } [17:29:53.329] else if (inherits(cond, "condition")) { [17:29:53.329] if (!is.null(pattern)) { [17:29:53.329] computeRestarts <- base::computeRestarts [17:29:53.329] grepl <- base::grepl [17:29:53.329] restarts <- computeRestarts(cond) [17:29:53.329] for (restart in restarts) { [17:29:53.329] name <- restart$name [17:29:53.329] if (is.null(name)) [17:29:53.329] next [17:29:53.329] if (!grepl(pattern, name)) [17:29:53.329] next [17:29:53.329] invokeRestart(restart) [17:29:53.329] muffled <- TRUE [17:29:53.329] break [17:29:53.329] } [17:29:53.329] } [17:29:53.329] } [17:29:53.329] invisible(muffled) [17:29:53.329] } [17:29:53.329] muffleCondition(cond, pattern = "^muffle") [17:29:53.329] } [17:29:53.329] } [17:29:53.329] else { [17:29:53.329] if (TRUE) { [17:29:53.329] muffleCondition <- function (cond, pattern = "^muffle") [17:29:53.329] { [17:29:53.329] inherits <- base::inherits [17:29:53.329] invokeRestart <- base::invokeRestart [17:29:53.329] is.null <- base::is.null [17:29:53.329] muffled <- FALSE [17:29:53.329] if (inherits(cond, "message")) { [17:29:53.329] muffled <- grepl(pattern, "muffleMessage") [17:29:53.329] if (muffled) [17:29:53.329] invokeRestart("muffleMessage") [17:29:53.329] } [17:29:53.329] else if (inherits(cond, "warning")) { [17:29:53.329] muffled <- grepl(pattern, "muffleWarning") [17:29:53.329] if (muffled) [17:29:53.329] invokeRestart("muffleWarning") [17:29:53.329] } [17:29:53.329] else if (inherits(cond, "condition")) { [17:29:53.329] if (!is.null(pattern)) { [17:29:53.329] computeRestarts <- base::computeRestarts [17:29:53.329] grepl <- base::grepl [17:29:53.329] restarts <- computeRestarts(cond) [17:29:53.329] for (restart in restarts) { [17:29:53.329] name <- restart$name [17:29:53.329] if (is.null(name)) [17:29:53.329] next [17:29:53.329] if (!grepl(pattern, name)) [17:29:53.329] next [17:29:53.329] invokeRestart(restart) [17:29:53.329] muffled <- TRUE [17:29:53.329] break [17:29:53.329] } [17:29:53.329] } [17:29:53.329] } [17:29:53.329] invisible(muffled) [17:29:53.329] } [17:29:53.329] muffleCondition(cond, pattern = "^muffle") [17:29:53.329] } [17:29:53.329] } [17:29:53.329] } [17:29:53.329] })) [17:29:53.329] }, error = function(ex) { [17:29:53.329] base::structure(base::list(value = NULL, visible = NULL, [17:29:53.329] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:29:53.329] ...future.rng), started = ...future.startTime, [17:29:53.329] finished = Sys.time(), session_uuid = NA_character_, [17:29:53.329] version = "1.8"), class = "FutureResult") [17:29:53.329] }, finally = { [17:29:53.329] if (!identical(...future.workdir, getwd())) [17:29:53.329] setwd(...future.workdir) [17:29:53.329] { [17:29:53.329] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:29:53.329] ...future.oldOptions$nwarnings <- NULL [17:29:53.329] } [17:29:53.329] base::options(...future.oldOptions) [17:29:53.329] if (.Platform$OS.type == "windows") { [17:29:53.329] old_names <- names(...future.oldEnvVars) [17:29:53.329] envs <- base::Sys.getenv() [17:29:53.329] names <- names(envs) [17:29:53.329] common <- intersect(names, old_names) [17:29:53.329] added <- setdiff(names, old_names) [17:29:53.329] removed <- setdiff(old_names, names) [17:29:53.329] changed <- common[...future.oldEnvVars[common] != [17:29:53.329] envs[common]] [17:29:53.329] NAMES <- toupper(changed) [17:29:53.329] args <- list() [17:29:53.329] for (kk in seq_along(NAMES)) { [17:29:53.329] name <- changed[[kk]] [17:29:53.329] NAME <- NAMES[[kk]] [17:29:53.329] if (name != NAME && is.element(NAME, old_names)) [17:29:53.329] next [17:29:53.329] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:53.329] } [17:29:53.329] NAMES <- toupper(added) [17:29:53.329] for (kk in seq_along(NAMES)) { [17:29:53.329] name <- added[[kk]] [17:29:53.329] NAME <- NAMES[[kk]] [17:29:53.329] if (name != NAME && is.element(NAME, old_names)) [17:29:53.329] next [17:29:53.329] args[[name]] <- "" [17:29:53.329] } [17:29:53.329] NAMES <- toupper(removed) [17:29:53.329] for (kk in seq_along(NAMES)) { [17:29:53.329] name <- removed[[kk]] [17:29:53.329] NAME <- NAMES[[kk]] [17:29:53.329] if (name != NAME && is.element(NAME, old_names)) [17:29:53.329] next [17:29:53.329] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:53.329] } [17:29:53.329] if (length(args) > 0) [17:29:53.329] base::do.call(base::Sys.setenv, args = args) [17:29:53.329] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:29:53.329] } [17:29:53.329] else { [17:29:53.329] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:29:53.329] } [17:29:53.329] { [17:29:53.329] if (base::length(...future.futureOptionsAdded) > [17:29:53.329] 0L) { [17:29:53.329] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:29:53.329] base::names(opts) <- ...future.futureOptionsAdded [17:29:53.329] base::options(opts) [17:29:53.329] } [17:29:53.329] { [17:29:53.329] { [17:29:53.329] base::options(mc.cores = ...future.mc.cores.old) [17:29:53.329] NULL [17:29:53.329] } [17:29:53.329] options(future.plan = "multisession") [17:29:53.329] if (is.na("multisession")) [17:29:53.329] Sys.unsetenv("R_FUTURE_PLAN") [17:29:53.329] else Sys.setenv(R_FUTURE_PLAN = "multisession") [17:29:53.329] future::plan(...future.strategy.old, .cleanup = FALSE, [17:29:53.329] .init = FALSE) [17:29:53.329] } [17:29:53.329] } [17:29:53.329] } [17:29:53.329] }) [17:29:53.329] if (TRUE) { [17:29:53.329] base::sink(type = "output", split = FALSE) [17:29:53.329] if (TRUE) { [17:29:53.329] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:29:53.329] } [17:29:53.329] else { [17:29:53.329] ...future.result["stdout"] <- base::list(NULL) [17:29:53.329] } [17:29:53.329] base::close(...future.stdout) [17:29:53.329] ...future.stdout <- NULL [17:29:53.329] } [17:29:53.329] ...future.result$conditions <- ...future.conditions [17:29:53.329] ...future.result$finished <- base::Sys.time() [17:29:53.329] ...future.result [17:29:53.329] } [17:29:53.474] MultisessionFuture started [17:29:53.475] result() for ClusterFuture ... [17:29:53.475] receiveMessageFromWorker() for ClusterFuture ... [17:29:53.475] - Validating connection of MultisessionFuture [17:29:53.567] - received message: FutureResult [17:29:53.567] - Received FutureResult [17:29:53.568] - Erased future from FutureRegistry [17:29:53.568] result() for ClusterFuture ... [17:29:53.568] - result already collected: FutureResult [17:29:53.569] result() for ClusterFuture ... done [17:29:53.569] receiveMessageFromWorker() for ClusterFuture ... done [17:29:53.569] result() for ClusterFuture ... done [17:29:53.569] result() for ClusterFuture ... [17:29:53.570] - result already collected: FutureResult [17:29:53.570] result() for ClusterFuture ... done [17:29:53.570] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:29:53.574] plan(): nbrOfWorkers() = 2 > Sys.setenv(R_FUTURE_PLAN = "") > message("- .onLoad() w/ R_FUTURE_PLAN = 'multisession' ... DONE") - .onLoad() w/ R_FUTURE_PLAN = 'multisession' ... DONE > > message("- .onLoad() w/ future.plan = 'multisession' ...") - .onLoad() w/ future.plan = 'multisession' ... > options(future.plan = NULL, future.plan = 'multisession', future.cmdargs = NULL) > .onLoad(pkgname, pkgname) [17:29:53.577] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:29:53.577] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:29:53.578] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:29:53.578] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:29:53.578] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:29:53.579] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:29:53.579] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:29:53.579] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:29:53.580] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:29:53.580] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:29:53.580] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:29:53.581] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:29:53.581] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:29:53.582] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:29:53.582] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:29:53.582] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:29:53.583] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:29:53.583] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:29:53.583] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:29:53.584] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:29:53.584] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:29:53.584] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:29:53.585] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:29:53.585] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:29:53.585] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:29:53.585] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:29:53.586] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:29:53.586] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:29:53.586] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:29:53.587] Environment variable 'R_FUTURE_JOURNAL' not set [17:29:53.587] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:29:53.587] Environment variable 'R_FUTURE_GLOBALS_OBJECTSIZE_METHOD' not set [17:29:53.588] Environment variable 'R_FUTURE_PLAN_CLEANUP_LEGACY' not set [17:29:53.588] Option 'future.plan' = 'multisession' [17:29:53.588] R process uuid: 69cc3a46-0951-b7eb-a35a-7628bb935b84 [17:29:53.588] Setting plan('default') [17:29:53.589] plan(): Setting new future strategy stack: [17:29:53.589] List of future strategies: [17:29:53.589] 1. multisession: [17:29:53.589] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:53.589] - tweaked: FALSE [17:29:53.589] - call: plan("default", .init = FALSE) [17:29:53.602] plan(): nbrOfWorkers() = 2 > strategy <- plan("next") > print(strategy) multisession: - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) - tweaked: FALSE - call: plan("default", .init = FALSE) > stopifnot(inherits(strategy, "multisession")) > plan("default") [17:29:53.603] plan(): Setting new future strategy stack: [17:29:53.603] List of future strategies: [17:29:53.603] 1. multisession: [17:29:53.603] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:53.603] - tweaked: FALSE [17:29:53.603] - call: plan("default") [17:29:53.603] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:29:53.604] multisession: [17:29:53.604] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:53.604] - tweaked: FALSE [17:29:53.604] - call: plan("default") [17:29:53.606] getGlobalsAndPackages() ... [17:29:53.606] Not searching for globals [17:29:53.607] - globals: [0] [17:29:53.607] getGlobalsAndPackages() ... DONE [17:29:53.607] [local output] makeClusterPSOCK() ... [17:29:53.610] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:29:53.612] [local output] Base port: 25893 [17:29:53.613] [local output] Getting setup options for 2 cluster nodes ... [17:29:53.613] [local output] - Node #1 of 2 ... [17:29:53.614] [local output] localMachine=TRUE => revtunnel=FALSE [17:29:53.616] [local output] Rscript port: 25893 [17:29:53.617] [local output] - Node #2 of 2 ... [17:29:53.617] [local output] localMachine=TRUE => revtunnel=FALSE [17:29:53.619] [local output] Rscript port: 25893 [17:29:53.620] [local output] Getting setup options for 2 cluster nodes ... done [17:29:53.620] [local output] - Parallel setup requested for some PSOCK nodes [17:29:53.620] [local output] Setting up PSOCK nodes in parallel [17:29:53.621] List of 36 [17:29:53.621] $ worker : chr "localhost" [17:29:53.621] ..- attr(*, "localhost")= logi TRUE [17:29:53.621] $ master : chr "localhost" [17:29:53.621] $ port : int 25893 [17:29:53.621] $ connectTimeout : num 120 [17:29:53.621] $ timeout : num 120 [17:29:53.621] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:29:53.621] $ homogeneous : logi TRUE [17:29:53.621] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=startup.R:86628:CRANWIN3:CRAN\" "| __truncated__ [17:29:53.621] $ rscript_envs : NULL [17:29:53.621] $ rscript_libs : chr [1:2] "D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda" "D:/RCompile/recent/R/library" [17:29:53.621] $ rscript_startup : NULL [17:29:53.621] $ rscript_sh : chr [1:2] "cmd" "cmd" [17:29:53.621] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:29:53.621] $ methods : logi TRUE [17:29:53.621] $ socketOptions : chr "no-delay" [17:29:53.621] $ useXDR : logi FALSE [17:29:53.621] $ outfile : chr "/dev/null" [17:29:53.621] $ renice : int NA [17:29:53.621] $ rshcmd : NULL [17:29:53.621] $ user : chr(0) [17:29:53.621] $ revtunnel : logi FALSE [17:29:53.621] $ rshlogfile : NULL [17:29:53.621] $ rshopts : chr(0) [17:29:53.621] $ rank : int 1 [17:29:53.621] $ manual : logi FALSE [17:29:53.621] $ dryrun : logi FALSE [17:29:53.621] $ quiet : logi FALSE [17:29:53.621] $ setup_strategy : chr "parallel" [17:29:53.621] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:29:53.621] $ pidfile : chr "D:/temp/Rtmpu2pucU/worker.rank=1.parallelly.parent=86628.1526411bd4aa8.pid" [17:29:53.621] $ rshcmd_label : NULL [17:29:53.621] $ rsh_call : NULL [17:29:53.621] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:29:53.621] $ localMachine : logi TRUE [17:29:53.621] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:29:53.621] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:29:53.621] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:29:53.621] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:29:53.621] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:29:53.621] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [17:29:53.621] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [17:29:53.621] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:29:53.621] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:29:53.621] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:29:53.621] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:29:53.621] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:29:53.621] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:29:53.621] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:29:53.621] $ arguments :List of 28 [17:29:53.621] ..$ worker : chr "localhost" [17:29:53.621] ..$ master : NULL [17:29:53.621] ..$ port : int 25893 [17:29:53.621] ..$ connectTimeout : num 120 [17:29:53.621] ..$ timeout : num 120 [17:29:53.621] ..$ rscript : NULL [17:29:53.621] ..$ homogeneous : NULL [17:29:53.621] ..$ rscript_args : NULL [17:29:53.621] ..$ rscript_envs : NULL [17:29:53.621] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda" "D:/RCompile/recent/R/library" [17:29:53.621] ..$ rscript_startup : NULL [17:29:53.621] ..$ rscript_sh : chr "auto" [17:29:53.621] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:29:53.621] ..$ methods : logi TRUE [17:29:53.621] ..$ socketOptions : chr "no-delay" [17:29:53.621] ..$ useXDR : logi FALSE [17:29:53.621] ..$ outfile : chr "/dev/null" [17:29:53.621] ..$ renice : int NA [17:29:53.621] ..$ rshcmd : NULL [17:29:53.621] ..$ user : NULL [17:29:53.621] ..$ revtunnel : logi NA [17:29:53.621] ..$ rshlogfile : NULL [17:29:53.621] ..$ rshopts : NULL [17:29:53.621] ..$ rank : int 1 [17:29:53.621] ..$ manual : logi FALSE [17:29:53.621] ..$ dryrun : logi FALSE [17:29:53.621] ..$ quiet : logi FALSE [17:29:53.621] ..$ setup_strategy : chr "parallel" [17:29:53.621] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:29:53.657] [local output] System call to launch all workers: [17:29:53.657] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=startup.R:86628:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpu2pucU/worker.rank=1.parallelly.parent=86628.1526411bd4aa8.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=25893 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:29:53.657] [local output] Starting PSOCK main server [17:29:53.667] [local output] Workers launched [17:29:53.667] [local output] Waiting for workers to connect back [17:29:53.668] - [local output] 0 workers out of 2 ready [17:29:53.923] - [local output] 0 workers out of 2 ready [17:29:53.924] - [local output] 1 workers out of 2 ready [17:29:53.933] - [local output] 1 workers out of 2 ready [17:29:53.934] - [local output] 2 workers out of 2 ready [17:29:53.934] [local output] Launching of 2 workers completed [17:29:53.934] [local output] Number of nodes in cluster: 2 [17:29:53.934] [local output] Collecting session information from 2 workers [17:29:53.936] [local output] - Worker #1 of 2 [17:29:53.936] [local output] - Worker #2 of 2 [17:29:53.937] [local output] makeClusterPSOCK() ... done [17:29:53.954] Packages needed by the future expression (n = 0): [17:29:53.954] Packages needed by future strategies (n = 0): [17:29:53.955] { [17:29:53.955] { [17:29:53.955] { [17:29:53.955] ...future.startTime <- base::Sys.time() [17:29:53.955] { [17:29:53.955] { [17:29:53.955] { [17:29:53.955] { [17:29:53.955] base::local({ [17:29:53.955] has_future <- base::requireNamespace("future", [17:29:53.955] quietly = TRUE) [17:29:53.955] if (has_future) { [17:29:53.955] ns <- base::getNamespace("future") [17:29:53.955] version <- ns[[".package"]][["version"]] [17:29:53.955] if (is.null(version)) [17:29:53.955] version <- utils::packageVersion("future") [17:29:53.955] } [17:29:53.955] else { [17:29:53.955] version <- NULL [17:29:53.955] } [17:29:53.955] if (!has_future || version < "1.8.0") { [17:29:53.955] info <- base::c(r_version = base::gsub("R version ", [17:29:53.955] "", base::R.version$version.string), [17:29:53.955] platform = base::sprintf("%s (%s-bit)", [17:29:53.955] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:29:53.955] os = base::paste(base::Sys.info()[base::c("sysname", [17:29:53.955] "release", "version")], collapse = " "), [17:29:53.955] hostname = base::Sys.info()[["nodename"]]) [17:29:53.955] info <- base::sprintf("%s: %s", base::names(info), [17:29:53.955] info) [17:29:53.955] info <- base::paste(info, collapse = "; ") [17:29:53.955] if (!has_future) { [17:29:53.955] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:29:53.955] info) [17:29:53.955] } [17:29:53.955] else { [17:29:53.955] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:29:53.955] info, version) [17:29:53.955] } [17:29:53.955] base::stop(msg) [17:29:53.955] } [17:29:53.955] }) [17:29:53.955] } [17:29:53.955] ...future.mc.cores.old <- base::getOption("mc.cores") [17:29:53.955] base::options(mc.cores = 1L) [17:29:53.955] } [17:29:53.955] ...future.strategy.old <- future::plan("list") [17:29:53.955] options(future.plan = NULL) [17:29:53.955] Sys.unsetenv("R_FUTURE_PLAN") [17:29:53.955] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:29:53.955] } [17:29:53.955] ...future.workdir <- getwd() [17:29:53.955] } [17:29:53.955] ...future.oldOptions <- base::as.list(base::.Options) [17:29:53.955] ...future.oldEnvVars <- base::Sys.getenv() [17:29:53.955] } [17:29:53.955] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:29:53.955] future.globals.maxSize = NULL, future.globals.method = NULL, [17:29:53.955] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:29:53.955] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:29:53.955] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:29:53.955] future.stdout.windows.reencode = NULL, width = 80L) [17:29:53.955] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:29:53.955] base::names(...future.oldOptions)) [17:29:53.955] } [17:29:53.955] if (FALSE) { [17:29:53.955] } [17:29:53.955] else { [17:29:53.955] if (TRUE) { [17:29:53.955] ...future.stdout <- base::rawConnection(base::raw(0L), [17:29:53.955] open = "w") [17:29:53.955] } [17:29:53.955] else { [17:29:53.955] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:29:53.955] windows = "NUL", "/dev/null"), open = "w") [17:29:53.955] } [17:29:53.955] base::sink(...future.stdout, type = "output", split = FALSE) [17:29:53.955] base::on.exit(if (!base::is.null(...future.stdout)) { [17:29:53.955] base::sink(type = "output", split = FALSE) [17:29:53.955] base::close(...future.stdout) [17:29:53.955] }, add = TRUE) [17:29:53.955] } [17:29:53.955] ...future.frame <- base::sys.nframe() [17:29:53.955] ...future.conditions <- base::list() [17:29:53.955] ...future.rng <- base::globalenv()$.Random.seed [17:29:53.955] if (FALSE) { [17:29:53.955] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:29:53.955] "...future.value", "...future.globalenv.names", ".Random.seed") [17:29:53.955] } [17:29:53.955] ...future.result <- base::tryCatch({ [17:29:53.955] base::withCallingHandlers({ [17:29:53.955] ...future.value <- base::withVisible(base::local({ [17:29:53.955] ...future.makeSendCondition <- base::local({ [17:29:53.955] sendCondition <- NULL [17:29:53.955] function(frame = 1L) { [17:29:53.955] if (is.function(sendCondition)) [17:29:53.955] return(sendCondition) [17:29:53.955] ns <- getNamespace("parallel") [17:29:53.955] if (exists("sendData", mode = "function", [17:29:53.955] envir = ns)) { [17:29:53.955] parallel_sendData <- get("sendData", mode = "function", [17:29:53.955] envir = ns) [17:29:53.955] envir <- sys.frame(frame) [17:29:53.955] master <- NULL [17:29:53.955] while (!identical(envir, .GlobalEnv) && [17:29:53.955] !identical(envir, emptyenv())) { [17:29:53.955] if (exists("master", mode = "list", envir = envir, [17:29:53.955] inherits = FALSE)) { [17:29:53.955] master <- get("master", mode = "list", [17:29:53.955] envir = envir, inherits = FALSE) [17:29:53.955] if (inherits(master, c("SOCKnode", [17:29:53.955] "SOCK0node"))) { [17:29:53.955] sendCondition <<- function(cond) { [17:29:53.955] data <- list(type = "VALUE", value = cond, [17:29:53.955] success = TRUE) [17:29:53.955] parallel_sendData(master, data) [17:29:53.955] } [17:29:53.955] return(sendCondition) [17:29:53.955] } [17:29:53.955] } [17:29:53.955] frame <- frame + 1L [17:29:53.955] envir <- sys.frame(frame) [17:29:53.955] } [17:29:53.955] } [17:29:53.955] sendCondition <<- function(cond) NULL [17:29:53.955] } [17:29:53.955] }) [17:29:53.955] withCallingHandlers({ [17:29:53.955] NA [17:29:53.955] }, immediateCondition = function(cond) { [17:29:53.955] sendCondition <- ...future.makeSendCondition() [17:29:53.955] sendCondition(cond) [17:29:53.955] muffleCondition <- function (cond, pattern = "^muffle") [17:29:53.955] { [17:29:53.955] inherits <- base::inherits [17:29:53.955] invokeRestart <- base::invokeRestart [17:29:53.955] is.null <- base::is.null [17:29:53.955] muffled <- FALSE [17:29:53.955] if (inherits(cond, "message")) { [17:29:53.955] muffled <- grepl(pattern, "muffleMessage") [17:29:53.955] if (muffled) [17:29:53.955] invokeRestart("muffleMessage") [17:29:53.955] } [17:29:53.955] else if (inherits(cond, "warning")) { [17:29:53.955] muffled <- grepl(pattern, "muffleWarning") [17:29:53.955] if (muffled) [17:29:53.955] invokeRestart("muffleWarning") [17:29:53.955] } [17:29:53.955] else if (inherits(cond, "condition")) { [17:29:53.955] if (!is.null(pattern)) { [17:29:53.955] computeRestarts <- base::computeRestarts [17:29:53.955] grepl <- base::grepl [17:29:53.955] restarts <- computeRestarts(cond) [17:29:53.955] for (restart in restarts) { [17:29:53.955] name <- restart$name [17:29:53.955] if (is.null(name)) [17:29:53.955] next [17:29:53.955] if (!grepl(pattern, name)) [17:29:53.955] next [17:29:53.955] invokeRestart(restart) [17:29:53.955] muffled <- TRUE [17:29:53.955] break [17:29:53.955] } [17:29:53.955] } [17:29:53.955] } [17:29:53.955] invisible(muffled) [17:29:53.955] } [17:29:53.955] muffleCondition(cond) [17:29:53.955] }) [17:29:53.955] })) [17:29:53.955] future::FutureResult(value = ...future.value$value, [17:29:53.955] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:29:53.955] ...future.rng), globalenv = if (FALSE) [17:29:53.955] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:29:53.955] ...future.globalenv.names)) [17:29:53.955] else NULL, started = ...future.startTime, version = "1.8") [17:29:53.955] }, condition = base::local({ [17:29:53.955] c <- base::c [17:29:53.955] inherits <- base::inherits [17:29:53.955] invokeRestart <- base::invokeRestart [17:29:53.955] length <- base::length [17:29:53.955] list <- base::list [17:29:53.955] seq.int <- base::seq.int [17:29:53.955] signalCondition <- base::signalCondition [17:29:53.955] sys.calls <- base::sys.calls [17:29:53.955] `[[` <- base::`[[` [17:29:53.955] `+` <- base::`+` [17:29:53.955] `<<-` <- base::`<<-` [17:29:53.955] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:29:53.955] calls[seq.int(from = from + 12L, to = length(calls) - [17:29:53.955] 3L)] [17:29:53.955] } [17:29:53.955] function(cond) { [17:29:53.955] is_error <- inherits(cond, "error") [17:29:53.955] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:29:53.955] NULL) [17:29:53.955] if (is_error) { [17:29:53.955] sessionInformation <- function() { [17:29:53.955] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:29:53.955] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:29:53.955] search = base::search(), system = base::Sys.info()) [17:29:53.955] } [17:29:53.955] ...future.conditions[[length(...future.conditions) + [17:29:53.955] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:29:53.955] cond$call), session = sessionInformation(), [17:29:53.955] timestamp = base::Sys.time(), signaled = 0L) [17:29:53.955] signalCondition(cond) [17:29:53.955] } [17:29:53.955] else if (!ignore && TRUE && inherits(cond, c("condition", [17:29:53.955] "immediateCondition"))) { [17:29:53.955] signal <- TRUE && inherits(cond, "immediateCondition") [17:29:53.955] ...future.conditions[[length(...future.conditions) + [17:29:53.955] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:29:53.955] if (TRUE && !signal) { [17:29:53.955] muffleCondition <- function (cond, pattern = "^muffle") [17:29:53.955] { [17:29:53.955] inherits <- base::inherits [17:29:53.955] invokeRestart <- base::invokeRestart [17:29:53.955] is.null <- base::is.null [17:29:53.955] muffled <- FALSE [17:29:53.955] if (inherits(cond, "message")) { [17:29:53.955] muffled <- grepl(pattern, "muffleMessage") [17:29:53.955] if (muffled) [17:29:53.955] invokeRestart("muffleMessage") [17:29:53.955] } [17:29:53.955] else if (inherits(cond, "warning")) { [17:29:53.955] muffled <- grepl(pattern, "muffleWarning") [17:29:53.955] if (muffled) [17:29:53.955] invokeRestart("muffleWarning") [17:29:53.955] } [17:29:53.955] else if (inherits(cond, "condition")) { [17:29:53.955] if (!is.null(pattern)) { [17:29:53.955] computeRestarts <- base::computeRestarts [17:29:53.955] grepl <- base::grepl [17:29:53.955] restarts <- computeRestarts(cond) [17:29:53.955] for (restart in restarts) { [17:29:53.955] name <- restart$name [17:29:53.955] if (is.null(name)) [17:29:53.955] next [17:29:53.955] if (!grepl(pattern, name)) [17:29:53.955] next [17:29:53.955] invokeRestart(restart) [17:29:53.955] muffled <- TRUE [17:29:53.955] break [17:29:53.955] } [17:29:53.955] } [17:29:53.955] } [17:29:53.955] invisible(muffled) [17:29:53.955] } [17:29:53.955] muffleCondition(cond, pattern = "^muffle") [17:29:53.955] } [17:29:53.955] } [17:29:53.955] else { [17:29:53.955] if (TRUE) { [17:29:53.955] muffleCondition <- function (cond, pattern = "^muffle") [17:29:53.955] { [17:29:53.955] inherits <- base::inherits [17:29:53.955] invokeRestart <- base::invokeRestart [17:29:53.955] is.null <- base::is.null [17:29:53.955] muffled <- FALSE [17:29:53.955] if (inherits(cond, "message")) { [17:29:53.955] muffled <- grepl(pattern, "muffleMessage") [17:29:53.955] if (muffled) [17:29:53.955] invokeRestart("muffleMessage") [17:29:53.955] } [17:29:53.955] else if (inherits(cond, "warning")) { [17:29:53.955] muffled <- grepl(pattern, "muffleWarning") [17:29:53.955] if (muffled) [17:29:53.955] invokeRestart("muffleWarning") [17:29:53.955] } [17:29:53.955] else if (inherits(cond, "condition")) { [17:29:53.955] if (!is.null(pattern)) { [17:29:53.955] computeRestarts <- base::computeRestarts [17:29:53.955] grepl <- base::grepl [17:29:53.955] restarts <- computeRestarts(cond) [17:29:53.955] for (restart in restarts) { [17:29:53.955] name <- restart$name [17:29:53.955] if (is.null(name)) [17:29:53.955] next [17:29:53.955] if (!grepl(pattern, name)) [17:29:53.955] next [17:29:53.955] invokeRestart(restart) [17:29:53.955] muffled <- TRUE [17:29:53.955] break [17:29:53.955] } [17:29:53.955] } [17:29:53.955] } [17:29:53.955] invisible(muffled) [17:29:53.955] } [17:29:53.955] muffleCondition(cond, pattern = "^muffle") [17:29:53.955] } [17:29:53.955] } [17:29:53.955] } [17:29:53.955] })) [17:29:53.955] }, error = function(ex) { [17:29:53.955] base::structure(base::list(value = NULL, visible = NULL, [17:29:53.955] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:29:53.955] ...future.rng), started = ...future.startTime, [17:29:53.955] finished = Sys.time(), session_uuid = NA_character_, [17:29:53.955] version = "1.8"), class = "FutureResult") [17:29:53.955] }, finally = { [17:29:53.955] if (!identical(...future.workdir, getwd())) [17:29:53.955] setwd(...future.workdir) [17:29:53.955] { [17:29:53.955] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:29:53.955] ...future.oldOptions$nwarnings <- NULL [17:29:53.955] } [17:29:53.955] base::options(...future.oldOptions) [17:29:53.955] if (.Platform$OS.type == "windows") { [17:29:53.955] old_names <- names(...future.oldEnvVars) [17:29:53.955] envs <- base::Sys.getenv() [17:29:53.955] names <- names(envs) [17:29:53.955] common <- intersect(names, old_names) [17:29:53.955] added <- setdiff(names, old_names) [17:29:53.955] removed <- setdiff(old_names, names) [17:29:53.955] changed <- common[...future.oldEnvVars[common] != [17:29:53.955] envs[common]] [17:29:53.955] NAMES <- toupper(changed) [17:29:53.955] args <- list() [17:29:53.955] for (kk in seq_along(NAMES)) { [17:29:53.955] name <- changed[[kk]] [17:29:53.955] NAME <- NAMES[[kk]] [17:29:53.955] if (name != NAME && is.element(NAME, old_names)) [17:29:53.955] next [17:29:53.955] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:53.955] } [17:29:53.955] NAMES <- toupper(added) [17:29:53.955] for (kk in seq_along(NAMES)) { [17:29:53.955] name <- added[[kk]] [17:29:53.955] NAME <- NAMES[[kk]] [17:29:53.955] if (name != NAME && is.element(NAME, old_names)) [17:29:53.955] next [17:29:53.955] args[[name]] <- "" [17:29:53.955] } [17:29:53.955] NAMES <- toupper(removed) [17:29:53.955] for (kk in seq_along(NAMES)) { [17:29:53.955] name <- removed[[kk]] [17:29:53.955] NAME <- NAMES[[kk]] [17:29:53.955] if (name != NAME && is.element(NAME, old_names)) [17:29:53.955] next [17:29:53.955] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:53.955] } [17:29:53.955] if (length(args) > 0) [17:29:53.955] base::do.call(base::Sys.setenv, args = args) [17:29:53.955] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:29:53.955] } [17:29:53.955] else { [17:29:53.955] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:29:53.955] } [17:29:53.955] { [17:29:53.955] if (base::length(...future.futureOptionsAdded) > [17:29:53.955] 0L) { [17:29:53.955] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:29:53.955] base::names(opts) <- ...future.futureOptionsAdded [17:29:53.955] base::options(opts) [17:29:53.955] } [17:29:53.955] { [17:29:53.955] { [17:29:53.955] base::options(mc.cores = ...future.mc.cores.old) [17:29:53.955] NULL [17:29:53.955] } [17:29:53.955] options(future.plan = "multisession") [17:29:53.955] if (is.na(NA_character_)) [17:29:53.955] Sys.unsetenv("R_FUTURE_PLAN") [17:29:53.955] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:29:53.955] future::plan(...future.strategy.old, .cleanup = FALSE, [17:29:53.955] .init = FALSE) [17:29:53.955] } [17:29:53.955] } [17:29:53.955] } [17:29:53.955] }) [17:29:53.955] if (TRUE) { [17:29:53.955] base::sink(type = "output", split = FALSE) [17:29:53.955] if (TRUE) { [17:29:53.955] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:29:53.955] } [17:29:53.955] else { [17:29:53.955] ...future.result["stdout"] <- base::list(NULL) [17:29:53.955] } [17:29:53.955] base::close(...future.stdout) [17:29:53.955] ...future.stdout <- NULL [17:29:53.955] } [17:29:53.955] ...future.result$conditions <- ...future.conditions [17:29:53.955] ...future.result$finished <- base::Sys.time() [17:29:53.955] ...future.result [17:29:53.955] } [17:29:54.099] MultisessionFuture started [17:29:54.100] result() for ClusterFuture ... [17:29:54.100] receiveMessageFromWorker() for ClusterFuture ... [17:29:54.101] - Validating connection of MultisessionFuture [17:29:54.192] - received message: FutureResult [17:29:54.193] - Received FutureResult [17:29:54.193] - Erased future from FutureRegistry [17:29:54.193] result() for ClusterFuture ... [17:29:54.193] - result already collected: FutureResult [17:29:54.193] result() for ClusterFuture ... done [17:29:54.194] receiveMessageFromWorker() for ClusterFuture ... done [17:29:54.194] result() for ClusterFuture ... done [17:29:54.194] result() for ClusterFuture ... [17:29:54.194] - result already collected: FutureResult [17:29:54.194] result() for ClusterFuture ... done [17:29:54.194] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:29:54.197] plan(): nbrOfWorkers() = 2 > message("- .onLoad() w/ future.plan = 'multisession' ... DONE") - .onLoad() w/ future.plan = 'multisession' ... DONE > > message("- .onLoad() w/ R_FUTURE_PLAN = 'multisession' & -p 1 ...") - .onLoad() w/ R_FUTURE_PLAN = 'multisession' & -p 1 ... > Sys.setenv(R_FUTURE_PLAN = "multisession") > options(future.plan = NULL, future.cmdargs = c("-p", 1)) > .onLoad(pkgname, pkgname) [17:29:54.199] Future-specific environment variables: - R_FUTURE_PLAN='multisession' - R_FUTURE_WAIT_INTERVAL='0.01' [17:29:54.199] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:29:54.199] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:29:54.199] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:29:54.200] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:29:54.200] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:29:54.200] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:29:54.200] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:29:54.200] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:29:54.200] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:29:54.201] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:29:54.201] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:29:54.201] R_FUTURE_PLAN='multisession' [17:29:54.201] => options("future.plan" = 'multisession') [n=1, mode=character] [17:29:54.201] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:29:54.202] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:29:54.202] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:29:54.202] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:29:54.202] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:29:54.202] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:29:54.202] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:29:54.203] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:29:54.203] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:29:54.203] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:29:54.203] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:29:54.203] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:29:54.204] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:29:54.204] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:29:54.204] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:29:54.204] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:29:54.205] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:29:54.205] Environment variable 'R_FUTURE_JOURNAL' not set [17:29:54.205] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:29:54.205] Environment variable 'R_FUTURE_GLOBALS_OBJECTSIZE_METHOD' not set [17:29:54.205] Environment variable 'R_FUTURE_PLAN_CLEANUP_LEGACY' not set [17:29:54.206] Option 'future.plan' = 'multisession' [17:29:54.206] R command-line argument: -p 1 [17:29:54.206] => 'future.plan' already set. [17:29:54.207] R process uuid: 69cc3a46-0951-b7eb-a35a-7628bb935b84 [17:29:54.207] Setting plan('default') [17:29:54.207] plan(): Setting new future strategy stack: [17:29:54.207] List of future strategies: [17:29:54.207] 1. multisession: [17:29:54.207] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:54.207] - tweaked: FALSE [17:29:54.207] - call: plan("default", .init = FALSE) [17:29:54.219] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) multisession: - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) - tweaked: FALSE - call: plan("default", .init = FALSE) > stopifnot(inherits(strategy, "multisession")) > plan("default") [17:29:54.220] plan(): Setting new future strategy stack: [17:29:54.221] List of future strategies: [17:29:54.221] 1. multisession: [17:29:54.221] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:54.221] - tweaked: FALSE [17:29:54.221] - call: plan("default") [17:29:54.221] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:29:54.222] multisession: [17:29:54.222] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:54.222] - tweaked: FALSE [17:29:54.222] - call: plan("default") [17:29:54.225] getGlobalsAndPackages() ... [17:29:54.226] Not searching for globals [17:29:54.226] - globals: [0] [17:29:54.226] getGlobalsAndPackages() ... DONE [17:29:54.227] Packages needed by the future expression (n = 0): [17:29:54.228] Packages needed by future strategies (n = 0): [17:29:54.228] { [17:29:54.228] { [17:29:54.228] { [17:29:54.228] ...future.startTime <- base::Sys.time() [17:29:54.228] { [17:29:54.228] { [17:29:54.228] { [17:29:54.228] base::local({ [17:29:54.228] has_future <- base::requireNamespace("future", [17:29:54.228] quietly = TRUE) [17:29:54.228] if (has_future) { [17:29:54.228] ns <- base::getNamespace("future") [17:29:54.228] version <- ns[[".package"]][["version"]] [17:29:54.228] if (is.null(version)) [17:29:54.228] version <- utils::packageVersion("future") [17:29:54.228] } [17:29:54.228] else { [17:29:54.228] version <- NULL [17:29:54.228] } [17:29:54.228] if (!has_future || version < "1.8.0") { [17:29:54.228] info <- base::c(r_version = base::gsub("R version ", [17:29:54.228] "", base::R.version$version.string), [17:29:54.228] platform = base::sprintf("%s (%s-bit)", [17:29:54.228] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:29:54.228] os = base::paste(base::Sys.info()[base::c("sysname", [17:29:54.228] "release", "version")], collapse = " "), [17:29:54.228] hostname = base::Sys.info()[["nodename"]]) [17:29:54.228] info <- base::sprintf("%s: %s", base::names(info), [17:29:54.228] info) [17:29:54.228] info <- base::paste(info, collapse = "; ") [17:29:54.228] if (!has_future) { [17:29:54.228] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:29:54.228] info) [17:29:54.228] } [17:29:54.228] else { [17:29:54.228] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:29:54.228] info, version) [17:29:54.228] } [17:29:54.228] base::stop(msg) [17:29:54.228] } [17:29:54.228] }) [17:29:54.228] } [17:29:54.228] ...future.strategy.old <- future::plan("list") [17:29:54.228] options(future.plan = NULL) [17:29:54.228] Sys.unsetenv("R_FUTURE_PLAN") [17:29:54.228] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:29:54.228] } [17:29:54.228] ...future.workdir <- getwd() [17:29:54.228] } [17:29:54.228] ...future.oldOptions <- base::as.list(base::.Options) [17:29:54.228] ...future.oldEnvVars <- base::Sys.getenv() [17:29:54.228] } [17:29:54.228] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:29:54.228] future.globals.maxSize = NULL, future.globals.method = NULL, [17:29:54.228] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:29:54.228] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:29:54.228] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:29:54.228] future.stdout.windows.reencode = NULL, width = 80L) [17:29:54.228] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:29:54.228] base::names(...future.oldOptions)) [17:29:54.228] } [17:29:54.228] if (FALSE) { [17:29:54.228] } [17:29:54.228] else { [17:29:54.228] if (TRUE) { [17:29:54.228] ...future.stdout <- base::rawConnection(base::raw(0L), [17:29:54.228] open = "w") [17:29:54.228] } [17:29:54.228] else { [17:29:54.228] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:29:54.228] windows = "NUL", "/dev/null"), open = "w") [17:29:54.228] } [17:29:54.228] base::sink(...future.stdout, type = "output", split = FALSE) [17:29:54.228] base::on.exit(if (!base::is.null(...future.stdout)) { [17:29:54.228] base::sink(type = "output", split = FALSE) [17:29:54.228] base::close(...future.stdout) [17:29:54.228] }, add = TRUE) [17:29:54.228] } [17:29:54.228] ...future.frame <- base::sys.nframe() [17:29:54.228] ...future.conditions <- base::list() [17:29:54.228] ...future.rng <- base::globalenv()$.Random.seed [17:29:54.228] if (FALSE) { [17:29:54.228] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:29:54.228] "...future.value", "...future.globalenv.names", ".Random.seed") [17:29:54.228] } [17:29:54.228] ...future.result <- base::tryCatch({ [17:29:54.228] base::withCallingHandlers({ [17:29:54.228] ...future.value <- base::withVisible(base::local(NA)) [17:29:54.228] future::FutureResult(value = ...future.value$value, [17:29:54.228] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:29:54.228] ...future.rng), globalenv = if (FALSE) [17:29:54.228] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:29:54.228] ...future.globalenv.names)) [17:29:54.228] else NULL, started = ...future.startTime, version = "1.8") [17:29:54.228] }, condition = base::local({ [17:29:54.228] c <- base::c [17:29:54.228] inherits <- base::inherits [17:29:54.228] invokeRestart <- base::invokeRestart [17:29:54.228] length <- base::length [17:29:54.228] list <- base::list [17:29:54.228] seq.int <- base::seq.int [17:29:54.228] signalCondition <- base::signalCondition [17:29:54.228] sys.calls <- base::sys.calls [17:29:54.228] `[[` <- base::`[[` [17:29:54.228] `+` <- base::`+` [17:29:54.228] `<<-` <- base::`<<-` [17:29:54.228] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:29:54.228] calls[seq.int(from = from + 12L, to = length(calls) - [17:29:54.228] 3L)] [17:29:54.228] } [17:29:54.228] function(cond) { [17:29:54.228] is_error <- inherits(cond, "error") [17:29:54.228] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:29:54.228] NULL) [17:29:54.228] if (is_error) { [17:29:54.228] sessionInformation <- function() { [17:29:54.228] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:29:54.228] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:29:54.228] search = base::search(), system = base::Sys.info()) [17:29:54.228] } [17:29:54.228] ...future.conditions[[length(...future.conditions) + [17:29:54.228] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:29:54.228] cond$call), session = sessionInformation(), [17:29:54.228] timestamp = base::Sys.time(), signaled = 0L) [17:29:54.228] signalCondition(cond) [17:29:54.228] } [17:29:54.228] else if (!ignore && TRUE && inherits(cond, c("condition", [17:29:54.228] "immediateCondition"))) { [17:29:54.228] signal <- TRUE && inherits(cond, "immediateCondition") [17:29:54.228] ...future.conditions[[length(...future.conditions) + [17:29:54.228] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:29:54.228] if (TRUE && !signal) { [17:29:54.228] muffleCondition <- function (cond, pattern = "^muffle") [17:29:54.228] { [17:29:54.228] inherits <- base::inherits [17:29:54.228] invokeRestart <- base::invokeRestart [17:29:54.228] is.null <- base::is.null [17:29:54.228] muffled <- FALSE [17:29:54.228] if (inherits(cond, "message")) { [17:29:54.228] muffled <- grepl(pattern, "muffleMessage") [17:29:54.228] if (muffled) [17:29:54.228] invokeRestart("muffleMessage") [17:29:54.228] } [17:29:54.228] else if (inherits(cond, "warning")) { [17:29:54.228] muffled <- grepl(pattern, "muffleWarning") [17:29:54.228] if (muffled) [17:29:54.228] invokeRestart("muffleWarning") [17:29:54.228] } [17:29:54.228] else if (inherits(cond, "condition")) { [17:29:54.228] if (!is.null(pattern)) { [17:29:54.228] computeRestarts <- base::computeRestarts [17:29:54.228] grepl <- base::grepl [17:29:54.228] restarts <- computeRestarts(cond) [17:29:54.228] for (restart in restarts) { [17:29:54.228] name <- restart$name [17:29:54.228] if (is.null(name)) [17:29:54.228] next [17:29:54.228] if (!grepl(pattern, name)) [17:29:54.228] next [17:29:54.228] invokeRestart(restart) [17:29:54.228] muffled <- TRUE [17:29:54.228] break [17:29:54.228] } [17:29:54.228] } [17:29:54.228] } [17:29:54.228] invisible(muffled) [17:29:54.228] } [17:29:54.228] muffleCondition(cond, pattern = "^muffle") [17:29:54.228] } [17:29:54.228] } [17:29:54.228] else { [17:29:54.228] if (TRUE) { [17:29:54.228] muffleCondition <- function (cond, pattern = "^muffle") [17:29:54.228] { [17:29:54.228] inherits <- base::inherits [17:29:54.228] invokeRestart <- base::invokeRestart [17:29:54.228] is.null <- base::is.null [17:29:54.228] muffled <- FALSE [17:29:54.228] if (inherits(cond, "message")) { [17:29:54.228] muffled <- grepl(pattern, "muffleMessage") [17:29:54.228] if (muffled) [17:29:54.228] invokeRestart("muffleMessage") [17:29:54.228] } [17:29:54.228] else if (inherits(cond, "warning")) { [17:29:54.228] muffled <- grepl(pattern, "muffleWarning") [17:29:54.228] if (muffled) [17:29:54.228] invokeRestart("muffleWarning") [17:29:54.228] } [17:29:54.228] else if (inherits(cond, "condition")) { [17:29:54.228] if (!is.null(pattern)) { [17:29:54.228] computeRestarts <- base::computeRestarts [17:29:54.228] grepl <- base::grepl [17:29:54.228] restarts <- computeRestarts(cond) [17:29:54.228] for (restart in restarts) { [17:29:54.228] name <- restart$name [17:29:54.228] if (is.null(name)) [17:29:54.228] next [17:29:54.228] if (!grepl(pattern, name)) [17:29:54.228] next [17:29:54.228] invokeRestart(restart) [17:29:54.228] muffled <- TRUE [17:29:54.228] break [17:29:54.228] } [17:29:54.228] } [17:29:54.228] } [17:29:54.228] invisible(muffled) [17:29:54.228] } [17:29:54.228] muffleCondition(cond, pattern = "^muffle") [17:29:54.228] } [17:29:54.228] } [17:29:54.228] } [17:29:54.228] })) [17:29:54.228] }, error = function(ex) { [17:29:54.228] base::structure(base::list(value = NULL, visible = NULL, [17:29:54.228] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:29:54.228] ...future.rng), started = ...future.startTime, [17:29:54.228] finished = Sys.time(), session_uuid = NA_character_, [17:29:54.228] version = "1.8"), class = "FutureResult") [17:29:54.228] }, finally = { [17:29:54.228] if (!identical(...future.workdir, getwd())) [17:29:54.228] setwd(...future.workdir) [17:29:54.228] { [17:29:54.228] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:29:54.228] ...future.oldOptions$nwarnings <- NULL [17:29:54.228] } [17:29:54.228] base::options(...future.oldOptions) [17:29:54.228] if (.Platform$OS.type == "windows") { [17:29:54.228] old_names <- names(...future.oldEnvVars) [17:29:54.228] envs <- base::Sys.getenv() [17:29:54.228] names <- names(envs) [17:29:54.228] common <- intersect(names, old_names) [17:29:54.228] added <- setdiff(names, old_names) [17:29:54.228] removed <- setdiff(old_names, names) [17:29:54.228] changed <- common[...future.oldEnvVars[common] != [17:29:54.228] envs[common]] [17:29:54.228] NAMES <- toupper(changed) [17:29:54.228] args <- list() [17:29:54.228] for (kk in seq_along(NAMES)) { [17:29:54.228] name <- changed[[kk]] [17:29:54.228] NAME <- NAMES[[kk]] [17:29:54.228] if (name != NAME && is.element(NAME, old_names)) [17:29:54.228] next [17:29:54.228] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:54.228] } [17:29:54.228] NAMES <- toupper(added) [17:29:54.228] for (kk in seq_along(NAMES)) { [17:29:54.228] name <- added[[kk]] [17:29:54.228] NAME <- NAMES[[kk]] [17:29:54.228] if (name != NAME && is.element(NAME, old_names)) [17:29:54.228] next [17:29:54.228] args[[name]] <- "" [17:29:54.228] } [17:29:54.228] NAMES <- toupper(removed) [17:29:54.228] for (kk in seq_along(NAMES)) { [17:29:54.228] name <- removed[[kk]] [17:29:54.228] NAME <- NAMES[[kk]] [17:29:54.228] if (name != NAME && is.element(NAME, old_names)) [17:29:54.228] next [17:29:54.228] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:54.228] } [17:29:54.228] if (length(args) > 0) [17:29:54.228] base::do.call(base::Sys.setenv, args = args) [17:29:54.228] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:29:54.228] } [17:29:54.228] else { [17:29:54.228] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:29:54.228] } [17:29:54.228] { [17:29:54.228] if (base::length(...future.futureOptionsAdded) > [17:29:54.228] 0L) { [17:29:54.228] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:29:54.228] base::names(opts) <- ...future.futureOptionsAdded [17:29:54.228] base::options(opts) [17:29:54.228] } [17:29:54.228] { [17:29:54.228] { [17:29:54.228] NULL [17:29:54.228] RNGkind("Mersenne-Twister") [17:29:54.228] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:29:54.228] inherits = FALSE) [17:29:54.228] } [17:29:54.228] options(future.plan = "multisession") [17:29:54.228] if (is.na("multisession")) [17:29:54.228] Sys.unsetenv("R_FUTURE_PLAN") [17:29:54.228] else Sys.setenv(R_FUTURE_PLAN = "multisession") [17:29:54.228] future::plan(...future.strategy.old, .cleanup = FALSE, [17:29:54.228] .init = FALSE) [17:29:54.228] } [17:29:54.228] } [17:29:54.228] } [17:29:54.228] }) [17:29:54.228] if (TRUE) { [17:29:54.228] base::sink(type = "output", split = FALSE) [17:29:54.228] if (TRUE) { [17:29:54.228] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:29:54.228] } [17:29:54.228] else { [17:29:54.228] ...future.result["stdout"] <- base::list(NULL) [17:29:54.228] } [17:29:54.228] base::close(...future.stdout) [17:29:54.228] ...future.stdout <- NULL [17:29:54.228] } [17:29:54.228] ...future.result$conditions <- ...future.conditions [17:29:54.228] ...future.result$finished <- base::Sys.time() [17:29:54.228] ...future.result [17:29:54.228] } [17:29:54.234] plan(): Setting new future strategy stack: [17:29:54.235] List of future strategies: [17:29:54.235] 1. sequential: [17:29:54.235] - args: function (..., envir = parent.frame(), workers = "") [17:29:54.235] - tweaked: FALSE [17:29:54.235] - call: NULL [17:29:54.236] plan(): nbrOfWorkers() = 1 [17:29:54.239] plan(): Setting new future strategy stack: [17:29:54.239] List of future strategies: [17:29:54.239] 1. multisession: [17:29:54.239] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:54.239] - tweaked: FALSE [17:29:54.239] - call: plan("default") [17:29:54.243] plan(): nbrOfWorkers() = 1 [17:29:54.243] SequentialFuture started (and completed) [17:29:54.244] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:29:54.247] plan(): nbrOfWorkers() = 1 > Sys.setenv(R_FUTURE_PLAN = "") > message("- .onLoad() w/ R_FUTURE_PLAN = 'multisession' & -p 1 ... DONE") - .onLoad() w/ R_FUTURE_PLAN = 'multisession' & -p 1 ... DONE > > message("- .onLoad() w/ future.plan = 'multisession' & -p 1 ...") - .onLoad() w/ future.plan = 'multisession' & -p 1 ... > options(future.plan = 'multisession', future.cmdargs = c("-p", "1")) > .onLoad(pkgname, pkgname) [17:29:54.249] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:29:54.250] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:29:54.250] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:29:54.250] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:29:54.250] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:29:54.251] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:29:54.251] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:29:54.251] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:29:54.252] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:29:54.252] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:29:54.252] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:29:54.252] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:29:54.253] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:29:54.253] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:29:54.253] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:29:54.253] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:29:54.254] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:29:54.254] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:29:54.254] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:29:54.255] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:29:54.255] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:29:54.255] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:29:54.255] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:29:54.256] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:29:54.256] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:29:54.256] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:29:54.256] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:29:54.257] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:29:54.257] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:29:54.257] Environment variable 'R_FUTURE_JOURNAL' not set [17:29:54.258] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:29:54.258] Environment variable 'R_FUTURE_GLOBALS_OBJECTSIZE_METHOD' not set [17:29:54.258] Environment variable 'R_FUTURE_PLAN_CLEANUP_LEGACY' not set [17:29:54.258] Option 'future.plan' = 'multisession' [17:29:54.259] R command-line argument: -p 1 [17:29:54.259] => 'future.plan' already set. [17:29:54.260] R process uuid: 69cc3a46-0951-b7eb-a35a-7628bb935b84 [17:29:54.260] Setting plan('default') [17:29:54.260] plan(): Setting new future strategy stack: [17:29:54.260] List of future strategies: [17:29:54.260] 1. multisession: [17:29:54.260] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:54.260] - tweaked: FALSE [17:29:54.260] - call: plan("default", .init = FALSE) [17:29:54.265] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) multisession: - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) - tweaked: FALSE - call: plan("default", .init = FALSE) > stopifnot(inherits(strategy, "multisession")) > plan("default") [17:29:54.265] plan(): Setting new future strategy stack: [17:29:54.266] List of future strategies: [17:29:54.266] 1. multisession: [17:29:54.266] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:54.266] - tweaked: FALSE [17:29:54.266] - call: plan("default") [17:29:54.266] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:29:54.267] multisession: [17:29:54.267] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:54.267] - tweaked: FALSE [17:29:54.267] - call: plan("default") [17:29:54.270] getGlobalsAndPackages() ... [17:29:54.271] Not searching for globals [17:29:54.271] - globals: [0] [17:29:54.271] getGlobalsAndPackages() ... DONE [17:29:54.272] Packages needed by the future expression (n = 0): [17:29:54.272] Packages needed by future strategies (n = 0): [17:29:54.273] { [17:29:54.273] { [17:29:54.273] { [17:29:54.273] ...future.startTime <- base::Sys.time() [17:29:54.273] { [17:29:54.273] { [17:29:54.273] { [17:29:54.273] base::local({ [17:29:54.273] has_future <- base::requireNamespace("future", [17:29:54.273] quietly = TRUE) [17:29:54.273] if (has_future) { [17:29:54.273] ns <- base::getNamespace("future") [17:29:54.273] version <- ns[[".package"]][["version"]] [17:29:54.273] if (is.null(version)) [17:29:54.273] version <- utils::packageVersion("future") [17:29:54.273] } [17:29:54.273] else { [17:29:54.273] version <- NULL [17:29:54.273] } [17:29:54.273] if (!has_future || version < "1.8.0") { [17:29:54.273] info <- base::c(r_version = base::gsub("R version ", [17:29:54.273] "", base::R.version$version.string), [17:29:54.273] platform = base::sprintf("%s (%s-bit)", [17:29:54.273] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:29:54.273] os = base::paste(base::Sys.info()[base::c("sysname", [17:29:54.273] "release", "version")], collapse = " "), [17:29:54.273] hostname = base::Sys.info()[["nodename"]]) [17:29:54.273] info <- base::sprintf("%s: %s", base::names(info), [17:29:54.273] info) [17:29:54.273] info <- base::paste(info, collapse = "; ") [17:29:54.273] if (!has_future) { [17:29:54.273] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:29:54.273] info) [17:29:54.273] } [17:29:54.273] else { [17:29:54.273] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:29:54.273] info, version) [17:29:54.273] } [17:29:54.273] base::stop(msg) [17:29:54.273] } [17:29:54.273] }) [17:29:54.273] } [17:29:54.273] ...future.strategy.old <- future::plan("list") [17:29:54.273] options(future.plan = NULL) [17:29:54.273] Sys.unsetenv("R_FUTURE_PLAN") [17:29:54.273] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:29:54.273] } [17:29:54.273] ...future.workdir <- getwd() [17:29:54.273] } [17:29:54.273] ...future.oldOptions <- base::as.list(base::.Options) [17:29:54.273] ...future.oldEnvVars <- base::Sys.getenv() [17:29:54.273] } [17:29:54.273] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:29:54.273] future.globals.maxSize = NULL, future.globals.method = NULL, [17:29:54.273] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:29:54.273] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:29:54.273] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:29:54.273] future.stdout.windows.reencode = NULL, width = 80L) [17:29:54.273] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:29:54.273] base::names(...future.oldOptions)) [17:29:54.273] } [17:29:54.273] if (FALSE) { [17:29:54.273] } [17:29:54.273] else { [17:29:54.273] if (TRUE) { [17:29:54.273] ...future.stdout <- base::rawConnection(base::raw(0L), [17:29:54.273] open = "w") [17:29:54.273] } [17:29:54.273] else { [17:29:54.273] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:29:54.273] windows = "NUL", "/dev/null"), open = "w") [17:29:54.273] } [17:29:54.273] base::sink(...future.stdout, type = "output", split = FALSE) [17:29:54.273] base::on.exit(if (!base::is.null(...future.stdout)) { [17:29:54.273] base::sink(type = "output", split = FALSE) [17:29:54.273] base::close(...future.stdout) [17:29:54.273] }, add = TRUE) [17:29:54.273] } [17:29:54.273] ...future.frame <- base::sys.nframe() [17:29:54.273] ...future.conditions <- base::list() [17:29:54.273] ...future.rng <- base::globalenv()$.Random.seed [17:29:54.273] if (FALSE) { [17:29:54.273] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:29:54.273] "...future.value", "...future.globalenv.names", ".Random.seed") [17:29:54.273] } [17:29:54.273] ...future.result <- base::tryCatch({ [17:29:54.273] base::withCallingHandlers({ [17:29:54.273] ...future.value <- base::withVisible(base::local(NA)) [17:29:54.273] future::FutureResult(value = ...future.value$value, [17:29:54.273] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:29:54.273] ...future.rng), globalenv = if (FALSE) [17:29:54.273] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:29:54.273] ...future.globalenv.names)) [17:29:54.273] else NULL, started = ...future.startTime, version = "1.8") [17:29:54.273] }, condition = base::local({ [17:29:54.273] c <- base::c [17:29:54.273] inherits <- base::inherits [17:29:54.273] invokeRestart <- base::invokeRestart [17:29:54.273] length <- base::length [17:29:54.273] list <- base::list [17:29:54.273] seq.int <- base::seq.int [17:29:54.273] signalCondition <- base::signalCondition [17:29:54.273] sys.calls <- base::sys.calls [17:29:54.273] `[[` <- base::`[[` [17:29:54.273] `+` <- base::`+` [17:29:54.273] `<<-` <- base::`<<-` [17:29:54.273] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:29:54.273] calls[seq.int(from = from + 12L, to = length(calls) - [17:29:54.273] 3L)] [17:29:54.273] } [17:29:54.273] function(cond) { [17:29:54.273] is_error <- inherits(cond, "error") [17:29:54.273] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:29:54.273] NULL) [17:29:54.273] if (is_error) { [17:29:54.273] sessionInformation <- function() { [17:29:54.273] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:29:54.273] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:29:54.273] search = base::search(), system = base::Sys.info()) [17:29:54.273] } [17:29:54.273] ...future.conditions[[length(...future.conditions) + [17:29:54.273] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:29:54.273] cond$call), session = sessionInformation(), [17:29:54.273] timestamp = base::Sys.time(), signaled = 0L) [17:29:54.273] signalCondition(cond) [17:29:54.273] } [17:29:54.273] else if (!ignore && TRUE && inherits(cond, c("condition", [17:29:54.273] "immediateCondition"))) { [17:29:54.273] signal <- TRUE && inherits(cond, "immediateCondition") [17:29:54.273] ...future.conditions[[length(...future.conditions) + [17:29:54.273] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:29:54.273] if (TRUE && !signal) { [17:29:54.273] muffleCondition <- function (cond, pattern = "^muffle") [17:29:54.273] { [17:29:54.273] inherits <- base::inherits [17:29:54.273] invokeRestart <- base::invokeRestart [17:29:54.273] is.null <- base::is.null [17:29:54.273] muffled <- FALSE [17:29:54.273] if (inherits(cond, "message")) { [17:29:54.273] muffled <- grepl(pattern, "muffleMessage") [17:29:54.273] if (muffled) [17:29:54.273] invokeRestart("muffleMessage") [17:29:54.273] } [17:29:54.273] else if (inherits(cond, "warning")) { [17:29:54.273] muffled <- grepl(pattern, "muffleWarning") [17:29:54.273] if (muffled) [17:29:54.273] invokeRestart("muffleWarning") [17:29:54.273] } [17:29:54.273] else if (inherits(cond, "condition")) { [17:29:54.273] if (!is.null(pattern)) { [17:29:54.273] computeRestarts <- base::computeRestarts [17:29:54.273] grepl <- base::grepl [17:29:54.273] restarts <- computeRestarts(cond) [17:29:54.273] for (restart in restarts) { [17:29:54.273] name <- restart$name [17:29:54.273] if (is.null(name)) [17:29:54.273] next [17:29:54.273] if (!grepl(pattern, name)) [17:29:54.273] next [17:29:54.273] invokeRestart(restart) [17:29:54.273] muffled <- TRUE [17:29:54.273] break [17:29:54.273] } [17:29:54.273] } [17:29:54.273] } [17:29:54.273] invisible(muffled) [17:29:54.273] } [17:29:54.273] muffleCondition(cond, pattern = "^muffle") [17:29:54.273] } [17:29:54.273] } [17:29:54.273] else { [17:29:54.273] if (TRUE) { [17:29:54.273] muffleCondition <- function (cond, pattern = "^muffle") [17:29:54.273] { [17:29:54.273] inherits <- base::inherits [17:29:54.273] invokeRestart <- base::invokeRestart [17:29:54.273] is.null <- base::is.null [17:29:54.273] muffled <- FALSE [17:29:54.273] if (inherits(cond, "message")) { [17:29:54.273] muffled <- grepl(pattern, "muffleMessage") [17:29:54.273] if (muffled) [17:29:54.273] invokeRestart("muffleMessage") [17:29:54.273] } [17:29:54.273] else if (inherits(cond, "warning")) { [17:29:54.273] muffled <- grepl(pattern, "muffleWarning") [17:29:54.273] if (muffled) [17:29:54.273] invokeRestart("muffleWarning") [17:29:54.273] } [17:29:54.273] else if (inherits(cond, "condition")) { [17:29:54.273] if (!is.null(pattern)) { [17:29:54.273] computeRestarts <- base::computeRestarts [17:29:54.273] grepl <- base::grepl [17:29:54.273] restarts <- computeRestarts(cond) [17:29:54.273] for (restart in restarts) { [17:29:54.273] name <- restart$name [17:29:54.273] if (is.null(name)) [17:29:54.273] next [17:29:54.273] if (!grepl(pattern, name)) [17:29:54.273] next [17:29:54.273] invokeRestart(restart) [17:29:54.273] muffled <- TRUE [17:29:54.273] break [17:29:54.273] } [17:29:54.273] } [17:29:54.273] } [17:29:54.273] invisible(muffled) [17:29:54.273] } [17:29:54.273] muffleCondition(cond, pattern = "^muffle") [17:29:54.273] } [17:29:54.273] } [17:29:54.273] } [17:29:54.273] })) [17:29:54.273] }, error = function(ex) { [17:29:54.273] base::structure(base::list(value = NULL, visible = NULL, [17:29:54.273] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:29:54.273] ...future.rng), started = ...future.startTime, [17:29:54.273] finished = Sys.time(), session_uuid = NA_character_, [17:29:54.273] version = "1.8"), class = "FutureResult") [17:29:54.273] }, finally = { [17:29:54.273] if (!identical(...future.workdir, getwd())) [17:29:54.273] setwd(...future.workdir) [17:29:54.273] { [17:29:54.273] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:29:54.273] ...future.oldOptions$nwarnings <- NULL [17:29:54.273] } [17:29:54.273] base::options(...future.oldOptions) [17:29:54.273] if (.Platform$OS.type == "windows") { [17:29:54.273] old_names <- names(...future.oldEnvVars) [17:29:54.273] envs <- base::Sys.getenv() [17:29:54.273] names <- names(envs) [17:29:54.273] common <- intersect(names, old_names) [17:29:54.273] added <- setdiff(names, old_names) [17:29:54.273] removed <- setdiff(old_names, names) [17:29:54.273] changed <- common[...future.oldEnvVars[common] != [17:29:54.273] envs[common]] [17:29:54.273] NAMES <- toupper(changed) [17:29:54.273] args <- list() [17:29:54.273] for (kk in seq_along(NAMES)) { [17:29:54.273] name <- changed[[kk]] [17:29:54.273] NAME <- NAMES[[kk]] [17:29:54.273] if (name != NAME && is.element(NAME, old_names)) [17:29:54.273] next [17:29:54.273] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:54.273] } [17:29:54.273] NAMES <- toupper(added) [17:29:54.273] for (kk in seq_along(NAMES)) { [17:29:54.273] name <- added[[kk]] [17:29:54.273] NAME <- NAMES[[kk]] [17:29:54.273] if (name != NAME && is.element(NAME, old_names)) [17:29:54.273] next [17:29:54.273] args[[name]] <- "" [17:29:54.273] } [17:29:54.273] NAMES <- toupper(removed) [17:29:54.273] for (kk in seq_along(NAMES)) { [17:29:54.273] name <- removed[[kk]] [17:29:54.273] NAME <- NAMES[[kk]] [17:29:54.273] if (name != NAME && is.element(NAME, old_names)) [17:29:54.273] next [17:29:54.273] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:54.273] } [17:29:54.273] if (length(args) > 0) [17:29:54.273] base::do.call(base::Sys.setenv, args = args) [17:29:54.273] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:29:54.273] } [17:29:54.273] else { [17:29:54.273] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:29:54.273] } [17:29:54.273] { [17:29:54.273] if (base::length(...future.futureOptionsAdded) > [17:29:54.273] 0L) { [17:29:54.273] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:29:54.273] base::names(opts) <- ...future.futureOptionsAdded [17:29:54.273] base::options(opts) [17:29:54.273] } [17:29:54.273] { [17:29:54.273] { [17:29:54.273] NULL [17:29:54.273] RNGkind("Mersenne-Twister") [17:29:54.273] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:29:54.273] inherits = FALSE) [17:29:54.273] } [17:29:54.273] options(future.plan = "multisession") [17:29:54.273] if (is.na(NA_character_)) [17:29:54.273] Sys.unsetenv("R_FUTURE_PLAN") [17:29:54.273] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:29:54.273] future::plan(...future.strategy.old, .cleanup = FALSE, [17:29:54.273] .init = FALSE) [17:29:54.273] } [17:29:54.273] } [17:29:54.273] } [17:29:54.273] }) [17:29:54.273] if (TRUE) { [17:29:54.273] base::sink(type = "output", split = FALSE) [17:29:54.273] if (TRUE) { [17:29:54.273] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:29:54.273] } [17:29:54.273] else { [17:29:54.273] ...future.result["stdout"] <- base::list(NULL) [17:29:54.273] } [17:29:54.273] base::close(...future.stdout) [17:29:54.273] ...future.stdout <- NULL [17:29:54.273] } [17:29:54.273] ...future.result$conditions <- ...future.conditions [17:29:54.273] ...future.result$finished <- base::Sys.time() [17:29:54.273] ...future.result [17:29:54.273] } [17:29:54.279] plan(): Setting new future strategy stack: [17:29:54.280] List of future strategies: [17:29:54.280] 1. sequential: [17:29:54.280] - args: function (..., envir = parent.frame(), workers = "") [17:29:54.280] - tweaked: FALSE [17:29:54.280] - call: NULL [17:29:54.280] plan(): nbrOfWorkers() = 1 [17:29:54.282] plan(): Setting new future strategy stack: [17:29:54.282] List of future strategies: [17:29:54.282] 1. multisession: [17:29:54.282] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:54.282] - tweaked: FALSE [17:29:54.282] - call: plan("default") [17:29:54.285] plan(): nbrOfWorkers() = 1 [17:29:54.285] SequentialFuture started (and completed) [17:29:54.286] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:29:54.289] plan(): nbrOfWorkers() = 1 > message("- .onLoad() w/ future.plan = 'multisession' & -p 1 ... DONE") - .onLoad() w/ future.plan = 'multisession' & -p 1 ... DONE > > message("- .onLoad() w/ future.plan = 'multisession' & -p 1 ...") - .onLoad() w/ future.plan = 'multisession' & -p 1 ... > options(future.plan = multisession, future.cmdargs = c("-p", "1")) > .onLoad(pkgname, pkgname) [17:29:54.292] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:29:54.292] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:29:54.293] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:29:54.293] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:29:54.293] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:29:54.294] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:29:54.294] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:29:54.294] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:29:54.294] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:29:54.295] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:29:54.295] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:29:54.295] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:29:54.296] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:29:54.296] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:29:54.296] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:29:54.296] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:29:54.297] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:29:54.297] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:29:54.297] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:29:54.298] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:29:54.298] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:29:54.298] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:29:54.298] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:29:54.299] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:29:54.299] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:29:54.299] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:29:54.299] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:29:54.300] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:29:54.300] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:29:54.300] Environment variable 'R_FUTURE_JOURNAL' not set [17:29:54.301] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:29:54.301] Environment variable 'R_FUTURE_GLOBALS_OBJECTSIZE_METHOD' not set [17:29:54.301] Environment variable 'R_FUTURE_PLAN_CLEANUP_LEGACY' not set [17:29:54.301] Option 'future.plan' of type 'function' [17:29:54.302] R command-line argument: -p 1 [17:29:54.303] => 'future.plan' already set. [17:29:54.303] R process uuid: 69cc3a46-0951-b7eb-a35a-7628bb935b84 [17:29:54.303] Setting plan('default') [17:29:54.303] plan(): Setting new future strategy stack: [17:29:54.304] List of future strategies: [17:29:54.304] 1. multisession: [17:29:54.304] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:54.304] - tweaked: FALSE [17:29:54.304] - call: NULL [17:29:54.308] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) multisession: - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) - tweaked: FALSE - call: NULL > stopifnot(inherits(strategy, "multisession")) > plan("default") [17:29:54.308] plan(): Setting new future strategy stack: [17:29:54.309] List of future strategies: [17:29:54.309] 1. multisession: [17:29:54.309] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:54.309] - tweaked: FALSE [17:29:54.309] - call: NULL [17:29:54.310] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:29:54.310] multisession: [17:29:54.310] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:54.310] - tweaked: FALSE [17:29:54.310] - call: NULL [17:29:54.314] getGlobalsAndPackages() ... [17:29:54.315] Not searching for globals [17:29:54.315] - globals: [0] [17:29:54.315] getGlobalsAndPackages() ... DONE [17:29:54.316] Packages needed by the future expression (n = 0): [17:29:54.317] Packages needed by future strategies (n = 0): [17:29:54.318] { [17:29:54.318] { [17:29:54.318] { [17:29:54.318] ...future.startTime <- base::Sys.time() [17:29:54.318] { [17:29:54.318] { [17:29:54.318] { [17:29:54.318] base::local({ [17:29:54.318] has_future <- base::requireNamespace("future", [17:29:54.318] quietly = TRUE) [17:29:54.318] if (has_future) { [17:29:54.318] ns <- base::getNamespace("future") [17:29:54.318] version <- ns[[".package"]][["version"]] [17:29:54.318] if (is.null(version)) [17:29:54.318] version <- utils::packageVersion("future") [17:29:54.318] } [17:29:54.318] else { [17:29:54.318] version <- NULL [17:29:54.318] } [17:29:54.318] if (!has_future || version < "1.8.0") { [17:29:54.318] info <- base::c(r_version = base::gsub("R version ", [17:29:54.318] "", base::R.version$version.string), [17:29:54.318] platform = base::sprintf("%s (%s-bit)", [17:29:54.318] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:29:54.318] os = base::paste(base::Sys.info()[base::c("sysname", [17:29:54.318] "release", "version")], collapse = " "), [17:29:54.318] hostname = base::Sys.info()[["nodename"]]) [17:29:54.318] info <- base::sprintf("%s: %s", base::names(info), [17:29:54.318] info) [17:29:54.318] info <- base::paste(info, collapse = "; ") [17:29:54.318] if (!has_future) { [17:29:54.318] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:29:54.318] info) [17:29:54.318] } [17:29:54.318] else { [17:29:54.318] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:29:54.318] info, version) [17:29:54.318] } [17:29:54.318] base::stop(msg) [17:29:54.318] } [17:29:54.318] }) [17:29:54.318] } [17:29:54.318] ...future.strategy.old <- future::plan("list") [17:29:54.318] options(future.plan = NULL) [17:29:54.318] Sys.unsetenv("R_FUTURE_PLAN") [17:29:54.318] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:29:54.318] } [17:29:54.318] ...future.workdir <- getwd() [17:29:54.318] } [17:29:54.318] ...future.oldOptions <- base::as.list(base::.Options) [17:29:54.318] ...future.oldEnvVars <- base::Sys.getenv() [17:29:54.318] } [17:29:54.318] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:29:54.318] future.globals.maxSize = NULL, future.globals.method = NULL, [17:29:54.318] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:29:54.318] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:29:54.318] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:29:54.318] future.stdout.windows.reencode = NULL, width = 80L) [17:29:54.318] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:29:54.318] base::names(...future.oldOptions)) [17:29:54.318] } [17:29:54.318] if (FALSE) { [17:29:54.318] } [17:29:54.318] else { [17:29:54.318] if (TRUE) { [17:29:54.318] ...future.stdout <- base::rawConnection(base::raw(0L), [17:29:54.318] open = "w") [17:29:54.318] } [17:29:54.318] else { [17:29:54.318] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:29:54.318] windows = "NUL", "/dev/null"), open = "w") [17:29:54.318] } [17:29:54.318] base::sink(...future.stdout, type = "output", split = FALSE) [17:29:54.318] base::on.exit(if (!base::is.null(...future.stdout)) { [17:29:54.318] base::sink(type = "output", split = FALSE) [17:29:54.318] base::close(...future.stdout) [17:29:54.318] }, add = TRUE) [17:29:54.318] } [17:29:54.318] ...future.frame <- base::sys.nframe() [17:29:54.318] ...future.conditions <- base::list() [17:29:54.318] ...future.rng <- base::globalenv()$.Random.seed [17:29:54.318] if (FALSE) { [17:29:54.318] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:29:54.318] "...future.value", "...future.globalenv.names", ".Random.seed") [17:29:54.318] } [17:29:54.318] ...future.result <- base::tryCatch({ [17:29:54.318] base::withCallingHandlers({ [17:29:54.318] ...future.value <- base::withVisible(base::local(NA)) [17:29:54.318] future::FutureResult(value = ...future.value$value, [17:29:54.318] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:29:54.318] ...future.rng), globalenv = if (FALSE) [17:29:54.318] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:29:54.318] ...future.globalenv.names)) [17:29:54.318] else NULL, started = ...future.startTime, version = "1.8") [17:29:54.318] }, condition = base::local({ [17:29:54.318] c <- base::c [17:29:54.318] inherits <- base::inherits [17:29:54.318] invokeRestart <- base::invokeRestart [17:29:54.318] length <- base::length [17:29:54.318] list <- base::list [17:29:54.318] seq.int <- base::seq.int [17:29:54.318] signalCondition <- base::signalCondition [17:29:54.318] sys.calls <- base::sys.calls [17:29:54.318] `[[` <- base::`[[` [17:29:54.318] `+` <- base::`+` [17:29:54.318] `<<-` <- base::`<<-` [17:29:54.318] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:29:54.318] calls[seq.int(from = from + 12L, to = length(calls) - [17:29:54.318] 3L)] [17:29:54.318] } [17:29:54.318] function(cond) { [17:29:54.318] is_error <- inherits(cond, "error") [17:29:54.318] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:29:54.318] NULL) [17:29:54.318] if (is_error) { [17:29:54.318] sessionInformation <- function() { [17:29:54.318] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:29:54.318] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:29:54.318] search = base::search(), system = base::Sys.info()) [17:29:54.318] } [17:29:54.318] ...future.conditions[[length(...future.conditions) + [17:29:54.318] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:29:54.318] cond$call), session = sessionInformation(), [17:29:54.318] timestamp = base::Sys.time(), signaled = 0L) [17:29:54.318] signalCondition(cond) [17:29:54.318] } [17:29:54.318] else if (!ignore && TRUE && inherits(cond, c("condition", [17:29:54.318] "immediateCondition"))) { [17:29:54.318] signal <- TRUE && inherits(cond, "immediateCondition") [17:29:54.318] ...future.conditions[[length(...future.conditions) + [17:29:54.318] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:29:54.318] if (TRUE && !signal) { [17:29:54.318] muffleCondition <- function (cond, pattern = "^muffle") [17:29:54.318] { [17:29:54.318] inherits <- base::inherits [17:29:54.318] invokeRestart <- base::invokeRestart [17:29:54.318] is.null <- base::is.null [17:29:54.318] muffled <- FALSE [17:29:54.318] if (inherits(cond, "message")) { [17:29:54.318] muffled <- grepl(pattern, "muffleMessage") [17:29:54.318] if (muffled) [17:29:54.318] invokeRestart("muffleMessage") [17:29:54.318] } [17:29:54.318] else if (inherits(cond, "warning")) { [17:29:54.318] muffled <- grepl(pattern, "muffleWarning") [17:29:54.318] if (muffled) [17:29:54.318] invokeRestart("muffleWarning") [17:29:54.318] } [17:29:54.318] else if (inherits(cond, "condition")) { [17:29:54.318] if (!is.null(pattern)) { [17:29:54.318] computeRestarts <- base::computeRestarts [17:29:54.318] grepl <- base::grepl [17:29:54.318] restarts <- computeRestarts(cond) [17:29:54.318] for (restart in restarts) { [17:29:54.318] name <- restart$name [17:29:54.318] if (is.null(name)) [17:29:54.318] next [17:29:54.318] if (!grepl(pattern, name)) [17:29:54.318] next [17:29:54.318] invokeRestart(restart) [17:29:54.318] muffled <- TRUE [17:29:54.318] break [17:29:54.318] } [17:29:54.318] } [17:29:54.318] } [17:29:54.318] invisible(muffled) [17:29:54.318] } [17:29:54.318] muffleCondition(cond, pattern = "^muffle") [17:29:54.318] } [17:29:54.318] } [17:29:54.318] else { [17:29:54.318] if (TRUE) { [17:29:54.318] muffleCondition <- function (cond, pattern = "^muffle") [17:29:54.318] { [17:29:54.318] inherits <- base::inherits [17:29:54.318] invokeRestart <- base::invokeRestart [17:29:54.318] is.null <- base::is.null [17:29:54.318] muffled <- FALSE [17:29:54.318] if (inherits(cond, "message")) { [17:29:54.318] muffled <- grepl(pattern, "muffleMessage") [17:29:54.318] if (muffled) [17:29:54.318] invokeRestart("muffleMessage") [17:29:54.318] } [17:29:54.318] else if (inherits(cond, "warning")) { [17:29:54.318] muffled <- grepl(pattern, "muffleWarning") [17:29:54.318] if (muffled) [17:29:54.318] invokeRestart("muffleWarning") [17:29:54.318] } [17:29:54.318] else if (inherits(cond, "condition")) { [17:29:54.318] if (!is.null(pattern)) { [17:29:54.318] computeRestarts <- base::computeRestarts [17:29:54.318] grepl <- base::grepl [17:29:54.318] restarts <- computeRestarts(cond) [17:29:54.318] for (restart in restarts) { [17:29:54.318] name <- restart$name [17:29:54.318] if (is.null(name)) [17:29:54.318] next [17:29:54.318] if (!grepl(pattern, name)) [17:29:54.318] next [17:29:54.318] invokeRestart(restart) [17:29:54.318] muffled <- TRUE [17:29:54.318] break [17:29:54.318] } [17:29:54.318] } [17:29:54.318] } [17:29:54.318] invisible(muffled) [17:29:54.318] } [17:29:54.318] muffleCondition(cond, pattern = "^muffle") [17:29:54.318] } [17:29:54.318] } [17:29:54.318] } [17:29:54.318] })) [17:29:54.318] }, error = function(ex) { [17:29:54.318] base::structure(base::list(value = NULL, visible = NULL, [17:29:54.318] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:29:54.318] ...future.rng), started = ...future.startTime, [17:29:54.318] finished = Sys.time(), session_uuid = NA_character_, [17:29:54.318] version = "1.8"), class = "FutureResult") [17:29:54.318] }, finally = { [17:29:54.318] if (!identical(...future.workdir, getwd())) [17:29:54.318] setwd(...future.workdir) [17:29:54.318] { [17:29:54.318] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:29:54.318] ...future.oldOptions$nwarnings <- NULL [17:29:54.318] } [17:29:54.318] base::options(...future.oldOptions) [17:29:54.318] if (.Platform$OS.type == "windows") { [17:29:54.318] old_names <- names(...future.oldEnvVars) [17:29:54.318] envs <- base::Sys.getenv() [17:29:54.318] names <- names(envs) [17:29:54.318] common <- intersect(names, old_names) [17:29:54.318] added <- setdiff(names, old_names) [17:29:54.318] removed <- setdiff(old_names, names) [17:29:54.318] changed <- common[...future.oldEnvVars[common] != [17:29:54.318] envs[common]] [17:29:54.318] NAMES <- toupper(changed) [17:29:54.318] args <- list() [17:29:54.318] for (kk in seq_along(NAMES)) { [17:29:54.318] name <- changed[[kk]] [17:29:54.318] NAME <- NAMES[[kk]] [17:29:54.318] if (name != NAME && is.element(NAME, old_names)) [17:29:54.318] next [17:29:54.318] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:54.318] } [17:29:54.318] NAMES <- toupper(added) [17:29:54.318] for (kk in seq_along(NAMES)) { [17:29:54.318] name <- added[[kk]] [17:29:54.318] NAME <- NAMES[[kk]] [17:29:54.318] if (name != NAME && is.element(NAME, old_names)) [17:29:54.318] next [17:29:54.318] args[[name]] <- "" [17:29:54.318] } [17:29:54.318] NAMES <- toupper(removed) [17:29:54.318] for (kk in seq_along(NAMES)) { [17:29:54.318] name <- removed[[kk]] [17:29:54.318] NAME <- NAMES[[kk]] [17:29:54.318] if (name != NAME && is.element(NAME, old_names)) [17:29:54.318] next [17:29:54.318] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:54.318] } [17:29:54.318] if (length(args) > 0) [17:29:54.318] base::do.call(base::Sys.setenv, args = args) [17:29:54.318] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:29:54.318] } [17:29:54.318] else { [17:29:54.318] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:29:54.318] } [17:29:54.318] { [17:29:54.318] if (base::length(...future.futureOptionsAdded) > [17:29:54.318] 0L) { [17:29:54.318] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:29:54.318] base::names(opts) <- ...future.futureOptionsAdded [17:29:54.318] base::options(opts) [17:29:54.318] } [17:29:54.318] { [17:29:54.318] { [17:29:54.318] NULL [17:29:54.318] RNGkind("Mersenne-Twister") [17:29:54.318] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:29:54.318] inherits = FALSE) [17:29:54.318] } [17:29:54.318] options(future.plan = function (..., workers = availableCores(), [17:29:54.318] lazy = FALSE, rscript_libs = .libPaths(), [17:29:54.318] envir = parent.frame()) [17:29:54.318] { [17:29:54.318] if (is.function(workers)) [17:29:54.318] workers <- workers() [17:29:54.318] workers <- structure(as.integer(workers), [17:29:54.318] class = class(workers)) [17:29:54.318] stop_if_not(length(workers) == 1, is.finite(workers), [17:29:54.318] workers >= 1) [17:29:54.318] if (workers == 1L && !inherits(workers, "AsIs")) { [17:29:54.318] return(sequential(..., lazy = TRUE, envir = envir)) [17:29:54.318] } [17:29:54.318] future <- MultisessionFuture(..., workers = workers, [17:29:54.318] lazy = lazy, rscript_libs = rscript_libs, [17:29:54.318] envir = envir) [17:29:54.318] if (!future$lazy) [17:29:54.318] future <- run(future) [17:29:54.318] invisible(future) [17:29:54.318] }) [17:29:54.318] if (is.na(NA_character_)) [17:29:54.318] Sys.unsetenv("R_FUTURE_PLAN") [17:29:54.318] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:29:54.318] future::plan(...future.strategy.old, .cleanup = FALSE, [17:29:54.318] .init = FALSE) [17:29:54.318] } [17:29:54.318] } [17:29:54.318] } [17:29:54.318] }) [17:29:54.318] if (TRUE) { [17:29:54.318] base::sink(type = "output", split = FALSE) [17:29:54.318] if (TRUE) { [17:29:54.318] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:29:54.318] } [17:29:54.318] else { [17:29:54.318] ...future.result["stdout"] <- base::list(NULL) [17:29:54.318] } [17:29:54.318] base::close(...future.stdout) [17:29:54.318] ...future.stdout <- NULL [17:29:54.318] } [17:29:54.318] ...future.result$conditions <- ...future.conditions [17:29:54.318] ...future.result$finished <- base::Sys.time() [17:29:54.318] ...future.result [17:29:54.318] } [17:29:54.326] plan(): Setting new future strategy stack: [17:29:54.326] List of future strategies: [17:29:54.326] 1. sequential: [17:29:54.326] - args: function (..., envir = parent.frame(), workers = "") [17:29:54.326] - tweaked: FALSE [17:29:54.326] - call: NULL [17:29:54.327] plan(): nbrOfWorkers() = 1 [17:29:54.330] plan(): Setting new future strategy stack: [17:29:54.330] List of future strategies: [17:29:54.330] 1. multisession: [17:29:54.330] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:29:54.330] - tweaked: FALSE [17:29:54.330] - call: NULL [17:29:54.335] plan(): nbrOfWorkers() = 1 [17:29:54.335] SequentialFuture started (and completed) [17:29:54.336] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:29:54.340] plan(): nbrOfWorkers() = 1 > message("- .onLoad() w/ future.plan = 'multisession' & -p 1 ... DONE") - .onLoad() w/ future.plan = 'multisession' & -p 1 ... DONE > > options(future.plan = NULL, future.cmdargs = NULL, future.availableCores.system = NULL, future.availableCores.fallback = NULL) > > message("*** .onLoad() ... DONE") *** .onLoad() ... DONE > > > message("*** .onAttach() ...") *** .onAttach() ... > > pkgname <- "future" > > message("- .onAttach() w/ option future.startup.loadScript ...") - .onAttach() w/ option future.startup.loadScript ... > > for (value in list(NULL, FALSE, TRUE)) { + options(future.startup.loadScript = value) + .onAttach(pkgname, pkgname) + } [17:29:54.345] Option 'future.startup.script': TRUE [17:29:54.346] Future startup scripts considered: '.future.R', '~/.future.R' [17:29:54.346] Future startup scripts found: [17:29:54.347] Option 'future.startup.script': TRUE [17:29:54.347] Future startup scripts considered: '.future.R', '~/.future.R' [17:29:54.348] Future startup scripts found: [17:29:54.348] Option 'future.startup.script': TRUE [17:29:54.348] Future startup scripts considered: '.future.R', '~/.future.R' [17:29:54.349] Future startup scripts found: > > message("- .onAttach() w/ option future.startup.loadScript ... DONE") - .onAttach() w/ option future.startup.loadScript ... DONE > > message("- .onAttach() with ./.future.R ...") - .onAttach() with ./.future.R ... > > pathname <- ".future.R" > xyz <- 0L > cat("xyz <- 42L; cat('ping\n')\n", file = pathname) > .onAttach(pkgname, pkgname) [17:29:54.350] Option 'future.startup.script': TRUE [17:29:54.350] Future startup scripts considered: '.future.R', '~/.future.R' [17:29:54.351] Future startup scripts found: '.future.R' [17:29:54.351] Future startup script to load: '.future.R' ping [1] ".future.R" > print(xyz) [1] 42 > stopifnot(is.integer(xyz), xyz >= 0, xyz == 42L) > file.remove(pathname) [1] TRUE > > message("- .onAttach() with ./.future.R ... DONE") - .onAttach() with ./.future.R ... DONE > > message("*** .onAttach() ... DONE") *** .onAttach() ... DONE > > > source("incl/end.R") [17:29:54.354] plan(): Setting new future strategy stack: [17:29:54.354] List of future strategies: [17:29:54.354] 1. FutureStrategy: [17:29:54.354] - args: function (..., envir = parent.frame(), workers = "") [17:29:54.354] - tweaked: FALSE [17:29:54.354] - call: future::plan(oplan) [17:29:54.356] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=205] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', 'RTOOLS44_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS44_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_NOTE_MISSING_PACKAGE_ANCHORS_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 1.00 0.23 3.09