R Under development (unstable) (2024-03-25 r86192 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:28:24.204] plan(): Setting new future strategy stack: [17:28:24.205] List of future strategies: [17:28:24.205] 1. sequential: [17:28:24.205] - args: function (..., envir = parent.frame(), workers = "") [17:28:24.205] - tweaked: FALSE [17:28:24.205] - call: future::plan("sequential") [17:28:24.221] plan(): nbrOfWorkers() = 1 > > maxCores <- min(2L, availableCores(methods = "system")) > > > plan("default") [17:28:24.227] plan(): Setting new future strategy stack: [17:28:24.227] List of future strategies: [17:28:24.227] 1. sequential: [17:28:24.227] - args: function (..., envir = parent.frame(), workers = "") [17:28:24.227] - tweaked: FALSE [17:28:24.227] - call: NULL [17:28:24.240] 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:28:24.249] plan(): Setting new future strategy stack: [17:28:24.249] List of future strategies: [17:28:24.249] 1. sequential: [17:28:24.249] - args: function (..., envir = parent.frame(), workers = "") [17:28:24.249] - tweaked: FALSE [17:28:24.249] - call: NULL [17:28:24.250] 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:28:24.251] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:28:24.251] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:28:24.252] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:28:24.252] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:28:24.252] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:28:24.252] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:28:24.252] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:28:24.253] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:28:24.253] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:28:24.253] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:28:24.253] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:28:24.253] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:28:24.254] Environment variable 'R_FUTURE_PLAN' not set [17:28:24.254] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:28:24.254] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:28:24.254] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:28:24.254] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:28:24.255] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:28:24.255] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:28:24.255] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:28:24.255] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:28:24.255] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:28:24.255] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:28:24.256] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:28:24.256] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:28:24.256] R_FUTURE_WAIT_INTERVAL='0.01' [17:28:24.256] Coercing from character to numeric: '0.01' [17:28:24.256] => options("future.wait.interval" = '0.01') [n=1, mode=double] [17:28:24.257] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:28:24.257] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:28:24.257] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:28:24.257] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:28:24.258] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:28:24.258] Environment variable 'R_FUTURE_JOURNAL' not set [17:28:24.258] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:28:24.258] R process uuid: 173f7e4a-5010-757c-259e-f08c10a652fa [17:28:24.258] Setting plan('default') [17:28:24.258] plan(): Setting new future strategy stack: [17:28:24.259] List of future strategies: [17:28:24.259] 1. sequential: [17:28:24.259] - args: function (..., envir = parent.frame(), workers = "") [17:28:24.259] - tweaked: FALSE [17:28:24.259] - call: NULL [17:28:24.259] 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:28:24.260] plan(): Setting new future strategy stack: [17:28:24.260] List of future strategies: [17:28:24.260] 1. sequential: [17:28:24.260] - args: function (..., envir = parent.frame(), workers = "") [17:28:24.260] - tweaked: FALSE [17:28:24.260] - call: NULL [17:28:24.261] 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:28:24.262] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:28:24.262] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:28:24.262] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:28:24.263] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:28:24.263] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:28:24.263] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:28:24.263] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:28:24.263] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:28:24.264] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:28:24.264] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:28:24.264] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:28:24.264] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:28:24.264] Environment variable 'R_FUTURE_PLAN' not set [17:28:24.265] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:28:24.265] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:28:24.265] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:28:24.265] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:28:24.265] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:28:24.265] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:28:24.266] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:28:24.266] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:28:24.266] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:28:24.266] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:28:24.266] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:28:24.267] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:28:24.267] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:28:24.267] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:28:24.267] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:28:24.267] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:28:24.268] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:28:24.268] Environment variable 'R_FUTURE_JOURNAL' not set [17:28:24.268] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:28:24.268] R command-line argument: -p 1 [17:28:24.269] => options(future.plan = sequential) [17:28:24.269] R process uuid: 173f7e4a-5010-757c-259e-f08c10a652fa [17:28:24.269] Setting plan('default') [17:28:24.269] plan(): Setting new future strategy stack: [17:28:24.269] List of future strategies: [17:28:24.269] 1. sequential: [17:28:24.269] - args: function (..., envir = parent.frame(), workers = "") [17:28:24.269] - tweaked: FALSE [17:28:24.269] - call: NULL [17:28:24.270] 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:28:24.270] plan(): Setting new future strategy stack: [17:28:24.271] List of future strategies: [17:28:24.271] 1. sequential: [17:28:24.271] - args: function (..., envir = parent.frame(), workers = "") [17:28:24.271] - tweaked: FALSE [17:28:24.271] - call: NULL [17:28:24.271] 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:28:24.272] plan(): Setting new future strategy stack: [17:28:24.272] List of future strategies: [17:28:24.272] 1. sequential: [17:28:24.272] - args: function (..., envir = parent.frame(), workers = "") [17:28:24.272] - tweaked: FALSE [17:28:24.272] - call: NULL [17:28:24.272] plan(): nbrOfWorkers() = 1 > options(future.plan = NULL, future.cmdargs = "-parallel=1") > .onLoad(pkgname, pkgname) [17:28:24.273] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:28:24.274] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:28:24.274] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:28:24.274] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:28:24.274] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:28:24.274] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:28:24.275] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:28:24.275] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:28:24.275] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:28:24.275] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:28:24.275] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:28:24.276] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:28:24.276] Environment variable 'R_FUTURE_PLAN' not set [17:28:24.276] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:28:24.276] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:28:24.276] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:28:24.276] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:28:24.277] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:28:24.277] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:28:24.277] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:28:24.277] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:28:24.277] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:28:24.278] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:28:24.278] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:28:24.278] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:28:24.278] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:28:24.278] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:28:24.278] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:28:24.279] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:28:24.279] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:28:24.279] Environment variable 'R_FUTURE_JOURNAL' not set [17:28:24.279] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:28:24.279] R process uuid: 173f7e4a-5010-757c-259e-f08c10a652fa [17:28:24.280] Setting plan('default') [17:28:24.280] plan(): Setting new future strategy stack: [17:28:24.280] List of future strategies: [17:28:24.280] 1. sequential: [17:28:24.280] - args: function (..., envir = parent.frame(), workers = "") [17:28:24.280] - tweaked: FALSE [17:28:24.280] - call: NULL [17:28:24.281] 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:28:24.281] plan(): Setting new future strategy stack: [17:28:24.281] List of future strategies: [17:28:24.281] 1. sequential: [17:28:24.281] - args: function (..., envir = parent.frame(), workers = "") [17:28:24.281] - tweaked: FALSE [17:28:24.281] - call: NULL [17:28:24.282] 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:28:24.283] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:28:24.283] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:28:24.284] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:28:24.284] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:28:24.284] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:28:24.284] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:28:24.284] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:28:24.285] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:28:24.285] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:28:24.285] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:28:24.285] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:28:24.285] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:28:24.286] Environment variable 'R_FUTURE_PLAN' not set [17:28:24.286] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:28:24.286] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:28:24.286] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:28:24.286] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:28:24.288] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:28:24.288] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:28:24.288] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:28:24.288] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:28:24.288] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:28:24.289] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:28:24.289] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:28:24.289] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:28:24.289] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:28:24.289] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:28:24.290] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:28:24.290] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:28:24.290] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:28:24.290] Environment variable 'R_FUTURE_JOURNAL' not set [17:28:24.290] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:28:24.291] R command-line argument: -p 2 [17:28:24.291] => options(future.plan = tweak(multisession, workers = 2)) [17:28:24.293] R process uuid: 173f7e4a-5010-757c-259e-f08c10a652fa [17:28:24.293] Setting plan('default') [17:28:24.294] plan(): Setting new future strategy stack: [17:28:24.294] List of future strategies: [17:28:24.294] 1. multisession: [17:28:24.294] - args: function (..., workers = 2L, envir = parent.frame()) [17:28:24.294] - tweaked: TRUE [17:28:24.294] - call: NULL [17:28:24.294] 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:28:24.295] plan(): Setting new future strategy stack: [17:28:24.295] List of future strategies: [17:28:24.295] 1. multisession: [17:28:24.295] - args: function (..., workers = 2L, envir = parent.frame()) [17:28:24.295] - tweaked: TRUE [17:28:24.295] - call: NULL [17:28:24.295] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:28:24.296] multisession: [17:28:24.296] - args: function (..., workers = 2L, envir = parent.frame()) [17:28:24.296] - tweaked: TRUE [17:28:24.296] - call: NULL [17:28:24.297] getGlobalsAndPackages() ... [17:28:24.297] Not searching for globals [17:28:24.297] - globals: [0] [17:28:24.298] getGlobalsAndPackages() ... DONE [17:28:24.298] [local output] makeClusterPSOCK() ... [17:28:24.327] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:28:24.333] [local output] Base port: 30224 [17:28:24.333] [local output] Getting setup options for 2 cluster nodes ... [17:28:24.333] [local output] - Node 1 of 2 ... [17:28:24.334] [local output] localMachine=TRUE => revtunnel=FALSE [17:28:24.335] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpG4ZQEV/worker.rank=1.parallelly.parent=42284.a52c76602f1c.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpG4ZQEV/worker.rank=1.parallelly.parent=42284.a52c76602f1c.pid\")"' [17:28:24.774] - Possible to infer worker's PID: TRUE [17:28:24.775] [local output] Rscript port: 30224 [17:28:24.775] [local output] - Node 2 of 2 ... [17:28:24.776] [local output] localMachine=TRUE => revtunnel=FALSE [17:28:24.777] [local output] Rscript port: 30224 [17:28:24.777] [local output] Getting setup options for 2 cluster nodes ... done [17:28:24.778] [local output] - Parallel setup requested for some PSOCK nodes [17:28:24.778] [local output] Setting up PSOCK nodes in parallel [17:28:24.778] List of 36 [17:28:24.778] $ worker : chr "localhost" [17:28:24.778] ..- attr(*, "localhost")= logi TRUE [17:28:24.778] $ master : chr "localhost" [17:28:24.778] $ port : int 30224 [17:28:24.778] $ connectTimeout : num 120 [17:28:24.778] $ timeout : num 120 [17:28:24.778] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:28:24.778] $ homogeneous : logi TRUE [17:28:24.778] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=startup.R:42284:CRANWIN3:CRAN\" "| __truncated__ [17:28:24.778] $ rscript_envs : NULL [17:28:24.778] $ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:28:24.778] $ rscript_startup : NULL [17:28:24.778] $ rscript_sh : chr "cmd" [17:28:24.778] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:28:24.778] $ methods : logi TRUE [17:28:24.778] $ socketOptions : chr "no-delay" [17:28:24.778] $ useXDR : logi FALSE [17:28:24.778] $ outfile : chr "/dev/null" [17:28:24.778] $ renice : int NA [17:28:24.778] $ rshcmd : NULL [17:28:24.778] $ user : chr(0) [17:28:24.778] $ revtunnel : logi FALSE [17:28:24.778] $ rshlogfile : NULL [17:28:24.778] $ rshopts : chr(0) [17:28:24.778] $ rank : int 1 [17:28:24.778] $ manual : logi FALSE [17:28:24.778] $ dryrun : logi FALSE [17:28:24.778] $ quiet : logi FALSE [17:28:24.778] $ setup_strategy : chr "parallel" [17:28:24.778] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:28:24.778] $ pidfile : chr "D:/temp/RtmpG4ZQEV/worker.rank=1.parallelly.parent=42284.a52c76602f1c.pid" [17:28:24.778] $ rshcmd_label : NULL [17:28:24.778] $ rsh_call : NULL [17:28:24.778] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:28:24.778] $ localMachine : logi TRUE [17:28:24.778] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:28:24.778] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:28:24.778] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:28:24.778] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:28:24.778] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:28:24.778] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:28:24.778] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:28:24.778] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:28:24.778] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:28:24.778] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:28:24.778] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:28:24.778] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:28:24.778] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:28:24.778] $ arguments :List of 28 [17:28:24.778] ..$ worker : chr "localhost" [17:28:24.778] ..$ master : NULL [17:28:24.778] ..$ port : int 30224 [17:28:24.778] ..$ connectTimeout : num 120 [17:28:24.778] ..$ timeout : num 120 [17:28:24.778] ..$ rscript : NULL [17:28:24.778] ..$ homogeneous : NULL [17:28:24.778] ..$ rscript_args : NULL [17:28:24.778] ..$ rscript_envs : NULL [17:28:24.778] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:28:24.778] ..$ rscript_startup : NULL [17:28:24.778] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:28:24.778] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:28:24.778] ..$ methods : logi TRUE [17:28:24.778] ..$ socketOptions : chr "no-delay" [17:28:24.778] ..$ useXDR : logi FALSE [17:28:24.778] ..$ outfile : chr "/dev/null" [17:28:24.778] ..$ renice : int NA [17:28:24.778] ..$ rshcmd : NULL [17:28:24.778] ..$ user : NULL [17:28:24.778] ..$ revtunnel : logi NA [17:28:24.778] ..$ rshlogfile : NULL [17:28:24.778] ..$ rshopts : NULL [17:28:24.778] ..$ rank : int 1 [17:28:24.778] ..$ manual : logi FALSE [17:28:24.778] ..$ dryrun : logi FALSE [17:28:24.778] ..$ quiet : logi FALSE [17:28:24.778] ..$ setup_strategy : chr "parallel" [17:28:24.778] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:28:24.800] [local output] System call to launch all workers: [17:28:24.800] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=startup.R:42284:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpG4ZQEV/worker.rank=1.parallelly.parent=42284.a52c76602f1c.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=30224 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:28:24.800] [local output] Starting PSOCK main server [17:28:24.806] [local output] Workers launched [17:28:24.806] [local output] Waiting for workers to connect back [17:28:24.807] - [local output] 0 workers out of 2 ready [17:28:24.971] - [local output] 0 workers out of 2 ready [17:28:24.971] - [local output] 1 workers out of 2 ready [17:28:24.973] - [local output] 1 workers out of 2 ready [17:28:24.974] - [local output] 2 workers out of 2 ready [17:28:24.974] [local output] Launching of workers completed [17:28:24.974] [local output] Collecting session information from workers [17:28:24.975] [local output] - Worker #1 of 2 [17:28:24.976] [local output] - Worker #2 of 2 [17:28:24.976] [local output] makeClusterPSOCK() ... done [17:28:24.989] Packages needed by the future expression (n = 0): [17:28:24.989] Packages needed by future strategies (n = 0): [17:28:24.990] { [17:28:24.990] { [17:28:24.990] { [17:28:24.990] ...future.startTime <- base::Sys.time() [17:28:24.990] { [17:28:24.990] { [17:28:24.990] { [17:28:24.990] { [17:28:24.990] base::local({ [17:28:24.990] has_future <- base::requireNamespace("future", [17:28:24.990] quietly = TRUE) [17:28:24.990] if (has_future) { [17:28:24.990] ns <- base::getNamespace("future") [17:28:24.990] version <- ns[[".package"]][["version"]] [17:28:24.990] if (is.null(version)) [17:28:24.990] version <- utils::packageVersion("future") [17:28:24.990] } [17:28:24.990] else { [17:28:24.990] version <- NULL [17:28:24.990] } [17:28:24.990] if (!has_future || version < "1.8.0") { [17:28:24.990] info <- base::c(r_version = base::gsub("R version ", [17:28:24.990] "", base::R.version$version.string), [17:28:24.990] platform = base::sprintf("%s (%s-bit)", [17:28:24.990] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:24.990] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:24.990] "release", "version")], collapse = " "), [17:28:24.990] hostname = base::Sys.info()[["nodename"]]) [17:28:24.990] info <- base::sprintf("%s: %s", base::names(info), [17:28:24.990] info) [17:28:24.990] info <- base::paste(info, collapse = "; ") [17:28:24.990] if (!has_future) { [17:28:24.990] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:24.990] info) [17:28:24.990] } [17:28:24.990] else { [17:28:24.990] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:24.990] info, version) [17:28:24.990] } [17:28:24.990] base::stop(msg) [17:28:24.990] } [17:28:24.990] }) [17:28:24.990] } [17:28:24.990] ...future.mc.cores.old <- base::getOption("mc.cores") [17:28:24.990] base::options(mc.cores = 1L) [17:28:24.990] } [17:28:24.990] ...future.strategy.old <- future::plan("list") [17:28:24.990] options(future.plan = NULL) [17:28:24.990] Sys.unsetenv("R_FUTURE_PLAN") [17:28:24.990] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:24.990] } [17:28:24.990] ...future.workdir <- getwd() [17:28:24.990] } [17:28:24.990] ...future.oldOptions <- base::as.list(base::.Options) [17:28:24.990] ...future.oldEnvVars <- base::Sys.getenv() [17:28:24.990] } [17:28:24.990] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:24.990] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:24.990] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:24.990] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:24.990] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:24.990] future.stdout.windows.reencode = NULL, width = 80L) [17:28:24.990] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:24.990] base::names(...future.oldOptions)) [17:28:24.990] } [17:28:24.990] if (FALSE) { [17:28:24.990] } [17:28:24.990] else { [17:28:24.990] if (TRUE) { [17:28:24.990] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:24.990] open = "w") [17:28:24.990] } [17:28:24.990] else { [17:28:24.990] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:24.990] windows = "NUL", "/dev/null"), open = "w") [17:28:24.990] } [17:28:24.990] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:24.990] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:24.990] base::sink(type = "output", split = FALSE) [17:28:24.990] base::close(...future.stdout) [17:28:24.990] }, add = TRUE) [17:28:24.990] } [17:28:24.990] ...future.frame <- base::sys.nframe() [17:28:24.990] ...future.conditions <- base::list() [17:28:24.990] ...future.rng <- base::globalenv()$.Random.seed [17:28:24.990] if (FALSE) { [17:28:24.990] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:24.990] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:24.990] } [17:28:24.990] ...future.result <- base::tryCatch({ [17:28:24.990] base::withCallingHandlers({ [17:28:24.990] ...future.value <- base::withVisible(base::local({ [17:28:24.990] ...future.makeSendCondition <- base::local({ [17:28:24.990] sendCondition <- NULL [17:28:24.990] function(frame = 1L) { [17:28:24.990] if (is.function(sendCondition)) [17:28:24.990] return(sendCondition) [17:28:24.990] ns <- getNamespace("parallel") [17:28:24.990] if (exists("sendData", mode = "function", [17:28:24.990] envir = ns)) { [17:28:24.990] parallel_sendData <- get("sendData", mode = "function", [17:28:24.990] envir = ns) [17:28:24.990] envir <- sys.frame(frame) [17:28:24.990] master <- NULL [17:28:24.990] while (!identical(envir, .GlobalEnv) && [17:28:24.990] !identical(envir, emptyenv())) { [17:28:24.990] if (exists("master", mode = "list", envir = envir, [17:28:24.990] inherits = FALSE)) { [17:28:24.990] master <- get("master", mode = "list", [17:28:24.990] envir = envir, inherits = FALSE) [17:28:24.990] if (inherits(master, c("SOCKnode", [17:28:24.990] "SOCK0node"))) { [17:28:24.990] sendCondition <<- function(cond) { [17:28:24.990] data <- list(type = "VALUE", value = cond, [17:28:24.990] success = TRUE) [17:28:24.990] parallel_sendData(master, data) [17:28:24.990] } [17:28:24.990] return(sendCondition) [17:28:24.990] } [17:28:24.990] } [17:28:24.990] frame <- frame + 1L [17:28:24.990] envir <- sys.frame(frame) [17:28:24.990] } [17:28:24.990] } [17:28:24.990] sendCondition <<- function(cond) NULL [17:28:24.990] } [17:28:24.990] }) [17:28:24.990] withCallingHandlers({ [17:28:24.990] NA [17:28:24.990] }, immediateCondition = function(cond) { [17:28:24.990] sendCondition <- ...future.makeSendCondition() [17:28:24.990] sendCondition(cond) [17:28:24.990] muffleCondition <- function (cond, pattern = "^muffle") [17:28:24.990] { [17:28:24.990] inherits <- base::inherits [17:28:24.990] invokeRestart <- base::invokeRestart [17:28:24.990] is.null <- base::is.null [17:28:24.990] muffled <- FALSE [17:28:24.990] if (inherits(cond, "message")) { [17:28:24.990] muffled <- grepl(pattern, "muffleMessage") [17:28:24.990] if (muffled) [17:28:24.990] invokeRestart("muffleMessage") [17:28:24.990] } [17:28:24.990] else if (inherits(cond, "warning")) { [17:28:24.990] muffled <- grepl(pattern, "muffleWarning") [17:28:24.990] if (muffled) [17:28:24.990] invokeRestart("muffleWarning") [17:28:24.990] } [17:28:24.990] else if (inherits(cond, "condition")) { [17:28:24.990] if (!is.null(pattern)) { [17:28:24.990] computeRestarts <- base::computeRestarts [17:28:24.990] grepl <- base::grepl [17:28:24.990] restarts <- computeRestarts(cond) [17:28:24.990] for (restart in restarts) { [17:28:24.990] name <- restart$name [17:28:24.990] if (is.null(name)) [17:28:24.990] next [17:28:24.990] if (!grepl(pattern, name)) [17:28:24.990] next [17:28:24.990] invokeRestart(restart) [17:28:24.990] muffled <- TRUE [17:28:24.990] break [17:28:24.990] } [17:28:24.990] } [17:28:24.990] } [17:28:24.990] invisible(muffled) [17:28:24.990] } [17:28:24.990] muffleCondition(cond) [17:28:24.990] }) [17:28:24.990] })) [17:28:24.990] future::FutureResult(value = ...future.value$value, [17:28:24.990] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:24.990] ...future.rng), globalenv = if (FALSE) [17:28:24.990] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:24.990] ...future.globalenv.names)) [17:28:24.990] else NULL, started = ...future.startTime, version = "1.8") [17:28:24.990] }, condition = base::local({ [17:28:24.990] c <- base::c [17:28:24.990] inherits <- base::inherits [17:28:24.990] invokeRestart <- base::invokeRestart [17:28:24.990] length <- base::length [17:28:24.990] list <- base::list [17:28:24.990] seq.int <- base::seq.int [17:28:24.990] signalCondition <- base::signalCondition [17:28:24.990] sys.calls <- base::sys.calls [17:28:24.990] `[[` <- base::`[[` [17:28:24.990] `+` <- base::`+` [17:28:24.990] `<<-` <- base::`<<-` [17:28:24.990] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:24.990] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:24.990] 3L)] [17:28:24.990] } [17:28:24.990] function(cond) { [17:28:24.990] is_error <- inherits(cond, "error") [17:28:24.990] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:24.990] NULL) [17:28:24.990] if (is_error) { [17:28:24.990] sessionInformation <- function() { [17:28:24.990] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:24.990] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:24.990] search = base::search(), system = base::Sys.info()) [17:28:24.990] } [17:28:24.990] ...future.conditions[[length(...future.conditions) + [17:28:24.990] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:24.990] cond$call), session = sessionInformation(), [17:28:24.990] timestamp = base::Sys.time(), signaled = 0L) [17:28:24.990] signalCondition(cond) [17:28:24.990] } [17:28:24.990] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:24.990] "immediateCondition"))) { [17:28:24.990] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:24.990] ...future.conditions[[length(...future.conditions) + [17:28:24.990] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:24.990] if (TRUE && !signal) { [17:28:24.990] muffleCondition <- function (cond, pattern = "^muffle") [17:28:24.990] { [17:28:24.990] inherits <- base::inherits [17:28:24.990] invokeRestart <- base::invokeRestart [17:28:24.990] is.null <- base::is.null [17:28:24.990] muffled <- FALSE [17:28:24.990] if (inherits(cond, "message")) { [17:28:24.990] muffled <- grepl(pattern, "muffleMessage") [17:28:24.990] if (muffled) [17:28:24.990] invokeRestart("muffleMessage") [17:28:24.990] } [17:28:24.990] else if (inherits(cond, "warning")) { [17:28:24.990] muffled <- grepl(pattern, "muffleWarning") [17:28:24.990] if (muffled) [17:28:24.990] invokeRestart("muffleWarning") [17:28:24.990] } [17:28:24.990] else if (inherits(cond, "condition")) { [17:28:24.990] if (!is.null(pattern)) { [17:28:24.990] computeRestarts <- base::computeRestarts [17:28:24.990] grepl <- base::grepl [17:28:24.990] restarts <- computeRestarts(cond) [17:28:24.990] for (restart in restarts) { [17:28:24.990] name <- restart$name [17:28:24.990] if (is.null(name)) [17:28:24.990] next [17:28:24.990] if (!grepl(pattern, name)) [17:28:24.990] next [17:28:24.990] invokeRestart(restart) [17:28:24.990] muffled <- TRUE [17:28:24.990] break [17:28:24.990] } [17:28:24.990] } [17:28:24.990] } [17:28:24.990] invisible(muffled) [17:28:24.990] } [17:28:24.990] muffleCondition(cond, pattern = "^muffle") [17:28:24.990] } [17:28:24.990] } [17:28:24.990] else { [17:28:24.990] if (TRUE) { [17:28:24.990] muffleCondition <- function (cond, pattern = "^muffle") [17:28:24.990] { [17:28:24.990] inherits <- base::inherits [17:28:24.990] invokeRestart <- base::invokeRestart [17:28:24.990] is.null <- base::is.null [17:28:24.990] muffled <- FALSE [17:28:24.990] if (inherits(cond, "message")) { [17:28:24.990] muffled <- grepl(pattern, "muffleMessage") [17:28:24.990] if (muffled) [17:28:24.990] invokeRestart("muffleMessage") [17:28:24.990] } [17:28:24.990] else if (inherits(cond, "warning")) { [17:28:24.990] muffled <- grepl(pattern, "muffleWarning") [17:28:24.990] if (muffled) [17:28:24.990] invokeRestart("muffleWarning") [17:28:24.990] } [17:28:24.990] else if (inherits(cond, "condition")) { [17:28:24.990] if (!is.null(pattern)) { [17:28:24.990] computeRestarts <- base::computeRestarts [17:28:24.990] grepl <- base::grepl [17:28:24.990] restarts <- computeRestarts(cond) [17:28:24.990] for (restart in restarts) { [17:28:24.990] name <- restart$name [17:28:24.990] if (is.null(name)) [17:28:24.990] next [17:28:24.990] if (!grepl(pattern, name)) [17:28:24.990] next [17:28:24.990] invokeRestart(restart) [17:28:24.990] muffled <- TRUE [17:28:24.990] break [17:28:24.990] } [17:28:24.990] } [17:28:24.990] } [17:28:24.990] invisible(muffled) [17:28:24.990] } [17:28:24.990] muffleCondition(cond, pattern = "^muffle") [17:28:24.990] } [17:28:24.990] } [17:28:24.990] } [17:28:24.990] })) [17:28:24.990] }, error = function(ex) { [17:28:24.990] base::structure(base::list(value = NULL, visible = NULL, [17:28:24.990] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:24.990] ...future.rng), started = ...future.startTime, [17:28:24.990] finished = Sys.time(), session_uuid = NA_character_, [17:28:24.990] version = "1.8"), class = "FutureResult") [17:28:24.990] }, finally = { [17:28:24.990] if (!identical(...future.workdir, getwd())) [17:28:24.990] setwd(...future.workdir) [17:28:24.990] { [17:28:24.990] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:24.990] ...future.oldOptions$nwarnings <- NULL [17:28:24.990] } [17:28:24.990] base::options(...future.oldOptions) [17:28:24.990] if (.Platform$OS.type == "windows") { [17:28:24.990] old_names <- names(...future.oldEnvVars) [17:28:24.990] envs <- base::Sys.getenv() [17:28:24.990] names <- names(envs) [17:28:24.990] common <- intersect(names, old_names) [17:28:24.990] added <- setdiff(names, old_names) [17:28:24.990] removed <- setdiff(old_names, names) [17:28:24.990] changed <- common[...future.oldEnvVars[common] != [17:28:24.990] envs[common]] [17:28:24.990] NAMES <- toupper(changed) [17:28:24.990] args <- list() [17:28:24.990] for (kk in seq_along(NAMES)) { [17:28:24.990] name <- changed[[kk]] [17:28:24.990] NAME <- NAMES[[kk]] [17:28:24.990] if (name != NAME && is.element(NAME, old_names)) [17:28:24.990] next [17:28:24.990] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:24.990] } [17:28:24.990] NAMES <- toupper(added) [17:28:24.990] for (kk in seq_along(NAMES)) { [17:28:24.990] name <- added[[kk]] [17:28:24.990] NAME <- NAMES[[kk]] [17:28:24.990] if (name != NAME && is.element(NAME, old_names)) [17:28:24.990] next [17:28:24.990] args[[name]] <- "" [17:28:24.990] } [17:28:24.990] NAMES <- toupper(removed) [17:28:24.990] for (kk in seq_along(NAMES)) { [17:28:24.990] name <- removed[[kk]] [17:28:24.990] NAME <- NAMES[[kk]] [17:28:24.990] if (name != NAME && is.element(NAME, old_names)) [17:28:24.990] next [17:28:24.990] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:24.990] } [17:28:24.990] if (length(args) > 0) [17:28:24.990] base::do.call(base::Sys.setenv, args = args) [17:28:24.990] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:24.990] } [17:28:24.990] else { [17:28:24.990] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:24.990] } [17:28:24.990] { [17:28:24.990] if (base::length(...future.futureOptionsAdded) > [17:28:24.990] 0L) { [17:28:24.990] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:24.990] base::names(opts) <- ...future.futureOptionsAdded [17:28:24.990] base::options(opts) [17:28:24.990] } [17:28:24.990] { [17:28:24.990] { [17:28:24.990] base::options(mc.cores = ...future.mc.cores.old) [17:28:24.990] NULL [17:28:24.990] } [17:28:24.990] options(future.plan = function (..., workers = 2L, [17:28:24.990] envir = parent.frame()) [17:28:24.990] strategy(..., workers = workers, envir = envir)) [17:28:24.990] if (is.na(NA_character_)) [17:28:24.990] Sys.unsetenv("R_FUTURE_PLAN") [17:28:24.990] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:24.990] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:24.990] .init = FALSE) [17:28:24.990] } [17:28:24.990] } [17:28:24.990] } [17:28:24.990] }) [17:28:24.990] if (TRUE) { [17:28:24.990] base::sink(type = "output", split = FALSE) [17:28:24.990] if (TRUE) { [17:28:24.990] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:24.990] } [17:28:24.990] else { [17:28:24.990] ...future.result["stdout"] <- base::list(NULL) [17:28:24.990] } [17:28:24.990] base::close(...future.stdout) [17:28:24.990] ...future.stdout <- NULL [17:28:24.990] } [17:28:24.990] ...future.result$conditions <- ...future.conditions [17:28:24.990] ...future.result$finished <- base::Sys.time() [17:28:24.990] ...future.result [17:28:24.990] } [17:28:25.074] MultisessionFuture started [17:28:25.075] result() for ClusterFuture ... [17:28:25.075] receiveMessageFromWorker() for ClusterFuture ... [17:28:25.076] - Validating connection of MultisessionFuture [17:28:25.126] - received message: FutureResult [17:28:25.126] - Received FutureResult [17:28:25.130] - Erased future from FutureRegistry [17:28:25.130] result() for ClusterFuture ... [17:28:25.130] - result already collected: FutureResult [17:28:25.131] result() for ClusterFuture ... done [17:28:25.131] receiveMessageFromWorker() for ClusterFuture ... done [17:28:25.131] result() for ClusterFuture ... done [17:28:25.131] result() for ClusterFuture ... [17:28:25.131] - result already collected: FutureResult [17:28:25.131] result() for ClusterFuture ... done [17:28:25.132] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:28:25.132] 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:28:25.134] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:28:25.134] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:28:25.134] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:28:25.134] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:28:25.135] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:28:25.135] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:28:25.135] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:28:25.135] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:28:25.135] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:28:25.136] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:28:25.136] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:28:25.136] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:28:25.136] Environment variable 'R_FUTURE_PLAN' not set [17:28:25.137] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:28:25.137] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:28:25.137] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:28:25.137] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:28:25.137] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:28:25.138] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:28:25.138] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:28:25.138] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:28:25.138] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:28:25.138] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:28:25.139] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:28:25.139] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:28:25.139] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:28:25.139] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:28:25.139] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:28:25.140] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:28:25.140] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:28:25.140] Environment variable 'R_FUTURE_JOURNAL' not set [17:28:25.140] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set Warning: future: Ignoring invalid number of processes specified in command-line option: -p 0 [17:28:25.141] R process uuid: 173f7e4a-5010-757c-259e-f08c10a652fa [17:28:25.141] Setting plan('default') [17:28:25.141] plan(): Setting new future strategy stack: [17:28:25.142] List of future strategies: [17:28:25.142] 1. sequential: [17:28:25.142] - args: function (..., envir = parent.frame(), workers = "") [17:28:25.142] - tweaked: FALSE [17:28:25.142] - call: NULL [17:28:25.143] 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:28:25.143] plan(): Setting new future strategy stack: [17:28:25.144] List of future strategies: [17:28:25.144] 1. sequential: [17:28:25.144] - args: function (..., envir = parent.frame(), workers = "") [17:28:25.144] - tweaked: FALSE [17:28:25.144] - call: NULL [17:28:25.144] 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:28:25.146] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:28:25.146] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:28:25.146] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:28:25.147] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:28:25.147] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:28:25.147] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:28:25.147] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:28:25.148] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:28:25.148] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:28:25.148] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:28:25.148] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:28:25.149] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:28:25.149] Environment variable 'R_FUTURE_PLAN' not set [17:28:25.149] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:28:25.149] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:28:25.149] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:28:25.150] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:28:25.150] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:28:25.150] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:28:25.150] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:28:25.151] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:28:25.151] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:28:25.151] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:28:25.151] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:28:25.151] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:28:25.152] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:28:25.152] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:28:25.152] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:28:25.152] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:28:25.152] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:28:25.153] Environment variable 'R_FUTURE_JOURNAL' not set [17:28:25.153] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set Warning: future: Ignoring invalid number of processes specified in command-line option: -p -1 [17:28:25.154] R process uuid: 173f7e4a-5010-757c-259e-f08c10a652fa [17:28:25.154] Setting plan('default') [17:28:25.154] plan(): Setting new future strategy stack: [17:28:25.154] List of future strategies: [17:28:25.154] 1. sequential: [17:28:25.154] - args: function (..., envir = parent.frame(), workers = "") [17:28:25.154] - tweaked: FALSE [17:28:25.154] - call: NULL [17:28:25.155] 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:28:25.156] plan(): Setting new future strategy stack: [17:28:25.156] List of future strategies: [17:28:25.156] 1. sequential: [17:28:25.156] - args: function (..., envir = parent.frame(), workers = "") [17:28:25.156] - tweaked: FALSE [17:28:25.156] - call: NULL [17:28:25.157] 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:28:25.158] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:28:25.159] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:28:25.159] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:28:25.159] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:28:25.159] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:28:25.159] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:28:25.160] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:28:25.160] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:28:25.160] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:28:25.160] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:28:25.161] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:28:25.161] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:28:25.161] Environment variable 'R_FUTURE_PLAN' not set [17:28:25.161] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:28:25.161] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:28:25.162] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:28:25.162] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:28:25.162] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:28:25.162] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:28:25.162] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:28:25.163] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:28:25.163] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:28:25.163] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:28:25.163] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:28:25.164] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:28:25.164] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:28:25.164] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:28:25.164] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:28:25.164] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:28:25.165] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:28:25.165] Environment variable 'R_FUTURE_JOURNAL' not set [17:28:25.165] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set Warning in parseCmdArgs() : NAs introduced by coercion Warning: future: Ignoring invalid number of processes specified in command-line option: -p foo [17:28:25.166] R process uuid: 173f7e4a-5010-757c-259e-f08c10a652fa [17:28:25.166] Setting plan('default') [17:28:25.166] plan(): Setting new future strategy stack: [17:28:25.167] List of future strategies: [17:28:25.167] 1. sequential: [17:28:25.167] - args: function (..., envir = parent.frame(), workers = "") [17:28:25.167] - tweaked: FALSE [17:28:25.167] - call: NULL [17:28:25.167] 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:28:25.168] plan(): Setting new future strategy stack: [17:28:25.168] List of future strategies: [17:28:25.168] 1. sequential: [17:28:25.168] - args: function (..., envir = parent.frame(), workers = "") [17:28:25.168] - tweaked: FALSE [17:28:25.168] - call: NULL [17:28:25.169] 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:28:25.171] Future-specific environment variables: - R_FUTURE_PLAN='multisession' - R_FUTURE_WAIT_INTERVAL='0.01' [17:28:25.171] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:28:25.171] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:28:25.171] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:28:25.172] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:28:25.172] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:28:25.172] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:28:25.172] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:28:25.172] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:28:25.173] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:28:25.173] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:28:25.173] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:28:25.173] R_FUTURE_PLAN='multisession' [17:28:25.174] => options("future.plan" = 'multisession') [n=1, mode=character] [17:28:25.174] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:28:25.174] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:28:25.174] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:28:25.175] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:28:25.175] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:28:25.175] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:28:25.175] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:28:25.176] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:28:25.176] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:28:25.176] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:28:25.176] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:28:25.176] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:28:25.177] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:28:25.177] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:28:25.177] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:28:25.177] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:28:25.178] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:28:25.178] Environment variable 'R_FUTURE_JOURNAL' not set [17:28:25.178] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:28:25.178] Option 'future.plan' = 'multisession' [17:28:25.178] R process uuid: 173f7e4a-5010-757c-259e-f08c10a652fa [17:28:25.179] Setting plan('default') [17:28:25.179] plan(): Setting new future strategy stack: [17:28:25.179] List of future strategies: [17:28:25.179] 1. multisession: [17:28:25.179] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:25.179] - tweaked: FALSE [17:28:25.179] - call: plan("default", .init = FALSE) [17:28:25.182] 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:28:25.183] plan(): Setting new future strategy stack: [17:28:25.183] List of future strategies: [17:28:25.183] 1. multisession: [17:28:25.183] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:25.183] - tweaked: FALSE [17:28:25.183] - call: plan("default") [17:28:25.183] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:28:25.184] multisession: [17:28:25.184] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:25.184] - tweaked: FALSE [17:28:25.184] - call: plan("default") [17:28:25.186] getGlobalsAndPackages() ... [17:28:25.187] Not searching for globals [17:28:25.187] - globals: [0] [17:28:25.187] getGlobalsAndPackages() ... DONE [17:28:25.188] [local output] makeClusterPSOCK() ... [17:28:25.192] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:28:25.195] [local output] Base port: 31004 [17:28:25.195] [local output] Getting setup options for 2 cluster nodes ... [17:28:25.195] [local output] - Node 1 of 2 ... [17:28:25.196] [local output] localMachine=TRUE => revtunnel=FALSE [17:28:25.197] [local output] Rscript port: 31004 [17:28:25.198] [local output] - Node 2 of 2 ... [17:28:25.198] [local output] localMachine=TRUE => revtunnel=FALSE [17:28:25.199] [local output] Rscript port: 31004 [17:28:25.200] [local output] Getting setup options for 2 cluster nodes ... done [17:28:25.200] [local output] - Parallel setup requested for some PSOCK nodes [17:28:25.200] [local output] Setting up PSOCK nodes in parallel [17:28:25.201] List of 36 [17:28:25.201] $ worker : chr "localhost" [17:28:25.201] ..- attr(*, "localhost")= logi TRUE [17:28:25.201] $ master : chr "localhost" [17:28:25.201] $ port : int 31004 [17:28:25.201] $ connectTimeout : num 120 [17:28:25.201] $ timeout : num 120 [17:28:25.201] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:28:25.201] $ homogeneous : logi TRUE [17:28:25.201] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=startup.R:42284:CRANWIN3:CRAN\" "| __truncated__ [17:28:25.201] $ rscript_envs : NULL [17:28:25.201] $ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:28:25.201] $ rscript_startup : NULL [17:28:25.201] $ rscript_sh : chr "cmd" [17:28:25.201] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:28:25.201] $ methods : logi TRUE [17:28:25.201] $ socketOptions : chr "no-delay" [17:28:25.201] $ useXDR : logi FALSE [17:28:25.201] $ outfile : chr "/dev/null" [17:28:25.201] $ renice : int NA [17:28:25.201] $ rshcmd : NULL [17:28:25.201] $ user : chr(0) [17:28:25.201] $ revtunnel : logi FALSE [17:28:25.201] $ rshlogfile : NULL [17:28:25.201] $ rshopts : chr(0) [17:28:25.201] $ rank : int 1 [17:28:25.201] $ manual : logi FALSE [17:28:25.201] $ dryrun : logi FALSE [17:28:25.201] $ quiet : logi FALSE [17:28:25.201] $ setup_strategy : chr "parallel" [17:28:25.201] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:28:25.201] $ pidfile : chr "D:/temp/RtmpG4ZQEV/worker.rank=1.parallelly.parent=42284.a52c468a2b12.pid" [17:28:25.201] $ rshcmd_label : NULL [17:28:25.201] $ rsh_call : NULL [17:28:25.201] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:28:25.201] $ localMachine : logi TRUE [17:28:25.201] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:28:25.201] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:28:25.201] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:28:25.201] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:28:25.201] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:28:25.201] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:28:25.201] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:28:25.201] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:28:25.201] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:28:25.201] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:28:25.201] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:28:25.201] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:28:25.201] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:28:25.201] $ arguments :List of 28 [17:28:25.201] ..$ worker : chr "localhost" [17:28:25.201] ..$ master : NULL [17:28:25.201] ..$ port : int 31004 [17:28:25.201] ..$ connectTimeout : num 120 [17:28:25.201] ..$ timeout : num 120 [17:28:25.201] ..$ rscript : NULL [17:28:25.201] ..$ homogeneous : NULL [17:28:25.201] ..$ rscript_args : NULL [17:28:25.201] ..$ rscript_envs : NULL [17:28:25.201] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:28:25.201] ..$ rscript_startup : NULL [17:28:25.201] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:28:25.201] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:28:25.201] ..$ methods : logi TRUE [17:28:25.201] ..$ socketOptions : chr "no-delay" [17:28:25.201] ..$ useXDR : logi FALSE [17:28:25.201] ..$ outfile : chr "/dev/null" [17:28:25.201] ..$ renice : int NA [17:28:25.201] ..$ rshcmd : NULL [17:28:25.201] ..$ user : NULL [17:28:25.201] ..$ revtunnel : logi NA [17:28:25.201] ..$ rshlogfile : NULL [17:28:25.201] ..$ rshopts : NULL [17:28:25.201] ..$ rank : int 1 [17:28:25.201] ..$ manual : logi FALSE [17:28:25.201] ..$ dryrun : logi FALSE [17:28:25.201] ..$ quiet : logi FALSE [17:28:25.201] ..$ setup_strategy : chr "parallel" [17:28:25.201] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:28:25.221] [local output] System call to launch all workers: [17:28:25.222] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=startup.R:42284:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpG4ZQEV/worker.rank=1.parallelly.parent=42284.a52c468a2b12.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=31004 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:28:25.222] [local output] Starting PSOCK main server [17:28:25.228] [local output] Workers launched [17:28:25.228] [local output] Waiting for workers to connect back [17:28:25.228] - [local output] 0 workers out of 2 ready [17:28:25.388] - [local output] 0 workers out of 2 ready [17:28:25.389] - [local output] 1 workers out of 2 ready [17:28:25.420] - [local output] 1 workers out of 2 ready [17:28:25.420] - [local output] 2 workers out of 2 ready [17:28:25.420] [local output] Launching of workers completed [17:28:25.420] [local output] Collecting session information from workers [17:28:25.422] [local output] - Worker #1 of 2 [17:28:25.422] [local output] - Worker #2 of 2 [17:28:25.423] [local output] makeClusterPSOCK() ... done [17:28:25.435] Packages needed by the future expression (n = 0): [17:28:25.435] Packages needed by future strategies (n = 0): [17:28:25.436] { [17:28:25.436] { [17:28:25.436] { [17:28:25.436] ...future.startTime <- base::Sys.time() [17:28:25.436] { [17:28:25.436] { [17:28:25.436] { [17:28:25.436] { [17:28:25.436] base::local({ [17:28:25.436] has_future <- base::requireNamespace("future", [17:28:25.436] quietly = TRUE) [17:28:25.436] if (has_future) { [17:28:25.436] ns <- base::getNamespace("future") [17:28:25.436] version <- ns[[".package"]][["version"]] [17:28:25.436] if (is.null(version)) [17:28:25.436] version <- utils::packageVersion("future") [17:28:25.436] } [17:28:25.436] else { [17:28:25.436] version <- NULL [17:28:25.436] } [17:28:25.436] if (!has_future || version < "1.8.0") { [17:28:25.436] info <- base::c(r_version = base::gsub("R version ", [17:28:25.436] "", base::R.version$version.string), [17:28:25.436] platform = base::sprintf("%s (%s-bit)", [17:28:25.436] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:25.436] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:25.436] "release", "version")], collapse = " "), [17:28:25.436] hostname = base::Sys.info()[["nodename"]]) [17:28:25.436] info <- base::sprintf("%s: %s", base::names(info), [17:28:25.436] info) [17:28:25.436] info <- base::paste(info, collapse = "; ") [17:28:25.436] if (!has_future) { [17:28:25.436] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:25.436] info) [17:28:25.436] } [17:28:25.436] else { [17:28:25.436] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:25.436] info, version) [17:28:25.436] } [17:28:25.436] base::stop(msg) [17:28:25.436] } [17:28:25.436] }) [17:28:25.436] } [17:28:25.436] ...future.mc.cores.old <- base::getOption("mc.cores") [17:28:25.436] base::options(mc.cores = 1L) [17:28:25.436] } [17:28:25.436] ...future.strategy.old <- future::plan("list") [17:28:25.436] options(future.plan = NULL) [17:28:25.436] Sys.unsetenv("R_FUTURE_PLAN") [17:28:25.436] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:25.436] } [17:28:25.436] ...future.workdir <- getwd() [17:28:25.436] } [17:28:25.436] ...future.oldOptions <- base::as.list(base::.Options) [17:28:25.436] ...future.oldEnvVars <- base::Sys.getenv() [17:28:25.436] } [17:28:25.436] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:25.436] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:25.436] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:25.436] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:25.436] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:25.436] future.stdout.windows.reencode = NULL, width = 80L) [17:28:25.436] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:25.436] base::names(...future.oldOptions)) [17:28:25.436] } [17:28:25.436] if (FALSE) { [17:28:25.436] } [17:28:25.436] else { [17:28:25.436] if (TRUE) { [17:28:25.436] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:25.436] open = "w") [17:28:25.436] } [17:28:25.436] else { [17:28:25.436] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:25.436] windows = "NUL", "/dev/null"), open = "w") [17:28:25.436] } [17:28:25.436] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:25.436] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:25.436] base::sink(type = "output", split = FALSE) [17:28:25.436] base::close(...future.stdout) [17:28:25.436] }, add = TRUE) [17:28:25.436] } [17:28:25.436] ...future.frame <- base::sys.nframe() [17:28:25.436] ...future.conditions <- base::list() [17:28:25.436] ...future.rng <- base::globalenv()$.Random.seed [17:28:25.436] if (FALSE) { [17:28:25.436] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:25.436] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:25.436] } [17:28:25.436] ...future.result <- base::tryCatch({ [17:28:25.436] base::withCallingHandlers({ [17:28:25.436] ...future.value <- base::withVisible(base::local({ [17:28:25.436] ...future.makeSendCondition <- base::local({ [17:28:25.436] sendCondition <- NULL [17:28:25.436] function(frame = 1L) { [17:28:25.436] if (is.function(sendCondition)) [17:28:25.436] return(sendCondition) [17:28:25.436] ns <- getNamespace("parallel") [17:28:25.436] if (exists("sendData", mode = "function", [17:28:25.436] envir = ns)) { [17:28:25.436] parallel_sendData <- get("sendData", mode = "function", [17:28:25.436] envir = ns) [17:28:25.436] envir <- sys.frame(frame) [17:28:25.436] master <- NULL [17:28:25.436] while (!identical(envir, .GlobalEnv) && [17:28:25.436] !identical(envir, emptyenv())) { [17:28:25.436] if (exists("master", mode = "list", envir = envir, [17:28:25.436] inherits = FALSE)) { [17:28:25.436] master <- get("master", mode = "list", [17:28:25.436] envir = envir, inherits = FALSE) [17:28:25.436] if (inherits(master, c("SOCKnode", [17:28:25.436] "SOCK0node"))) { [17:28:25.436] sendCondition <<- function(cond) { [17:28:25.436] data <- list(type = "VALUE", value = cond, [17:28:25.436] success = TRUE) [17:28:25.436] parallel_sendData(master, data) [17:28:25.436] } [17:28:25.436] return(sendCondition) [17:28:25.436] } [17:28:25.436] } [17:28:25.436] frame <- frame + 1L [17:28:25.436] envir <- sys.frame(frame) [17:28:25.436] } [17:28:25.436] } [17:28:25.436] sendCondition <<- function(cond) NULL [17:28:25.436] } [17:28:25.436] }) [17:28:25.436] withCallingHandlers({ [17:28:25.436] NA [17:28:25.436] }, immediateCondition = function(cond) { [17:28:25.436] sendCondition <- ...future.makeSendCondition() [17:28:25.436] sendCondition(cond) [17:28:25.436] muffleCondition <- function (cond, pattern = "^muffle") [17:28:25.436] { [17:28:25.436] inherits <- base::inherits [17:28:25.436] invokeRestart <- base::invokeRestart [17:28:25.436] is.null <- base::is.null [17:28:25.436] muffled <- FALSE [17:28:25.436] if (inherits(cond, "message")) { [17:28:25.436] muffled <- grepl(pattern, "muffleMessage") [17:28:25.436] if (muffled) [17:28:25.436] invokeRestart("muffleMessage") [17:28:25.436] } [17:28:25.436] else if (inherits(cond, "warning")) { [17:28:25.436] muffled <- grepl(pattern, "muffleWarning") [17:28:25.436] if (muffled) [17:28:25.436] invokeRestart("muffleWarning") [17:28:25.436] } [17:28:25.436] else if (inherits(cond, "condition")) { [17:28:25.436] if (!is.null(pattern)) { [17:28:25.436] computeRestarts <- base::computeRestarts [17:28:25.436] grepl <- base::grepl [17:28:25.436] restarts <- computeRestarts(cond) [17:28:25.436] for (restart in restarts) { [17:28:25.436] name <- restart$name [17:28:25.436] if (is.null(name)) [17:28:25.436] next [17:28:25.436] if (!grepl(pattern, name)) [17:28:25.436] next [17:28:25.436] invokeRestart(restart) [17:28:25.436] muffled <- TRUE [17:28:25.436] break [17:28:25.436] } [17:28:25.436] } [17:28:25.436] } [17:28:25.436] invisible(muffled) [17:28:25.436] } [17:28:25.436] muffleCondition(cond) [17:28:25.436] }) [17:28:25.436] })) [17:28:25.436] future::FutureResult(value = ...future.value$value, [17:28:25.436] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:25.436] ...future.rng), globalenv = if (FALSE) [17:28:25.436] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:25.436] ...future.globalenv.names)) [17:28:25.436] else NULL, started = ...future.startTime, version = "1.8") [17:28:25.436] }, condition = base::local({ [17:28:25.436] c <- base::c [17:28:25.436] inherits <- base::inherits [17:28:25.436] invokeRestart <- base::invokeRestart [17:28:25.436] length <- base::length [17:28:25.436] list <- base::list [17:28:25.436] seq.int <- base::seq.int [17:28:25.436] signalCondition <- base::signalCondition [17:28:25.436] sys.calls <- base::sys.calls [17:28:25.436] `[[` <- base::`[[` [17:28:25.436] `+` <- base::`+` [17:28:25.436] `<<-` <- base::`<<-` [17:28:25.436] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:25.436] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:25.436] 3L)] [17:28:25.436] } [17:28:25.436] function(cond) { [17:28:25.436] is_error <- inherits(cond, "error") [17:28:25.436] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:25.436] NULL) [17:28:25.436] if (is_error) { [17:28:25.436] sessionInformation <- function() { [17:28:25.436] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:25.436] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:25.436] search = base::search(), system = base::Sys.info()) [17:28:25.436] } [17:28:25.436] ...future.conditions[[length(...future.conditions) + [17:28:25.436] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:25.436] cond$call), session = sessionInformation(), [17:28:25.436] timestamp = base::Sys.time(), signaled = 0L) [17:28:25.436] signalCondition(cond) [17:28:25.436] } [17:28:25.436] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:25.436] "immediateCondition"))) { [17:28:25.436] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:25.436] ...future.conditions[[length(...future.conditions) + [17:28:25.436] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:25.436] if (TRUE && !signal) { [17:28:25.436] muffleCondition <- function (cond, pattern = "^muffle") [17:28:25.436] { [17:28:25.436] inherits <- base::inherits [17:28:25.436] invokeRestart <- base::invokeRestart [17:28:25.436] is.null <- base::is.null [17:28:25.436] muffled <- FALSE [17:28:25.436] if (inherits(cond, "message")) { [17:28:25.436] muffled <- grepl(pattern, "muffleMessage") [17:28:25.436] if (muffled) [17:28:25.436] invokeRestart("muffleMessage") [17:28:25.436] } [17:28:25.436] else if (inherits(cond, "warning")) { [17:28:25.436] muffled <- grepl(pattern, "muffleWarning") [17:28:25.436] if (muffled) [17:28:25.436] invokeRestart("muffleWarning") [17:28:25.436] } [17:28:25.436] else if (inherits(cond, "condition")) { [17:28:25.436] if (!is.null(pattern)) { [17:28:25.436] computeRestarts <- base::computeRestarts [17:28:25.436] grepl <- base::grepl [17:28:25.436] restarts <- computeRestarts(cond) [17:28:25.436] for (restart in restarts) { [17:28:25.436] name <- restart$name [17:28:25.436] if (is.null(name)) [17:28:25.436] next [17:28:25.436] if (!grepl(pattern, name)) [17:28:25.436] next [17:28:25.436] invokeRestart(restart) [17:28:25.436] muffled <- TRUE [17:28:25.436] break [17:28:25.436] } [17:28:25.436] } [17:28:25.436] } [17:28:25.436] invisible(muffled) [17:28:25.436] } [17:28:25.436] muffleCondition(cond, pattern = "^muffle") [17:28:25.436] } [17:28:25.436] } [17:28:25.436] else { [17:28:25.436] if (TRUE) { [17:28:25.436] muffleCondition <- function (cond, pattern = "^muffle") [17:28:25.436] { [17:28:25.436] inherits <- base::inherits [17:28:25.436] invokeRestart <- base::invokeRestart [17:28:25.436] is.null <- base::is.null [17:28:25.436] muffled <- FALSE [17:28:25.436] if (inherits(cond, "message")) { [17:28:25.436] muffled <- grepl(pattern, "muffleMessage") [17:28:25.436] if (muffled) [17:28:25.436] invokeRestart("muffleMessage") [17:28:25.436] } [17:28:25.436] else if (inherits(cond, "warning")) { [17:28:25.436] muffled <- grepl(pattern, "muffleWarning") [17:28:25.436] if (muffled) [17:28:25.436] invokeRestart("muffleWarning") [17:28:25.436] } [17:28:25.436] else if (inherits(cond, "condition")) { [17:28:25.436] if (!is.null(pattern)) { [17:28:25.436] computeRestarts <- base::computeRestarts [17:28:25.436] grepl <- base::grepl [17:28:25.436] restarts <- computeRestarts(cond) [17:28:25.436] for (restart in restarts) { [17:28:25.436] name <- restart$name [17:28:25.436] if (is.null(name)) [17:28:25.436] next [17:28:25.436] if (!grepl(pattern, name)) [17:28:25.436] next [17:28:25.436] invokeRestart(restart) [17:28:25.436] muffled <- TRUE [17:28:25.436] break [17:28:25.436] } [17:28:25.436] } [17:28:25.436] } [17:28:25.436] invisible(muffled) [17:28:25.436] } [17:28:25.436] muffleCondition(cond, pattern = "^muffle") [17:28:25.436] } [17:28:25.436] } [17:28:25.436] } [17:28:25.436] })) [17:28:25.436] }, error = function(ex) { [17:28:25.436] base::structure(base::list(value = NULL, visible = NULL, [17:28:25.436] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:25.436] ...future.rng), started = ...future.startTime, [17:28:25.436] finished = Sys.time(), session_uuid = NA_character_, [17:28:25.436] version = "1.8"), class = "FutureResult") [17:28:25.436] }, finally = { [17:28:25.436] if (!identical(...future.workdir, getwd())) [17:28:25.436] setwd(...future.workdir) [17:28:25.436] { [17:28:25.436] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:25.436] ...future.oldOptions$nwarnings <- NULL [17:28:25.436] } [17:28:25.436] base::options(...future.oldOptions) [17:28:25.436] if (.Platform$OS.type == "windows") { [17:28:25.436] old_names <- names(...future.oldEnvVars) [17:28:25.436] envs <- base::Sys.getenv() [17:28:25.436] names <- names(envs) [17:28:25.436] common <- intersect(names, old_names) [17:28:25.436] added <- setdiff(names, old_names) [17:28:25.436] removed <- setdiff(old_names, names) [17:28:25.436] changed <- common[...future.oldEnvVars[common] != [17:28:25.436] envs[common]] [17:28:25.436] NAMES <- toupper(changed) [17:28:25.436] args <- list() [17:28:25.436] for (kk in seq_along(NAMES)) { [17:28:25.436] name <- changed[[kk]] [17:28:25.436] NAME <- NAMES[[kk]] [17:28:25.436] if (name != NAME && is.element(NAME, old_names)) [17:28:25.436] next [17:28:25.436] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:25.436] } [17:28:25.436] NAMES <- toupper(added) [17:28:25.436] for (kk in seq_along(NAMES)) { [17:28:25.436] name <- added[[kk]] [17:28:25.436] NAME <- NAMES[[kk]] [17:28:25.436] if (name != NAME && is.element(NAME, old_names)) [17:28:25.436] next [17:28:25.436] args[[name]] <- "" [17:28:25.436] } [17:28:25.436] NAMES <- toupper(removed) [17:28:25.436] for (kk in seq_along(NAMES)) { [17:28:25.436] name <- removed[[kk]] [17:28:25.436] NAME <- NAMES[[kk]] [17:28:25.436] if (name != NAME && is.element(NAME, old_names)) [17:28:25.436] next [17:28:25.436] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:25.436] } [17:28:25.436] if (length(args) > 0) [17:28:25.436] base::do.call(base::Sys.setenv, args = args) [17:28:25.436] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:25.436] } [17:28:25.436] else { [17:28:25.436] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:25.436] } [17:28:25.436] { [17:28:25.436] if (base::length(...future.futureOptionsAdded) > [17:28:25.436] 0L) { [17:28:25.436] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:25.436] base::names(opts) <- ...future.futureOptionsAdded [17:28:25.436] base::options(opts) [17:28:25.436] } [17:28:25.436] { [17:28:25.436] { [17:28:25.436] base::options(mc.cores = ...future.mc.cores.old) [17:28:25.436] NULL [17:28:25.436] } [17:28:25.436] options(future.plan = "multisession") [17:28:25.436] if (is.na("multisession")) [17:28:25.436] Sys.unsetenv("R_FUTURE_PLAN") [17:28:25.436] else Sys.setenv(R_FUTURE_PLAN = "multisession") [17:28:25.436] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:25.436] .init = FALSE) [17:28:25.436] } [17:28:25.436] } [17:28:25.436] } [17:28:25.436] }) [17:28:25.436] if (TRUE) { [17:28:25.436] base::sink(type = "output", split = FALSE) [17:28:25.436] if (TRUE) { [17:28:25.436] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:25.436] } [17:28:25.436] else { [17:28:25.436] ...future.result["stdout"] <- base::list(NULL) [17:28:25.436] } [17:28:25.436] base::close(...future.stdout) [17:28:25.436] ...future.stdout <- NULL [17:28:25.436] } [17:28:25.436] ...future.result$conditions <- ...future.conditions [17:28:25.436] ...future.result$finished <- base::Sys.time() [17:28:25.436] ...future.result [17:28:25.436] } [17:28:25.526] MultisessionFuture started [17:28:25.526] result() for ClusterFuture ... [17:28:25.526] receiveMessageFromWorker() for ClusterFuture ... [17:28:25.526] - Validating connection of MultisessionFuture [17:28:25.580] - received message: FutureResult [17:28:25.581] - Received FutureResult [17:28:25.581] - Erased future from FutureRegistry [17:28:25.581] result() for ClusterFuture ... [17:28:25.581] - result already collected: FutureResult [17:28:25.581] result() for ClusterFuture ... done [17:28:25.581] receiveMessageFromWorker() for ClusterFuture ... done [17:28:25.582] result() for ClusterFuture ... done [17:28:25.582] result() for ClusterFuture ... [17:28:25.582] - result already collected: FutureResult [17:28:25.582] result() for ClusterFuture ... done [17:28:25.582] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:28:25.585] 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:28:25.586] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:28:25.586] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:28:25.587] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:28:25.587] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:28:25.587] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:28:25.587] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:28:25.587] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:28:25.588] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:28:25.588] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:28:25.588] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:28:25.588] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:28:25.588] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:28:25.589] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:28:25.589] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:28:25.589] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:28:25.589] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:28:25.589] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:28:25.590] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:28:25.590] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:28:25.590] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:28:25.590] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:28:25.590] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:28:25.591] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:28:25.591] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:28:25.591] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:28:25.591] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:28:25.591] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:28:25.591] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:28:25.592] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:28:25.592] Environment variable 'R_FUTURE_JOURNAL' not set [17:28:25.592] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:28:25.592] Option 'future.plan' = 'multisession' [17:28:25.592] R process uuid: 173f7e4a-5010-757c-259e-f08c10a652fa [17:28:25.593] Setting plan('default') [17:28:25.593] plan(): Setting new future strategy stack: [17:28:25.593] List of future strategies: [17:28:25.593] 1. multisession: [17:28:25.593] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:25.593] - tweaked: FALSE [17:28:25.593] - call: plan("default", .init = FALSE) [17:28:25.596] 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:28:25.596] plan(): Setting new future strategy stack: [17:28:25.597] List of future strategies: [17:28:25.597] 1. multisession: [17:28:25.597] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:25.597] - tweaked: FALSE [17:28:25.597] - call: plan("default") [17:28:25.597] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:28:25.597] multisession: [17:28:25.597] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:25.597] - tweaked: FALSE [17:28:25.597] - call: plan("default") [17:28:25.600] getGlobalsAndPackages() ... [17:28:25.600] Not searching for globals [17:28:25.600] - globals: [0] [17:28:25.600] getGlobalsAndPackages() ... DONE [17:28:25.601] [local output] makeClusterPSOCK() ... [17:28:25.603] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:28:25.606] [local output] Base port: 22721 [17:28:25.606] [local output] Getting setup options for 2 cluster nodes ... [17:28:25.606] [local output] - Node 1 of 2 ... [17:28:25.607] [local output] localMachine=TRUE => revtunnel=FALSE [17:28:25.608] [local output] Rscript port: 22721 [17:28:25.608] [local output] - Node 2 of 2 ... [17:28:25.609] [local output] localMachine=TRUE => revtunnel=FALSE [17:28:25.610] [local output] Rscript port: 22721 [17:28:25.611] [local output] Getting setup options for 2 cluster nodes ... done [17:28:25.611] [local output] - Parallel setup requested for some PSOCK nodes [17:28:25.611] [local output] Setting up PSOCK nodes in parallel [17:28:25.611] List of 36 [17:28:25.611] $ worker : chr "localhost" [17:28:25.611] ..- attr(*, "localhost")= logi TRUE [17:28:25.611] $ master : chr "localhost" [17:28:25.611] $ port : int 22721 [17:28:25.611] $ connectTimeout : num 120 [17:28:25.611] $ timeout : num 120 [17:28:25.611] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:28:25.611] $ homogeneous : logi TRUE [17:28:25.611] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=startup.R:42284:CRANWIN3:CRAN\" "| __truncated__ [17:28:25.611] $ rscript_envs : NULL [17:28:25.611] $ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:28:25.611] $ rscript_startup : NULL [17:28:25.611] $ rscript_sh : chr "cmd" [17:28:25.611] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:28:25.611] $ methods : logi TRUE [17:28:25.611] $ socketOptions : chr "no-delay" [17:28:25.611] $ useXDR : logi FALSE [17:28:25.611] $ outfile : chr "/dev/null" [17:28:25.611] $ renice : int NA [17:28:25.611] $ rshcmd : NULL [17:28:25.611] $ user : chr(0) [17:28:25.611] $ revtunnel : logi FALSE [17:28:25.611] $ rshlogfile : NULL [17:28:25.611] $ rshopts : chr(0) [17:28:25.611] $ rank : int 1 [17:28:25.611] $ manual : logi FALSE [17:28:25.611] $ dryrun : logi FALSE [17:28:25.611] $ quiet : logi FALSE [17:28:25.611] $ setup_strategy : chr "parallel" [17:28:25.611] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:28:25.611] $ pidfile : chr "D:/temp/RtmpG4ZQEV/worker.rank=1.parallelly.parent=42284.a52c101e4199.pid" [17:28:25.611] $ rshcmd_label : NULL [17:28:25.611] $ rsh_call : NULL [17:28:25.611] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:28:25.611] $ localMachine : logi TRUE [17:28:25.611] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:28:25.611] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:28:25.611] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:28:25.611] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:28:25.611] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:28:25.611] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:28:25.611] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:28:25.611] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:28:25.611] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:28:25.611] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:28:25.611] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:28:25.611] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:28:25.611] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:28:25.611] $ arguments :List of 28 [17:28:25.611] ..$ worker : chr "localhost" [17:28:25.611] ..$ master : NULL [17:28:25.611] ..$ port : int 22721 [17:28:25.611] ..$ connectTimeout : num 120 [17:28:25.611] ..$ timeout : num 120 [17:28:25.611] ..$ rscript : NULL [17:28:25.611] ..$ homogeneous : NULL [17:28:25.611] ..$ rscript_args : NULL [17:28:25.611] ..$ rscript_envs : NULL [17:28:25.611] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:28:25.611] ..$ rscript_startup : NULL [17:28:25.611] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:28:25.611] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:28:25.611] ..$ methods : logi TRUE [17:28:25.611] ..$ socketOptions : chr "no-delay" [17:28:25.611] ..$ useXDR : logi FALSE [17:28:25.611] ..$ outfile : chr "/dev/null" [17:28:25.611] ..$ renice : int NA [17:28:25.611] ..$ rshcmd : NULL [17:28:25.611] ..$ user : NULL [17:28:25.611] ..$ revtunnel : logi NA [17:28:25.611] ..$ rshlogfile : NULL [17:28:25.611] ..$ rshopts : NULL [17:28:25.611] ..$ rank : int 1 [17:28:25.611] ..$ manual : logi FALSE [17:28:25.611] ..$ dryrun : logi FALSE [17:28:25.611] ..$ quiet : logi FALSE [17:28:25.611] ..$ setup_strategy : chr "parallel" [17:28:25.611] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:28:25.634] [local output] System call to launch all workers: [17:28:25.634] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=startup.R:42284:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpG4ZQEV/worker.rank=1.parallelly.parent=42284.a52c101e4199.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=22721 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:28:25.634] [local output] Starting PSOCK main server [17:28:25.640] [local output] Workers launched [17:28:25.641] [local output] Waiting for workers to connect back [17:28:25.641] - [local output] 0 workers out of 2 ready [17:28:25.797] - [local output] 0 workers out of 2 ready [17:28:25.797] - [local output] 1 workers out of 2 ready [17:28:25.830] - [local output] 1 workers out of 2 ready [17:28:25.831] - [local output] 2 workers out of 2 ready [17:28:25.831] [local output] Launching of workers completed [17:28:25.831] [local output] Collecting session information from workers [17:28:25.832] [local output] - Worker #1 of 2 [17:28:25.833] [local output] - Worker #2 of 2 [17:28:25.833] [local output] makeClusterPSOCK() ... done [17:28:25.845] Packages needed by the future expression (n = 0): [17:28:25.845] Packages needed by future strategies (n = 0): [17:28:25.846] { [17:28:25.846] { [17:28:25.846] { [17:28:25.846] ...future.startTime <- base::Sys.time() [17:28:25.846] { [17:28:25.846] { [17:28:25.846] { [17:28:25.846] { [17:28:25.846] base::local({ [17:28:25.846] has_future <- base::requireNamespace("future", [17:28:25.846] quietly = TRUE) [17:28:25.846] if (has_future) { [17:28:25.846] ns <- base::getNamespace("future") [17:28:25.846] version <- ns[[".package"]][["version"]] [17:28:25.846] if (is.null(version)) [17:28:25.846] version <- utils::packageVersion("future") [17:28:25.846] } [17:28:25.846] else { [17:28:25.846] version <- NULL [17:28:25.846] } [17:28:25.846] if (!has_future || version < "1.8.0") { [17:28:25.846] info <- base::c(r_version = base::gsub("R version ", [17:28:25.846] "", base::R.version$version.string), [17:28:25.846] platform = base::sprintf("%s (%s-bit)", [17:28:25.846] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:25.846] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:25.846] "release", "version")], collapse = " "), [17:28:25.846] hostname = base::Sys.info()[["nodename"]]) [17:28:25.846] info <- base::sprintf("%s: %s", base::names(info), [17:28:25.846] info) [17:28:25.846] info <- base::paste(info, collapse = "; ") [17:28:25.846] if (!has_future) { [17:28:25.846] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:25.846] info) [17:28:25.846] } [17:28:25.846] else { [17:28:25.846] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:25.846] info, version) [17:28:25.846] } [17:28:25.846] base::stop(msg) [17:28:25.846] } [17:28:25.846] }) [17:28:25.846] } [17:28:25.846] ...future.mc.cores.old <- base::getOption("mc.cores") [17:28:25.846] base::options(mc.cores = 1L) [17:28:25.846] } [17:28:25.846] ...future.strategy.old <- future::plan("list") [17:28:25.846] options(future.plan = NULL) [17:28:25.846] Sys.unsetenv("R_FUTURE_PLAN") [17:28:25.846] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:25.846] } [17:28:25.846] ...future.workdir <- getwd() [17:28:25.846] } [17:28:25.846] ...future.oldOptions <- base::as.list(base::.Options) [17:28:25.846] ...future.oldEnvVars <- base::Sys.getenv() [17:28:25.846] } [17:28:25.846] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:25.846] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:25.846] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:25.846] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:25.846] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:25.846] future.stdout.windows.reencode = NULL, width = 80L) [17:28:25.846] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:25.846] base::names(...future.oldOptions)) [17:28:25.846] } [17:28:25.846] if (FALSE) { [17:28:25.846] } [17:28:25.846] else { [17:28:25.846] if (TRUE) { [17:28:25.846] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:25.846] open = "w") [17:28:25.846] } [17:28:25.846] else { [17:28:25.846] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:25.846] windows = "NUL", "/dev/null"), open = "w") [17:28:25.846] } [17:28:25.846] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:25.846] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:25.846] base::sink(type = "output", split = FALSE) [17:28:25.846] base::close(...future.stdout) [17:28:25.846] }, add = TRUE) [17:28:25.846] } [17:28:25.846] ...future.frame <- base::sys.nframe() [17:28:25.846] ...future.conditions <- base::list() [17:28:25.846] ...future.rng <- base::globalenv()$.Random.seed [17:28:25.846] if (FALSE) { [17:28:25.846] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:25.846] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:25.846] } [17:28:25.846] ...future.result <- base::tryCatch({ [17:28:25.846] base::withCallingHandlers({ [17:28:25.846] ...future.value <- base::withVisible(base::local({ [17:28:25.846] ...future.makeSendCondition <- base::local({ [17:28:25.846] sendCondition <- NULL [17:28:25.846] function(frame = 1L) { [17:28:25.846] if (is.function(sendCondition)) [17:28:25.846] return(sendCondition) [17:28:25.846] ns <- getNamespace("parallel") [17:28:25.846] if (exists("sendData", mode = "function", [17:28:25.846] envir = ns)) { [17:28:25.846] parallel_sendData <- get("sendData", mode = "function", [17:28:25.846] envir = ns) [17:28:25.846] envir <- sys.frame(frame) [17:28:25.846] master <- NULL [17:28:25.846] while (!identical(envir, .GlobalEnv) && [17:28:25.846] !identical(envir, emptyenv())) { [17:28:25.846] if (exists("master", mode = "list", envir = envir, [17:28:25.846] inherits = FALSE)) { [17:28:25.846] master <- get("master", mode = "list", [17:28:25.846] envir = envir, inherits = FALSE) [17:28:25.846] if (inherits(master, c("SOCKnode", [17:28:25.846] "SOCK0node"))) { [17:28:25.846] sendCondition <<- function(cond) { [17:28:25.846] data <- list(type = "VALUE", value = cond, [17:28:25.846] success = TRUE) [17:28:25.846] parallel_sendData(master, data) [17:28:25.846] } [17:28:25.846] return(sendCondition) [17:28:25.846] } [17:28:25.846] } [17:28:25.846] frame <- frame + 1L [17:28:25.846] envir <- sys.frame(frame) [17:28:25.846] } [17:28:25.846] } [17:28:25.846] sendCondition <<- function(cond) NULL [17:28:25.846] } [17:28:25.846] }) [17:28:25.846] withCallingHandlers({ [17:28:25.846] NA [17:28:25.846] }, immediateCondition = function(cond) { [17:28:25.846] sendCondition <- ...future.makeSendCondition() [17:28:25.846] sendCondition(cond) [17:28:25.846] muffleCondition <- function (cond, pattern = "^muffle") [17:28:25.846] { [17:28:25.846] inherits <- base::inherits [17:28:25.846] invokeRestart <- base::invokeRestart [17:28:25.846] is.null <- base::is.null [17:28:25.846] muffled <- FALSE [17:28:25.846] if (inherits(cond, "message")) { [17:28:25.846] muffled <- grepl(pattern, "muffleMessage") [17:28:25.846] if (muffled) [17:28:25.846] invokeRestart("muffleMessage") [17:28:25.846] } [17:28:25.846] else if (inherits(cond, "warning")) { [17:28:25.846] muffled <- grepl(pattern, "muffleWarning") [17:28:25.846] if (muffled) [17:28:25.846] invokeRestart("muffleWarning") [17:28:25.846] } [17:28:25.846] else if (inherits(cond, "condition")) { [17:28:25.846] if (!is.null(pattern)) { [17:28:25.846] computeRestarts <- base::computeRestarts [17:28:25.846] grepl <- base::grepl [17:28:25.846] restarts <- computeRestarts(cond) [17:28:25.846] for (restart in restarts) { [17:28:25.846] name <- restart$name [17:28:25.846] if (is.null(name)) [17:28:25.846] next [17:28:25.846] if (!grepl(pattern, name)) [17:28:25.846] next [17:28:25.846] invokeRestart(restart) [17:28:25.846] muffled <- TRUE [17:28:25.846] break [17:28:25.846] } [17:28:25.846] } [17:28:25.846] } [17:28:25.846] invisible(muffled) [17:28:25.846] } [17:28:25.846] muffleCondition(cond) [17:28:25.846] }) [17:28:25.846] })) [17:28:25.846] future::FutureResult(value = ...future.value$value, [17:28:25.846] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:25.846] ...future.rng), globalenv = if (FALSE) [17:28:25.846] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:25.846] ...future.globalenv.names)) [17:28:25.846] else NULL, started = ...future.startTime, version = "1.8") [17:28:25.846] }, condition = base::local({ [17:28:25.846] c <- base::c [17:28:25.846] inherits <- base::inherits [17:28:25.846] invokeRestart <- base::invokeRestart [17:28:25.846] length <- base::length [17:28:25.846] list <- base::list [17:28:25.846] seq.int <- base::seq.int [17:28:25.846] signalCondition <- base::signalCondition [17:28:25.846] sys.calls <- base::sys.calls [17:28:25.846] `[[` <- base::`[[` [17:28:25.846] `+` <- base::`+` [17:28:25.846] `<<-` <- base::`<<-` [17:28:25.846] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:25.846] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:25.846] 3L)] [17:28:25.846] } [17:28:25.846] function(cond) { [17:28:25.846] is_error <- inherits(cond, "error") [17:28:25.846] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:25.846] NULL) [17:28:25.846] if (is_error) { [17:28:25.846] sessionInformation <- function() { [17:28:25.846] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:25.846] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:25.846] search = base::search(), system = base::Sys.info()) [17:28:25.846] } [17:28:25.846] ...future.conditions[[length(...future.conditions) + [17:28:25.846] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:25.846] cond$call), session = sessionInformation(), [17:28:25.846] timestamp = base::Sys.time(), signaled = 0L) [17:28:25.846] signalCondition(cond) [17:28:25.846] } [17:28:25.846] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:25.846] "immediateCondition"))) { [17:28:25.846] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:25.846] ...future.conditions[[length(...future.conditions) + [17:28:25.846] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:25.846] if (TRUE && !signal) { [17:28:25.846] muffleCondition <- function (cond, pattern = "^muffle") [17:28:25.846] { [17:28:25.846] inherits <- base::inherits [17:28:25.846] invokeRestart <- base::invokeRestart [17:28:25.846] is.null <- base::is.null [17:28:25.846] muffled <- FALSE [17:28:25.846] if (inherits(cond, "message")) { [17:28:25.846] muffled <- grepl(pattern, "muffleMessage") [17:28:25.846] if (muffled) [17:28:25.846] invokeRestart("muffleMessage") [17:28:25.846] } [17:28:25.846] else if (inherits(cond, "warning")) { [17:28:25.846] muffled <- grepl(pattern, "muffleWarning") [17:28:25.846] if (muffled) [17:28:25.846] invokeRestart("muffleWarning") [17:28:25.846] } [17:28:25.846] else if (inherits(cond, "condition")) { [17:28:25.846] if (!is.null(pattern)) { [17:28:25.846] computeRestarts <- base::computeRestarts [17:28:25.846] grepl <- base::grepl [17:28:25.846] restarts <- computeRestarts(cond) [17:28:25.846] for (restart in restarts) { [17:28:25.846] name <- restart$name [17:28:25.846] if (is.null(name)) [17:28:25.846] next [17:28:25.846] if (!grepl(pattern, name)) [17:28:25.846] next [17:28:25.846] invokeRestart(restart) [17:28:25.846] muffled <- TRUE [17:28:25.846] break [17:28:25.846] } [17:28:25.846] } [17:28:25.846] } [17:28:25.846] invisible(muffled) [17:28:25.846] } [17:28:25.846] muffleCondition(cond, pattern = "^muffle") [17:28:25.846] } [17:28:25.846] } [17:28:25.846] else { [17:28:25.846] if (TRUE) { [17:28:25.846] muffleCondition <- function (cond, pattern = "^muffle") [17:28:25.846] { [17:28:25.846] inherits <- base::inherits [17:28:25.846] invokeRestart <- base::invokeRestart [17:28:25.846] is.null <- base::is.null [17:28:25.846] muffled <- FALSE [17:28:25.846] if (inherits(cond, "message")) { [17:28:25.846] muffled <- grepl(pattern, "muffleMessage") [17:28:25.846] if (muffled) [17:28:25.846] invokeRestart("muffleMessage") [17:28:25.846] } [17:28:25.846] else if (inherits(cond, "warning")) { [17:28:25.846] muffled <- grepl(pattern, "muffleWarning") [17:28:25.846] if (muffled) [17:28:25.846] invokeRestart("muffleWarning") [17:28:25.846] } [17:28:25.846] else if (inherits(cond, "condition")) { [17:28:25.846] if (!is.null(pattern)) { [17:28:25.846] computeRestarts <- base::computeRestarts [17:28:25.846] grepl <- base::grepl [17:28:25.846] restarts <- computeRestarts(cond) [17:28:25.846] for (restart in restarts) { [17:28:25.846] name <- restart$name [17:28:25.846] if (is.null(name)) [17:28:25.846] next [17:28:25.846] if (!grepl(pattern, name)) [17:28:25.846] next [17:28:25.846] invokeRestart(restart) [17:28:25.846] muffled <- TRUE [17:28:25.846] break [17:28:25.846] } [17:28:25.846] } [17:28:25.846] } [17:28:25.846] invisible(muffled) [17:28:25.846] } [17:28:25.846] muffleCondition(cond, pattern = "^muffle") [17:28:25.846] } [17:28:25.846] } [17:28:25.846] } [17:28:25.846] })) [17:28:25.846] }, error = function(ex) { [17:28:25.846] base::structure(base::list(value = NULL, visible = NULL, [17:28:25.846] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:25.846] ...future.rng), started = ...future.startTime, [17:28:25.846] finished = Sys.time(), session_uuid = NA_character_, [17:28:25.846] version = "1.8"), class = "FutureResult") [17:28:25.846] }, finally = { [17:28:25.846] if (!identical(...future.workdir, getwd())) [17:28:25.846] setwd(...future.workdir) [17:28:25.846] { [17:28:25.846] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:25.846] ...future.oldOptions$nwarnings <- NULL [17:28:25.846] } [17:28:25.846] base::options(...future.oldOptions) [17:28:25.846] if (.Platform$OS.type == "windows") { [17:28:25.846] old_names <- names(...future.oldEnvVars) [17:28:25.846] envs <- base::Sys.getenv() [17:28:25.846] names <- names(envs) [17:28:25.846] common <- intersect(names, old_names) [17:28:25.846] added <- setdiff(names, old_names) [17:28:25.846] removed <- setdiff(old_names, names) [17:28:25.846] changed <- common[...future.oldEnvVars[common] != [17:28:25.846] envs[common]] [17:28:25.846] NAMES <- toupper(changed) [17:28:25.846] args <- list() [17:28:25.846] for (kk in seq_along(NAMES)) { [17:28:25.846] name <- changed[[kk]] [17:28:25.846] NAME <- NAMES[[kk]] [17:28:25.846] if (name != NAME && is.element(NAME, old_names)) [17:28:25.846] next [17:28:25.846] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:25.846] } [17:28:25.846] NAMES <- toupper(added) [17:28:25.846] for (kk in seq_along(NAMES)) { [17:28:25.846] name <- added[[kk]] [17:28:25.846] NAME <- NAMES[[kk]] [17:28:25.846] if (name != NAME && is.element(NAME, old_names)) [17:28:25.846] next [17:28:25.846] args[[name]] <- "" [17:28:25.846] } [17:28:25.846] NAMES <- toupper(removed) [17:28:25.846] for (kk in seq_along(NAMES)) { [17:28:25.846] name <- removed[[kk]] [17:28:25.846] NAME <- NAMES[[kk]] [17:28:25.846] if (name != NAME && is.element(NAME, old_names)) [17:28:25.846] next [17:28:25.846] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:25.846] } [17:28:25.846] if (length(args) > 0) [17:28:25.846] base::do.call(base::Sys.setenv, args = args) [17:28:25.846] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:25.846] } [17:28:25.846] else { [17:28:25.846] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:25.846] } [17:28:25.846] { [17:28:25.846] if (base::length(...future.futureOptionsAdded) > [17:28:25.846] 0L) { [17:28:25.846] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:25.846] base::names(opts) <- ...future.futureOptionsAdded [17:28:25.846] base::options(opts) [17:28:25.846] } [17:28:25.846] { [17:28:25.846] { [17:28:25.846] base::options(mc.cores = ...future.mc.cores.old) [17:28:25.846] NULL [17:28:25.846] } [17:28:25.846] options(future.plan = "multisession") [17:28:25.846] if (is.na(NA_character_)) [17:28:25.846] Sys.unsetenv("R_FUTURE_PLAN") [17:28:25.846] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:25.846] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:25.846] .init = FALSE) [17:28:25.846] } [17:28:25.846] } [17:28:25.846] } [17:28:25.846] }) [17:28:25.846] if (TRUE) { [17:28:25.846] base::sink(type = "output", split = FALSE) [17:28:25.846] if (TRUE) { [17:28:25.846] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:25.846] } [17:28:25.846] else { [17:28:25.846] ...future.result["stdout"] <- base::list(NULL) [17:28:25.846] } [17:28:25.846] base::close(...future.stdout) [17:28:25.846] ...future.stdout <- NULL [17:28:25.846] } [17:28:25.846] ...future.result$conditions <- ...future.conditions [17:28:25.846] ...future.result$finished <- base::Sys.time() [17:28:25.846] ...future.result [17:28:25.846] } [17:28:25.929] MultisessionFuture started [17:28:25.929] result() for ClusterFuture ... [17:28:25.929] receiveMessageFromWorker() for ClusterFuture ... [17:28:25.929] - Validating connection of MultisessionFuture [17:28:25.981] - received message: FutureResult [17:28:25.981] - Received FutureResult [17:28:25.982] - Erased future from FutureRegistry [17:28:25.982] result() for ClusterFuture ... [17:28:25.982] - result already collected: FutureResult [17:28:25.982] result() for ClusterFuture ... done [17:28:25.982] receiveMessageFromWorker() for ClusterFuture ... done [17:28:25.982] result() for ClusterFuture ... done [17:28:25.983] result() for ClusterFuture ... [17:28:25.983] - result already collected: FutureResult [17:28:25.983] result() for ClusterFuture ... done [17:28:25.983] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:28:25.985] 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:28:25.987] Future-specific environment variables: - R_FUTURE_PLAN='multisession' - R_FUTURE_WAIT_INTERVAL='0.01' [17:28:25.987] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:28:25.987] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:28:25.988] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:28:25.988] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:28:25.988] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:28:25.988] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:28:25.988] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:28:25.989] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:28:25.989] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:28:25.989] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:28:25.989] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:28:25.989] R_FUTURE_PLAN='multisession' [17:28:25.990] => options("future.plan" = 'multisession') [n=1, mode=character] [17:28:25.990] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:28:25.990] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:28:25.990] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:28:25.990] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:28:25.990] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:28:25.991] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:28:25.991] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:28:25.991] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:28:25.991] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:28:25.991] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:28:25.992] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:28:25.992] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:28:25.992] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:28:25.992] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:28:25.993] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:28:25.993] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:28:25.993] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:28:25.993] Environment variable 'R_FUTURE_JOURNAL' not set [17:28:25.993] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:28:25.994] Option 'future.plan' = 'multisession' [17:28:25.994] R command-line argument: -p 1 [17:28:25.994] => 'future.plan' already set. [17:28:25.994] R process uuid: 173f7e4a-5010-757c-259e-f08c10a652fa [17:28:25.995] Setting plan('default') [17:28:25.995] plan(): Setting new future strategy stack: [17:28:25.995] List of future strategies: [17:28:25.995] 1. multisession: [17:28:25.995] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:25.995] - tweaked: FALSE [17:28:25.995] - call: plan("default", .init = FALSE) [17:28:25.998] 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:28:25.998] plan(): Setting new future strategy stack: [17:28:25.998] List of future strategies: [17:28:25.998] 1. multisession: [17:28:25.998] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:25.998] - tweaked: FALSE [17:28:25.998] - call: plan("default") [17:28:25.999] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:28:25.999] multisession: [17:28:25.999] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:25.999] - tweaked: FALSE [17:28:25.999] - call: plan("default") [17:28:26.002] getGlobalsAndPackages() ... [17:28:26.002] Not searching for globals [17:28:26.002] - globals: [0] [17:28:26.002] getGlobalsAndPackages() ... DONE [17:28:26.003] Packages needed by the future expression (n = 0): [17:28:26.003] Packages needed by future strategies (n = 0): [17:28:26.004] { [17:28:26.004] { [17:28:26.004] { [17:28:26.004] ...future.startTime <- base::Sys.time() [17:28:26.004] { [17:28:26.004] { [17:28:26.004] { [17:28:26.004] base::local({ [17:28:26.004] has_future <- base::requireNamespace("future", [17:28:26.004] quietly = TRUE) [17:28:26.004] if (has_future) { [17:28:26.004] ns <- base::getNamespace("future") [17:28:26.004] version <- ns[[".package"]][["version"]] [17:28:26.004] if (is.null(version)) [17:28:26.004] version <- utils::packageVersion("future") [17:28:26.004] } [17:28:26.004] else { [17:28:26.004] version <- NULL [17:28:26.004] } [17:28:26.004] if (!has_future || version < "1.8.0") { [17:28:26.004] info <- base::c(r_version = base::gsub("R version ", [17:28:26.004] "", base::R.version$version.string), [17:28:26.004] platform = base::sprintf("%s (%s-bit)", [17:28:26.004] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:26.004] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:26.004] "release", "version")], collapse = " "), [17:28:26.004] hostname = base::Sys.info()[["nodename"]]) [17:28:26.004] info <- base::sprintf("%s: %s", base::names(info), [17:28:26.004] info) [17:28:26.004] info <- base::paste(info, collapse = "; ") [17:28:26.004] if (!has_future) { [17:28:26.004] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:26.004] info) [17:28:26.004] } [17:28:26.004] else { [17:28:26.004] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:26.004] info, version) [17:28:26.004] } [17:28:26.004] base::stop(msg) [17:28:26.004] } [17:28:26.004] }) [17:28:26.004] } [17:28:26.004] ...future.strategy.old <- future::plan("list") [17:28:26.004] options(future.plan = NULL) [17:28:26.004] Sys.unsetenv("R_FUTURE_PLAN") [17:28:26.004] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:26.004] } [17:28:26.004] ...future.workdir <- getwd() [17:28:26.004] } [17:28:26.004] ...future.oldOptions <- base::as.list(base::.Options) [17:28:26.004] ...future.oldEnvVars <- base::Sys.getenv() [17:28:26.004] } [17:28:26.004] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:26.004] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:26.004] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:26.004] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:26.004] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:26.004] future.stdout.windows.reencode = NULL, width = 80L) [17:28:26.004] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:26.004] base::names(...future.oldOptions)) [17:28:26.004] } [17:28:26.004] if (FALSE) { [17:28:26.004] } [17:28:26.004] else { [17:28:26.004] if (TRUE) { [17:28:26.004] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:26.004] open = "w") [17:28:26.004] } [17:28:26.004] else { [17:28:26.004] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:26.004] windows = "NUL", "/dev/null"), open = "w") [17:28:26.004] } [17:28:26.004] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:26.004] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:26.004] base::sink(type = "output", split = FALSE) [17:28:26.004] base::close(...future.stdout) [17:28:26.004] }, add = TRUE) [17:28:26.004] } [17:28:26.004] ...future.frame <- base::sys.nframe() [17:28:26.004] ...future.conditions <- base::list() [17:28:26.004] ...future.rng <- base::globalenv()$.Random.seed [17:28:26.004] if (FALSE) { [17:28:26.004] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:26.004] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:26.004] } [17:28:26.004] ...future.result <- base::tryCatch({ [17:28:26.004] base::withCallingHandlers({ [17:28:26.004] ...future.value <- base::withVisible(base::local(NA)) [17:28:26.004] future::FutureResult(value = ...future.value$value, [17:28:26.004] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:26.004] ...future.rng), globalenv = if (FALSE) [17:28:26.004] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:26.004] ...future.globalenv.names)) [17:28:26.004] else NULL, started = ...future.startTime, version = "1.8") [17:28:26.004] }, condition = base::local({ [17:28:26.004] c <- base::c [17:28:26.004] inherits <- base::inherits [17:28:26.004] invokeRestart <- base::invokeRestart [17:28:26.004] length <- base::length [17:28:26.004] list <- base::list [17:28:26.004] seq.int <- base::seq.int [17:28:26.004] signalCondition <- base::signalCondition [17:28:26.004] sys.calls <- base::sys.calls [17:28:26.004] `[[` <- base::`[[` [17:28:26.004] `+` <- base::`+` [17:28:26.004] `<<-` <- base::`<<-` [17:28:26.004] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:26.004] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:26.004] 3L)] [17:28:26.004] } [17:28:26.004] function(cond) { [17:28:26.004] is_error <- inherits(cond, "error") [17:28:26.004] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:26.004] NULL) [17:28:26.004] if (is_error) { [17:28:26.004] sessionInformation <- function() { [17:28:26.004] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:26.004] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:26.004] search = base::search(), system = base::Sys.info()) [17:28:26.004] } [17:28:26.004] ...future.conditions[[length(...future.conditions) + [17:28:26.004] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:26.004] cond$call), session = sessionInformation(), [17:28:26.004] timestamp = base::Sys.time(), signaled = 0L) [17:28:26.004] signalCondition(cond) [17:28:26.004] } [17:28:26.004] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:26.004] "immediateCondition"))) { [17:28:26.004] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:26.004] ...future.conditions[[length(...future.conditions) + [17:28:26.004] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:26.004] if (TRUE && !signal) { [17:28:26.004] muffleCondition <- function (cond, pattern = "^muffle") [17:28:26.004] { [17:28:26.004] inherits <- base::inherits [17:28:26.004] invokeRestart <- base::invokeRestart [17:28:26.004] is.null <- base::is.null [17:28:26.004] muffled <- FALSE [17:28:26.004] if (inherits(cond, "message")) { [17:28:26.004] muffled <- grepl(pattern, "muffleMessage") [17:28:26.004] if (muffled) [17:28:26.004] invokeRestart("muffleMessage") [17:28:26.004] } [17:28:26.004] else if (inherits(cond, "warning")) { [17:28:26.004] muffled <- grepl(pattern, "muffleWarning") [17:28:26.004] if (muffled) [17:28:26.004] invokeRestart("muffleWarning") [17:28:26.004] } [17:28:26.004] else if (inherits(cond, "condition")) { [17:28:26.004] if (!is.null(pattern)) { [17:28:26.004] computeRestarts <- base::computeRestarts [17:28:26.004] grepl <- base::grepl [17:28:26.004] restarts <- computeRestarts(cond) [17:28:26.004] for (restart in restarts) { [17:28:26.004] name <- restart$name [17:28:26.004] if (is.null(name)) [17:28:26.004] next [17:28:26.004] if (!grepl(pattern, name)) [17:28:26.004] next [17:28:26.004] invokeRestart(restart) [17:28:26.004] muffled <- TRUE [17:28:26.004] break [17:28:26.004] } [17:28:26.004] } [17:28:26.004] } [17:28:26.004] invisible(muffled) [17:28:26.004] } [17:28:26.004] muffleCondition(cond, pattern = "^muffle") [17:28:26.004] } [17:28:26.004] } [17:28:26.004] else { [17:28:26.004] if (TRUE) { [17:28:26.004] muffleCondition <- function (cond, pattern = "^muffle") [17:28:26.004] { [17:28:26.004] inherits <- base::inherits [17:28:26.004] invokeRestart <- base::invokeRestart [17:28:26.004] is.null <- base::is.null [17:28:26.004] muffled <- FALSE [17:28:26.004] if (inherits(cond, "message")) { [17:28:26.004] muffled <- grepl(pattern, "muffleMessage") [17:28:26.004] if (muffled) [17:28:26.004] invokeRestart("muffleMessage") [17:28:26.004] } [17:28:26.004] else if (inherits(cond, "warning")) { [17:28:26.004] muffled <- grepl(pattern, "muffleWarning") [17:28:26.004] if (muffled) [17:28:26.004] invokeRestart("muffleWarning") [17:28:26.004] } [17:28:26.004] else if (inherits(cond, "condition")) { [17:28:26.004] if (!is.null(pattern)) { [17:28:26.004] computeRestarts <- base::computeRestarts [17:28:26.004] grepl <- base::grepl [17:28:26.004] restarts <- computeRestarts(cond) [17:28:26.004] for (restart in restarts) { [17:28:26.004] name <- restart$name [17:28:26.004] if (is.null(name)) [17:28:26.004] next [17:28:26.004] if (!grepl(pattern, name)) [17:28:26.004] next [17:28:26.004] invokeRestart(restart) [17:28:26.004] muffled <- TRUE [17:28:26.004] break [17:28:26.004] } [17:28:26.004] } [17:28:26.004] } [17:28:26.004] invisible(muffled) [17:28:26.004] } [17:28:26.004] muffleCondition(cond, pattern = "^muffle") [17:28:26.004] } [17:28:26.004] } [17:28:26.004] } [17:28:26.004] })) [17:28:26.004] }, error = function(ex) { [17:28:26.004] base::structure(base::list(value = NULL, visible = NULL, [17:28:26.004] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:26.004] ...future.rng), started = ...future.startTime, [17:28:26.004] finished = Sys.time(), session_uuid = NA_character_, [17:28:26.004] version = "1.8"), class = "FutureResult") [17:28:26.004] }, finally = { [17:28:26.004] if (!identical(...future.workdir, getwd())) [17:28:26.004] setwd(...future.workdir) [17:28:26.004] { [17:28:26.004] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:26.004] ...future.oldOptions$nwarnings <- NULL [17:28:26.004] } [17:28:26.004] base::options(...future.oldOptions) [17:28:26.004] if (.Platform$OS.type == "windows") { [17:28:26.004] old_names <- names(...future.oldEnvVars) [17:28:26.004] envs <- base::Sys.getenv() [17:28:26.004] names <- names(envs) [17:28:26.004] common <- intersect(names, old_names) [17:28:26.004] added <- setdiff(names, old_names) [17:28:26.004] removed <- setdiff(old_names, names) [17:28:26.004] changed <- common[...future.oldEnvVars[common] != [17:28:26.004] envs[common]] [17:28:26.004] NAMES <- toupper(changed) [17:28:26.004] args <- list() [17:28:26.004] for (kk in seq_along(NAMES)) { [17:28:26.004] name <- changed[[kk]] [17:28:26.004] NAME <- NAMES[[kk]] [17:28:26.004] if (name != NAME && is.element(NAME, old_names)) [17:28:26.004] next [17:28:26.004] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:26.004] } [17:28:26.004] NAMES <- toupper(added) [17:28:26.004] for (kk in seq_along(NAMES)) { [17:28:26.004] name <- added[[kk]] [17:28:26.004] NAME <- NAMES[[kk]] [17:28:26.004] if (name != NAME && is.element(NAME, old_names)) [17:28:26.004] next [17:28:26.004] args[[name]] <- "" [17:28:26.004] } [17:28:26.004] NAMES <- toupper(removed) [17:28:26.004] for (kk in seq_along(NAMES)) { [17:28:26.004] name <- removed[[kk]] [17:28:26.004] NAME <- NAMES[[kk]] [17:28:26.004] if (name != NAME && is.element(NAME, old_names)) [17:28:26.004] next [17:28:26.004] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:26.004] } [17:28:26.004] if (length(args) > 0) [17:28:26.004] base::do.call(base::Sys.setenv, args = args) [17:28:26.004] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:26.004] } [17:28:26.004] else { [17:28:26.004] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:26.004] } [17:28:26.004] { [17:28:26.004] if (base::length(...future.futureOptionsAdded) > [17:28:26.004] 0L) { [17:28:26.004] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:26.004] base::names(opts) <- ...future.futureOptionsAdded [17:28:26.004] base::options(opts) [17:28:26.004] } [17:28:26.004] { [17:28:26.004] { [17:28:26.004] NULL [17:28:26.004] RNGkind("Mersenne-Twister") [17:28:26.004] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:28:26.004] inherits = FALSE) [17:28:26.004] } [17:28:26.004] options(future.plan = "multisession") [17:28:26.004] if (is.na("multisession")) [17:28:26.004] Sys.unsetenv("R_FUTURE_PLAN") [17:28:26.004] else Sys.setenv(R_FUTURE_PLAN = "multisession") [17:28:26.004] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:26.004] .init = FALSE) [17:28:26.004] } [17:28:26.004] } [17:28:26.004] } [17:28:26.004] }) [17:28:26.004] if (TRUE) { [17:28:26.004] base::sink(type = "output", split = FALSE) [17:28:26.004] if (TRUE) { [17:28:26.004] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:26.004] } [17:28:26.004] else { [17:28:26.004] ...future.result["stdout"] <- base::list(NULL) [17:28:26.004] } [17:28:26.004] base::close(...future.stdout) [17:28:26.004] ...future.stdout <- NULL [17:28:26.004] } [17:28:26.004] ...future.result$conditions <- ...future.conditions [17:28:26.004] ...future.result$finished <- base::Sys.time() [17:28:26.004] ...future.result [17:28:26.004] } [17:28:26.008] plan(): Setting new future strategy stack: [17:28:26.008] List of future strategies: [17:28:26.008] 1. sequential: [17:28:26.008] - args: function (..., envir = parent.frame(), workers = "") [17:28:26.008] - tweaked: FALSE [17:28:26.008] - call: NULL [17:28:26.009] plan(): nbrOfWorkers() = 1 [17:28:26.011] plan(): Setting new future strategy stack: [17:28:26.011] List of future strategies: [17:28:26.011] 1. multisession: [17:28:26.011] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:26.011] - tweaked: FALSE [17:28:26.011] - call: plan("default") [17:28:26.014] plan(): nbrOfWorkers() = 1 [17:28:26.014] SequentialFuture started (and completed) [17:28:26.014] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:28:26.016] 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:28:26.018] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:28:26.018] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:28:26.018] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:28:26.019] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:28:26.019] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:28:26.019] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:28:26.019] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:28:26.019] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:28:26.020] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:28:26.020] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:28:26.020] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:28:26.020] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:28:26.020] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:28:26.020] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:28:26.021] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:28:26.021] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:28:26.021] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:28:26.021] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:28:26.021] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:28:26.022] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:28:26.022] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:28:26.022] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:28:26.022] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:28:26.022] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:28:26.023] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:28:26.023] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:28:26.023] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:28:26.023] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:28:26.023] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:28:26.023] Environment variable 'R_FUTURE_JOURNAL' not set [17:28:26.024] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:28:26.024] Option 'future.plan' = 'multisession' [17:28:26.024] R command-line argument: -p 1 [17:28:26.024] => 'future.plan' already set. [17:28:26.025] R process uuid: 173f7e4a-5010-757c-259e-f08c10a652fa [17:28:26.025] Setting plan('default') [17:28:26.025] plan(): Setting new future strategy stack: [17:28:26.025] List of future strategies: [17:28:26.025] 1. multisession: [17:28:26.025] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:26.025] - tweaked: FALSE [17:28:26.025] - call: plan("default", .init = FALSE) [17:28:26.028] 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:28:26.028] plan(): Setting new future strategy stack: [17:28:26.028] List of future strategies: [17:28:26.028] 1. multisession: [17:28:26.028] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:26.028] - tweaked: FALSE [17:28:26.028] - call: plan("default") [17:28:26.029] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:28:26.029] multisession: [17:28:26.029] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:26.029] - tweaked: FALSE [17:28:26.029] - call: plan("default") [17:28:26.031] getGlobalsAndPackages() ... [17:28:26.032] Not searching for globals [17:28:26.032] - globals: [0] [17:28:26.032] getGlobalsAndPackages() ... DONE [17:28:26.032] Packages needed by the future expression (n = 0): [17:28:26.033] Packages needed by future strategies (n = 0): [17:28:26.033] { [17:28:26.033] { [17:28:26.033] { [17:28:26.033] ...future.startTime <- base::Sys.time() [17:28:26.033] { [17:28:26.033] { [17:28:26.033] { [17:28:26.033] base::local({ [17:28:26.033] has_future <- base::requireNamespace("future", [17:28:26.033] quietly = TRUE) [17:28:26.033] if (has_future) { [17:28:26.033] ns <- base::getNamespace("future") [17:28:26.033] version <- ns[[".package"]][["version"]] [17:28:26.033] if (is.null(version)) [17:28:26.033] version <- utils::packageVersion("future") [17:28:26.033] } [17:28:26.033] else { [17:28:26.033] version <- NULL [17:28:26.033] } [17:28:26.033] if (!has_future || version < "1.8.0") { [17:28:26.033] info <- base::c(r_version = base::gsub("R version ", [17:28:26.033] "", base::R.version$version.string), [17:28:26.033] platform = base::sprintf("%s (%s-bit)", [17:28:26.033] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:26.033] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:26.033] "release", "version")], collapse = " "), [17:28:26.033] hostname = base::Sys.info()[["nodename"]]) [17:28:26.033] info <- base::sprintf("%s: %s", base::names(info), [17:28:26.033] info) [17:28:26.033] info <- base::paste(info, collapse = "; ") [17:28:26.033] if (!has_future) { [17:28:26.033] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:26.033] info) [17:28:26.033] } [17:28:26.033] else { [17:28:26.033] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:26.033] info, version) [17:28:26.033] } [17:28:26.033] base::stop(msg) [17:28:26.033] } [17:28:26.033] }) [17:28:26.033] } [17:28:26.033] ...future.strategy.old <- future::plan("list") [17:28:26.033] options(future.plan = NULL) [17:28:26.033] Sys.unsetenv("R_FUTURE_PLAN") [17:28:26.033] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:26.033] } [17:28:26.033] ...future.workdir <- getwd() [17:28:26.033] } [17:28:26.033] ...future.oldOptions <- base::as.list(base::.Options) [17:28:26.033] ...future.oldEnvVars <- base::Sys.getenv() [17:28:26.033] } [17:28:26.033] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:26.033] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:26.033] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:26.033] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:26.033] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:26.033] future.stdout.windows.reencode = NULL, width = 80L) [17:28:26.033] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:26.033] base::names(...future.oldOptions)) [17:28:26.033] } [17:28:26.033] if (FALSE) { [17:28:26.033] } [17:28:26.033] else { [17:28:26.033] if (TRUE) { [17:28:26.033] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:26.033] open = "w") [17:28:26.033] } [17:28:26.033] else { [17:28:26.033] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:26.033] windows = "NUL", "/dev/null"), open = "w") [17:28:26.033] } [17:28:26.033] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:26.033] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:26.033] base::sink(type = "output", split = FALSE) [17:28:26.033] base::close(...future.stdout) [17:28:26.033] }, add = TRUE) [17:28:26.033] } [17:28:26.033] ...future.frame <- base::sys.nframe() [17:28:26.033] ...future.conditions <- base::list() [17:28:26.033] ...future.rng <- base::globalenv()$.Random.seed [17:28:26.033] if (FALSE) { [17:28:26.033] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:26.033] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:26.033] } [17:28:26.033] ...future.result <- base::tryCatch({ [17:28:26.033] base::withCallingHandlers({ [17:28:26.033] ...future.value <- base::withVisible(base::local(NA)) [17:28:26.033] future::FutureResult(value = ...future.value$value, [17:28:26.033] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:26.033] ...future.rng), globalenv = if (FALSE) [17:28:26.033] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:26.033] ...future.globalenv.names)) [17:28:26.033] else NULL, started = ...future.startTime, version = "1.8") [17:28:26.033] }, condition = base::local({ [17:28:26.033] c <- base::c [17:28:26.033] inherits <- base::inherits [17:28:26.033] invokeRestart <- base::invokeRestart [17:28:26.033] length <- base::length [17:28:26.033] list <- base::list [17:28:26.033] seq.int <- base::seq.int [17:28:26.033] signalCondition <- base::signalCondition [17:28:26.033] sys.calls <- base::sys.calls [17:28:26.033] `[[` <- base::`[[` [17:28:26.033] `+` <- base::`+` [17:28:26.033] `<<-` <- base::`<<-` [17:28:26.033] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:26.033] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:26.033] 3L)] [17:28:26.033] } [17:28:26.033] function(cond) { [17:28:26.033] is_error <- inherits(cond, "error") [17:28:26.033] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:26.033] NULL) [17:28:26.033] if (is_error) { [17:28:26.033] sessionInformation <- function() { [17:28:26.033] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:26.033] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:26.033] search = base::search(), system = base::Sys.info()) [17:28:26.033] } [17:28:26.033] ...future.conditions[[length(...future.conditions) + [17:28:26.033] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:26.033] cond$call), session = sessionInformation(), [17:28:26.033] timestamp = base::Sys.time(), signaled = 0L) [17:28:26.033] signalCondition(cond) [17:28:26.033] } [17:28:26.033] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:26.033] "immediateCondition"))) { [17:28:26.033] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:26.033] ...future.conditions[[length(...future.conditions) + [17:28:26.033] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:26.033] if (TRUE && !signal) { [17:28:26.033] muffleCondition <- function (cond, pattern = "^muffle") [17:28:26.033] { [17:28:26.033] inherits <- base::inherits [17:28:26.033] invokeRestart <- base::invokeRestart [17:28:26.033] is.null <- base::is.null [17:28:26.033] muffled <- FALSE [17:28:26.033] if (inherits(cond, "message")) { [17:28:26.033] muffled <- grepl(pattern, "muffleMessage") [17:28:26.033] if (muffled) [17:28:26.033] invokeRestart("muffleMessage") [17:28:26.033] } [17:28:26.033] else if (inherits(cond, "warning")) { [17:28:26.033] muffled <- grepl(pattern, "muffleWarning") [17:28:26.033] if (muffled) [17:28:26.033] invokeRestart("muffleWarning") [17:28:26.033] } [17:28:26.033] else if (inherits(cond, "condition")) { [17:28:26.033] if (!is.null(pattern)) { [17:28:26.033] computeRestarts <- base::computeRestarts [17:28:26.033] grepl <- base::grepl [17:28:26.033] restarts <- computeRestarts(cond) [17:28:26.033] for (restart in restarts) { [17:28:26.033] name <- restart$name [17:28:26.033] if (is.null(name)) [17:28:26.033] next [17:28:26.033] if (!grepl(pattern, name)) [17:28:26.033] next [17:28:26.033] invokeRestart(restart) [17:28:26.033] muffled <- TRUE [17:28:26.033] break [17:28:26.033] } [17:28:26.033] } [17:28:26.033] } [17:28:26.033] invisible(muffled) [17:28:26.033] } [17:28:26.033] muffleCondition(cond, pattern = "^muffle") [17:28:26.033] } [17:28:26.033] } [17:28:26.033] else { [17:28:26.033] if (TRUE) { [17:28:26.033] muffleCondition <- function (cond, pattern = "^muffle") [17:28:26.033] { [17:28:26.033] inherits <- base::inherits [17:28:26.033] invokeRestart <- base::invokeRestart [17:28:26.033] is.null <- base::is.null [17:28:26.033] muffled <- FALSE [17:28:26.033] if (inherits(cond, "message")) { [17:28:26.033] muffled <- grepl(pattern, "muffleMessage") [17:28:26.033] if (muffled) [17:28:26.033] invokeRestart("muffleMessage") [17:28:26.033] } [17:28:26.033] else if (inherits(cond, "warning")) { [17:28:26.033] muffled <- grepl(pattern, "muffleWarning") [17:28:26.033] if (muffled) [17:28:26.033] invokeRestart("muffleWarning") [17:28:26.033] } [17:28:26.033] else if (inherits(cond, "condition")) { [17:28:26.033] if (!is.null(pattern)) { [17:28:26.033] computeRestarts <- base::computeRestarts [17:28:26.033] grepl <- base::grepl [17:28:26.033] restarts <- computeRestarts(cond) [17:28:26.033] for (restart in restarts) { [17:28:26.033] name <- restart$name [17:28:26.033] if (is.null(name)) [17:28:26.033] next [17:28:26.033] if (!grepl(pattern, name)) [17:28:26.033] next [17:28:26.033] invokeRestart(restart) [17:28:26.033] muffled <- TRUE [17:28:26.033] break [17:28:26.033] } [17:28:26.033] } [17:28:26.033] } [17:28:26.033] invisible(muffled) [17:28:26.033] } [17:28:26.033] muffleCondition(cond, pattern = "^muffle") [17:28:26.033] } [17:28:26.033] } [17:28:26.033] } [17:28:26.033] })) [17:28:26.033] }, error = function(ex) { [17:28:26.033] base::structure(base::list(value = NULL, visible = NULL, [17:28:26.033] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:26.033] ...future.rng), started = ...future.startTime, [17:28:26.033] finished = Sys.time(), session_uuid = NA_character_, [17:28:26.033] version = "1.8"), class = "FutureResult") [17:28:26.033] }, finally = { [17:28:26.033] if (!identical(...future.workdir, getwd())) [17:28:26.033] setwd(...future.workdir) [17:28:26.033] { [17:28:26.033] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:26.033] ...future.oldOptions$nwarnings <- NULL [17:28:26.033] } [17:28:26.033] base::options(...future.oldOptions) [17:28:26.033] if (.Platform$OS.type == "windows") { [17:28:26.033] old_names <- names(...future.oldEnvVars) [17:28:26.033] envs <- base::Sys.getenv() [17:28:26.033] names <- names(envs) [17:28:26.033] common <- intersect(names, old_names) [17:28:26.033] added <- setdiff(names, old_names) [17:28:26.033] removed <- setdiff(old_names, names) [17:28:26.033] changed <- common[...future.oldEnvVars[common] != [17:28:26.033] envs[common]] [17:28:26.033] NAMES <- toupper(changed) [17:28:26.033] args <- list() [17:28:26.033] for (kk in seq_along(NAMES)) { [17:28:26.033] name <- changed[[kk]] [17:28:26.033] NAME <- NAMES[[kk]] [17:28:26.033] if (name != NAME && is.element(NAME, old_names)) [17:28:26.033] next [17:28:26.033] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:26.033] } [17:28:26.033] NAMES <- toupper(added) [17:28:26.033] for (kk in seq_along(NAMES)) { [17:28:26.033] name <- added[[kk]] [17:28:26.033] NAME <- NAMES[[kk]] [17:28:26.033] if (name != NAME && is.element(NAME, old_names)) [17:28:26.033] next [17:28:26.033] args[[name]] <- "" [17:28:26.033] } [17:28:26.033] NAMES <- toupper(removed) [17:28:26.033] for (kk in seq_along(NAMES)) { [17:28:26.033] name <- removed[[kk]] [17:28:26.033] NAME <- NAMES[[kk]] [17:28:26.033] if (name != NAME && is.element(NAME, old_names)) [17:28:26.033] next [17:28:26.033] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:26.033] } [17:28:26.033] if (length(args) > 0) [17:28:26.033] base::do.call(base::Sys.setenv, args = args) [17:28:26.033] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:26.033] } [17:28:26.033] else { [17:28:26.033] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:26.033] } [17:28:26.033] { [17:28:26.033] if (base::length(...future.futureOptionsAdded) > [17:28:26.033] 0L) { [17:28:26.033] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:26.033] base::names(opts) <- ...future.futureOptionsAdded [17:28:26.033] base::options(opts) [17:28:26.033] } [17:28:26.033] { [17:28:26.033] { [17:28:26.033] NULL [17:28:26.033] RNGkind("Mersenne-Twister") [17:28:26.033] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:28:26.033] inherits = FALSE) [17:28:26.033] } [17:28:26.033] options(future.plan = "multisession") [17:28:26.033] if (is.na(NA_character_)) [17:28:26.033] Sys.unsetenv("R_FUTURE_PLAN") [17:28:26.033] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:26.033] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:26.033] .init = FALSE) [17:28:26.033] } [17:28:26.033] } [17:28:26.033] } [17:28:26.033] }) [17:28:26.033] if (TRUE) { [17:28:26.033] base::sink(type = "output", split = FALSE) [17:28:26.033] if (TRUE) { [17:28:26.033] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:26.033] } [17:28:26.033] else { [17:28:26.033] ...future.result["stdout"] <- base::list(NULL) [17:28:26.033] } [17:28:26.033] base::close(...future.stdout) [17:28:26.033] ...future.stdout <- NULL [17:28:26.033] } [17:28:26.033] ...future.result$conditions <- ...future.conditions [17:28:26.033] ...future.result$finished <- base::Sys.time() [17:28:26.033] ...future.result [17:28:26.033] } [17:28:26.037] plan(): Setting new future strategy stack: [17:28:26.037] List of future strategies: [17:28:26.037] 1. sequential: [17:28:26.037] - args: function (..., envir = parent.frame(), workers = "") [17:28:26.037] - tweaked: FALSE [17:28:26.037] - call: NULL [17:28:26.038] plan(): nbrOfWorkers() = 1 [17:28:26.039] plan(): Setting new future strategy stack: [17:28:26.040] List of future strategies: [17:28:26.040] 1. multisession: [17:28:26.040] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:26.040] - tweaked: FALSE [17:28:26.040] - call: plan("default") [17:28:26.045] plan(): nbrOfWorkers() = 1 [17:28:26.045] SequentialFuture started (and completed) [17:28:26.046] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:28:26.048] 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:28:26.050] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [17:28:26.051] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [17:28:26.051] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [17:28:26.051] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [17:28:26.051] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [17:28:26.052] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [17:28:26.052] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [17:28:26.052] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [17:28:26.052] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [17:28:26.052] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [17:28:26.053] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [17:28:26.053] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [17:28:26.053] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [17:28:26.053] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [17:28:26.053] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [17:28:26.054] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [17:28:26.054] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [17:28:26.054] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [17:28:26.054] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [17:28:26.055] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [17:28:26.055] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [17:28:26.055] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [17:28:26.055] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [17:28:26.055] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [17:28:26.056] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [17:28:26.056] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [17:28:26.056] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [17:28:26.056] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [17:28:26.056] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [17:28:26.057] Environment variable 'R_FUTURE_JOURNAL' not set [17:28:26.057] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [17:28:26.057] Option 'future.plan' of type 'function' [17:28:26.058] R command-line argument: -p 1 [17:28:26.058] => 'future.plan' already set. [17:28:26.058] R process uuid: 173f7e4a-5010-757c-259e-f08c10a652fa [17:28:26.058] Setting plan('default') [17:28:26.058] plan(): Setting new future strategy stack: [17:28:26.059] List of future strategies: [17:28:26.059] 1. multisession: [17:28:26.059] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:26.059] - tweaked: FALSE [17:28:26.059] - call: NULL [17:28:26.061] 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:28:26.062] plan(): Setting new future strategy stack: [17:28:26.062] List of future strategies: [17:28:26.062] 1. multisession: [17:28:26.062] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:26.062] - tweaked: FALSE [17:28:26.062] - call: NULL [17:28:26.063] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:28:26.063] multisession: [17:28:26.063] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:26.063] - tweaked: FALSE [17:28:26.063] - call: NULL [17:28:26.066] getGlobalsAndPackages() ... [17:28:26.066] Not searching for globals [17:28:26.066] - globals: [0] [17:28:26.066] getGlobalsAndPackages() ... DONE [17:28:26.067] Packages needed by the future expression (n = 0): [17:28:26.067] Packages needed by future strategies (n = 0): [17:28:26.068] { [17:28:26.068] { [17:28:26.068] { [17:28:26.068] ...future.startTime <- base::Sys.time() [17:28:26.068] { [17:28:26.068] { [17:28:26.068] { [17:28:26.068] base::local({ [17:28:26.068] has_future <- base::requireNamespace("future", [17:28:26.068] quietly = TRUE) [17:28:26.068] if (has_future) { [17:28:26.068] ns <- base::getNamespace("future") [17:28:26.068] version <- ns[[".package"]][["version"]] [17:28:26.068] if (is.null(version)) [17:28:26.068] version <- utils::packageVersion("future") [17:28:26.068] } [17:28:26.068] else { [17:28:26.068] version <- NULL [17:28:26.068] } [17:28:26.068] if (!has_future || version < "1.8.0") { [17:28:26.068] info <- base::c(r_version = base::gsub("R version ", [17:28:26.068] "", base::R.version$version.string), [17:28:26.068] platform = base::sprintf("%s (%s-bit)", [17:28:26.068] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:26.068] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:26.068] "release", "version")], collapse = " "), [17:28:26.068] hostname = base::Sys.info()[["nodename"]]) [17:28:26.068] info <- base::sprintf("%s: %s", base::names(info), [17:28:26.068] info) [17:28:26.068] info <- base::paste(info, collapse = "; ") [17:28:26.068] if (!has_future) { [17:28:26.068] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:26.068] info) [17:28:26.068] } [17:28:26.068] else { [17:28:26.068] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:26.068] info, version) [17:28:26.068] } [17:28:26.068] base::stop(msg) [17:28:26.068] } [17:28:26.068] }) [17:28:26.068] } [17:28:26.068] ...future.strategy.old <- future::plan("list") [17:28:26.068] options(future.plan = NULL) [17:28:26.068] Sys.unsetenv("R_FUTURE_PLAN") [17:28:26.068] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:26.068] } [17:28:26.068] ...future.workdir <- getwd() [17:28:26.068] } [17:28:26.068] ...future.oldOptions <- base::as.list(base::.Options) [17:28:26.068] ...future.oldEnvVars <- base::Sys.getenv() [17:28:26.068] } [17:28:26.068] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:26.068] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:26.068] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:26.068] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:26.068] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:26.068] future.stdout.windows.reencode = NULL, width = 80L) [17:28:26.068] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:26.068] base::names(...future.oldOptions)) [17:28:26.068] } [17:28:26.068] if (FALSE) { [17:28:26.068] } [17:28:26.068] else { [17:28:26.068] if (TRUE) { [17:28:26.068] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:26.068] open = "w") [17:28:26.068] } [17:28:26.068] else { [17:28:26.068] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:26.068] windows = "NUL", "/dev/null"), open = "w") [17:28:26.068] } [17:28:26.068] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:26.068] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:26.068] base::sink(type = "output", split = FALSE) [17:28:26.068] base::close(...future.stdout) [17:28:26.068] }, add = TRUE) [17:28:26.068] } [17:28:26.068] ...future.frame <- base::sys.nframe() [17:28:26.068] ...future.conditions <- base::list() [17:28:26.068] ...future.rng <- base::globalenv()$.Random.seed [17:28:26.068] if (FALSE) { [17:28:26.068] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:26.068] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:26.068] } [17:28:26.068] ...future.result <- base::tryCatch({ [17:28:26.068] base::withCallingHandlers({ [17:28:26.068] ...future.value <- base::withVisible(base::local(NA)) [17:28:26.068] future::FutureResult(value = ...future.value$value, [17:28:26.068] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:26.068] ...future.rng), globalenv = if (FALSE) [17:28:26.068] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:26.068] ...future.globalenv.names)) [17:28:26.068] else NULL, started = ...future.startTime, version = "1.8") [17:28:26.068] }, condition = base::local({ [17:28:26.068] c <- base::c [17:28:26.068] inherits <- base::inherits [17:28:26.068] invokeRestart <- base::invokeRestart [17:28:26.068] length <- base::length [17:28:26.068] list <- base::list [17:28:26.068] seq.int <- base::seq.int [17:28:26.068] signalCondition <- base::signalCondition [17:28:26.068] sys.calls <- base::sys.calls [17:28:26.068] `[[` <- base::`[[` [17:28:26.068] `+` <- base::`+` [17:28:26.068] `<<-` <- base::`<<-` [17:28:26.068] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:26.068] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:26.068] 3L)] [17:28:26.068] } [17:28:26.068] function(cond) { [17:28:26.068] is_error <- inherits(cond, "error") [17:28:26.068] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:26.068] NULL) [17:28:26.068] if (is_error) { [17:28:26.068] sessionInformation <- function() { [17:28:26.068] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:26.068] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:26.068] search = base::search(), system = base::Sys.info()) [17:28:26.068] } [17:28:26.068] ...future.conditions[[length(...future.conditions) + [17:28:26.068] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:26.068] cond$call), session = sessionInformation(), [17:28:26.068] timestamp = base::Sys.time(), signaled = 0L) [17:28:26.068] signalCondition(cond) [17:28:26.068] } [17:28:26.068] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:26.068] "immediateCondition"))) { [17:28:26.068] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:26.068] ...future.conditions[[length(...future.conditions) + [17:28:26.068] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:26.068] if (TRUE && !signal) { [17:28:26.068] muffleCondition <- function (cond, pattern = "^muffle") [17:28:26.068] { [17:28:26.068] inherits <- base::inherits [17:28:26.068] invokeRestart <- base::invokeRestart [17:28:26.068] is.null <- base::is.null [17:28:26.068] muffled <- FALSE [17:28:26.068] if (inherits(cond, "message")) { [17:28:26.068] muffled <- grepl(pattern, "muffleMessage") [17:28:26.068] if (muffled) [17:28:26.068] invokeRestart("muffleMessage") [17:28:26.068] } [17:28:26.068] else if (inherits(cond, "warning")) { [17:28:26.068] muffled <- grepl(pattern, "muffleWarning") [17:28:26.068] if (muffled) [17:28:26.068] invokeRestart("muffleWarning") [17:28:26.068] } [17:28:26.068] else if (inherits(cond, "condition")) { [17:28:26.068] if (!is.null(pattern)) { [17:28:26.068] computeRestarts <- base::computeRestarts [17:28:26.068] grepl <- base::grepl [17:28:26.068] restarts <- computeRestarts(cond) [17:28:26.068] for (restart in restarts) { [17:28:26.068] name <- restart$name [17:28:26.068] if (is.null(name)) [17:28:26.068] next [17:28:26.068] if (!grepl(pattern, name)) [17:28:26.068] next [17:28:26.068] invokeRestart(restart) [17:28:26.068] muffled <- TRUE [17:28:26.068] break [17:28:26.068] } [17:28:26.068] } [17:28:26.068] } [17:28:26.068] invisible(muffled) [17:28:26.068] } [17:28:26.068] muffleCondition(cond, pattern = "^muffle") [17:28:26.068] } [17:28:26.068] } [17:28:26.068] else { [17:28:26.068] if (TRUE) { [17:28:26.068] muffleCondition <- function (cond, pattern = "^muffle") [17:28:26.068] { [17:28:26.068] inherits <- base::inherits [17:28:26.068] invokeRestart <- base::invokeRestart [17:28:26.068] is.null <- base::is.null [17:28:26.068] muffled <- FALSE [17:28:26.068] if (inherits(cond, "message")) { [17:28:26.068] muffled <- grepl(pattern, "muffleMessage") [17:28:26.068] if (muffled) [17:28:26.068] invokeRestart("muffleMessage") [17:28:26.068] } [17:28:26.068] else if (inherits(cond, "warning")) { [17:28:26.068] muffled <- grepl(pattern, "muffleWarning") [17:28:26.068] if (muffled) [17:28:26.068] invokeRestart("muffleWarning") [17:28:26.068] } [17:28:26.068] else if (inherits(cond, "condition")) { [17:28:26.068] if (!is.null(pattern)) { [17:28:26.068] computeRestarts <- base::computeRestarts [17:28:26.068] grepl <- base::grepl [17:28:26.068] restarts <- computeRestarts(cond) [17:28:26.068] for (restart in restarts) { [17:28:26.068] name <- restart$name [17:28:26.068] if (is.null(name)) [17:28:26.068] next [17:28:26.068] if (!grepl(pattern, name)) [17:28:26.068] next [17:28:26.068] invokeRestart(restart) [17:28:26.068] muffled <- TRUE [17:28:26.068] break [17:28:26.068] } [17:28:26.068] } [17:28:26.068] } [17:28:26.068] invisible(muffled) [17:28:26.068] } [17:28:26.068] muffleCondition(cond, pattern = "^muffle") [17:28:26.068] } [17:28:26.068] } [17:28:26.068] } [17:28:26.068] })) [17:28:26.068] }, error = function(ex) { [17:28:26.068] base::structure(base::list(value = NULL, visible = NULL, [17:28:26.068] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:26.068] ...future.rng), started = ...future.startTime, [17:28:26.068] finished = Sys.time(), session_uuid = NA_character_, [17:28:26.068] version = "1.8"), class = "FutureResult") [17:28:26.068] }, finally = { [17:28:26.068] if (!identical(...future.workdir, getwd())) [17:28:26.068] setwd(...future.workdir) [17:28:26.068] { [17:28:26.068] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:26.068] ...future.oldOptions$nwarnings <- NULL [17:28:26.068] } [17:28:26.068] base::options(...future.oldOptions) [17:28:26.068] if (.Platform$OS.type == "windows") { [17:28:26.068] old_names <- names(...future.oldEnvVars) [17:28:26.068] envs <- base::Sys.getenv() [17:28:26.068] names <- names(envs) [17:28:26.068] common <- intersect(names, old_names) [17:28:26.068] added <- setdiff(names, old_names) [17:28:26.068] removed <- setdiff(old_names, names) [17:28:26.068] changed <- common[...future.oldEnvVars[common] != [17:28:26.068] envs[common]] [17:28:26.068] NAMES <- toupper(changed) [17:28:26.068] args <- list() [17:28:26.068] for (kk in seq_along(NAMES)) { [17:28:26.068] name <- changed[[kk]] [17:28:26.068] NAME <- NAMES[[kk]] [17:28:26.068] if (name != NAME && is.element(NAME, old_names)) [17:28:26.068] next [17:28:26.068] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:26.068] } [17:28:26.068] NAMES <- toupper(added) [17:28:26.068] for (kk in seq_along(NAMES)) { [17:28:26.068] name <- added[[kk]] [17:28:26.068] NAME <- NAMES[[kk]] [17:28:26.068] if (name != NAME && is.element(NAME, old_names)) [17:28:26.068] next [17:28:26.068] args[[name]] <- "" [17:28:26.068] } [17:28:26.068] NAMES <- toupper(removed) [17:28:26.068] for (kk in seq_along(NAMES)) { [17:28:26.068] name <- removed[[kk]] [17:28:26.068] NAME <- NAMES[[kk]] [17:28:26.068] if (name != NAME && is.element(NAME, old_names)) [17:28:26.068] next [17:28:26.068] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:26.068] } [17:28:26.068] if (length(args) > 0) [17:28:26.068] base::do.call(base::Sys.setenv, args = args) [17:28:26.068] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:26.068] } [17:28:26.068] else { [17:28:26.068] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:26.068] } [17:28:26.068] { [17:28:26.068] if (base::length(...future.futureOptionsAdded) > [17:28:26.068] 0L) { [17:28:26.068] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:26.068] base::names(opts) <- ...future.futureOptionsAdded [17:28:26.068] base::options(opts) [17:28:26.068] } [17:28:26.068] { [17:28:26.068] { [17:28:26.068] NULL [17:28:26.068] RNGkind("Mersenne-Twister") [17:28:26.068] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:28:26.068] inherits = FALSE) [17:28:26.068] } [17:28:26.068] options(future.plan = function (..., workers = availableCores(), [17:28:26.068] lazy = FALSE, rscript_libs = .libPaths(), [17:28:26.068] envir = parent.frame()) [17:28:26.068] { [17:28:26.068] if (is.function(workers)) [17:28:26.068] workers <- workers() [17:28:26.068] workers <- structure(as.integer(workers), [17:28:26.068] class = class(workers)) [17:28:26.068] stop_if_not(length(workers) == 1, is.finite(workers), [17:28:26.068] workers >= 1) [17:28:26.068] if (workers == 1L && !inherits(workers, "AsIs")) { [17:28:26.068] return(sequential(..., lazy = TRUE, envir = envir)) [17:28:26.068] } [17:28:26.068] future <- MultisessionFuture(..., workers = workers, [17:28:26.068] lazy = lazy, rscript_libs = rscript_libs, [17:28:26.068] envir = envir) [17:28:26.068] if (!future$lazy) [17:28:26.068] future <- run(future) [17:28:26.068] invisible(future) [17:28:26.068] }) [17:28:26.068] if (is.na(NA_character_)) [17:28:26.068] Sys.unsetenv("R_FUTURE_PLAN") [17:28:26.068] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:26.068] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:26.068] .init = FALSE) [17:28:26.068] } [17:28:26.068] } [17:28:26.068] } [17:28:26.068] }) [17:28:26.068] if (TRUE) { [17:28:26.068] base::sink(type = "output", split = FALSE) [17:28:26.068] if (TRUE) { [17:28:26.068] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:26.068] } [17:28:26.068] else { [17:28:26.068] ...future.result["stdout"] <- base::list(NULL) [17:28:26.068] } [17:28:26.068] base::close(...future.stdout) [17:28:26.068] ...future.stdout <- NULL [17:28:26.068] } [17:28:26.068] ...future.result$conditions <- ...future.conditions [17:28:26.068] ...future.result$finished <- base::Sys.time() [17:28:26.068] ...future.result [17:28:26.068] } [17:28:26.073] plan(): Setting new future strategy stack: [17:28:26.074] List of future strategies: [17:28:26.074] 1. sequential: [17:28:26.074] - args: function (..., envir = parent.frame(), workers = "") [17:28:26.074] - tweaked: FALSE [17:28:26.074] - call: NULL [17:28:26.074] plan(): nbrOfWorkers() = 1 [17:28:26.076] plan(): Setting new future strategy stack: [17:28:26.076] List of future strategies: [17:28:26.076] 1. multisession: [17:28:26.076] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:28:26.076] - tweaked: FALSE [17:28:26.076] - call: NULL [17:28:26.079] plan(): nbrOfWorkers() = 1 [17:28:26.079] SequentialFuture started (and completed) [17:28:26.079] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:28:26.082] 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:28:26.086] Option 'future.startup.script': TRUE [17:28:26.086] Future startup scripts considered: '.future.R', '~/.future.R' [17:28:26.086] Future startup scripts found: [17:28:26.087] Option 'future.startup.script': TRUE [17:28:26.087] Future startup scripts considered: '.future.R', '~/.future.R' [17:28:26.087] Future startup scripts found: [17:28:26.087] Option 'future.startup.script': TRUE [17:28:26.087] Future startup scripts considered: '.future.R', '~/.future.R' [17:28:26.088] 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:28:26.088] Option 'future.startup.script': TRUE [17:28:26.089] Future startup scripts considered: '.future.R', '~/.future.R' [17:28:26.089] Future startup scripts found: '.future.R' [17:28:26.089] 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:28:26.091] plan(): Setting new future strategy stack: [17:28:26.091] List of future strategies: [17:28:26.091] 1. FutureStrategy: [17:28:26.091] - args: function (..., envir = parent.frame(), workers = "") [17:28:26.091] - tweaked: FALSE [17:28:26.091] - call: future::plan(oplan) [17:28:26.092] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=204] '!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_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 0.68 0.10 2.15