R Under development (unstable) (2023-12-20 r85713 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 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") [01:29:35.210] plan(): Setting new future strategy stack: [01:29:35.212] List of future strategies: [01:29:35.212] 1. sequential: [01:29:35.212] - args: function (..., envir = parent.frame(), workers = "") [01:29:35.212] - tweaked: FALSE [01:29:35.212] - call: future::plan("sequential") [01:29:35.233] plan(): nbrOfWorkers() = 1 > > maxCores <- min(2L, availableCores(methods = "system")) > > > plan("default") [01:29:35.240] plan(): Setting new future strategy stack: [01:29:35.241] List of future strategies: [01:29:35.241] 1. sequential: [01:29:35.241] - args: function (..., envir = parent.frame(), workers = "") [01:29:35.241] - tweaked: FALSE [01:29:35.241] - call: NULL [01:29:35.256] 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") [01:29:35.269] plan(): Setting new future strategy stack: [01:29:35.269] List of future strategies: [01:29:35.269] 1. sequential: [01:29:35.269] - args: function (..., envir = parent.frame(), workers = "") [01:29:35.269] - tweaked: FALSE [01:29:35.269] - call: NULL [01:29:35.269] 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) [01:29:35.271] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [01:29:35.271] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [01:29:35.271] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [01:29:35.271] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [01:29:35.272] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [01:29:35.272] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [01:29:35.272] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [01:29:35.272] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [01:29:35.273] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [01:29:35.273] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [01:29:35.273] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [01:29:35.273] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [01:29:35.273] Environment variable 'R_FUTURE_PLAN' not set [01:29:35.274] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [01:29:35.274] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [01:29:35.274] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [01:29:35.274] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [01:29:35.274] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [01:29:35.275] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [01:29:35.275] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [01:29:35.275] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [01:29:35.275] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [01:29:35.275] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [01:29:35.276] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [01:29:35.276] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [01:29:35.276] R_FUTURE_WAIT_INTERVAL='0.01' [01:29:35.276] Coercing from character to numeric: '0.01' [01:29:35.276] => options("future.wait.interval" = '0.01') [n=1, mode=double] [01:29:35.277] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [01:29:35.277] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [01:29:35.277] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [01:29:35.278] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [01:29:35.278] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [01:29:35.278] Environment variable 'R_FUTURE_JOURNAL' not set [01:29:35.278] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [01:29:35.278] R process uuid: 08a2e737-c7e9-43f9-18a1-e0626f4d8539 [01:29:35.279] Setting plan('default') [01:29:35.279] plan(): Setting new future strategy stack: [01:29:35.279] List of future strategies: [01:29:35.279] 1. sequential: [01:29:35.279] - args: function (..., envir = parent.frame(), workers = "") [01:29:35.279] - tweaked: FALSE [01:29:35.279] - call: NULL [01:29:35.280] 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") [01:29:35.280] plan(): Setting new future strategy stack: [01:29:35.281] List of future strategies: [01:29:35.281] 1. sequential: [01:29:35.281] - args: function (..., envir = parent.frame(), workers = "") [01:29:35.281] - tweaked: FALSE [01:29:35.281] - call: NULL [01:29:35.281] 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) [01:29:35.282] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [01:29:35.283] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [01:29:35.283] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [01:29:35.283] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [01:29:35.283] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [01:29:35.283] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [01:29:35.284] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [01:29:35.284] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [01:29:35.284] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [01:29:35.284] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [01:29:35.285] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [01:29:35.285] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [01:29:35.285] Environment variable 'R_FUTURE_PLAN' not set [01:29:35.285] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [01:29:35.285] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [01:29:35.286] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [01:29:35.286] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [01:29:35.286] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [01:29:35.286] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [01:29:35.286] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [01:29:35.287] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [01:29:35.287] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [01:29:35.287] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [01:29:35.287] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [01:29:35.287] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [01:29:35.288] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [01:29:35.288] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [01:29:35.288] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [01:29:35.288] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [01:29:35.288] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [01:29:35.289] Environment variable 'R_FUTURE_JOURNAL' not set [01:29:35.289] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [01:29:35.289] R command-line argument: -p 1 [01:29:35.290] => options(future.plan = sequential) [01:29:35.290] R process uuid: 08a2e737-c7e9-43f9-18a1-e0626f4d8539 [01:29:35.290] Setting plan('default') [01:29:35.290] plan(): Setting new future strategy stack: [01:29:35.290] List of future strategies: [01:29:35.290] 1. sequential: [01:29:35.290] - args: function (..., envir = parent.frame(), workers = "") [01:29:35.290] - tweaked: FALSE [01:29:35.290] - call: NULL [01:29:35.291] 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") [01:29:35.292] plan(): Setting new future strategy stack: [01:29:35.292] List of future strategies: [01:29:35.292] 1. sequential: [01:29:35.292] - args: function (..., envir = parent.frame(), workers = "") [01:29:35.292] - tweaked: FALSE [01:29:35.292] - call: NULL [01:29:35.292] 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") [01:29:35.293] plan(): Setting new future strategy stack: [01:29:35.293] List of future strategies: [01:29:35.293] 1. sequential: [01:29:35.293] - args: function (..., envir = parent.frame(), workers = "") [01:29:35.293] - tweaked: FALSE [01:29:35.293] - call: NULL [01:29:35.294] plan(): nbrOfWorkers() = 1 > options(future.plan = NULL, future.cmdargs = "-parallel=1") > .onLoad(pkgname, pkgname) [01:29:35.295] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [01:29:35.295] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [01:29:35.295] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [01:29:35.295] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [01:29:35.296] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [01:29:35.296] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [01:29:35.296] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [01:29:35.296] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [01:29:35.296] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [01:29:35.297] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [01:29:35.297] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [01:29:35.297] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [01:29:35.297] Environment variable 'R_FUTURE_PLAN' not set [01:29:35.297] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [01:29:35.298] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [01:29:35.298] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [01:29:35.298] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [01:29:35.298] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [01:29:35.298] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [01:29:35.299] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [01:29:35.299] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [01:29:35.299] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [01:29:35.299] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [01:29:35.299] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [01:29:35.300] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [01:29:35.300] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [01:29:35.300] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [01:29:35.300] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [01:29:35.301] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [01:29:35.301] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [01:29:35.301] Environment variable 'R_FUTURE_JOURNAL' not set [01:29:35.301] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [01:29:35.301] R process uuid: 08a2e737-c7e9-43f9-18a1-e0626f4d8539 [01:29:35.302] Setting plan('default') [01:29:35.302] plan(): Setting new future strategy stack: [01:29:35.302] List of future strategies: [01:29:35.302] 1. sequential: [01:29:35.302] - args: function (..., envir = parent.frame(), workers = "") [01:29:35.302] - tweaked: FALSE [01:29:35.302] - call: NULL [01:29:35.303] 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") [01:29:35.303] plan(): Setting new future strategy stack: [01:29:35.304] List of future strategies: [01:29:35.304] 1. sequential: [01:29:35.304] - args: function (..., envir = parent.frame(), workers = "") [01:29:35.304] - tweaked: FALSE [01:29:35.304] - call: NULL [01:29:35.304] 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) [01:29:35.305] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [01:29:35.306] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [01:29:35.306] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [01:29:35.306] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [01:29:35.306] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [01:29:35.306] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [01:29:35.307] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [01:29:35.307] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [01:29:35.307] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [01:29:35.307] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [01:29:35.308] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [01:29:35.308] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [01:29:35.308] Environment variable 'R_FUTURE_PLAN' not set [01:29:35.308] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [01:29:35.308] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [01:29:35.309] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [01:29:35.309] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [01:29:35.309] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [01:29:35.309] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [01:29:35.309] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [01:29:35.310] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [01:29:35.310] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [01:29:35.310] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [01:29:35.310] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [01:29:35.311] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [01:29:35.311] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [01:29:35.314] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [01:29:35.314] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [01:29:35.315] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [01:29:35.315] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [01:29:35.315] Environment variable 'R_FUTURE_JOURNAL' not set [01:29:35.315] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [01:29:35.316] R command-line argument: -p 2 [01:29:35.316] => options(future.plan = tweak(multisession, workers = 2)) [01:29:35.319] R process uuid: 08a2e737-c7e9-43f9-18a1-e0626f4d8539 [01:29:35.320] Setting plan('default') [01:29:35.320] plan(): Setting new future strategy stack: [01:29:35.320] List of future strategies: [01:29:35.320] 1. multisession: [01:29:35.320] - args: function (..., workers = 2L, envir = parent.frame()) [01:29:35.320] - tweaked: TRUE [01:29:35.320] - call: NULL [01:29:35.321] 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") [01:29:35.321] plan(): Setting new future strategy stack: [01:29:35.321] List of future strategies: [01:29:35.321] 1. multisession: [01:29:35.321] - args: function (..., workers = 2L, envir = parent.frame()) [01:29:35.321] - tweaked: TRUE [01:29:35.321] - call: NULL [01:29:35.322] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [01:29:35.322] multisession: [01:29:35.322] - args: function (..., workers = 2L, envir = parent.frame()) [01:29:35.322] - tweaked: TRUE [01:29:35.322] - call: NULL [01:29:35.324] getGlobalsAndPackages() ... [01:29:35.324] Not searching for globals [01:29:35.325] - globals: [0] [01:29:35.325] getGlobalsAndPackages() ... DONE [01:29:35.326] [local output] makeClusterPSOCK() ... [01:29:35.402] [local output] Workers: [n = 2] 'localhost', 'localhost' [01:29:35.409] [local output] Base port: 37931 [01:29:35.409] [local output] Getting setup options for 2 cluster nodes ... [01:29:35.409] [local output] - Node 1 of 2 ... [01:29:35.410] [local output] localMachine=TRUE => revtunnel=FALSE [01:29:35.411] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpYV4mxY/worker.rank=1.parallelly.parent=11716.2dc47d7e6c89.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpYV4mxY/worker.rank=1.parallelly.parent=11716.2dc47d7e6c89.pid\")"' [01:29:35.738] - Possible to infer worker's PID: TRUE [01:29:35.739] [local output] Rscript port: 37931 [01:29:35.739] [local output] - Node 2 of 2 ... [01:29:35.740] [local output] localMachine=TRUE => revtunnel=FALSE [01:29:35.741] [local output] Rscript port: 37931 [01:29:35.742] [local output] Getting setup options for 2 cluster nodes ... done [01:29:35.742] [local output] - Parallel setup requested for some PSOCK nodes [01:29:35.743] [local output] Setting up PSOCK nodes in parallel [01:29:35.743] List of 36 [01:29:35.743] $ worker : chr "localhost" [01:29:35.743] ..- attr(*, "localhost")= logi TRUE [01:29:35.743] $ master : chr "localhost" [01:29:35.743] $ port : int 37931 [01:29:35.743] $ connectTimeout : num 120 [01:29:35.743] $ timeout : num 120 [01:29:35.743] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [01:29:35.743] $ homogeneous : logi TRUE [01:29:35.743] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=startup.R:11716:CRANWIN3:CRAN\" "| __truncated__ [01:29:35.743] $ rscript_envs : NULL [01:29:35.743] $ rscript_libs : chr [1:2] "D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47" "D:/RCompile/recent/R/library" [01:29:35.743] $ rscript_startup : NULL [01:29:35.743] $ rscript_sh : chr "cmd" [01:29:35.743] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:29:35.743] $ methods : logi TRUE [01:29:35.743] $ socketOptions : chr "no-delay" [01:29:35.743] $ useXDR : logi FALSE [01:29:35.743] $ outfile : chr "/dev/null" [01:29:35.743] $ renice : int NA [01:29:35.743] $ rshcmd : NULL [01:29:35.743] $ user : chr(0) [01:29:35.743] $ revtunnel : logi FALSE [01:29:35.743] $ rshlogfile : NULL [01:29:35.743] $ rshopts : chr(0) [01:29:35.743] $ rank : int 1 [01:29:35.743] $ manual : logi FALSE [01:29:35.743] $ dryrun : logi FALSE [01:29:35.743] $ quiet : logi FALSE [01:29:35.743] $ setup_strategy : chr "parallel" [01:29:35.743] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:29:35.743] $ pidfile : chr "D:/temp/RtmpYV4mxY/worker.rank=1.parallelly.parent=11716.2dc47d7e6c89.pid" [01:29:35.743] $ rshcmd_label : NULL [01:29:35.743] $ rsh_call : NULL [01:29:35.743] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:29:35.743] $ localMachine : logi TRUE [01:29:35.743] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [01:29:35.743] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [01:29:35.743] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [01:29:35.743] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [01:29:35.743] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [01:29:35.743] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [01:29:35.743] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [01:29:35.743] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [01:29:35.743] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [01:29:35.743] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [01:29:35.743] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [01:29:35.743] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [01:29:35.743] "parallel"), action = c("launch", "options"), verbose = FALSE) [01:29:35.743] $ arguments :List of 28 [01:29:35.743] ..$ worker : chr "localhost" [01:29:35.743] ..$ master : NULL [01:29:35.743] ..$ port : int 37931 [01:29:35.743] ..$ connectTimeout : num 120 [01:29:35.743] ..$ timeout : num 120 [01:29:35.743] ..$ rscript : NULL [01:29:35.743] ..$ homogeneous : NULL [01:29:35.743] ..$ rscript_args : NULL [01:29:35.743] ..$ rscript_envs : NULL [01:29:35.743] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47" "D:/RCompile/recent/R/library" [01:29:35.743] ..$ rscript_startup : NULL [01:29:35.743] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [01:29:35.743] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:29:35.743] ..$ methods : logi TRUE [01:29:35.743] ..$ socketOptions : chr "no-delay" [01:29:35.743] ..$ useXDR : logi FALSE [01:29:35.743] ..$ outfile : chr "/dev/null" [01:29:35.743] ..$ renice : int NA [01:29:35.743] ..$ rshcmd : NULL [01:29:35.743] ..$ user : NULL [01:29:35.743] ..$ revtunnel : logi NA [01:29:35.743] ..$ rshlogfile : NULL [01:29:35.743] ..$ rshopts : NULL [01:29:35.743] ..$ rank : int 1 [01:29:35.743] ..$ manual : logi FALSE [01:29:35.743] ..$ dryrun : logi FALSE [01:29:35.743] ..$ quiet : logi FALSE [01:29:35.743] ..$ setup_strategy : chr "parallel" [01:29:35.743] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [01:29:35.765] [local output] System call to launch all workers: [01:29:35.765] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=startup.R:11716:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpYV4mxY/worker.rank=1.parallelly.parent=11716.2dc47d7e6c89.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=37931 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [01:29:35.765] [local output] Starting PSOCK main server [01:29:35.772] [local output] Workers launched [01:29:35.772] [local output] Waiting for workers to connect back [01:29:35.773] - [local output] 0 workers out of 2 ready [01:29:35.946] - [local output] 0 workers out of 2 ready [01:29:35.946] - [local output] 1 workers out of 2 ready [01:29:35.982] - [local output] 1 workers out of 2 ready [01:29:35.983] - [local output] 2 workers out of 2 ready [01:29:35.983] [local output] Launching of workers completed [01:29:35.983] [local output] Collecting session information from workers [01:29:35.984] [local output] - Worker #1 of 2 [01:29:35.985] [local output] - Worker #2 of 2 [01:29:35.985] [local output] makeClusterPSOCK() ... done [01:29:35.999] Packages needed by the future expression (n = 0): [01:29:36.000] Packages needed by future strategies (n = 0): [01:29:36.001] { [01:29:36.001] { [01:29:36.001] { [01:29:36.001] ...future.startTime <- base::Sys.time() [01:29:36.001] { [01:29:36.001] { [01:29:36.001] { [01:29:36.001] { [01:29:36.001] base::local({ [01:29:36.001] has_future <- base::requireNamespace("future", [01:29:36.001] quietly = TRUE) [01:29:36.001] if (has_future) { [01:29:36.001] ns <- base::getNamespace("future") [01:29:36.001] version <- ns[[".package"]][["version"]] [01:29:36.001] if (is.null(version)) [01:29:36.001] version <- utils::packageVersion("future") [01:29:36.001] } [01:29:36.001] else { [01:29:36.001] version <- NULL [01:29:36.001] } [01:29:36.001] if (!has_future || version < "1.8.0") { [01:29:36.001] info <- base::c(r_version = base::gsub("R version ", [01:29:36.001] "", base::R.version$version.string), [01:29:36.001] platform = base::sprintf("%s (%s-bit)", [01:29:36.001] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:29:36.001] os = base::paste(base::Sys.info()[base::c("sysname", [01:29:36.001] "release", "version")], collapse = " "), [01:29:36.001] hostname = base::Sys.info()[["nodename"]]) [01:29:36.001] info <- base::sprintf("%s: %s", base::names(info), [01:29:36.001] info) [01:29:36.001] info <- base::paste(info, collapse = "; ") [01:29:36.001] if (!has_future) { [01:29:36.001] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:29:36.001] info) [01:29:36.001] } [01:29:36.001] else { [01:29:36.001] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:29:36.001] info, version) [01:29:36.001] } [01:29:36.001] base::stop(msg) [01:29:36.001] } [01:29:36.001] }) [01:29:36.001] } [01:29:36.001] ...future.mc.cores.old <- base::getOption("mc.cores") [01:29:36.001] base::options(mc.cores = 1L) [01:29:36.001] } [01:29:36.001] options(future.plan = NULL) [01:29:36.001] Sys.unsetenv("R_FUTURE_PLAN") [01:29:36.001] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:29:36.001] } [01:29:36.001] ...future.workdir <- getwd() [01:29:36.001] } [01:29:36.001] ...future.oldOptions <- base::as.list(base::.Options) [01:29:36.001] ...future.oldEnvVars <- base::Sys.getenv() [01:29:36.001] } [01:29:36.001] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:29:36.001] future.globals.maxSize = NULL, future.globals.method = NULL, [01:29:36.001] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:29:36.001] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:29:36.001] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:29:36.001] future.stdout.windows.reencode = NULL, width = 80L) [01:29:36.001] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:29:36.001] base::names(...future.oldOptions)) [01:29:36.001] } [01:29:36.001] if (FALSE) { [01:29:36.001] } [01:29:36.001] else { [01:29:36.001] if (TRUE) { [01:29:36.001] ...future.stdout <- base::rawConnection(base::raw(0L), [01:29:36.001] open = "w") [01:29:36.001] } [01:29:36.001] else { [01:29:36.001] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:29:36.001] windows = "NUL", "/dev/null"), open = "w") [01:29:36.001] } [01:29:36.001] base::sink(...future.stdout, type = "output", split = FALSE) [01:29:36.001] base::on.exit(if (!base::is.null(...future.stdout)) { [01:29:36.001] base::sink(type = "output", split = FALSE) [01:29:36.001] base::close(...future.stdout) [01:29:36.001] }, add = TRUE) [01:29:36.001] } [01:29:36.001] ...future.frame <- base::sys.nframe() [01:29:36.001] ...future.conditions <- base::list() [01:29:36.001] ...future.rng <- base::globalenv()$.Random.seed [01:29:36.001] if (FALSE) { [01:29:36.001] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:29:36.001] "...future.value", "...future.globalenv.names", ".Random.seed") [01:29:36.001] } [01:29:36.001] ...future.result <- base::tryCatch({ [01:29:36.001] base::withCallingHandlers({ [01:29:36.001] ...future.value <- base::withVisible(base::local({ [01:29:36.001] ...future.makeSendCondition <- base::local({ [01:29:36.001] sendCondition <- NULL [01:29:36.001] function(frame = 1L) { [01:29:36.001] if (is.function(sendCondition)) [01:29:36.001] return(sendCondition) [01:29:36.001] ns <- getNamespace("parallel") [01:29:36.001] if (exists("sendData", mode = "function", [01:29:36.001] envir = ns)) { [01:29:36.001] parallel_sendData <- get("sendData", mode = "function", [01:29:36.001] envir = ns) [01:29:36.001] envir <- sys.frame(frame) [01:29:36.001] master <- NULL [01:29:36.001] while (!identical(envir, .GlobalEnv) && [01:29:36.001] !identical(envir, emptyenv())) { [01:29:36.001] if (exists("master", mode = "list", envir = envir, [01:29:36.001] inherits = FALSE)) { [01:29:36.001] master <- get("master", mode = "list", [01:29:36.001] envir = envir, inherits = FALSE) [01:29:36.001] if (inherits(master, c("SOCKnode", [01:29:36.001] "SOCK0node"))) { [01:29:36.001] sendCondition <<- function(cond) { [01:29:36.001] data <- list(type = "VALUE", value = cond, [01:29:36.001] success = TRUE) [01:29:36.001] parallel_sendData(master, data) [01:29:36.001] } [01:29:36.001] return(sendCondition) [01:29:36.001] } [01:29:36.001] } [01:29:36.001] frame <- frame + 1L [01:29:36.001] envir <- sys.frame(frame) [01:29:36.001] } [01:29:36.001] } [01:29:36.001] sendCondition <<- function(cond) NULL [01:29:36.001] } [01:29:36.001] }) [01:29:36.001] withCallingHandlers({ [01:29:36.001] NA [01:29:36.001] }, immediateCondition = function(cond) { [01:29:36.001] sendCondition <- ...future.makeSendCondition() [01:29:36.001] sendCondition(cond) [01:29:36.001] muffleCondition <- function (cond, pattern = "^muffle") [01:29:36.001] { [01:29:36.001] inherits <- base::inherits [01:29:36.001] invokeRestart <- base::invokeRestart [01:29:36.001] is.null <- base::is.null [01:29:36.001] muffled <- FALSE [01:29:36.001] if (inherits(cond, "message")) { [01:29:36.001] muffled <- grepl(pattern, "muffleMessage") [01:29:36.001] if (muffled) [01:29:36.001] invokeRestart("muffleMessage") [01:29:36.001] } [01:29:36.001] else if (inherits(cond, "warning")) { [01:29:36.001] muffled <- grepl(pattern, "muffleWarning") [01:29:36.001] if (muffled) [01:29:36.001] invokeRestart("muffleWarning") [01:29:36.001] } [01:29:36.001] else if (inherits(cond, "condition")) { [01:29:36.001] if (!is.null(pattern)) { [01:29:36.001] computeRestarts <- base::computeRestarts [01:29:36.001] grepl <- base::grepl [01:29:36.001] restarts <- computeRestarts(cond) [01:29:36.001] for (restart in restarts) { [01:29:36.001] name <- restart$name [01:29:36.001] if (is.null(name)) [01:29:36.001] next [01:29:36.001] if (!grepl(pattern, name)) [01:29:36.001] next [01:29:36.001] invokeRestart(restart) [01:29:36.001] muffled <- TRUE [01:29:36.001] break [01:29:36.001] } [01:29:36.001] } [01:29:36.001] } [01:29:36.001] invisible(muffled) [01:29:36.001] } [01:29:36.001] muffleCondition(cond) [01:29:36.001] }) [01:29:36.001] })) [01:29:36.001] future::FutureResult(value = ...future.value$value, [01:29:36.001] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:29:36.001] ...future.rng), globalenv = if (FALSE) [01:29:36.001] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:29:36.001] ...future.globalenv.names)) [01:29:36.001] else NULL, started = ...future.startTime, version = "1.8") [01:29:36.001] }, condition = base::local({ [01:29:36.001] c <- base::c [01:29:36.001] inherits <- base::inherits [01:29:36.001] invokeRestart <- base::invokeRestart [01:29:36.001] length <- base::length [01:29:36.001] list <- base::list [01:29:36.001] seq.int <- base::seq.int [01:29:36.001] signalCondition <- base::signalCondition [01:29:36.001] sys.calls <- base::sys.calls [01:29:36.001] `[[` <- base::`[[` [01:29:36.001] `+` <- base::`+` [01:29:36.001] `<<-` <- base::`<<-` [01:29:36.001] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:29:36.001] calls[seq.int(from = from + 12L, to = length(calls) - [01:29:36.001] 3L)] [01:29:36.001] } [01:29:36.001] function(cond) { [01:29:36.001] is_error <- inherits(cond, "error") [01:29:36.001] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:29:36.001] NULL) [01:29:36.001] if (is_error) { [01:29:36.001] sessionInformation <- function() { [01:29:36.001] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:29:36.001] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:29:36.001] search = base::search(), system = base::Sys.info()) [01:29:36.001] } [01:29:36.001] ...future.conditions[[length(...future.conditions) + [01:29:36.001] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:29:36.001] cond$call), session = sessionInformation(), [01:29:36.001] timestamp = base::Sys.time(), signaled = 0L) [01:29:36.001] signalCondition(cond) [01:29:36.001] } [01:29:36.001] else if (!ignore && TRUE && inherits(cond, c("condition", [01:29:36.001] "immediateCondition"))) { [01:29:36.001] signal <- TRUE && inherits(cond, "immediateCondition") [01:29:36.001] ...future.conditions[[length(...future.conditions) + [01:29:36.001] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:29:36.001] if (TRUE && !signal) { [01:29:36.001] muffleCondition <- function (cond, pattern = "^muffle") [01:29:36.001] { [01:29:36.001] inherits <- base::inherits [01:29:36.001] invokeRestart <- base::invokeRestart [01:29:36.001] is.null <- base::is.null [01:29:36.001] muffled <- FALSE [01:29:36.001] if (inherits(cond, "message")) { [01:29:36.001] muffled <- grepl(pattern, "muffleMessage") [01:29:36.001] if (muffled) [01:29:36.001] invokeRestart("muffleMessage") [01:29:36.001] } [01:29:36.001] else if (inherits(cond, "warning")) { [01:29:36.001] muffled <- grepl(pattern, "muffleWarning") [01:29:36.001] if (muffled) [01:29:36.001] invokeRestart("muffleWarning") [01:29:36.001] } [01:29:36.001] else if (inherits(cond, "condition")) { [01:29:36.001] if (!is.null(pattern)) { [01:29:36.001] computeRestarts <- base::computeRestarts [01:29:36.001] grepl <- base::grepl [01:29:36.001] restarts <- computeRestarts(cond) [01:29:36.001] for (restart in restarts) { [01:29:36.001] name <- restart$name [01:29:36.001] if (is.null(name)) [01:29:36.001] next [01:29:36.001] if (!grepl(pattern, name)) [01:29:36.001] next [01:29:36.001] invokeRestart(restart) [01:29:36.001] muffled <- TRUE [01:29:36.001] break [01:29:36.001] } [01:29:36.001] } [01:29:36.001] } [01:29:36.001] invisible(muffled) [01:29:36.001] } [01:29:36.001] muffleCondition(cond, pattern = "^muffle") [01:29:36.001] } [01:29:36.001] } [01:29:36.001] else { [01:29:36.001] if (TRUE) { [01:29:36.001] muffleCondition <- function (cond, pattern = "^muffle") [01:29:36.001] { [01:29:36.001] inherits <- base::inherits [01:29:36.001] invokeRestart <- base::invokeRestart [01:29:36.001] is.null <- base::is.null [01:29:36.001] muffled <- FALSE [01:29:36.001] if (inherits(cond, "message")) { [01:29:36.001] muffled <- grepl(pattern, "muffleMessage") [01:29:36.001] if (muffled) [01:29:36.001] invokeRestart("muffleMessage") [01:29:36.001] } [01:29:36.001] else if (inherits(cond, "warning")) { [01:29:36.001] muffled <- grepl(pattern, "muffleWarning") [01:29:36.001] if (muffled) [01:29:36.001] invokeRestart("muffleWarning") [01:29:36.001] } [01:29:36.001] else if (inherits(cond, "condition")) { [01:29:36.001] if (!is.null(pattern)) { [01:29:36.001] computeRestarts <- base::computeRestarts [01:29:36.001] grepl <- base::grepl [01:29:36.001] restarts <- computeRestarts(cond) [01:29:36.001] for (restart in restarts) { [01:29:36.001] name <- restart$name [01:29:36.001] if (is.null(name)) [01:29:36.001] next [01:29:36.001] if (!grepl(pattern, name)) [01:29:36.001] next [01:29:36.001] invokeRestart(restart) [01:29:36.001] muffled <- TRUE [01:29:36.001] break [01:29:36.001] } [01:29:36.001] } [01:29:36.001] } [01:29:36.001] invisible(muffled) [01:29:36.001] } [01:29:36.001] muffleCondition(cond, pattern = "^muffle") [01:29:36.001] } [01:29:36.001] } [01:29:36.001] } [01:29:36.001] })) [01:29:36.001] }, error = function(ex) { [01:29:36.001] base::structure(base::list(value = NULL, visible = NULL, [01:29:36.001] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:29:36.001] ...future.rng), started = ...future.startTime, [01:29:36.001] finished = Sys.time(), session_uuid = NA_character_, [01:29:36.001] version = "1.8"), class = "FutureResult") [01:29:36.001] }, finally = { [01:29:36.001] if (!identical(...future.workdir, getwd())) [01:29:36.001] setwd(...future.workdir) [01:29:36.001] { [01:29:36.001] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:29:36.001] ...future.oldOptions$nwarnings <- NULL [01:29:36.001] } [01:29:36.001] base::options(...future.oldOptions) [01:29:36.001] if (.Platform$OS.type == "windows") { [01:29:36.001] old_names <- names(...future.oldEnvVars) [01:29:36.001] envs <- base::Sys.getenv() [01:29:36.001] names <- names(envs) [01:29:36.001] common <- intersect(names, old_names) [01:29:36.001] added <- setdiff(names, old_names) [01:29:36.001] removed <- setdiff(old_names, names) [01:29:36.001] changed <- common[...future.oldEnvVars[common] != [01:29:36.001] envs[common]] [01:29:36.001] NAMES <- toupper(changed) [01:29:36.001] args <- list() [01:29:36.001] for (kk in seq_along(NAMES)) { [01:29:36.001] name <- changed[[kk]] [01:29:36.001] NAME <- NAMES[[kk]] [01:29:36.001] if (name != NAME && is.element(NAME, old_names)) [01:29:36.001] next [01:29:36.001] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:36.001] } [01:29:36.001] NAMES <- toupper(added) [01:29:36.001] for (kk in seq_along(NAMES)) { [01:29:36.001] name <- added[[kk]] [01:29:36.001] NAME <- NAMES[[kk]] [01:29:36.001] if (name != NAME && is.element(NAME, old_names)) [01:29:36.001] next [01:29:36.001] args[[name]] <- "" [01:29:36.001] } [01:29:36.001] NAMES <- toupper(removed) [01:29:36.001] for (kk in seq_along(NAMES)) { [01:29:36.001] name <- removed[[kk]] [01:29:36.001] NAME <- NAMES[[kk]] [01:29:36.001] if (name != NAME && is.element(NAME, old_names)) [01:29:36.001] next [01:29:36.001] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:36.001] } [01:29:36.001] if (length(args) > 0) [01:29:36.001] base::do.call(base::Sys.setenv, args = args) [01:29:36.001] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:29:36.001] } [01:29:36.001] else { [01:29:36.001] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:29:36.001] } [01:29:36.001] { [01:29:36.001] if (base::length(...future.futureOptionsAdded) > [01:29:36.001] 0L) { [01:29:36.001] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:29:36.001] base::names(opts) <- ...future.futureOptionsAdded [01:29:36.001] base::options(opts) [01:29:36.001] } [01:29:36.001] { [01:29:36.001] { [01:29:36.001] base::options(mc.cores = ...future.mc.cores.old) [01:29:36.001] NULL [01:29:36.001] } [01:29:36.001] options(future.plan = function (..., workers = 2L, [01:29:36.001] envir = parent.frame()) [01:29:36.001] strategy(..., workers = workers, envir = envir)) [01:29:36.001] if (is.na(NA_character_)) [01:29:36.001] Sys.unsetenv("R_FUTURE_PLAN") [01:29:36.001] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:29:36.001] future::plan(list(function (..., workers = 2L, [01:29:36.001] envir = parent.frame()) [01:29:36.001] strategy(..., workers = workers, envir = envir)), [01:29:36.001] .cleanup = FALSE, .init = FALSE) [01:29:36.001] } [01:29:36.001] } [01:29:36.001] } [01:29:36.001] }) [01:29:36.001] if (TRUE) { [01:29:36.001] base::sink(type = "output", split = FALSE) [01:29:36.001] if (TRUE) { [01:29:36.001] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:29:36.001] } [01:29:36.001] else { [01:29:36.001] ...future.result["stdout"] <- base::list(NULL) [01:29:36.001] } [01:29:36.001] base::close(...future.stdout) [01:29:36.001] ...future.stdout <- NULL [01:29:36.001] } [01:29:36.001] ...future.result$conditions <- ...future.conditions [01:29:36.001] ...future.result$finished <- base::Sys.time() [01:29:36.001] ...future.result [01:29:36.001] } [01:29:36.078] MultisessionFuture started [01:29:36.079] result() for ClusterFuture ... [01:29:36.079] receiveMessageFromWorker() for ClusterFuture ... [01:29:36.080] - Validating connection of MultisessionFuture [01:29:36.133] - received message: FutureResult [01:29:36.133] - Received FutureResult [01:29:36.136] - Erased future from FutureRegistry [01:29:36.137] result() for ClusterFuture ... [01:29:36.137] - result already collected: FutureResult [01:29:36.137] result() for ClusterFuture ... done [01:29:36.137] receiveMessageFromWorker() for ClusterFuture ... done [01:29:36.138] result() for ClusterFuture ... done [01:29:36.138] result() for ClusterFuture ... [01:29:36.138] - result already collected: FutureResult [01:29:36.138] result() for ClusterFuture ... done [01:29:36.138] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:29:36.139] 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) [01:29:36.140] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [01:29:36.140] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [01:29:36.141] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [01:29:36.141] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [01:29:36.141] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [01:29:36.141] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [01:29:36.141] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [01:29:36.142] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [01:29:36.142] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [01:29:36.142] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [01:29:36.142] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [01:29:36.143] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [01:29:36.143] Environment variable 'R_FUTURE_PLAN' not set [01:29:36.143] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [01:29:36.143] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [01:29:36.143] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [01:29:36.144] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [01:29:36.144] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [01:29:36.144] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [01:29:36.144] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [01:29:36.145] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [01:29:36.145] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [01:29:36.145] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [01:29:36.145] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [01:29:36.145] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [01:29:36.146] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [01:29:36.146] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [01:29:36.146] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [01:29:36.146] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [01:29:36.146] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [01:29:36.147] Environment variable 'R_FUTURE_JOURNAL' not set [01:29:36.147] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set Warning: future: Ignoring invalid number of processes specified in command-line option: -p 0 [01:29:36.148] R process uuid: 08a2e737-c7e9-43f9-18a1-e0626f4d8539 [01:29:36.148] Setting plan('default') [01:29:36.148] plan(): Setting new future strategy stack: [01:29:36.148] List of future strategies: [01:29:36.148] 1. sequential: [01:29:36.148] - args: function (..., envir = parent.frame(), workers = "") [01:29:36.148] - tweaked: FALSE [01:29:36.148] - call: NULL [01:29:36.149] 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") [01:29:36.150] plan(): Setting new future strategy stack: [01:29:36.150] List of future strategies: [01:29:36.150] 1. sequential: [01:29:36.150] - args: function (..., envir = parent.frame(), workers = "") [01:29:36.150] - tweaked: FALSE [01:29:36.150] - call: NULL [01:29:36.151] 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) [01:29:36.152] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [01:29:36.152] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [01:29:36.153] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [01:29:36.153] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [01:29:36.153] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [01:29:36.153] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [01:29:36.154] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [01:29:36.154] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [01:29:36.154] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [01:29:36.154] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [01:29:36.154] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [01:29:36.155] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [01:29:36.155] Environment variable 'R_FUTURE_PLAN' not set [01:29:36.155] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [01:29:36.155] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [01:29:36.156] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [01:29:36.156] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [01:29:36.156] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [01:29:36.156] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [01:29:36.156] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [01:29:36.157] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [01:29:36.157] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [01:29:36.157] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [01:29:36.157] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [01:29:36.158] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [01:29:36.158] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [01:29:36.158] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [01:29:36.158] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [01:29:36.158] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [01:29:36.159] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [01:29:36.159] Environment variable 'R_FUTURE_JOURNAL' not set [01:29:36.159] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set Warning: future: Ignoring invalid number of processes specified in command-line option: -p -1 [01:29:36.160] R process uuid: 08a2e737-c7e9-43f9-18a1-e0626f4d8539 [01:29:36.160] Setting plan('default') [01:29:36.160] plan(): Setting new future strategy stack: [01:29:36.161] List of future strategies: [01:29:36.161] 1. sequential: [01:29:36.161] - args: function (..., envir = parent.frame(), workers = "") [01:29:36.161] - tweaked: FALSE [01:29:36.161] - call: NULL [01:29:36.161] 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") [01:29:36.162] plan(): Setting new future strategy stack: [01:29:36.162] List of future strategies: [01:29:36.162] 1. sequential: [01:29:36.162] - args: function (..., envir = parent.frame(), workers = "") [01:29:36.162] - tweaked: FALSE [01:29:36.162] - call: NULL [01:29:36.163] 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) [01:29:36.164] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [01:29:36.164] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [01:29:36.165] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [01:29:36.165] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [01:29:36.165] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [01:29:36.165] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [01:29:36.165] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [01:29:36.166] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [01:29:36.166] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [01:29:36.166] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [01:29:36.166] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [01:29:36.166] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [01:29:36.167] Environment variable 'R_FUTURE_PLAN' not set [01:29:36.167] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [01:29:36.167] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [01:29:36.167] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [01:29:36.168] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [01:29:36.168] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [01:29:36.168] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [01:29:36.168] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [01:29:36.168] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [01:29:36.169] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [01:29:36.169] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [01:29:36.169] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [01:29:36.169] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [01:29:36.170] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [01:29:36.170] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [01:29:36.170] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [01:29:36.170] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [01:29:36.170] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [01:29:36.171] Environment variable 'R_FUTURE_JOURNAL' not set [01:29:36.171] 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 [01:29:36.172] R process uuid: 08a2e737-c7e9-43f9-18a1-e0626f4d8539 [01:29:36.172] Setting plan('default') [01:29:36.172] plan(): Setting new future strategy stack: [01:29:36.172] List of future strategies: [01:29:36.172] 1. sequential: [01:29:36.172] - args: function (..., envir = parent.frame(), workers = "") [01:29:36.172] - tweaked: FALSE [01:29:36.172] - call: NULL [01:29:36.173] 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") [01:29:36.173] plan(): Setting new future strategy stack: [01:29:36.174] List of future strategies: [01:29:36.174] 1. sequential: [01:29:36.174] - args: function (..., envir = parent.frame(), workers = "") [01:29:36.174] - tweaked: FALSE [01:29:36.174] - call: NULL [01:29:36.174] 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) [01:29:36.176] Future-specific environment variables: - R_FUTURE_PLAN='multisession' - R_FUTURE_WAIT_INTERVAL='0.01' [01:29:36.176] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [01:29:36.176] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [01:29:36.176] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [01:29:36.177] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [01:29:36.177] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [01:29:36.177] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [01:29:36.177] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [01:29:36.177] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [01:29:36.178] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [01:29:36.178] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [01:29:36.178] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [01:29:36.178] R_FUTURE_PLAN='multisession' [01:29:36.179] => options("future.plan" = 'multisession') [n=1, mode=character] [01:29:36.179] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [01:29:36.179] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [01:29:36.179] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [01:29:36.179] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [01:29:36.180] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [01:29:36.180] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [01:29:36.180] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [01:29:36.180] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [01:29:36.181] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [01:29:36.181] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [01:29:36.181] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [01:29:36.181] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [01:29:36.181] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [01:29:36.182] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [01:29:36.182] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [01:29:36.182] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [01:29:36.182] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [01:29:36.183] Environment variable 'R_FUTURE_JOURNAL' not set [01:29:36.183] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [01:29:36.183] Option 'future.plan' = 'multisession' [01:29:36.183] R process uuid: 08a2e737-c7e9-43f9-18a1-e0626f4d8539 [01:29:36.183] Setting plan('default') [01:29:36.184] plan(): Setting new future strategy stack: [01:29:36.184] List of future strategies: [01:29:36.184] 1. multisession: [01:29:36.184] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:36.184] - tweaked: FALSE [01:29:36.184] - call: plan("default", .init = FALSE) [01:29:36.187] 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") [01:29:36.187] plan(): Setting new future strategy stack: [01:29:36.188] List of future strategies: [01:29:36.188] 1. multisession: [01:29:36.188] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:36.188] - tweaked: FALSE [01:29:36.188] - call: plan("default") [01:29:36.188] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [01:29:36.188] multisession: [01:29:36.188] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:36.188] - tweaked: FALSE [01:29:36.188] - call: plan("default") [01:29:36.191] getGlobalsAndPackages() ... [01:29:36.192] Not searching for globals [01:29:36.192] - globals: [0] [01:29:36.192] getGlobalsAndPackages() ... DONE [01:29:36.193] [local output] makeClusterPSOCK() ... [01:29:36.196] [local output] Workers: [n = 2] 'localhost', 'localhost' [01:29:36.198] [local output] Base port: 30573 [01:29:36.199] [local output] Getting setup options for 2 cluster nodes ... [01:29:36.199] [local output] - Node 1 of 2 ... [01:29:36.199] [local output] localMachine=TRUE => revtunnel=FALSE [01:29:36.201] [local output] Rscript port: 30573 [01:29:36.201] [local output] - Node 2 of 2 ... [01:29:36.202] [local output] localMachine=TRUE => revtunnel=FALSE [01:29:36.203] [local output] Rscript port: 30573 [01:29:36.203] [local output] Getting setup options for 2 cluster nodes ... done [01:29:36.203] [local output] - Parallel setup requested for some PSOCK nodes [01:29:36.204] [local output] Setting up PSOCK nodes in parallel [01:29:36.204] List of 36 [01:29:36.204] $ worker : chr "localhost" [01:29:36.204] ..- attr(*, "localhost")= logi TRUE [01:29:36.204] $ master : chr "localhost" [01:29:36.204] $ port : int 30573 [01:29:36.204] $ connectTimeout : num 120 [01:29:36.204] $ timeout : num 120 [01:29:36.204] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [01:29:36.204] $ homogeneous : logi TRUE [01:29:36.204] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=startup.R:11716:CRANWIN3:CRAN\" "| __truncated__ [01:29:36.204] $ rscript_envs : NULL [01:29:36.204] $ rscript_libs : chr [1:2] "D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47" "D:/RCompile/recent/R/library" [01:29:36.204] $ rscript_startup : NULL [01:29:36.204] $ rscript_sh : chr "cmd" [01:29:36.204] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:29:36.204] $ methods : logi TRUE [01:29:36.204] $ socketOptions : chr "no-delay" [01:29:36.204] $ useXDR : logi FALSE [01:29:36.204] $ outfile : chr "/dev/null" [01:29:36.204] $ renice : int NA [01:29:36.204] $ rshcmd : NULL [01:29:36.204] $ user : chr(0) [01:29:36.204] $ revtunnel : logi FALSE [01:29:36.204] $ rshlogfile : NULL [01:29:36.204] $ rshopts : chr(0) [01:29:36.204] $ rank : int 1 [01:29:36.204] $ manual : logi FALSE [01:29:36.204] $ dryrun : logi FALSE [01:29:36.204] $ quiet : logi FALSE [01:29:36.204] $ setup_strategy : chr "parallel" [01:29:36.204] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:29:36.204] $ pidfile : chr "D:/temp/RtmpYV4mxY/worker.rank=1.parallelly.parent=11716.2dc45e9021d1.pid" [01:29:36.204] $ rshcmd_label : NULL [01:29:36.204] $ rsh_call : NULL [01:29:36.204] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:29:36.204] $ localMachine : logi TRUE [01:29:36.204] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [01:29:36.204] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [01:29:36.204] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [01:29:36.204] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [01:29:36.204] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [01:29:36.204] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [01:29:36.204] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [01:29:36.204] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [01:29:36.204] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [01:29:36.204] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [01:29:36.204] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [01:29:36.204] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [01:29:36.204] "parallel"), action = c("launch", "options"), verbose = FALSE) [01:29:36.204] $ arguments :List of 28 [01:29:36.204] ..$ worker : chr "localhost" [01:29:36.204] ..$ master : NULL [01:29:36.204] ..$ port : int 30573 [01:29:36.204] ..$ connectTimeout : num 120 [01:29:36.204] ..$ timeout : num 120 [01:29:36.204] ..$ rscript : NULL [01:29:36.204] ..$ homogeneous : NULL [01:29:36.204] ..$ rscript_args : NULL [01:29:36.204] ..$ rscript_envs : NULL [01:29:36.204] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47" "D:/RCompile/recent/R/library" [01:29:36.204] ..$ rscript_startup : NULL [01:29:36.204] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [01:29:36.204] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:29:36.204] ..$ methods : logi TRUE [01:29:36.204] ..$ socketOptions : chr "no-delay" [01:29:36.204] ..$ useXDR : logi FALSE [01:29:36.204] ..$ outfile : chr "/dev/null" [01:29:36.204] ..$ renice : int NA [01:29:36.204] ..$ rshcmd : NULL [01:29:36.204] ..$ user : NULL [01:29:36.204] ..$ revtunnel : logi NA [01:29:36.204] ..$ rshlogfile : NULL [01:29:36.204] ..$ rshopts : NULL [01:29:36.204] ..$ rank : int 1 [01:29:36.204] ..$ manual : logi FALSE [01:29:36.204] ..$ dryrun : logi FALSE [01:29:36.204] ..$ quiet : logi FALSE [01:29:36.204] ..$ setup_strategy : chr "parallel" [01:29:36.204] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [01:29:36.225] [local output] System call to launch all workers: [01:29:36.226] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=startup.R:11716:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpYV4mxY/worker.rank=1.parallelly.parent=11716.2dc45e9021d1.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=30573 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [01:29:36.226] [local output] Starting PSOCK main server [01:29:36.232] [local output] Workers launched [01:29:36.232] [local output] Waiting for workers to connect back [01:29:36.233] - [local output] 0 workers out of 2 ready [01:29:36.408] - [local output] 0 workers out of 2 ready [01:29:36.408] - [local output] 1 workers out of 2 ready [01:29:36.448] - [local output] 1 workers out of 2 ready [01:29:36.448] - [local output] 2 workers out of 2 ready [01:29:36.449] [local output] Launching of workers completed [01:29:36.449] [local output] Collecting session information from workers [01:29:36.450] [local output] - Worker #1 of 2 [01:29:36.450] [local output] - Worker #2 of 2 [01:29:36.450] [local output] makeClusterPSOCK() ... done [01:29:36.464] Packages needed by the future expression (n = 0): [01:29:36.465] Packages needed by future strategies (n = 0): [01:29:36.465] { [01:29:36.465] { [01:29:36.465] { [01:29:36.465] ...future.startTime <- base::Sys.time() [01:29:36.465] { [01:29:36.465] { [01:29:36.465] { [01:29:36.465] { [01:29:36.465] base::local({ [01:29:36.465] has_future <- base::requireNamespace("future", [01:29:36.465] quietly = TRUE) [01:29:36.465] if (has_future) { [01:29:36.465] ns <- base::getNamespace("future") [01:29:36.465] version <- ns[[".package"]][["version"]] [01:29:36.465] if (is.null(version)) [01:29:36.465] version <- utils::packageVersion("future") [01:29:36.465] } [01:29:36.465] else { [01:29:36.465] version <- NULL [01:29:36.465] } [01:29:36.465] if (!has_future || version < "1.8.0") { [01:29:36.465] info <- base::c(r_version = base::gsub("R version ", [01:29:36.465] "", base::R.version$version.string), [01:29:36.465] platform = base::sprintf("%s (%s-bit)", [01:29:36.465] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:29:36.465] os = base::paste(base::Sys.info()[base::c("sysname", [01:29:36.465] "release", "version")], collapse = " "), [01:29:36.465] hostname = base::Sys.info()[["nodename"]]) [01:29:36.465] info <- base::sprintf("%s: %s", base::names(info), [01:29:36.465] info) [01:29:36.465] info <- base::paste(info, collapse = "; ") [01:29:36.465] if (!has_future) { [01:29:36.465] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:29:36.465] info) [01:29:36.465] } [01:29:36.465] else { [01:29:36.465] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:29:36.465] info, version) [01:29:36.465] } [01:29:36.465] base::stop(msg) [01:29:36.465] } [01:29:36.465] }) [01:29:36.465] } [01:29:36.465] ...future.mc.cores.old <- base::getOption("mc.cores") [01:29:36.465] base::options(mc.cores = 1L) [01:29:36.465] } [01:29:36.465] options(future.plan = NULL) [01:29:36.465] Sys.unsetenv("R_FUTURE_PLAN") [01:29:36.465] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:29:36.465] } [01:29:36.465] ...future.workdir <- getwd() [01:29:36.465] } [01:29:36.465] ...future.oldOptions <- base::as.list(base::.Options) [01:29:36.465] ...future.oldEnvVars <- base::Sys.getenv() [01:29:36.465] } [01:29:36.465] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:29:36.465] future.globals.maxSize = NULL, future.globals.method = NULL, [01:29:36.465] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:29:36.465] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:29:36.465] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:29:36.465] future.stdout.windows.reencode = NULL, width = 80L) [01:29:36.465] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:29:36.465] base::names(...future.oldOptions)) [01:29:36.465] } [01:29:36.465] if (FALSE) { [01:29:36.465] } [01:29:36.465] else { [01:29:36.465] if (TRUE) { [01:29:36.465] ...future.stdout <- base::rawConnection(base::raw(0L), [01:29:36.465] open = "w") [01:29:36.465] } [01:29:36.465] else { [01:29:36.465] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:29:36.465] windows = "NUL", "/dev/null"), open = "w") [01:29:36.465] } [01:29:36.465] base::sink(...future.stdout, type = "output", split = FALSE) [01:29:36.465] base::on.exit(if (!base::is.null(...future.stdout)) { [01:29:36.465] base::sink(type = "output", split = FALSE) [01:29:36.465] base::close(...future.stdout) [01:29:36.465] }, add = TRUE) [01:29:36.465] } [01:29:36.465] ...future.frame <- base::sys.nframe() [01:29:36.465] ...future.conditions <- base::list() [01:29:36.465] ...future.rng <- base::globalenv()$.Random.seed [01:29:36.465] if (FALSE) { [01:29:36.465] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:29:36.465] "...future.value", "...future.globalenv.names", ".Random.seed") [01:29:36.465] } [01:29:36.465] ...future.result <- base::tryCatch({ [01:29:36.465] base::withCallingHandlers({ [01:29:36.465] ...future.value <- base::withVisible(base::local({ [01:29:36.465] ...future.makeSendCondition <- base::local({ [01:29:36.465] sendCondition <- NULL [01:29:36.465] function(frame = 1L) { [01:29:36.465] if (is.function(sendCondition)) [01:29:36.465] return(sendCondition) [01:29:36.465] ns <- getNamespace("parallel") [01:29:36.465] if (exists("sendData", mode = "function", [01:29:36.465] envir = ns)) { [01:29:36.465] parallel_sendData <- get("sendData", mode = "function", [01:29:36.465] envir = ns) [01:29:36.465] envir <- sys.frame(frame) [01:29:36.465] master <- NULL [01:29:36.465] while (!identical(envir, .GlobalEnv) && [01:29:36.465] !identical(envir, emptyenv())) { [01:29:36.465] if (exists("master", mode = "list", envir = envir, [01:29:36.465] inherits = FALSE)) { [01:29:36.465] master <- get("master", mode = "list", [01:29:36.465] envir = envir, inherits = FALSE) [01:29:36.465] if (inherits(master, c("SOCKnode", [01:29:36.465] "SOCK0node"))) { [01:29:36.465] sendCondition <<- function(cond) { [01:29:36.465] data <- list(type = "VALUE", value = cond, [01:29:36.465] success = TRUE) [01:29:36.465] parallel_sendData(master, data) [01:29:36.465] } [01:29:36.465] return(sendCondition) [01:29:36.465] } [01:29:36.465] } [01:29:36.465] frame <- frame + 1L [01:29:36.465] envir <- sys.frame(frame) [01:29:36.465] } [01:29:36.465] } [01:29:36.465] sendCondition <<- function(cond) NULL [01:29:36.465] } [01:29:36.465] }) [01:29:36.465] withCallingHandlers({ [01:29:36.465] NA [01:29:36.465] }, immediateCondition = function(cond) { [01:29:36.465] sendCondition <- ...future.makeSendCondition() [01:29:36.465] sendCondition(cond) [01:29:36.465] muffleCondition <- function (cond, pattern = "^muffle") [01:29:36.465] { [01:29:36.465] inherits <- base::inherits [01:29:36.465] invokeRestart <- base::invokeRestart [01:29:36.465] is.null <- base::is.null [01:29:36.465] muffled <- FALSE [01:29:36.465] if (inherits(cond, "message")) { [01:29:36.465] muffled <- grepl(pattern, "muffleMessage") [01:29:36.465] if (muffled) [01:29:36.465] invokeRestart("muffleMessage") [01:29:36.465] } [01:29:36.465] else if (inherits(cond, "warning")) { [01:29:36.465] muffled <- grepl(pattern, "muffleWarning") [01:29:36.465] if (muffled) [01:29:36.465] invokeRestart("muffleWarning") [01:29:36.465] } [01:29:36.465] else if (inherits(cond, "condition")) { [01:29:36.465] if (!is.null(pattern)) { [01:29:36.465] computeRestarts <- base::computeRestarts [01:29:36.465] grepl <- base::grepl [01:29:36.465] restarts <- computeRestarts(cond) [01:29:36.465] for (restart in restarts) { [01:29:36.465] name <- restart$name [01:29:36.465] if (is.null(name)) [01:29:36.465] next [01:29:36.465] if (!grepl(pattern, name)) [01:29:36.465] next [01:29:36.465] invokeRestart(restart) [01:29:36.465] muffled <- TRUE [01:29:36.465] break [01:29:36.465] } [01:29:36.465] } [01:29:36.465] } [01:29:36.465] invisible(muffled) [01:29:36.465] } [01:29:36.465] muffleCondition(cond) [01:29:36.465] }) [01:29:36.465] })) [01:29:36.465] future::FutureResult(value = ...future.value$value, [01:29:36.465] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:29:36.465] ...future.rng), globalenv = if (FALSE) [01:29:36.465] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:29:36.465] ...future.globalenv.names)) [01:29:36.465] else NULL, started = ...future.startTime, version = "1.8") [01:29:36.465] }, condition = base::local({ [01:29:36.465] c <- base::c [01:29:36.465] inherits <- base::inherits [01:29:36.465] invokeRestart <- base::invokeRestart [01:29:36.465] length <- base::length [01:29:36.465] list <- base::list [01:29:36.465] seq.int <- base::seq.int [01:29:36.465] signalCondition <- base::signalCondition [01:29:36.465] sys.calls <- base::sys.calls [01:29:36.465] `[[` <- base::`[[` [01:29:36.465] `+` <- base::`+` [01:29:36.465] `<<-` <- base::`<<-` [01:29:36.465] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:29:36.465] calls[seq.int(from = from + 12L, to = length(calls) - [01:29:36.465] 3L)] [01:29:36.465] } [01:29:36.465] function(cond) { [01:29:36.465] is_error <- inherits(cond, "error") [01:29:36.465] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:29:36.465] NULL) [01:29:36.465] if (is_error) { [01:29:36.465] sessionInformation <- function() { [01:29:36.465] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:29:36.465] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:29:36.465] search = base::search(), system = base::Sys.info()) [01:29:36.465] } [01:29:36.465] ...future.conditions[[length(...future.conditions) + [01:29:36.465] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:29:36.465] cond$call), session = sessionInformation(), [01:29:36.465] timestamp = base::Sys.time(), signaled = 0L) [01:29:36.465] signalCondition(cond) [01:29:36.465] } [01:29:36.465] else if (!ignore && TRUE && inherits(cond, c("condition", [01:29:36.465] "immediateCondition"))) { [01:29:36.465] signal <- TRUE && inherits(cond, "immediateCondition") [01:29:36.465] ...future.conditions[[length(...future.conditions) + [01:29:36.465] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:29:36.465] if (TRUE && !signal) { [01:29:36.465] muffleCondition <- function (cond, pattern = "^muffle") [01:29:36.465] { [01:29:36.465] inherits <- base::inherits [01:29:36.465] invokeRestart <- base::invokeRestart [01:29:36.465] is.null <- base::is.null [01:29:36.465] muffled <- FALSE [01:29:36.465] if (inherits(cond, "message")) { [01:29:36.465] muffled <- grepl(pattern, "muffleMessage") [01:29:36.465] if (muffled) [01:29:36.465] invokeRestart("muffleMessage") [01:29:36.465] } [01:29:36.465] else if (inherits(cond, "warning")) { [01:29:36.465] muffled <- grepl(pattern, "muffleWarning") [01:29:36.465] if (muffled) [01:29:36.465] invokeRestart("muffleWarning") [01:29:36.465] } [01:29:36.465] else if (inherits(cond, "condition")) { [01:29:36.465] if (!is.null(pattern)) { [01:29:36.465] computeRestarts <- base::computeRestarts [01:29:36.465] grepl <- base::grepl [01:29:36.465] restarts <- computeRestarts(cond) [01:29:36.465] for (restart in restarts) { [01:29:36.465] name <- restart$name [01:29:36.465] if (is.null(name)) [01:29:36.465] next [01:29:36.465] if (!grepl(pattern, name)) [01:29:36.465] next [01:29:36.465] invokeRestart(restart) [01:29:36.465] muffled <- TRUE [01:29:36.465] break [01:29:36.465] } [01:29:36.465] } [01:29:36.465] } [01:29:36.465] invisible(muffled) [01:29:36.465] } [01:29:36.465] muffleCondition(cond, pattern = "^muffle") [01:29:36.465] } [01:29:36.465] } [01:29:36.465] else { [01:29:36.465] if (TRUE) { [01:29:36.465] muffleCondition <- function (cond, pattern = "^muffle") [01:29:36.465] { [01:29:36.465] inherits <- base::inherits [01:29:36.465] invokeRestart <- base::invokeRestart [01:29:36.465] is.null <- base::is.null [01:29:36.465] muffled <- FALSE [01:29:36.465] if (inherits(cond, "message")) { [01:29:36.465] muffled <- grepl(pattern, "muffleMessage") [01:29:36.465] if (muffled) [01:29:36.465] invokeRestart("muffleMessage") [01:29:36.465] } [01:29:36.465] else if (inherits(cond, "warning")) { [01:29:36.465] muffled <- grepl(pattern, "muffleWarning") [01:29:36.465] if (muffled) [01:29:36.465] invokeRestart("muffleWarning") [01:29:36.465] } [01:29:36.465] else if (inherits(cond, "condition")) { [01:29:36.465] if (!is.null(pattern)) { [01:29:36.465] computeRestarts <- base::computeRestarts [01:29:36.465] grepl <- base::grepl [01:29:36.465] restarts <- computeRestarts(cond) [01:29:36.465] for (restart in restarts) { [01:29:36.465] name <- restart$name [01:29:36.465] if (is.null(name)) [01:29:36.465] next [01:29:36.465] if (!grepl(pattern, name)) [01:29:36.465] next [01:29:36.465] invokeRestart(restart) [01:29:36.465] muffled <- TRUE [01:29:36.465] break [01:29:36.465] } [01:29:36.465] } [01:29:36.465] } [01:29:36.465] invisible(muffled) [01:29:36.465] } [01:29:36.465] muffleCondition(cond, pattern = "^muffle") [01:29:36.465] } [01:29:36.465] } [01:29:36.465] } [01:29:36.465] })) [01:29:36.465] }, error = function(ex) { [01:29:36.465] base::structure(base::list(value = NULL, visible = NULL, [01:29:36.465] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:29:36.465] ...future.rng), started = ...future.startTime, [01:29:36.465] finished = Sys.time(), session_uuid = NA_character_, [01:29:36.465] version = "1.8"), class = "FutureResult") [01:29:36.465] }, finally = { [01:29:36.465] if (!identical(...future.workdir, getwd())) [01:29:36.465] setwd(...future.workdir) [01:29:36.465] { [01:29:36.465] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:29:36.465] ...future.oldOptions$nwarnings <- NULL [01:29:36.465] } [01:29:36.465] base::options(...future.oldOptions) [01:29:36.465] if (.Platform$OS.type == "windows") { [01:29:36.465] old_names <- names(...future.oldEnvVars) [01:29:36.465] envs <- base::Sys.getenv() [01:29:36.465] names <- names(envs) [01:29:36.465] common <- intersect(names, old_names) [01:29:36.465] added <- setdiff(names, old_names) [01:29:36.465] removed <- setdiff(old_names, names) [01:29:36.465] changed <- common[...future.oldEnvVars[common] != [01:29:36.465] envs[common]] [01:29:36.465] NAMES <- toupper(changed) [01:29:36.465] args <- list() [01:29:36.465] for (kk in seq_along(NAMES)) { [01:29:36.465] name <- changed[[kk]] [01:29:36.465] NAME <- NAMES[[kk]] [01:29:36.465] if (name != NAME && is.element(NAME, old_names)) [01:29:36.465] next [01:29:36.465] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:36.465] } [01:29:36.465] NAMES <- toupper(added) [01:29:36.465] for (kk in seq_along(NAMES)) { [01:29:36.465] name <- added[[kk]] [01:29:36.465] NAME <- NAMES[[kk]] [01:29:36.465] if (name != NAME && is.element(NAME, old_names)) [01:29:36.465] next [01:29:36.465] args[[name]] <- "" [01:29:36.465] } [01:29:36.465] NAMES <- toupper(removed) [01:29:36.465] for (kk in seq_along(NAMES)) { [01:29:36.465] name <- removed[[kk]] [01:29:36.465] NAME <- NAMES[[kk]] [01:29:36.465] if (name != NAME && is.element(NAME, old_names)) [01:29:36.465] next [01:29:36.465] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:36.465] } [01:29:36.465] if (length(args) > 0) [01:29:36.465] base::do.call(base::Sys.setenv, args = args) [01:29:36.465] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:29:36.465] } [01:29:36.465] else { [01:29:36.465] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:29:36.465] } [01:29:36.465] { [01:29:36.465] if (base::length(...future.futureOptionsAdded) > [01:29:36.465] 0L) { [01:29:36.465] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:29:36.465] base::names(opts) <- ...future.futureOptionsAdded [01:29:36.465] base::options(opts) [01:29:36.465] } [01:29:36.465] { [01:29:36.465] { [01:29:36.465] base::options(mc.cores = ...future.mc.cores.old) [01:29:36.465] NULL [01:29:36.465] } [01:29:36.465] options(future.plan = "multisession") [01:29:36.465] if (is.na("multisession")) [01:29:36.465] Sys.unsetenv("R_FUTURE_PLAN") [01:29:36.465] else Sys.setenv(R_FUTURE_PLAN = "multisession") [01:29:36.465] future::plan(list(function (..., workers = availableCores(), [01:29:36.465] lazy = FALSE, rscript_libs = .libPaths(), [01:29:36.465] envir = parent.frame()) [01:29:36.465] { [01:29:36.465] if (is.function(workers)) [01:29:36.465] workers <- workers() [01:29:36.465] workers <- structure(as.integer(workers), [01:29:36.465] class = class(workers)) [01:29:36.465] stop_if_not(length(workers) == 1, is.finite(workers), [01:29:36.465] workers >= 1) [01:29:36.465] if (workers == 1L && !inherits(workers, "AsIs")) { [01:29:36.465] return(sequential(..., lazy = TRUE, envir = envir)) [01:29:36.465] } [01:29:36.465] future <- MultisessionFuture(..., workers = workers, [01:29:36.465] lazy = lazy, rscript_libs = rscript_libs, [01:29:36.465] envir = envir) [01:29:36.465] if (!future$lazy) [01:29:36.465] future <- run(future) [01:29:36.465] invisible(future) [01:29:36.465] }), .cleanup = FALSE, .init = FALSE) [01:29:36.465] } [01:29:36.465] } [01:29:36.465] } [01:29:36.465] }) [01:29:36.465] if (TRUE) { [01:29:36.465] base::sink(type = "output", split = FALSE) [01:29:36.465] if (TRUE) { [01:29:36.465] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:29:36.465] } [01:29:36.465] else { [01:29:36.465] ...future.result["stdout"] <- base::list(NULL) [01:29:36.465] } [01:29:36.465] base::close(...future.stdout) [01:29:36.465] ...future.stdout <- NULL [01:29:36.465] } [01:29:36.465] ...future.result$conditions <- ...future.conditions [01:29:36.465] ...future.result$finished <- base::Sys.time() [01:29:36.465] ...future.result [01:29:36.465] } [01:29:36.549] MultisessionFuture started [01:29:36.550] result() for ClusterFuture ... [01:29:36.550] receiveMessageFromWorker() for ClusterFuture ... [01:29:36.550] - Validating connection of MultisessionFuture [01:29:36.623] - received message: FutureResult [01:29:36.623] - Received FutureResult [01:29:36.624] - Erased future from FutureRegistry [01:29:36.624] result() for ClusterFuture ... [01:29:36.624] - result already collected: FutureResult [01:29:36.624] result() for ClusterFuture ... done [01:29:36.624] receiveMessageFromWorker() for ClusterFuture ... done [01:29:36.624] result() for ClusterFuture ... done [01:29:36.625] result() for ClusterFuture ... [01:29:36.625] - result already collected: FutureResult [01:29:36.625] result() for ClusterFuture ... done [01:29:36.625] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:29:36.628] 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) [01:29:36.629] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [01:29:36.629] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [01:29:36.630] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [01:29:36.630] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [01:29:36.630] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [01:29:36.630] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [01:29:36.630] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [01:29:36.631] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [01:29:36.631] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [01:29:36.631] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [01:29:36.631] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [01:29:36.631] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [01:29:36.632] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [01:29:36.632] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [01:29:36.632] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [01:29:36.632] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [01:29:36.632] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [01:29:36.633] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [01:29:36.633] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [01:29:36.633] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [01:29:36.633] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [01:29:36.633] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [01:29:36.633] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [01:29:36.634] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [01:29:36.634] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [01:29:36.634] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [01:29:36.634] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [01:29:36.634] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [01:29:36.635] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [01:29:36.635] Environment variable 'R_FUTURE_JOURNAL' not set [01:29:36.635] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [01:29:36.635] Option 'future.plan' = 'multisession' [01:29:36.635] R process uuid: 08a2e737-c7e9-43f9-18a1-e0626f4d8539 [01:29:36.636] Setting plan('default') [01:29:36.636] plan(): Setting new future strategy stack: [01:29:36.636] List of future strategies: [01:29:36.636] 1. multisession: [01:29:36.636] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:36.636] - tweaked: FALSE [01:29:36.636] - call: plan("default", .init = FALSE) [01:29:36.639] 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") [01:29:36.639] plan(): Setting new future strategy stack: [01:29:36.640] List of future strategies: [01:29:36.640] 1. multisession: [01:29:36.640] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:36.640] - tweaked: FALSE [01:29:36.640] - call: plan("default") [01:29:36.640] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [01:29:36.640] multisession: [01:29:36.640] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:36.640] - tweaked: FALSE [01:29:36.640] - call: plan("default") [01:29:36.643] getGlobalsAndPackages() ... [01:29:36.643] Not searching for globals [01:29:36.643] - globals: [0] [01:29:36.643] getGlobalsAndPackages() ... DONE [01:29:36.644] [local output] makeClusterPSOCK() ... [01:29:36.644] [local output] Workers: [n = 2] 'localhost', 'localhost' [01:29:36.647] [local output] Base port: 39691 [01:29:36.647] [local output] Getting setup options for 2 cluster nodes ... [01:29:36.647] [local output] - Node 1 of 2 ... [01:29:36.648] [local output] localMachine=TRUE => revtunnel=FALSE [01:29:36.649] [local output] Rscript port: 39691 [01:29:36.650] [local output] - Node 2 of 2 ... [01:29:36.650] [local output] localMachine=TRUE => revtunnel=FALSE [01:29:36.651] [local output] Rscript port: 39691 [01:29:36.652] [local output] Getting setup options for 2 cluster nodes ... done [01:29:36.652] [local output] - Parallel setup requested for some PSOCK nodes [01:29:36.652] [local output] Setting up PSOCK nodes in parallel [01:29:36.653] List of 36 [01:29:36.653] $ worker : chr "localhost" [01:29:36.653] ..- attr(*, "localhost")= logi TRUE [01:29:36.653] $ master : chr "localhost" [01:29:36.653] $ port : int 39691 [01:29:36.653] $ connectTimeout : num 120 [01:29:36.653] $ timeout : num 120 [01:29:36.653] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [01:29:36.653] $ homogeneous : logi TRUE [01:29:36.653] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=startup.R:11716:CRANWIN3:CRAN\" "| __truncated__ [01:29:36.653] $ rscript_envs : NULL [01:29:36.653] $ rscript_libs : chr [1:2] "D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47" "D:/RCompile/recent/R/library" [01:29:36.653] $ rscript_startup : NULL [01:29:36.653] $ rscript_sh : chr "cmd" [01:29:36.653] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:29:36.653] $ methods : logi TRUE [01:29:36.653] $ socketOptions : chr "no-delay" [01:29:36.653] $ useXDR : logi FALSE [01:29:36.653] $ outfile : chr "/dev/null" [01:29:36.653] $ renice : int NA [01:29:36.653] $ rshcmd : NULL [01:29:36.653] $ user : chr(0) [01:29:36.653] $ revtunnel : logi FALSE [01:29:36.653] $ rshlogfile : NULL [01:29:36.653] $ rshopts : chr(0) [01:29:36.653] $ rank : int 1 [01:29:36.653] $ manual : logi FALSE [01:29:36.653] $ dryrun : logi FALSE [01:29:36.653] $ quiet : logi FALSE [01:29:36.653] $ setup_strategy : chr "parallel" [01:29:36.653] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:29:36.653] $ pidfile : chr "D:/temp/RtmpYV4mxY/worker.rank=1.parallelly.parent=11716.2dc4163330e8.pid" [01:29:36.653] $ rshcmd_label : NULL [01:29:36.653] $ rsh_call : NULL [01:29:36.653] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:29:36.653] $ localMachine : logi TRUE [01:29:36.653] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [01:29:36.653] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [01:29:36.653] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [01:29:36.653] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [01:29:36.653] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [01:29:36.653] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [01:29:36.653] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [01:29:36.653] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [01:29:36.653] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [01:29:36.653] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [01:29:36.653] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [01:29:36.653] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [01:29:36.653] "parallel"), action = c("launch", "options"), verbose = FALSE) [01:29:36.653] $ arguments :List of 28 [01:29:36.653] ..$ worker : chr "localhost" [01:29:36.653] ..$ master : NULL [01:29:36.653] ..$ port : int 39691 [01:29:36.653] ..$ connectTimeout : num 120 [01:29:36.653] ..$ timeout : num 120 [01:29:36.653] ..$ rscript : NULL [01:29:36.653] ..$ homogeneous : NULL [01:29:36.653] ..$ rscript_args : NULL [01:29:36.653] ..$ rscript_envs : NULL [01:29:36.653] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47" "D:/RCompile/recent/R/library" [01:29:36.653] ..$ rscript_startup : NULL [01:29:36.653] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [01:29:36.653] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:29:36.653] ..$ methods : logi TRUE [01:29:36.653] ..$ socketOptions : chr "no-delay" [01:29:36.653] ..$ useXDR : logi FALSE [01:29:36.653] ..$ outfile : chr "/dev/null" [01:29:36.653] ..$ renice : int NA [01:29:36.653] ..$ rshcmd : NULL [01:29:36.653] ..$ user : NULL [01:29:36.653] ..$ revtunnel : logi NA [01:29:36.653] ..$ rshlogfile : NULL [01:29:36.653] ..$ rshopts : NULL [01:29:36.653] ..$ rank : int 1 [01:29:36.653] ..$ manual : logi FALSE [01:29:36.653] ..$ dryrun : logi FALSE [01:29:36.653] ..$ quiet : logi FALSE [01:29:36.653] ..$ setup_strategy : chr "parallel" [01:29:36.653] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [01:29:36.674] [local output] System call to launch all workers: [01:29:36.675] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=startup.R:11716:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpYV4mxY/worker.rank=1.parallelly.parent=11716.2dc4163330e8.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=39691 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [01:29:36.675] [local output] Starting PSOCK main server [01:29:36.682] [local output] Workers launched [01:29:36.682] [local output] Waiting for workers to connect back [01:29:36.683] - [local output] 0 workers out of 2 ready [01:29:36.857] - [local output] 0 workers out of 2 ready [01:29:36.857] - [local output] 1 workers out of 2 ready [01:29:36.892] - [local output] 1 workers out of 2 ready [01:29:36.893] - [local output] 2 workers out of 2 ready [01:29:36.893] [local output] Launching of workers completed [01:29:36.893] [local output] Collecting session information from workers [01:29:36.894] [local output] - Worker #1 of 2 [01:29:36.894] [local output] - Worker #2 of 2 [01:29:36.895] [local output] makeClusterPSOCK() ... done [01:29:36.907] Packages needed by the future expression (n = 0): [01:29:36.907] Packages needed by future strategies (n = 0): [01:29:36.908] { [01:29:36.908] { [01:29:36.908] { [01:29:36.908] ...future.startTime <- base::Sys.time() [01:29:36.908] { [01:29:36.908] { [01:29:36.908] { [01:29:36.908] { [01:29:36.908] base::local({ [01:29:36.908] has_future <- base::requireNamespace("future", [01:29:36.908] quietly = TRUE) [01:29:36.908] if (has_future) { [01:29:36.908] ns <- base::getNamespace("future") [01:29:36.908] version <- ns[[".package"]][["version"]] [01:29:36.908] if (is.null(version)) [01:29:36.908] version <- utils::packageVersion("future") [01:29:36.908] } [01:29:36.908] else { [01:29:36.908] version <- NULL [01:29:36.908] } [01:29:36.908] if (!has_future || version < "1.8.0") { [01:29:36.908] info <- base::c(r_version = base::gsub("R version ", [01:29:36.908] "", base::R.version$version.string), [01:29:36.908] platform = base::sprintf("%s (%s-bit)", [01:29:36.908] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:29:36.908] os = base::paste(base::Sys.info()[base::c("sysname", [01:29:36.908] "release", "version")], collapse = " "), [01:29:36.908] hostname = base::Sys.info()[["nodename"]]) [01:29:36.908] info <- base::sprintf("%s: %s", base::names(info), [01:29:36.908] info) [01:29:36.908] info <- base::paste(info, collapse = "; ") [01:29:36.908] if (!has_future) { [01:29:36.908] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:29:36.908] info) [01:29:36.908] } [01:29:36.908] else { [01:29:36.908] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:29:36.908] info, version) [01:29:36.908] } [01:29:36.908] base::stop(msg) [01:29:36.908] } [01:29:36.908] }) [01:29:36.908] } [01:29:36.908] ...future.mc.cores.old <- base::getOption("mc.cores") [01:29:36.908] base::options(mc.cores = 1L) [01:29:36.908] } [01:29:36.908] options(future.plan = NULL) [01:29:36.908] Sys.unsetenv("R_FUTURE_PLAN") [01:29:36.908] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:29:36.908] } [01:29:36.908] ...future.workdir <- getwd() [01:29:36.908] } [01:29:36.908] ...future.oldOptions <- base::as.list(base::.Options) [01:29:36.908] ...future.oldEnvVars <- base::Sys.getenv() [01:29:36.908] } [01:29:36.908] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:29:36.908] future.globals.maxSize = NULL, future.globals.method = NULL, [01:29:36.908] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:29:36.908] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:29:36.908] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:29:36.908] future.stdout.windows.reencode = NULL, width = 80L) [01:29:36.908] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:29:36.908] base::names(...future.oldOptions)) [01:29:36.908] } [01:29:36.908] if (FALSE) { [01:29:36.908] } [01:29:36.908] else { [01:29:36.908] if (TRUE) { [01:29:36.908] ...future.stdout <- base::rawConnection(base::raw(0L), [01:29:36.908] open = "w") [01:29:36.908] } [01:29:36.908] else { [01:29:36.908] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:29:36.908] windows = "NUL", "/dev/null"), open = "w") [01:29:36.908] } [01:29:36.908] base::sink(...future.stdout, type = "output", split = FALSE) [01:29:36.908] base::on.exit(if (!base::is.null(...future.stdout)) { [01:29:36.908] base::sink(type = "output", split = FALSE) [01:29:36.908] base::close(...future.stdout) [01:29:36.908] }, add = TRUE) [01:29:36.908] } [01:29:36.908] ...future.frame <- base::sys.nframe() [01:29:36.908] ...future.conditions <- base::list() [01:29:36.908] ...future.rng <- base::globalenv()$.Random.seed [01:29:36.908] if (FALSE) { [01:29:36.908] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:29:36.908] "...future.value", "...future.globalenv.names", ".Random.seed") [01:29:36.908] } [01:29:36.908] ...future.result <- base::tryCatch({ [01:29:36.908] base::withCallingHandlers({ [01:29:36.908] ...future.value <- base::withVisible(base::local({ [01:29:36.908] ...future.makeSendCondition <- base::local({ [01:29:36.908] sendCondition <- NULL [01:29:36.908] function(frame = 1L) { [01:29:36.908] if (is.function(sendCondition)) [01:29:36.908] return(sendCondition) [01:29:36.908] ns <- getNamespace("parallel") [01:29:36.908] if (exists("sendData", mode = "function", [01:29:36.908] envir = ns)) { [01:29:36.908] parallel_sendData <- get("sendData", mode = "function", [01:29:36.908] envir = ns) [01:29:36.908] envir <- sys.frame(frame) [01:29:36.908] master <- NULL [01:29:36.908] while (!identical(envir, .GlobalEnv) && [01:29:36.908] !identical(envir, emptyenv())) { [01:29:36.908] if (exists("master", mode = "list", envir = envir, [01:29:36.908] inherits = FALSE)) { [01:29:36.908] master <- get("master", mode = "list", [01:29:36.908] envir = envir, inherits = FALSE) [01:29:36.908] if (inherits(master, c("SOCKnode", [01:29:36.908] "SOCK0node"))) { [01:29:36.908] sendCondition <<- function(cond) { [01:29:36.908] data <- list(type = "VALUE", value = cond, [01:29:36.908] success = TRUE) [01:29:36.908] parallel_sendData(master, data) [01:29:36.908] } [01:29:36.908] return(sendCondition) [01:29:36.908] } [01:29:36.908] } [01:29:36.908] frame <- frame + 1L [01:29:36.908] envir <- sys.frame(frame) [01:29:36.908] } [01:29:36.908] } [01:29:36.908] sendCondition <<- function(cond) NULL [01:29:36.908] } [01:29:36.908] }) [01:29:36.908] withCallingHandlers({ [01:29:36.908] NA [01:29:36.908] }, immediateCondition = function(cond) { [01:29:36.908] sendCondition <- ...future.makeSendCondition() [01:29:36.908] sendCondition(cond) [01:29:36.908] muffleCondition <- function (cond, pattern = "^muffle") [01:29:36.908] { [01:29:36.908] inherits <- base::inherits [01:29:36.908] invokeRestart <- base::invokeRestart [01:29:36.908] is.null <- base::is.null [01:29:36.908] muffled <- FALSE [01:29:36.908] if (inherits(cond, "message")) { [01:29:36.908] muffled <- grepl(pattern, "muffleMessage") [01:29:36.908] if (muffled) [01:29:36.908] invokeRestart("muffleMessage") [01:29:36.908] } [01:29:36.908] else if (inherits(cond, "warning")) { [01:29:36.908] muffled <- grepl(pattern, "muffleWarning") [01:29:36.908] if (muffled) [01:29:36.908] invokeRestart("muffleWarning") [01:29:36.908] } [01:29:36.908] else if (inherits(cond, "condition")) { [01:29:36.908] if (!is.null(pattern)) { [01:29:36.908] computeRestarts <- base::computeRestarts [01:29:36.908] grepl <- base::grepl [01:29:36.908] restarts <- computeRestarts(cond) [01:29:36.908] for (restart in restarts) { [01:29:36.908] name <- restart$name [01:29:36.908] if (is.null(name)) [01:29:36.908] next [01:29:36.908] if (!grepl(pattern, name)) [01:29:36.908] next [01:29:36.908] invokeRestart(restart) [01:29:36.908] muffled <- TRUE [01:29:36.908] break [01:29:36.908] } [01:29:36.908] } [01:29:36.908] } [01:29:36.908] invisible(muffled) [01:29:36.908] } [01:29:36.908] muffleCondition(cond) [01:29:36.908] }) [01:29:36.908] })) [01:29:36.908] future::FutureResult(value = ...future.value$value, [01:29:36.908] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:29:36.908] ...future.rng), globalenv = if (FALSE) [01:29:36.908] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:29:36.908] ...future.globalenv.names)) [01:29:36.908] else NULL, started = ...future.startTime, version = "1.8") [01:29:36.908] }, condition = base::local({ [01:29:36.908] c <- base::c [01:29:36.908] inherits <- base::inherits [01:29:36.908] invokeRestart <- base::invokeRestart [01:29:36.908] length <- base::length [01:29:36.908] list <- base::list [01:29:36.908] seq.int <- base::seq.int [01:29:36.908] signalCondition <- base::signalCondition [01:29:36.908] sys.calls <- base::sys.calls [01:29:36.908] `[[` <- base::`[[` [01:29:36.908] `+` <- base::`+` [01:29:36.908] `<<-` <- base::`<<-` [01:29:36.908] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:29:36.908] calls[seq.int(from = from + 12L, to = length(calls) - [01:29:36.908] 3L)] [01:29:36.908] } [01:29:36.908] function(cond) { [01:29:36.908] is_error <- inherits(cond, "error") [01:29:36.908] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:29:36.908] NULL) [01:29:36.908] if (is_error) { [01:29:36.908] sessionInformation <- function() { [01:29:36.908] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:29:36.908] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:29:36.908] search = base::search(), system = base::Sys.info()) [01:29:36.908] } [01:29:36.908] ...future.conditions[[length(...future.conditions) + [01:29:36.908] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:29:36.908] cond$call), session = sessionInformation(), [01:29:36.908] timestamp = base::Sys.time(), signaled = 0L) [01:29:36.908] signalCondition(cond) [01:29:36.908] } [01:29:36.908] else if (!ignore && TRUE && inherits(cond, c("condition", [01:29:36.908] "immediateCondition"))) { [01:29:36.908] signal <- TRUE && inherits(cond, "immediateCondition") [01:29:36.908] ...future.conditions[[length(...future.conditions) + [01:29:36.908] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:29:36.908] if (TRUE && !signal) { [01:29:36.908] muffleCondition <- function (cond, pattern = "^muffle") [01:29:36.908] { [01:29:36.908] inherits <- base::inherits [01:29:36.908] invokeRestart <- base::invokeRestart [01:29:36.908] is.null <- base::is.null [01:29:36.908] muffled <- FALSE [01:29:36.908] if (inherits(cond, "message")) { [01:29:36.908] muffled <- grepl(pattern, "muffleMessage") [01:29:36.908] if (muffled) [01:29:36.908] invokeRestart("muffleMessage") [01:29:36.908] } [01:29:36.908] else if (inherits(cond, "warning")) { [01:29:36.908] muffled <- grepl(pattern, "muffleWarning") [01:29:36.908] if (muffled) [01:29:36.908] invokeRestart("muffleWarning") [01:29:36.908] } [01:29:36.908] else if (inherits(cond, "condition")) { [01:29:36.908] if (!is.null(pattern)) { [01:29:36.908] computeRestarts <- base::computeRestarts [01:29:36.908] grepl <- base::grepl [01:29:36.908] restarts <- computeRestarts(cond) [01:29:36.908] for (restart in restarts) { [01:29:36.908] name <- restart$name [01:29:36.908] if (is.null(name)) [01:29:36.908] next [01:29:36.908] if (!grepl(pattern, name)) [01:29:36.908] next [01:29:36.908] invokeRestart(restart) [01:29:36.908] muffled <- TRUE [01:29:36.908] break [01:29:36.908] } [01:29:36.908] } [01:29:36.908] } [01:29:36.908] invisible(muffled) [01:29:36.908] } [01:29:36.908] muffleCondition(cond, pattern = "^muffle") [01:29:36.908] } [01:29:36.908] } [01:29:36.908] else { [01:29:36.908] if (TRUE) { [01:29:36.908] muffleCondition <- function (cond, pattern = "^muffle") [01:29:36.908] { [01:29:36.908] inherits <- base::inherits [01:29:36.908] invokeRestart <- base::invokeRestart [01:29:36.908] is.null <- base::is.null [01:29:36.908] muffled <- FALSE [01:29:36.908] if (inherits(cond, "message")) { [01:29:36.908] muffled <- grepl(pattern, "muffleMessage") [01:29:36.908] if (muffled) [01:29:36.908] invokeRestart("muffleMessage") [01:29:36.908] } [01:29:36.908] else if (inherits(cond, "warning")) { [01:29:36.908] muffled <- grepl(pattern, "muffleWarning") [01:29:36.908] if (muffled) [01:29:36.908] invokeRestart("muffleWarning") [01:29:36.908] } [01:29:36.908] else if (inherits(cond, "condition")) { [01:29:36.908] if (!is.null(pattern)) { [01:29:36.908] computeRestarts <- base::computeRestarts [01:29:36.908] grepl <- base::grepl [01:29:36.908] restarts <- computeRestarts(cond) [01:29:36.908] for (restart in restarts) { [01:29:36.908] name <- restart$name [01:29:36.908] if (is.null(name)) [01:29:36.908] next [01:29:36.908] if (!grepl(pattern, name)) [01:29:36.908] next [01:29:36.908] invokeRestart(restart) [01:29:36.908] muffled <- TRUE [01:29:36.908] break [01:29:36.908] } [01:29:36.908] } [01:29:36.908] } [01:29:36.908] invisible(muffled) [01:29:36.908] } [01:29:36.908] muffleCondition(cond, pattern = "^muffle") [01:29:36.908] } [01:29:36.908] } [01:29:36.908] } [01:29:36.908] })) [01:29:36.908] }, error = function(ex) { [01:29:36.908] base::structure(base::list(value = NULL, visible = NULL, [01:29:36.908] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:29:36.908] ...future.rng), started = ...future.startTime, [01:29:36.908] finished = Sys.time(), session_uuid = NA_character_, [01:29:36.908] version = "1.8"), class = "FutureResult") [01:29:36.908] }, finally = { [01:29:36.908] if (!identical(...future.workdir, getwd())) [01:29:36.908] setwd(...future.workdir) [01:29:36.908] { [01:29:36.908] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:29:36.908] ...future.oldOptions$nwarnings <- NULL [01:29:36.908] } [01:29:36.908] base::options(...future.oldOptions) [01:29:36.908] if (.Platform$OS.type == "windows") { [01:29:36.908] old_names <- names(...future.oldEnvVars) [01:29:36.908] envs <- base::Sys.getenv() [01:29:36.908] names <- names(envs) [01:29:36.908] common <- intersect(names, old_names) [01:29:36.908] added <- setdiff(names, old_names) [01:29:36.908] removed <- setdiff(old_names, names) [01:29:36.908] changed <- common[...future.oldEnvVars[common] != [01:29:36.908] envs[common]] [01:29:36.908] NAMES <- toupper(changed) [01:29:36.908] args <- list() [01:29:36.908] for (kk in seq_along(NAMES)) { [01:29:36.908] name <- changed[[kk]] [01:29:36.908] NAME <- NAMES[[kk]] [01:29:36.908] if (name != NAME && is.element(NAME, old_names)) [01:29:36.908] next [01:29:36.908] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:36.908] } [01:29:36.908] NAMES <- toupper(added) [01:29:36.908] for (kk in seq_along(NAMES)) { [01:29:36.908] name <- added[[kk]] [01:29:36.908] NAME <- NAMES[[kk]] [01:29:36.908] if (name != NAME && is.element(NAME, old_names)) [01:29:36.908] next [01:29:36.908] args[[name]] <- "" [01:29:36.908] } [01:29:36.908] NAMES <- toupper(removed) [01:29:36.908] for (kk in seq_along(NAMES)) { [01:29:36.908] name <- removed[[kk]] [01:29:36.908] NAME <- NAMES[[kk]] [01:29:36.908] if (name != NAME && is.element(NAME, old_names)) [01:29:36.908] next [01:29:36.908] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:36.908] } [01:29:36.908] if (length(args) > 0) [01:29:36.908] base::do.call(base::Sys.setenv, args = args) [01:29:36.908] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:29:36.908] } [01:29:36.908] else { [01:29:36.908] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:29:36.908] } [01:29:36.908] { [01:29:36.908] if (base::length(...future.futureOptionsAdded) > [01:29:36.908] 0L) { [01:29:36.908] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:29:36.908] base::names(opts) <- ...future.futureOptionsAdded [01:29:36.908] base::options(opts) [01:29:36.908] } [01:29:36.908] { [01:29:36.908] { [01:29:36.908] base::options(mc.cores = ...future.mc.cores.old) [01:29:36.908] NULL [01:29:36.908] } [01:29:36.908] options(future.plan = "multisession") [01:29:36.908] if (is.na(NA_character_)) [01:29:36.908] Sys.unsetenv("R_FUTURE_PLAN") [01:29:36.908] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:29:36.908] future::plan(list(function (..., workers = availableCores(), [01:29:36.908] lazy = FALSE, rscript_libs = .libPaths(), [01:29:36.908] envir = parent.frame()) [01:29:36.908] { [01:29:36.908] if (is.function(workers)) [01:29:36.908] workers <- workers() [01:29:36.908] workers <- structure(as.integer(workers), [01:29:36.908] class = class(workers)) [01:29:36.908] stop_if_not(length(workers) == 1, is.finite(workers), [01:29:36.908] workers >= 1) [01:29:36.908] if (workers == 1L && !inherits(workers, "AsIs")) { [01:29:36.908] return(sequential(..., lazy = TRUE, envir = envir)) [01:29:36.908] } [01:29:36.908] future <- MultisessionFuture(..., workers = workers, [01:29:36.908] lazy = lazy, rscript_libs = rscript_libs, [01:29:36.908] envir = envir) [01:29:36.908] if (!future$lazy) [01:29:36.908] future <- run(future) [01:29:36.908] invisible(future) [01:29:36.908] }), .cleanup = FALSE, .init = FALSE) [01:29:36.908] } [01:29:36.908] } [01:29:36.908] } [01:29:36.908] }) [01:29:36.908] if (TRUE) { [01:29:36.908] base::sink(type = "output", split = FALSE) [01:29:36.908] if (TRUE) { [01:29:36.908] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:29:36.908] } [01:29:36.908] else { [01:29:36.908] ...future.result["stdout"] <- base::list(NULL) [01:29:36.908] } [01:29:36.908] base::close(...future.stdout) [01:29:36.908] ...future.stdout <- NULL [01:29:36.908] } [01:29:36.908] ...future.result$conditions <- ...future.conditions [01:29:36.908] ...future.result$finished <- base::Sys.time() [01:29:36.908] ...future.result [01:29:36.908] } [01:29:36.989] MultisessionFuture started [01:29:36.990] result() for ClusterFuture ... [01:29:36.990] receiveMessageFromWorker() for ClusterFuture ... [01:29:36.990] - Validating connection of MultisessionFuture [01:29:37.048] - received message: FutureResult [01:29:37.049] - Received FutureResult [01:29:37.049] - Erased future from FutureRegistry [01:29:37.049] result() for ClusterFuture ... [01:29:37.049] - result already collected: FutureResult [01:29:37.049] result() for ClusterFuture ... done [01:29:37.050] receiveMessageFromWorker() for ClusterFuture ... done [01:29:37.050] result() for ClusterFuture ... done [01:29:37.050] result() for ClusterFuture ... [01:29:37.050] - result already collected: FutureResult [01:29:37.050] result() for ClusterFuture ... done [01:29:37.051] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:29:37.053] 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) [01:29:37.054] Future-specific environment variables: - R_FUTURE_PLAN='multisession' - R_FUTURE_WAIT_INTERVAL='0.01' [01:29:37.054] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [01:29:37.055] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [01:29:37.055] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [01:29:37.055] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [01:29:37.055] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [01:29:37.055] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [01:29:37.056] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [01:29:37.056] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [01:29:37.056] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [01:29:37.056] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [01:29:37.056] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [01:29:37.057] R_FUTURE_PLAN='multisession' [01:29:37.057] => options("future.plan" = 'multisession') [n=1, mode=character] [01:29:37.057] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [01:29:37.057] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [01:29:37.057] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [01:29:37.058] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [01:29:37.058] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [01:29:37.058] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [01:29:37.058] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [01:29:37.058] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [01:29:37.059] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [01:29:37.059] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [01:29:37.059] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [01:29:37.059] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [01:29:37.059] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [01:29:37.059] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [01:29:37.060] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [01:29:37.060] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [01:29:37.060] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [01:29:37.060] Environment variable 'R_FUTURE_JOURNAL' not set [01:29:37.060] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [01:29:37.061] Option 'future.plan' = 'multisession' [01:29:37.061] R command-line argument: -p 1 [01:29:37.061] => 'future.plan' already set. [01:29:37.061] R process uuid: 08a2e737-c7e9-43f9-18a1-e0626f4d8539 [01:29:37.062] Setting plan('default') [01:29:37.062] plan(): Setting new future strategy stack: [01:29:37.062] List of future strategies: [01:29:37.062] 1. multisession: [01:29:37.062] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:37.062] - tweaked: FALSE [01:29:37.062] - call: plan("default", .init = FALSE) [01:29:37.065] 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") [01:29:37.065] plan(): Setting new future strategy stack: [01:29:37.066] List of future strategies: [01:29:37.066] 1. multisession: [01:29:37.066] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:37.066] - tweaked: FALSE [01:29:37.066] - call: plan("default") [01:29:37.066] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [01:29:37.066] multisession: [01:29:37.066] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:37.066] - tweaked: FALSE [01:29:37.066] - call: plan("default") [01:29:37.069] getGlobalsAndPackages() ... [01:29:37.069] Not searching for globals [01:29:37.069] - globals: [0] [01:29:37.070] getGlobalsAndPackages() ... DONE [01:29:37.070] Packages needed by the future expression (n = 0): [01:29:37.071] Packages needed by future strategies (n = 0): [01:29:37.071] { [01:29:37.071] { [01:29:37.071] { [01:29:37.071] ...future.startTime <- base::Sys.time() [01:29:37.071] { [01:29:37.071] { [01:29:37.071] { [01:29:37.071] base::local({ [01:29:37.071] has_future <- base::requireNamespace("future", [01:29:37.071] quietly = TRUE) [01:29:37.071] if (has_future) { [01:29:37.071] ns <- base::getNamespace("future") [01:29:37.071] version <- ns[[".package"]][["version"]] [01:29:37.071] if (is.null(version)) [01:29:37.071] version <- utils::packageVersion("future") [01:29:37.071] } [01:29:37.071] else { [01:29:37.071] version <- NULL [01:29:37.071] } [01:29:37.071] if (!has_future || version < "1.8.0") { [01:29:37.071] info <- base::c(r_version = base::gsub("R version ", [01:29:37.071] "", base::R.version$version.string), [01:29:37.071] platform = base::sprintf("%s (%s-bit)", [01:29:37.071] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:29:37.071] os = base::paste(base::Sys.info()[base::c("sysname", [01:29:37.071] "release", "version")], collapse = " "), [01:29:37.071] hostname = base::Sys.info()[["nodename"]]) [01:29:37.071] info <- base::sprintf("%s: %s", base::names(info), [01:29:37.071] info) [01:29:37.071] info <- base::paste(info, collapse = "; ") [01:29:37.071] if (!has_future) { [01:29:37.071] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:29:37.071] info) [01:29:37.071] } [01:29:37.071] else { [01:29:37.071] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:29:37.071] info, version) [01:29:37.071] } [01:29:37.071] base::stop(msg) [01:29:37.071] } [01:29:37.071] }) [01:29:37.071] } [01:29:37.071] options(future.plan = NULL) [01:29:37.071] Sys.unsetenv("R_FUTURE_PLAN") [01:29:37.071] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:29:37.071] } [01:29:37.071] ...future.workdir <- getwd() [01:29:37.071] } [01:29:37.071] ...future.oldOptions <- base::as.list(base::.Options) [01:29:37.071] ...future.oldEnvVars <- base::Sys.getenv() [01:29:37.071] } [01:29:37.071] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:29:37.071] future.globals.maxSize = NULL, future.globals.method = NULL, [01:29:37.071] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:29:37.071] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:29:37.071] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:29:37.071] future.stdout.windows.reencode = NULL, width = 80L) [01:29:37.071] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:29:37.071] base::names(...future.oldOptions)) [01:29:37.071] } [01:29:37.071] if (FALSE) { [01:29:37.071] } [01:29:37.071] else { [01:29:37.071] if (TRUE) { [01:29:37.071] ...future.stdout <- base::rawConnection(base::raw(0L), [01:29:37.071] open = "w") [01:29:37.071] } [01:29:37.071] else { [01:29:37.071] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:29:37.071] windows = "NUL", "/dev/null"), open = "w") [01:29:37.071] } [01:29:37.071] base::sink(...future.stdout, type = "output", split = FALSE) [01:29:37.071] base::on.exit(if (!base::is.null(...future.stdout)) { [01:29:37.071] base::sink(type = "output", split = FALSE) [01:29:37.071] base::close(...future.stdout) [01:29:37.071] }, add = TRUE) [01:29:37.071] } [01:29:37.071] ...future.frame <- base::sys.nframe() [01:29:37.071] ...future.conditions <- base::list() [01:29:37.071] ...future.rng <- base::globalenv()$.Random.seed [01:29:37.071] if (FALSE) { [01:29:37.071] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:29:37.071] "...future.value", "...future.globalenv.names", ".Random.seed") [01:29:37.071] } [01:29:37.071] ...future.result <- base::tryCatch({ [01:29:37.071] base::withCallingHandlers({ [01:29:37.071] ...future.value <- base::withVisible(base::local(NA)) [01:29:37.071] future::FutureResult(value = ...future.value$value, [01:29:37.071] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:29:37.071] ...future.rng), globalenv = if (FALSE) [01:29:37.071] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:29:37.071] ...future.globalenv.names)) [01:29:37.071] else NULL, started = ...future.startTime, version = "1.8") [01:29:37.071] }, condition = base::local({ [01:29:37.071] c <- base::c [01:29:37.071] inherits <- base::inherits [01:29:37.071] invokeRestart <- base::invokeRestart [01:29:37.071] length <- base::length [01:29:37.071] list <- base::list [01:29:37.071] seq.int <- base::seq.int [01:29:37.071] signalCondition <- base::signalCondition [01:29:37.071] sys.calls <- base::sys.calls [01:29:37.071] `[[` <- base::`[[` [01:29:37.071] `+` <- base::`+` [01:29:37.071] `<<-` <- base::`<<-` [01:29:37.071] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:29:37.071] calls[seq.int(from = from + 12L, to = length(calls) - [01:29:37.071] 3L)] [01:29:37.071] } [01:29:37.071] function(cond) { [01:29:37.071] is_error <- inherits(cond, "error") [01:29:37.071] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:29:37.071] NULL) [01:29:37.071] if (is_error) { [01:29:37.071] sessionInformation <- function() { [01:29:37.071] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:29:37.071] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:29:37.071] search = base::search(), system = base::Sys.info()) [01:29:37.071] } [01:29:37.071] ...future.conditions[[length(...future.conditions) + [01:29:37.071] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:29:37.071] cond$call), session = sessionInformation(), [01:29:37.071] timestamp = base::Sys.time(), signaled = 0L) [01:29:37.071] signalCondition(cond) [01:29:37.071] } [01:29:37.071] else if (!ignore && TRUE && inherits(cond, c("condition", [01:29:37.071] "immediateCondition"))) { [01:29:37.071] signal <- TRUE && inherits(cond, "immediateCondition") [01:29:37.071] ...future.conditions[[length(...future.conditions) + [01:29:37.071] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:29:37.071] if (TRUE && !signal) { [01:29:37.071] muffleCondition <- function (cond, pattern = "^muffle") [01:29:37.071] { [01:29:37.071] inherits <- base::inherits [01:29:37.071] invokeRestart <- base::invokeRestart [01:29:37.071] is.null <- base::is.null [01:29:37.071] muffled <- FALSE [01:29:37.071] if (inherits(cond, "message")) { [01:29:37.071] muffled <- grepl(pattern, "muffleMessage") [01:29:37.071] if (muffled) [01:29:37.071] invokeRestart("muffleMessage") [01:29:37.071] } [01:29:37.071] else if (inherits(cond, "warning")) { [01:29:37.071] muffled <- grepl(pattern, "muffleWarning") [01:29:37.071] if (muffled) [01:29:37.071] invokeRestart("muffleWarning") [01:29:37.071] } [01:29:37.071] else if (inherits(cond, "condition")) { [01:29:37.071] if (!is.null(pattern)) { [01:29:37.071] computeRestarts <- base::computeRestarts [01:29:37.071] grepl <- base::grepl [01:29:37.071] restarts <- computeRestarts(cond) [01:29:37.071] for (restart in restarts) { [01:29:37.071] name <- restart$name [01:29:37.071] if (is.null(name)) [01:29:37.071] next [01:29:37.071] if (!grepl(pattern, name)) [01:29:37.071] next [01:29:37.071] invokeRestart(restart) [01:29:37.071] muffled <- TRUE [01:29:37.071] break [01:29:37.071] } [01:29:37.071] } [01:29:37.071] } [01:29:37.071] invisible(muffled) [01:29:37.071] } [01:29:37.071] muffleCondition(cond, pattern = "^muffle") [01:29:37.071] } [01:29:37.071] } [01:29:37.071] else { [01:29:37.071] if (TRUE) { [01:29:37.071] muffleCondition <- function (cond, pattern = "^muffle") [01:29:37.071] { [01:29:37.071] inherits <- base::inherits [01:29:37.071] invokeRestart <- base::invokeRestart [01:29:37.071] is.null <- base::is.null [01:29:37.071] muffled <- FALSE [01:29:37.071] if (inherits(cond, "message")) { [01:29:37.071] muffled <- grepl(pattern, "muffleMessage") [01:29:37.071] if (muffled) [01:29:37.071] invokeRestart("muffleMessage") [01:29:37.071] } [01:29:37.071] else if (inherits(cond, "warning")) { [01:29:37.071] muffled <- grepl(pattern, "muffleWarning") [01:29:37.071] if (muffled) [01:29:37.071] invokeRestart("muffleWarning") [01:29:37.071] } [01:29:37.071] else if (inherits(cond, "condition")) { [01:29:37.071] if (!is.null(pattern)) { [01:29:37.071] computeRestarts <- base::computeRestarts [01:29:37.071] grepl <- base::grepl [01:29:37.071] restarts <- computeRestarts(cond) [01:29:37.071] for (restart in restarts) { [01:29:37.071] name <- restart$name [01:29:37.071] if (is.null(name)) [01:29:37.071] next [01:29:37.071] if (!grepl(pattern, name)) [01:29:37.071] next [01:29:37.071] invokeRestart(restart) [01:29:37.071] muffled <- TRUE [01:29:37.071] break [01:29:37.071] } [01:29:37.071] } [01:29:37.071] } [01:29:37.071] invisible(muffled) [01:29:37.071] } [01:29:37.071] muffleCondition(cond, pattern = "^muffle") [01:29:37.071] } [01:29:37.071] } [01:29:37.071] } [01:29:37.071] })) [01:29:37.071] }, error = function(ex) { [01:29:37.071] base::structure(base::list(value = NULL, visible = NULL, [01:29:37.071] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:29:37.071] ...future.rng), started = ...future.startTime, [01:29:37.071] finished = Sys.time(), session_uuid = NA_character_, [01:29:37.071] version = "1.8"), class = "FutureResult") [01:29:37.071] }, finally = { [01:29:37.071] if (!identical(...future.workdir, getwd())) [01:29:37.071] setwd(...future.workdir) [01:29:37.071] { [01:29:37.071] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:29:37.071] ...future.oldOptions$nwarnings <- NULL [01:29:37.071] } [01:29:37.071] base::options(...future.oldOptions) [01:29:37.071] if (.Platform$OS.type == "windows") { [01:29:37.071] old_names <- names(...future.oldEnvVars) [01:29:37.071] envs <- base::Sys.getenv() [01:29:37.071] names <- names(envs) [01:29:37.071] common <- intersect(names, old_names) [01:29:37.071] added <- setdiff(names, old_names) [01:29:37.071] removed <- setdiff(old_names, names) [01:29:37.071] changed <- common[...future.oldEnvVars[common] != [01:29:37.071] envs[common]] [01:29:37.071] NAMES <- toupper(changed) [01:29:37.071] args <- list() [01:29:37.071] for (kk in seq_along(NAMES)) { [01:29:37.071] name <- changed[[kk]] [01:29:37.071] NAME <- NAMES[[kk]] [01:29:37.071] if (name != NAME && is.element(NAME, old_names)) [01:29:37.071] next [01:29:37.071] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:37.071] } [01:29:37.071] NAMES <- toupper(added) [01:29:37.071] for (kk in seq_along(NAMES)) { [01:29:37.071] name <- added[[kk]] [01:29:37.071] NAME <- NAMES[[kk]] [01:29:37.071] if (name != NAME && is.element(NAME, old_names)) [01:29:37.071] next [01:29:37.071] args[[name]] <- "" [01:29:37.071] } [01:29:37.071] NAMES <- toupper(removed) [01:29:37.071] for (kk in seq_along(NAMES)) { [01:29:37.071] name <- removed[[kk]] [01:29:37.071] NAME <- NAMES[[kk]] [01:29:37.071] if (name != NAME && is.element(NAME, old_names)) [01:29:37.071] next [01:29:37.071] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:37.071] } [01:29:37.071] if (length(args) > 0) [01:29:37.071] base::do.call(base::Sys.setenv, args = args) [01:29:37.071] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:29:37.071] } [01:29:37.071] else { [01:29:37.071] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:29:37.071] } [01:29:37.071] { [01:29:37.071] if (base::length(...future.futureOptionsAdded) > [01:29:37.071] 0L) { [01:29:37.071] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:29:37.071] base::names(opts) <- ...future.futureOptionsAdded [01:29:37.071] base::options(opts) [01:29:37.071] } [01:29:37.071] { [01:29:37.071] { [01:29:37.071] NULL [01:29:37.071] RNGkind("Mersenne-Twister") [01:29:37.071] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:29:37.071] inherits = FALSE) [01:29:37.071] } [01:29:37.071] options(future.plan = "multisession") [01:29:37.071] if (is.na("multisession")) [01:29:37.071] Sys.unsetenv("R_FUTURE_PLAN") [01:29:37.071] else Sys.setenv(R_FUTURE_PLAN = "multisession") [01:29:37.071] future::plan(list(function (..., workers = availableCores(), [01:29:37.071] lazy = FALSE, rscript_libs = .libPaths(), [01:29:37.071] envir = parent.frame()) [01:29:37.071] { [01:29:37.071] if (is.function(workers)) [01:29:37.071] workers <- workers() [01:29:37.071] workers <- structure(as.integer(workers), [01:29:37.071] class = class(workers)) [01:29:37.071] stop_if_not(length(workers) == 1, is.finite(workers), [01:29:37.071] workers >= 1) [01:29:37.071] if (workers == 1L && !inherits(workers, "AsIs")) { [01:29:37.071] return(sequential(..., lazy = TRUE, envir = envir)) [01:29:37.071] } [01:29:37.071] future <- MultisessionFuture(..., workers = workers, [01:29:37.071] lazy = lazy, rscript_libs = rscript_libs, [01:29:37.071] envir = envir) [01:29:37.071] if (!future$lazy) [01:29:37.071] future <- run(future) [01:29:37.071] invisible(future) [01:29:37.071] }), .cleanup = FALSE, .init = FALSE) [01:29:37.071] } [01:29:37.071] } [01:29:37.071] } [01:29:37.071] }) [01:29:37.071] if (TRUE) { [01:29:37.071] base::sink(type = "output", split = FALSE) [01:29:37.071] if (TRUE) { [01:29:37.071] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:29:37.071] } [01:29:37.071] else { [01:29:37.071] ...future.result["stdout"] <- base::list(NULL) [01:29:37.071] } [01:29:37.071] base::close(...future.stdout) [01:29:37.071] ...future.stdout <- NULL [01:29:37.071] } [01:29:37.071] ...future.result$conditions <- ...future.conditions [01:29:37.071] ...future.result$finished <- base::Sys.time() [01:29:37.071] ...future.result [01:29:37.071] } [01:29:37.076] plan(): Setting new future strategy stack: [01:29:37.076] List of future strategies: [01:29:37.076] 1. sequential: [01:29:37.076] - args: function (..., envir = parent.frame(), workers = "") [01:29:37.076] - tweaked: FALSE [01:29:37.076] - call: NULL [01:29:37.076] plan(): nbrOfWorkers() = 1 [01:29:37.078] plan(): Setting new future strategy stack: [01:29:37.079] List of future strategies: [01:29:37.079] 1. multisession: [01:29:37.079] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:37.079] - tweaked: FALSE [01:29:37.079] - call: plan("default") [01:29:37.081] plan(): nbrOfWorkers() = 1 [01:29:37.082] SequentialFuture started (and completed) [01:29:37.082] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:29:37.084] 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) [01:29:37.086] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [01:29:37.086] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [01:29:37.086] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [01:29:37.086] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [01:29:37.086] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [01:29:37.087] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [01:29:37.087] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [01:29:37.087] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [01:29:37.087] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [01:29:37.087] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [01:29:37.088] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [01:29:37.088] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [01:29:37.088] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [01:29:37.088] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [01:29:37.088] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [01:29:37.089] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [01:29:37.089] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [01:29:37.089] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [01:29:37.089] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [01:29:37.089] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [01:29:37.089] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [01:29:37.090] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [01:29:37.090] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [01:29:37.090] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [01:29:37.090] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [01:29:37.091] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [01:29:37.091] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [01:29:37.091] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [01:29:37.091] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [01:29:37.092] Environment variable 'R_FUTURE_JOURNAL' not set [01:29:37.092] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [01:29:37.092] Option 'future.plan' = 'multisession' [01:29:37.092] R command-line argument: -p 1 [01:29:37.093] => 'future.plan' already set. [01:29:37.093] R process uuid: 08a2e737-c7e9-43f9-18a1-e0626f4d8539 [01:29:37.093] Setting plan('default') [01:29:37.093] plan(): Setting new future strategy stack: [01:29:37.093] List of future strategies: [01:29:37.093] 1. multisession: [01:29:37.093] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:37.093] - tweaked: FALSE [01:29:37.093] - call: plan("default", .init = FALSE) [01:29:37.096] 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") [01:29:37.096] plan(): Setting new future strategy stack: [01:29:37.097] List of future strategies: [01:29:37.097] 1. multisession: [01:29:37.097] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:37.097] - tweaked: FALSE [01:29:37.097] - call: plan("default") [01:29:37.097] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [01:29:37.097] multisession: [01:29:37.097] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:37.097] - tweaked: FALSE [01:29:37.097] - call: plan("default") [01:29:37.100] getGlobalsAndPackages() ... [01:29:37.100] Not searching for globals [01:29:37.100] - globals: [0] [01:29:37.100] getGlobalsAndPackages() ... DONE [01:29:37.101] Packages needed by the future expression (n = 0): [01:29:37.101] Packages needed by future strategies (n = 0): [01:29:37.101] { [01:29:37.101] { [01:29:37.101] { [01:29:37.101] ...future.startTime <- base::Sys.time() [01:29:37.101] { [01:29:37.101] { [01:29:37.101] { [01:29:37.101] base::local({ [01:29:37.101] has_future <- base::requireNamespace("future", [01:29:37.101] quietly = TRUE) [01:29:37.101] if (has_future) { [01:29:37.101] ns <- base::getNamespace("future") [01:29:37.101] version <- ns[[".package"]][["version"]] [01:29:37.101] if (is.null(version)) [01:29:37.101] version <- utils::packageVersion("future") [01:29:37.101] } [01:29:37.101] else { [01:29:37.101] version <- NULL [01:29:37.101] } [01:29:37.101] if (!has_future || version < "1.8.0") { [01:29:37.101] info <- base::c(r_version = base::gsub("R version ", [01:29:37.101] "", base::R.version$version.string), [01:29:37.101] platform = base::sprintf("%s (%s-bit)", [01:29:37.101] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:29:37.101] os = base::paste(base::Sys.info()[base::c("sysname", [01:29:37.101] "release", "version")], collapse = " "), [01:29:37.101] hostname = base::Sys.info()[["nodename"]]) [01:29:37.101] info <- base::sprintf("%s: %s", base::names(info), [01:29:37.101] info) [01:29:37.101] info <- base::paste(info, collapse = "; ") [01:29:37.101] if (!has_future) { [01:29:37.101] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:29:37.101] info) [01:29:37.101] } [01:29:37.101] else { [01:29:37.101] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:29:37.101] info, version) [01:29:37.101] } [01:29:37.101] base::stop(msg) [01:29:37.101] } [01:29:37.101] }) [01:29:37.101] } [01:29:37.101] options(future.plan = NULL) [01:29:37.101] Sys.unsetenv("R_FUTURE_PLAN") [01:29:37.101] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:29:37.101] } [01:29:37.101] ...future.workdir <- getwd() [01:29:37.101] } [01:29:37.101] ...future.oldOptions <- base::as.list(base::.Options) [01:29:37.101] ...future.oldEnvVars <- base::Sys.getenv() [01:29:37.101] } [01:29:37.101] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:29:37.101] future.globals.maxSize = NULL, future.globals.method = NULL, [01:29:37.101] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:29:37.101] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:29:37.101] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:29:37.101] future.stdout.windows.reencode = NULL, width = 80L) [01:29:37.101] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:29:37.101] base::names(...future.oldOptions)) [01:29:37.101] } [01:29:37.101] if (FALSE) { [01:29:37.101] } [01:29:37.101] else { [01:29:37.101] if (TRUE) { [01:29:37.101] ...future.stdout <- base::rawConnection(base::raw(0L), [01:29:37.101] open = "w") [01:29:37.101] } [01:29:37.101] else { [01:29:37.101] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:29:37.101] windows = "NUL", "/dev/null"), open = "w") [01:29:37.101] } [01:29:37.101] base::sink(...future.stdout, type = "output", split = FALSE) [01:29:37.101] base::on.exit(if (!base::is.null(...future.stdout)) { [01:29:37.101] base::sink(type = "output", split = FALSE) [01:29:37.101] base::close(...future.stdout) [01:29:37.101] }, add = TRUE) [01:29:37.101] } [01:29:37.101] ...future.frame <- base::sys.nframe() [01:29:37.101] ...future.conditions <- base::list() [01:29:37.101] ...future.rng <- base::globalenv()$.Random.seed [01:29:37.101] if (FALSE) { [01:29:37.101] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:29:37.101] "...future.value", "...future.globalenv.names", ".Random.seed") [01:29:37.101] } [01:29:37.101] ...future.result <- base::tryCatch({ [01:29:37.101] base::withCallingHandlers({ [01:29:37.101] ...future.value <- base::withVisible(base::local(NA)) [01:29:37.101] future::FutureResult(value = ...future.value$value, [01:29:37.101] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:29:37.101] ...future.rng), globalenv = if (FALSE) [01:29:37.101] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:29:37.101] ...future.globalenv.names)) [01:29:37.101] else NULL, started = ...future.startTime, version = "1.8") [01:29:37.101] }, condition = base::local({ [01:29:37.101] c <- base::c [01:29:37.101] inherits <- base::inherits [01:29:37.101] invokeRestart <- base::invokeRestart [01:29:37.101] length <- base::length [01:29:37.101] list <- base::list [01:29:37.101] seq.int <- base::seq.int [01:29:37.101] signalCondition <- base::signalCondition [01:29:37.101] sys.calls <- base::sys.calls [01:29:37.101] `[[` <- base::`[[` [01:29:37.101] `+` <- base::`+` [01:29:37.101] `<<-` <- base::`<<-` [01:29:37.101] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:29:37.101] calls[seq.int(from = from + 12L, to = length(calls) - [01:29:37.101] 3L)] [01:29:37.101] } [01:29:37.101] function(cond) { [01:29:37.101] is_error <- inherits(cond, "error") [01:29:37.101] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:29:37.101] NULL) [01:29:37.101] if (is_error) { [01:29:37.101] sessionInformation <- function() { [01:29:37.101] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:29:37.101] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:29:37.101] search = base::search(), system = base::Sys.info()) [01:29:37.101] } [01:29:37.101] ...future.conditions[[length(...future.conditions) + [01:29:37.101] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:29:37.101] cond$call), session = sessionInformation(), [01:29:37.101] timestamp = base::Sys.time(), signaled = 0L) [01:29:37.101] signalCondition(cond) [01:29:37.101] } [01:29:37.101] else if (!ignore && TRUE && inherits(cond, c("condition", [01:29:37.101] "immediateCondition"))) { [01:29:37.101] signal <- TRUE && inherits(cond, "immediateCondition") [01:29:37.101] ...future.conditions[[length(...future.conditions) + [01:29:37.101] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:29:37.101] if (TRUE && !signal) { [01:29:37.101] muffleCondition <- function (cond, pattern = "^muffle") [01:29:37.101] { [01:29:37.101] inherits <- base::inherits [01:29:37.101] invokeRestart <- base::invokeRestart [01:29:37.101] is.null <- base::is.null [01:29:37.101] muffled <- FALSE [01:29:37.101] if (inherits(cond, "message")) { [01:29:37.101] muffled <- grepl(pattern, "muffleMessage") [01:29:37.101] if (muffled) [01:29:37.101] invokeRestart("muffleMessage") [01:29:37.101] } [01:29:37.101] else if (inherits(cond, "warning")) { [01:29:37.101] muffled <- grepl(pattern, "muffleWarning") [01:29:37.101] if (muffled) [01:29:37.101] invokeRestart("muffleWarning") [01:29:37.101] } [01:29:37.101] else if (inherits(cond, "condition")) { [01:29:37.101] if (!is.null(pattern)) { [01:29:37.101] computeRestarts <- base::computeRestarts [01:29:37.101] grepl <- base::grepl [01:29:37.101] restarts <- computeRestarts(cond) [01:29:37.101] for (restart in restarts) { [01:29:37.101] name <- restart$name [01:29:37.101] if (is.null(name)) [01:29:37.101] next [01:29:37.101] if (!grepl(pattern, name)) [01:29:37.101] next [01:29:37.101] invokeRestart(restart) [01:29:37.101] muffled <- TRUE [01:29:37.101] break [01:29:37.101] } [01:29:37.101] } [01:29:37.101] } [01:29:37.101] invisible(muffled) [01:29:37.101] } [01:29:37.101] muffleCondition(cond, pattern = "^muffle") [01:29:37.101] } [01:29:37.101] } [01:29:37.101] else { [01:29:37.101] if (TRUE) { [01:29:37.101] muffleCondition <- function (cond, pattern = "^muffle") [01:29:37.101] { [01:29:37.101] inherits <- base::inherits [01:29:37.101] invokeRestart <- base::invokeRestart [01:29:37.101] is.null <- base::is.null [01:29:37.101] muffled <- FALSE [01:29:37.101] if (inherits(cond, "message")) { [01:29:37.101] muffled <- grepl(pattern, "muffleMessage") [01:29:37.101] if (muffled) [01:29:37.101] invokeRestart("muffleMessage") [01:29:37.101] } [01:29:37.101] else if (inherits(cond, "warning")) { [01:29:37.101] muffled <- grepl(pattern, "muffleWarning") [01:29:37.101] if (muffled) [01:29:37.101] invokeRestart("muffleWarning") [01:29:37.101] } [01:29:37.101] else if (inherits(cond, "condition")) { [01:29:37.101] if (!is.null(pattern)) { [01:29:37.101] computeRestarts <- base::computeRestarts [01:29:37.101] grepl <- base::grepl [01:29:37.101] restarts <- computeRestarts(cond) [01:29:37.101] for (restart in restarts) { [01:29:37.101] name <- restart$name [01:29:37.101] if (is.null(name)) [01:29:37.101] next [01:29:37.101] if (!grepl(pattern, name)) [01:29:37.101] next [01:29:37.101] invokeRestart(restart) [01:29:37.101] muffled <- TRUE [01:29:37.101] break [01:29:37.101] } [01:29:37.101] } [01:29:37.101] } [01:29:37.101] invisible(muffled) [01:29:37.101] } [01:29:37.101] muffleCondition(cond, pattern = "^muffle") [01:29:37.101] } [01:29:37.101] } [01:29:37.101] } [01:29:37.101] })) [01:29:37.101] }, error = function(ex) { [01:29:37.101] base::structure(base::list(value = NULL, visible = NULL, [01:29:37.101] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:29:37.101] ...future.rng), started = ...future.startTime, [01:29:37.101] finished = Sys.time(), session_uuid = NA_character_, [01:29:37.101] version = "1.8"), class = "FutureResult") [01:29:37.101] }, finally = { [01:29:37.101] if (!identical(...future.workdir, getwd())) [01:29:37.101] setwd(...future.workdir) [01:29:37.101] { [01:29:37.101] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:29:37.101] ...future.oldOptions$nwarnings <- NULL [01:29:37.101] } [01:29:37.101] base::options(...future.oldOptions) [01:29:37.101] if (.Platform$OS.type == "windows") { [01:29:37.101] old_names <- names(...future.oldEnvVars) [01:29:37.101] envs <- base::Sys.getenv() [01:29:37.101] names <- names(envs) [01:29:37.101] common <- intersect(names, old_names) [01:29:37.101] added <- setdiff(names, old_names) [01:29:37.101] removed <- setdiff(old_names, names) [01:29:37.101] changed <- common[...future.oldEnvVars[common] != [01:29:37.101] envs[common]] [01:29:37.101] NAMES <- toupper(changed) [01:29:37.101] args <- list() [01:29:37.101] for (kk in seq_along(NAMES)) { [01:29:37.101] name <- changed[[kk]] [01:29:37.101] NAME <- NAMES[[kk]] [01:29:37.101] if (name != NAME && is.element(NAME, old_names)) [01:29:37.101] next [01:29:37.101] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:37.101] } [01:29:37.101] NAMES <- toupper(added) [01:29:37.101] for (kk in seq_along(NAMES)) { [01:29:37.101] name <- added[[kk]] [01:29:37.101] NAME <- NAMES[[kk]] [01:29:37.101] if (name != NAME && is.element(NAME, old_names)) [01:29:37.101] next [01:29:37.101] args[[name]] <- "" [01:29:37.101] } [01:29:37.101] NAMES <- toupper(removed) [01:29:37.101] for (kk in seq_along(NAMES)) { [01:29:37.101] name <- removed[[kk]] [01:29:37.101] NAME <- NAMES[[kk]] [01:29:37.101] if (name != NAME && is.element(NAME, old_names)) [01:29:37.101] next [01:29:37.101] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:37.101] } [01:29:37.101] if (length(args) > 0) [01:29:37.101] base::do.call(base::Sys.setenv, args = args) [01:29:37.101] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:29:37.101] } [01:29:37.101] else { [01:29:37.101] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:29:37.101] } [01:29:37.101] { [01:29:37.101] if (base::length(...future.futureOptionsAdded) > [01:29:37.101] 0L) { [01:29:37.101] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:29:37.101] base::names(opts) <- ...future.futureOptionsAdded [01:29:37.101] base::options(opts) [01:29:37.101] } [01:29:37.101] { [01:29:37.101] { [01:29:37.101] NULL [01:29:37.101] RNGkind("Mersenne-Twister") [01:29:37.101] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:29:37.101] inherits = FALSE) [01:29:37.101] } [01:29:37.101] options(future.plan = "multisession") [01:29:37.101] if (is.na(NA_character_)) [01:29:37.101] Sys.unsetenv("R_FUTURE_PLAN") [01:29:37.101] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:29:37.101] future::plan(list(function (..., workers = availableCores(), [01:29:37.101] lazy = FALSE, rscript_libs = .libPaths(), [01:29:37.101] envir = parent.frame()) [01:29:37.101] { [01:29:37.101] if (is.function(workers)) [01:29:37.101] workers <- workers() [01:29:37.101] workers <- structure(as.integer(workers), [01:29:37.101] class = class(workers)) [01:29:37.101] stop_if_not(length(workers) == 1, is.finite(workers), [01:29:37.101] workers >= 1) [01:29:37.101] if (workers == 1L && !inherits(workers, "AsIs")) { [01:29:37.101] return(sequential(..., lazy = TRUE, envir = envir)) [01:29:37.101] } [01:29:37.101] future <- MultisessionFuture(..., workers = workers, [01:29:37.101] lazy = lazy, rscript_libs = rscript_libs, [01:29:37.101] envir = envir) [01:29:37.101] if (!future$lazy) [01:29:37.101] future <- run(future) [01:29:37.101] invisible(future) [01:29:37.101] }), .cleanup = FALSE, .init = FALSE) [01:29:37.101] } [01:29:37.101] } [01:29:37.101] } [01:29:37.101] }) [01:29:37.101] if (TRUE) { [01:29:37.101] base::sink(type = "output", split = FALSE) [01:29:37.101] if (TRUE) { [01:29:37.101] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:29:37.101] } [01:29:37.101] else { [01:29:37.101] ...future.result["stdout"] <- base::list(NULL) [01:29:37.101] } [01:29:37.101] base::close(...future.stdout) [01:29:37.101] ...future.stdout <- NULL [01:29:37.101] } [01:29:37.101] ...future.result$conditions <- ...future.conditions [01:29:37.101] ...future.result$finished <- base::Sys.time() [01:29:37.101] ...future.result [01:29:37.101] } [01:29:37.106] plan(): Setting new future strategy stack: [01:29:37.106] List of future strategies: [01:29:37.106] 1. sequential: [01:29:37.106] - args: function (..., envir = parent.frame(), workers = "") [01:29:37.106] - tweaked: FALSE [01:29:37.106] - call: NULL [01:29:37.106] plan(): nbrOfWorkers() = 1 [01:29:37.108] plan(): Setting new future strategy stack: [01:29:37.108] List of future strategies: [01:29:37.108] 1. multisession: [01:29:37.108] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:37.108] - tweaked: FALSE [01:29:37.108] - call: plan("default") [01:29:37.110] plan(): nbrOfWorkers() = 1 [01:29:37.111] SequentialFuture started (and completed) [01:29:37.111] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:29:37.113] 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) [01:29:37.115] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [01:29:37.115] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [01:29:37.115] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [01:29:37.115] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [01:29:37.115] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [01:29:37.116] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [01:29:37.116] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [01:29:37.116] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [01:29:37.116] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [01:29:37.116] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [01:29:37.116] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [01:29:37.117] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [01:29:37.117] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [01:29:37.117] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [01:29:37.117] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [01:29:37.117] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [01:29:37.118] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [01:29:37.118] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [01:29:37.118] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [01:29:37.118] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [01:29:37.118] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [01:29:37.119] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [01:29:37.119] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [01:29:37.119] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [01:29:37.119] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [01:29:37.119] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [01:29:37.119] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [01:29:37.120] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [01:29:37.120] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [01:29:37.120] Environment variable 'R_FUTURE_JOURNAL' not set [01:29:37.120] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [01:29:37.120] Option 'future.plan' of type 'function' [01:29:37.121] R command-line argument: -p 1 [01:29:37.121] => 'future.plan' already set. [01:29:37.121] R process uuid: 08a2e737-c7e9-43f9-18a1-e0626f4d8539 [01:29:37.121] Setting plan('default') [01:29:37.122] plan(): Setting new future strategy stack: [01:29:37.122] List of future strategies: [01:29:37.122] 1. multisession: [01:29:37.122] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:37.122] - tweaked: FALSE [01:29:37.122] - call: NULL [01:29:37.124] 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") [01:29:37.125] plan(): Setting new future strategy stack: [01:29:37.125] List of future strategies: [01:29:37.125] 1. multisession: [01:29:37.125] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:37.125] - tweaked: FALSE [01:29:37.125] - call: NULL [01:29:37.125] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [01:29:37.125] multisession: [01:29:37.125] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:37.125] - tweaked: FALSE [01:29:37.125] - call: NULL [01:29:37.128] getGlobalsAndPackages() ... [01:29:37.128] Not searching for globals [01:29:37.128] - globals: [0] [01:29:37.128] getGlobalsAndPackages() ... DONE [01:29:37.129] Packages needed by the future expression (n = 0): [01:29:37.129] Packages needed by future strategies (n = 0): [01:29:37.130] { [01:29:37.130] { [01:29:37.130] { [01:29:37.130] ...future.startTime <- base::Sys.time() [01:29:37.130] { [01:29:37.130] { [01:29:37.130] { [01:29:37.130] base::local({ [01:29:37.130] has_future <- base::requireNamespace("future", [01:29:37.130] quietly = TRUE) [01:29:37.130] if (has_future) { [01:29:37.130] ns <- base::getNamespace("future") [01:29:37.130] version <- ns[[".package"]][["version"]] [01:29:37.130] if (is.null(version)) [01:29:37.130] version <- utils::packageVersion("future") [01:29:37.130] } [01:29:37.130] else { [01:29:37.130] version <- NULL [01:29:37.130] } [01:29:37.130] if (!has_future || version < "1.8.0") { [01:29:37.130] info <- base::c(r_version = base::gsub("R version ", [01:29:37.130] "", base::R.version$version.string), [01:29:37.130] platform = base::sprintf("%s (%s-bit)", [01:29:37.130] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:29:37.130] os = base::paste(base::Sys.info()[base::c("sysname", [01:29:37.130] "release", "version")], collapse = " "), [01:29:37.130] hostname = base::Sys.info()[["nodename"]]) [01:29:37.130] info <- base::sprintf("%s: %s", base::names(info), [01:29:37.130] info) [01:29:37.130] info <- base::paste(info, collapse = "; ") [01:29:37.130] if (!has_future) { [01:29:37.130] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:29:37.130] info) [01:29:37.130] } [01:29:37.130] else { [01:29:37.130] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:29:37.130] info, version) [01:29:37.130] } [01:29:37.130] base::stop(msg) [01:29:37.130] } [01:29:37.130] }) [01:29:37.130] } [01:29:37.130] options(future.plan = NULL) [01:29:37.130] Sys.unsetenv("R_FUTURE_PLAN") [01:29:37.130] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:29:37.130] } [01:29:37.130] ...future.workdir <- getwd() [01:29:37.130] } [01:29:37.130] ...future.oldOptions <- base::as.list(base::.Options) [01:29:37.130] ...future.oldEnvVars <- base::Sys.getenv() [01:29:37.130] } [01:29:37.130] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:29:37.130] future.globals.maxSize = NULL, future.globals.method = NULL, [01:29:37.130] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:29:37.130] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:29:37.130] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:29:37.130] future.stdout.windows.reencode = NULL, width = 80L) [01:29:37.130] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:29:37.130] base::names(...future.oldOptions)) [01:29:37.130] } [01:29:37.130] if (FALSE) { [01:29:37.130] } [01:29:37.130] else { [01:29:37.130] if (TRUE) { [01:29:37.130] ...future.stdout <- base::rawConnection(base::raw(0L), [01:29:37.130] open = "w") [01:29:37.130] } [01:29:37.130] else { [01:29:37.130] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:29:37.130] windows = "NUL", "/dev/null"), open = "w") [01:29:37.130] } [01:29:37.130] base::sink(...future.stdout, type = "output", split = FALSE) [01:29:37.130] base::on.exit(if (!base::is.null(...future.stdout)) { [01:29:37.130] base::sink(type = "output", split = FALSE) [01:29:37.130] base::close(...future.stdout) [01:29:37.130] }, add = TRUE) [01:29:37.130] } [01:29:37.130] ...future.frame <- base::sys.nframe() [01:29:37.130] ...future.conditions <- base::list() [01:29:37.130] ...future.rng <- base::globalenv()$.Random.seed [01:29:37.130] if (FALSE) { [01:29:37.130] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:29:37.130] "...future.value", "...future.globalenv.names", ".Random.seed") [01:29:37.130] } [01:29:37.130] ...future.result <- base::tryCatch({ [01:29:37.130] base::withCallingHandlers({ [01:29:37.130] ...future.value <- base::withVisible(base::local(NA)) [01:29:37.130] future::FutureResult(value = ...future.value$value, [01:29:37.130] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:29:37.130] ...future.rng), globalenv = if (FALSE) [01:29:37.130] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:29:37.130] ...future.globalenv.names)) [01:29:37.130] else NULL, started = ...future.startTime, version = "1.8") [01:29:37.130] }, condition = base::local({ [01:29:37.130] c <- base::c [01:29:37.130] inherits <- base::inherits [01:29:37.130] invokeRestart <- base::invokeRestart [01:29:37.130] length <- base::length [01:29:37.130] list <- base::list [01:29:37.130] seq.int <- base::seq.int [01:29:37.130] signalCondition <- base::signalCondition [01:29:37.130] sys.calls <- base::sys.calls [01:29:37.130] `[[` <- base::`[[` [01:29:37.130] `+` <- base::`+` [01:29:37.130] `<<-` <- base::`<<-` [01:29:37.130] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:29:37.130] calls[seq.int(from = from + 12L, to = length(calls) - [01:29:37.130] 3L)] [01:29:37.130] } [01:29:37.130] function(cond) { [01:29:37.130] is_error <- inherits(cond, "error") [01:29:37.130] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:29:37.130] NULL) [01:29:37.130] if (is_error) { [01:29:37.130] sessionInformation <- function() { [01:29:37.130] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:29:37.130] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:29:37.130] search = base::search(), system = base::Sys.info()) [01:29:37.130] } [01:29:37.130] ...future.conditions[[length(...future.conditions) + [01:29:37.130] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:29:37.130] cond$call), session = sessionInformation(), [01:29:37.130] timestamp = base::Sys.time(), signaled = 0L) [01:29:37.130] signalCondition(cond) [01:29:37.130] } [01:29:37.130] else if (!ignore && TRUE && inherits(cond, c("condition", [01:29:37.130] "immediateCondition"))) { [01:29:37.130] signal <- TRUE && inherits(cond, "immediateCondition") [01:29:37.130] ...future.conditions[[length(...future.conditions) + [01:29:37.130] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:29:37.130] if (TRUE && !signal) { [01:29:37.130] muffleCondition <- function (cond, pattern = "^muffle") [01:29:37.130] { [01:29:37.130] inherits <- base::inherits [01:29:37.130] invokeRestart <- base::invokeRestart [01:29:37.130] is.null <- base::is.null [01:29:37.130] muffled <- FALSE [01:29:37.130] if (inherits(cond, "message")) { [01:29:37.130] muffled <- grepl(pattern, "muffleMessage") [01:29:37.130] if (muffled) [01:29:37.130] invokeRestart("muffleMessage") [01:29:37.130] } [01:29:37.130] else if (inherits(cond, "warning")) { [01:29:37.130] muffled <- grepl(pattern, "muffleWarning") [01:29:37.130] if (muffled) [01:29:37.130] invokeRestart("muffleWarning") [01:29:37.130] } [01:29:37.130] else if (inherits(cond, "condition")) { [01:29:37.130] if (!is.null(pattern)) { [01:29:37.130] computeRestarts <- base::computeRestarts [01:29:37.130] grepl <- base::grepl [01:29:37.130] restarts <- computeRestarts(cond) [01:29:37.130] for (restart in restarts) { [01:29:37.130] name <- restart$name [01:29:37.130] if (is.null(name)) [01:29:37.130] next [01:29:37.130] if (!grepl(pattern, name)) [01:29:37.130] next [01:29:37.130] invokeRestart(restart) [01:29:37.130] muffled <- TRUE [01:29:37.130] break [01:29:37.130] } [01:29:37.130] } [01:29:37.130] } [01:29:37.130] invisible(muffled) [01:29:37.130] } [01:29:37.130] muffleCondition(cond, pattern = "^muffle") [01:29:37.130] } [01:29:37.130] } [01:29:37.130] else { [01:29:37.130] if (TRUE) { [01:29:37.130] muffleCondition <- function (cond, pattern = "^muffle") [01:29:37.130] { [01:29:37.130] inherits <- base::inherits [01:29:37.130] invokeRestart <- base::invokeRestart [01:29:37.130] is.null <- base::is.null [01:29:37.130] muffled <- FALSE [01:29:37.130] if (inherits(cond, "message")) { [01:29:37.130] muffled <- grepl(pattern, "muffleMessage") [01:29:37.130] if (muffled) [01:29:37.130] invokeRestart("muffleMessage") [01:29:37.130] } [01:29:37.130] else if (inherits(cond, "warning")) { [01:29:37.130] muffled <- grepl(pattern, "muffleWarning") [01:29:37.130] if (muffled) [01:29:37.130] invokeRestart("muffleWarning") [01:29:37.130] } [01:29:37.130] else if (inherits(cond, "condition")) { [01:29:37.130] if (!is.null(pattern)) { [01:29:37.130] computeRestarts <- base::computeRestarts [01:29:37.130] grepl <- base::grepl [01:29:37.130] restarts <- computeRestarts(cond) [01:29:37.130] for (restart in restarts) { [01:29:37.130] name <- restart$name [01:29:37.130] if (is.null(name)) [01:29:37.130] next [01:29:37.130] if (!grepl(pattern, name)) [01:29:37.130] next [01:29:37.130] invokeRestart(restart) [01:29:37.130] muffled <- TRUE [01:29:37.130] break [01:29:37.130] } [01:29:37.130] } [01:29:37.130] } [01:29:37.130] invisible(muffled) [01:29:37.130] } [01:29:37.130] muffleCondition(cond, pattern = "^muffle") [01:29:37.130] } [01:29:37.130] } [01:29:37.130] } [01:29:37.130] })) [01:29:37.130] }, error = function(ex) { [01:29:37.130] base::structure(base::list(value = NULL, visible = NULL, [01:29:37.130] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:29:37.130] ...future.rng), started = ...future.startTime, [01:29:37.130] finished = Sys.time(), session_uuid = NA_character_, [01:29:37.130] version = "1.8"), class = "FutureResult") [01:29:37.130] }, finally = { [01:29:37.130] if (!identical(...future.workdir, getwd())) [01:29:37.130] setwd(...future.workdir) [01:29:37.130] { [01:29:37.130] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:29:37.130] ...future.oldOptions$nwarnings <- NULL [01:29:37.130] } [01:29:37.130] base::options(...future.oldOptions) [01:29:37.130] if (.Platform$OS.type == "windows") { [01:29:37.130] old_names <- names(...future.oldEnvVars) [01:29:37.130] envs <- base::Sys.getenv() [01:29:37.130] names <- names(envs) [01:29:37.130] common <- intersect(names, old_names) [01:29:37.130] added <- setdiff(names, old_names) [01:29:37.130] removed <- setdiff(old_names, names) [01:29:37.130] changed <- common[...future.oldEnvVars[common] != [01:29:37.130] envs[common]] [01:29:37.130] NAMES <- toupper(changed) [01:29:37.130] args <- list() [01:29:37.130] for (kk in seq_along(NAMES)) { [01:29:37.130] name <- changed[[kk]] [01:29:37.130] NAME <- NAMES[[kk]] [01:29:37.130] if (name != NAME && is.element(NAME, old_names)) [01:29:37.130] next [01:29:37.130] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:37.130] } [01:29:37.130] NAMES <- toupper(added) [01:29:37.130] for (kk in seq_along(NAMES)) { [01:29:37.130] name <- added[[kk]] [01:29:37.130] NAME <- NAMES[[kk]] [01:29:37.130] if (name != NAME && is.element(NAME, old_names)) [01:29:37.130] next [01:29:37.130] args[[name]] <- "" [01:29:37.130] } [01:29:37.130] NAMES <- toupper(removed) [01:29:37.130] for (kk in seq_along(NAMES)) { [01:29:37.130] name <- removed[[kk]] [01:29:37.130] NAME <- NAMES[[kk]] [01:29:37.130] if (name != NAME && is.element(NAME, old_names)) [01:29:37.130] next [01:29:37.130] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:37.130] } [01:29:37.130] if (length(args) > 0) [01:29:37.130] base::do.call(base::Sys.setenv, args = args) [01:29:37.130] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:29:37.130] } [01:29:37.130] else { [01:29:37.130] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:29:37.130] } [01:29:37.130] { [01:29:37.130] if (base::length(...future.futureOptionsAdded) > [01:29:37.130] 0L) { [01:29:37.130] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:29:37.130] base::names(opts) <- ...future.futureOptionsAdded [01:29:37.130] base::options(opts) [01:29:37.130] } [01:29:37.130] { [01:29:37.130] { [01:29:37.130] NULL [01:29:37.130] RNGkind("Mersenne-Twister") [01:29:37.130] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:29:37.130] inherits = FALSE) [01:29:37.130] } [01:29:37.130] options(future.plan = function (..., workers = availableCores(), [01:29:37.130] lazy = FALSE, rscript_libs = .libPaths(), [01:29:37.130] envir = parent.frame()) [01:29:37.130] { [01:29:37.130] if (is.function(workers)) [01:29:37.130] workers <- workers() [01:29:37.130] workers <- structure(as.integer(workers), [01:29:37.130] class = class(workers)) [01:29:37.130] stop_if_not(length(workers) == 1, is.finite(workers), [01:29:37.130] workers >= 1) [01:29:37.130] if (workers == 1L && !inherits(workers, "AsIs")) { [01:29:37.130] return(sequential(..., lazy = TRUE, envir = envir)) [01:29:37.130] } [01:29:37.130] future <- MultisessionFuture(..., workers = workers, [01:29:37.130] lazy = lazy, rscript_libs = rscript_libs, [01:29:37.130] envir = envir) [01:29:37.130] if (!future$lazy) [01:29:37.130] future <- run(future) [01:29:37.130] invisible(future) [01:29:37.130] }) [01:29:37.130] if (is.na(NA_character_)) [01:29:37.130] Sys.unsetenv("R_FUTURE_PLAN") [01:29:37.130] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:29:37.130] future::plan(list(function (..., workers = availableCores(), [01:29:37.130] lazy = FALSE, rscript_libs = .libPaths(), [01:29:37.130] envir = parent.frame()) [01:29:37.130] { [01:29:37.130] if (is.function(workers)) [01:29:37.130] workers <- workers() [01:29:37.130] workers <- structure(as.integer(workers), [01:29:37.130] class = class(workers)) [01:29:37.130] stop_if_not(length(workers) == 1, is.finite(workers), [01:29:37.130] workers >= 1) [01:29:37.130] if (workers == 1L && !inherits(workers, "AsIs")) { [01:29:37.130] return(sequential(..., lazy = TRUE, envir = envir)) [01:29:37.130] } [01:29:37.130] future <- MultisessionFuture(..., workers = workers, [01:29:37.130] lazy = lazy, rscript_libs = rscript_libs, [01:29:37.130] envir = envir) [01:29:37.130] if (!future$lazy) [01:29:37.130] future <- run(future) [01:29:37.130] invisible(future) [01:29:37.130] }), .cleanup = FALSE, .init = FALSE) [01:29:37.130] } [01:29:37.130] } [01:29:37.130] } [01:29:37.130] }) [01:29:37.130] if (TRUE) { [01:29:37.130] base::sink(type = "output", split = FALSE) [01:29:37.130] if (TRUE) { [01:29:37.130] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:29:37.130] } [01:29:37.130] else { [01:29:37.130] ...future.result["stdout"] <- base::list(NULL) [01:29:37.130] } [01:29:37.130] base::close(...future.stdout) [01:29:37.130] ...future.stdout <- NULL [01:29:37.130] } [01:29:37.130] ...future.result$conditions <- ...future.conditions [01:29:37.130] ...future.result$finished <- base::Sys.time() [01:29:37.130] ...future.result [01:29:37.130] } [01:29:37.134] plan(): Setting new future strategy stack: [01:29:37.134] List of future strategies: [01:29:37.134] 1. sequential: [01:29:37.134] - args: function (..., envir = parent.frame(), workers = "") [01:29:37.134] - tweaked: FALSE [01:29:37.134] - call: NULL [01:29:37.135] plan(): nbrOfWorkers() = 1 [01:29:37.136] plan(): Setting new future strategy stack: [01:29:37.137] List of future strategies: [01:29:37.137] 1. multisession: [01:29:37.137] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:29:37.137] - tweaked: FALSE [01:29:37.137] - call: NULL [01:29:37.139] plan(): nbrOfWorkers() = 1 [01:29:37.139] SequentialFuture started (and completed) [01:29:37.140] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:29:37.142] 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) + } [01:29:37.146] Option 'future.startup.script': TRUE [01:29:37.147] Future startup scripts considered: '.future.R', '~/.future.R' [01:29:37.147] Future startup scripts found: [01:29:37.148] Option 'future.startup.script': TRUE [01:29:37.148] Future startup scripts considered: '.future.R', '~/.future.R' [01:29:37.148] Future startup scripts found: [01:29:37.148] Option 'future.startup.script': TRUE [01:29:37.149] Future startup scripts considered: '.future.R', '~/.future.R' [01:29:37.149] 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) [01:29:37.150] Option 'future.startup.script': TRUE [01:29:37.150] Future startup scripts considered: '.future.R', '~/.future.R' [01:29:37.150] Future startup scripts found: '.future.R' [01:29:37.151] 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") [01:29:37.153] plan(): Setting new future strategy stack: [01:29:37.153] List of future strategies: [01:29:37.153] 1. FutureStrategy: [01:29:37.153] - args: function (..., envir = parent.frame(), workers = "") [01:29:37.153] - tweaked: FALSE [01:29:37.153] - call: future::plan(oplan) [01:29:37.154] 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', '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_RTOOLS43_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_SUBDIRS_STRICT_', '_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_INSTALL_TIME_PATCHES_', '_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.78 0.18 2.29