R Under development (unstable) (2023-06-30 r84625 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") [18:03:23.189] plan(): Setting new future strategy stack: [18:03:23.191] List of future strategies: [18:03:23.191] 1. sequential: [18:03:23.191] - args: function (..., envir = parent.frame()) [18:03:23.191] - tweaked: FALSE [18:03:23.191] - call: future::plan("sequential") [18:03:23.207] plan(): nbrOfWorkers() = 1 > > maxCores <- min(2L, availableCores(methods = "system")) > > > plan("default") [18:03:23.214] plan(): Setting new future strategy stack: [18:03:23.214] List of future strategies: [18:03:23.214] 1. sequential: [18:03:23.214] - args: function (..., envir = parent.frame()) [18:03:23.214] - tweaked: FALSE [18:03:23.214] - call: NULL [18:03:23.227] 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") [18:03:23.235] plan(): Setting new future strategy stack: [18:03:23.235] List of future strategies: [18:03:23.235] 1. sequential: [18:03:23.235] - args: function (..., envir = parent.frame()) [18:03:23.235] - tweaked: FALSE [18:03:23.235] - call: NULL [18:03:23.236] 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) [18:03:23.237] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [18:03:23.237] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [18:03:23.237] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [18:03:23.237] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [18:03:23.238] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [18:03:23.238] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [18:03:23.238] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [18:03:23.238] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [18:03:23.238] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [18:03:23.239] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [18:03:23.239] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [18:03:23.239] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [18:03:23.239] Environment variable 'R_FUTURE_PLAN' not set [18:03:23.239] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [18:03:23.240] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [18:03:23.240] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [18:03:23.240] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [18:03:23.240] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [18:03:23.240] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [18:03:23.241] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [18:03:23.241] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [18:03:23.241] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [18:03:23.241] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [18:03:23.241] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [18:03:23.242] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [18:03:23.242] R_FUTURE_WAIT_INTERVAL='0.01' [18:03:23.242] Coercing from character to numeric: '0.01' [18:03:23.242] => options("future.wait.interval" = '0.01') [n=1, mode=double] [18:03:23.243] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [18:03:23.243] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [18:03:23.243] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [18:03:23.243] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [18:03:23.245] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [18:03:23.245] Environment variable 'R_FUTURE_JOURNAL' not set [18:03:23.245] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [18:03:23.245] R process uuid: 343601ce-d741-3023-f092-2bdafb2f2ff3 [18:03:23.246] Setting plan('default') [18:03:23.246] plan(): Setting new future strategy stack: [18:03:23.246] List of future strategies: [18:03:23.246] 1. sequential: [18:03:23.246] - args: function (..., envir = parent.frame()) [18:03:23.246] - tweaked: FALSE [18:03:23.246] - call: NULL [18:03:23.246] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) sequential: - args: function (..., envir = parent.frame()) - tweaked: FALSE - call: NULL > stopifnot(all(class(strategy) == class(strategy0))) > plan("default") [18:03:23.247] plan(): Setting new future strategy stack: [18:03:23.247] List of future strategies: [18:03:23.247] 1. sequential: [18:03:23.247] - args: function (..., envir = parent.frame()) [18:03:23.247] - tweaked: FALSE [18:03:23.247] - call: NULL [18:03:23.248] 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) [18:03:23.249] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [18:03:23.249] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [18:03:23.249] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [18:03:23.249] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [18:03:23.249] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [18:03:23.250] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [18:03:23.250] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [18:03:23.250] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [18:03:23.250] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [18:03:23.250] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [18:03:23.251] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [18:03:23.251] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [18:03:23.251] Environment variable 'R_FUTURE_PLAN' not set [18:03:23.251] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [18:03:23.251] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [18:03:23.252] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [18:03:23.252] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [18:03:23.252] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [18:03:23.252] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [18:03:23.252] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [18:03:23.253] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [18:03:23.253] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [18:03:23.253] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [18:03:23.253] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [18:03:23.253] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [18:03:23.254] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [18:03:23.254] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [18:03:23.254] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [18:03:23.254] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [18:03:23.254] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [18:03:23.254] Environment variable 'R_FUTURE_JOURNAL' not set [18:03:23.255] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [18:03:23.255] R command-line argument: -p 1 [18:03:23.255] => options(future.plan = sequential) [18:03:23.255] R process uuid: 343601ce-d741-3023-f092-2bdafb2f2ff3 [18:03:23.256] Setting plan('default') [18:03:23.256] plan(): Setting new future strategy stack: [18:03:23.256] List of future strategies: [18:03:23.256] 1. sequential: [18:03:23.256] - args: function (..., envir = parent.frame()) [18:03:23.256] - tweaked: FALSE [18:03:23.256] - call: NULL [18:03:23.256] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) sequential: - args: function (..., envir = parent.frame()) - 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") [18:03:23.257] plan(): Setting new future strategy stack: [18:03:23.257] List of future strategies: [18:03:23.257] 1. sequential: [18:03:23.257] - args: function (..., envir = parent.frame()) [18:03:23.257] - tweaked: FALSE [18:03:23.257] - call: NULL [18:03:23.258] 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") [18:03:23.258] plan(): Setting new future strategy stack: [18:03:23.258] List of future strategies: [18:03:23.258] 1. sequential: [18:03:23.258] - args: function (..., envir = parent.frame()) [18:03:23.258] - tweaked: FALSE [18:03:23.258] - call: NULL [18:03:23.259] plan(): nbrOfWorkers() = 1 > options(future.plan = NULL, future.cmdargs = "-parallel=1") > .onLoad(pkgname, pkgname) [18:03:23.259] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [18:03:23.260] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [18:03:23.260] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [18:03:23.260] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [18:03:23.260] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [18:03:23.260] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [18:03:23.261] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [18:03:23.261] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [18:03:23.261] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [18:03:23.261] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [18:03:23.261] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [18:03:23.261] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [18:03:23.262] Environment variable 'R_FUTURE_PLAN' not set [18:03:23.262] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [18:03:23.262] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [18:03:23.262] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [18:03:23.262] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [18:03:23.263] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [18:03:23.263] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [18:03:23.263] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [18:03:23.263] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [18:03:23.263] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [18:03:23.263] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [18:03:23.264] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [18:03:23.264] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [18:03:23.264] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [18:03:23.264] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [18:03:23.264] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [18:03:23.265] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [18:03:23.265] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [18:03:23.265] Environment variable 'R_FUTURE_JOURNAL' not set [18:03:23.265] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [18:03:23.265] R process uuid: 343601ce-d741-3023-f092-2bdafb2f2ff3 [18:03:23.265] Setting plan('default') [18:03:23.266] plan(): Setting new future strategy stack: [18:03:23.266] List of future strategies: [18:03:23.266] 1. sequential: [18:03:23.266] - args: function (..., envir = parent.frame()) [18:03:23.266] - tweaked: FALSE [18:03:23.266] - call: NULL [18:03:23.266] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) sequential: - args: function (..., envir = parent.frame()) - 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") [18:03:23.267] plan(): Setting new future strategy stack: [18:03:23.267] List of future strategies: [18:03:23.267] 1. sequential: [18:03:23.267] - args: function (..., envir = parent.frame()) [18:03:23.267] - tweaked: FALSE [18:03:23.267] - call: NULL [18:03:23.267] 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) [18:03:23.268] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [18:03:23.269] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [18:03:23.269] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [18:03:23.269] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [18:03:23.269] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [18:03:23.269] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [18:03:23.270] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [18:03:23.270] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [18:03:23.270] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [18:03:23.270] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [18:03:23.270] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [18:03:23.271] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [18:03:23.271] Environment variable 'R_FUTURE_PLAN' not set [18:03:23.271] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [18:03:23.271] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [18:03:23.271] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [18:03:23.271] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [18:03:23.272] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [18:03:23.272] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [18:03:23.272] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [18:03:23.272] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [18:03:23.272] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [18:03:23.273] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [18:03:23.273] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [18:03:23.273] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [18:03:23.273] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [18:03:23.273] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [18:03:23.274] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [18:03:23.274] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [18:03:23.274] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [18:03:23.274] Environment variable 'R_FUTURE_JOURNAL' not set [18:03:23.274] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [18:03:23.275] R command-line argument: -p 2 [18:03:23.275] => options(future.plan = tweak(multisession, workers = 2)) [18:03:23.278] R process uuid: 343601ce-d741-3023-f092-2bdafb2f2ff3 [18:03:23.278] Setting plan('default') [18:03:23.278] plan(): Setting new future strategy stack: [18:03:23.278] List of future strategies: [18:03:23.278] 1. multisession: [18:03:23.278] - args: function (..., workers = 2L, envir = parent.frame()) [18:03:23.278] - tweaked: TRUE [18:03:23.278] - call: NULL [18:03:23.279] 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") [18:03:23.279] plan(): Setting new future strategy stack: [18:03:23.280] List of future strategies: [18:03:23.280] 1. multisession: [18:03:23.280] - args: function (..., workers = 2L, envir = parent.frame()) [18:03:23.280] - tweaked: TRUE [18:03:23.280] - call: NULL [18:03:23.280] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [18:03:23.280] multisession: [18:03:23.280] - args: function (..., workers = 2L, envir = parent.frame()) [18:03:23.280] - tweaked: TRUE [18:03:23.280] - call: NULL [18:03:23.282] getGlobalsAndPackages() ... [18:03:23.282] Not searching for globals [18:03:23.282] - globals: [0] [18:03:23.283] getGlobalsAndPackages() ... DONE [18:03:23.283] [local output] makeClusterPSOCK() ... [18:03:23.310] [local output] Workers: [n = 2] 'localhost', 'localhost' [18:03:23.317] [local output] Base port: 35901 [18:03:23.318] [local output] Getting setup options for 2 cluster nodes ... [18:03:23.318] [local output] - Node 1 of 2 ... [18:03:23.318] [local output] localMachine=TRUE => revtunnel=FALSE [18:03:23.320] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpcnOdti/worker.rank=1.parallelly.parent=30624.77a018a67a6f.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpcnOdti/worker.rank=1.parallelly.parent=30624.77a018a67a6f.pid\")"' [18:03:23.768] - Possible to infer worker's PID: TRUE [18:03:23.768] [local output] Rscript port: 35901 [18:03:23.769] [local output] - Node 2 of 2 ... [18:03:23.769] [local output] localMachine=TRUE => revtunnel=FALSE [18:03:23.770] [local output] Rscript port: 35901 [18:03:23.771] [local output] Getting setup options for 2 cluster nodes ... done [18:03:23.771] [local output] - Parallel setup requested for some PSOCK nodes [18:03:23.772] [local output] Setting up PSOCK nodes in parallel [18:03:23.772] List of 36 [18:03:23.772] $ worker : chr "localhost" [18:03:23.772] ..- attr(*, "localhost")= logi TRUE [18:03:23.772] $ master : chr "localhost" [18:03:23.772] $ port : int 35901 [18:03:23.772] $ connectTimeout : num 120 [18:03:23.772] $ timeout : num 120 [18:03:23.772] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [18:03:23.772] $ homogeneous : logi TRUE [18:03:23.772] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=startup.R:30624:CRANWIN3:CRAN\" "| __truncated__ [18:03:23.772] $ rscript_envs : NULL [18:03:23.772] $ rscript_libs : chr [1:2] "D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c" "D:/RCompile/recent/R/library" [18:03:23.772] $ rscript_startup : NULL [18:03:23.772] $ rscript_sh : chr "cmd" [18:03:23.772] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:03:23.772] $ methods : logi TRUE [18:03:23.772] $ socketOptions : chr "no-delay" [18:03:23.772] $ useXDR : logi FALSE [18:03:23.772] $ outfile : chr "/dev/null" [18:03:23.772] $ renice : int NA [18:03:23.772] $ rshcmd : NULL [18:03:23.772] $ user : chr(0) [18:03:23.772] $ revtunnel : logi FALSE [18:03:23.772] $ rshlogfile : NULL [18:03:23.772] $ rshopts : chr(0) [18:03:23.772] $ rank : int 1 [18:03:23.772] $ manual : logi FALSE [18:03:23.772] $ dryrun : logi FALSE [18:03:23.772] $ quiet : logi FALSE [18:03:23.772] $ setup_strategy : chr "parallel" [18:03:23.772] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:03:23.772] $ pidfile : chr "D:/temp/RtmpcnOdti/worker.rank=1.parallelly.parent=30624.77a018a67a6f.pid" [18:03:23.772] $ rshcmd_label : NULL [18:03:23.772] $ rsh_call : NULL [18:03:23.772] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:03:23.772] $ localMachine : logi TRUE [18:03:23.772] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [18:03:23.772] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [18:03:23.772] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [18:03:23.772] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [18:03:23.772] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [18:03:23.772] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [18:03:23.772] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [18:03:23.772] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [18:03:23.772] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [18:03:23.772] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [18:03:23.772] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [18:03:23.772] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [18:03:23.772] "parallel"), action = c("launch", "options"), verbose = FALSE) [18:03:23.772] $ arguments :List of 28 [18:03:23.772] ..$ worker : chr "localhost" [18:03:23.772] ..$ master : NULL [18:03:23.772] ..$ port : int 35901 [18:03:23.772] ..$ connectTimeout : num 120 [18:03:23.772] ..$ timeout : num 120 [18:03:23.772] ..$ rscript : NULL [18:03:23.772] ..$ homogeneous : NULL [18:03:23.772] ..$ rscript_args : NULL [18:03:23.772] ..$ rscript_envs : NULL [18:03:23.772] ..$ rscript_libs : chr [1:2] "D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c" "D:/RCompile/recent/R/library" [18:03:23.772] ..$ rscript_startup : NULL [18:03:23.772] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [18:03:23.772] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:03:23.772] ..$ methods : logi TRUE [18:03:23.772] ..$ socketOptions : chr "no-delay" [18:03:23.772] ..$ useXDR : logi FALSE [18:03:23.772] ..$ outfile : chr "/dev/null" [18:03:23.772] ..$ renice : int NA [18:03:23.772] ..$ rshcmd : NULL [18:03:23.772] ..$ user : NULL [18:03:23.772] ..$ revtunnel : logi NA [18:03:23.772] ..$ rshlogfile : NULL [18:03:23.772] ..$ rshopts : NULL [18:03:23.772] ..$ rank : int 1 [18:03:23.772] ..$ manual : logi FALSE [18:03:23.772] ..$ dryrun : logi FALSE [18:03:23.772] ..$ quiet : logi FALSE [18:03:23.772] ..$ setup_strategy : chr "parallel" [18:03:23.772] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [18:03:23.793] [local output] System call to launch all workers: [18:03:23.793] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=startup.R:30624:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpcnOdti/worker.rank=1.parallelly.parent=30624.77a018a67a6f.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=35901 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [18:03:23.794] [local output] Starting PSOCK main server [18:03:23.802] [local output] Workers launched [18:03:23.803] [local output] Waiting for workers to connect back [18:03:23.803] - [local output] 0 workers out of 2 ready [18:03:23.983] - [local output] 0 workers out of 2 ready [18:03:23.984] - [local output] 1 workers out of 2 ready [18:03:23.984] - [local output] 2 workers out of 2 ready [18:03:23.984] [local output] Launching of workers completed [18:03:23.984] [local output] Collecting session information from workers [18:03:23.985] [local output] - Worker #1 of 2 [18:03:23.986] [local output] - Worker #2 of 2 [18:03:23.986] [local output] makeClusterPSOCK() ... done [18:03:24.001] Packages needed by the future expression (n = 0): [18:03:24.001] Packages needed by future strategies (n = 0): [18:03:24.003] { [18:03:24.003] { [18:03:24.003] { [18:03:24.003] ...future.startTime <- base::Sys.time() [18:03:24.003] { [18:03:24.003] { [18:03:24.003] { [18:03:24.003] { [18:03:24.003] base::local({ [18:03:24.003] has_future <- base::requireNamespace("future", [18:03:24.003] quietly = TRUE) [18:03:24.003] if (has_future) { [18:03:24.003] ns <- base::getNamespace("future") [18:03:24.003] version <- ns[[".package"]][["version"]] [18:03:24.003] if (is.null(version)) [18:03:24.003] version <- utils::packageVersion("future") [18:03:24.003] } [18:03:24.003] else { [18:03:24.003] version <- NULL [18:03:24.003] } [18:03:24.003] if (!has_future || version < "1.8.0") { [18:03:24.003] info <- base::c(r_version = base::gsub("R version ", [18:03:24.003] "", base::R.version$version.string), [18:03:24.003] platform = base::sprintf("%s (%s-bit)", [18:03:24.003] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:03:24.003] os = base::paste(base::Sys.info()[base::c("sysname", [18:03:24.003] "release", "version")], collapse = " "), [18:03:24.003] hostname = base::Sys.info()[["nodename"]]) [18:03:24.003] info <- base::sprintf("%s: %s", base::names(info), [18:03:24.003] info) [18:03:24.003] info <- base::paste(info, collapse = "; ") [18:03:24.003] if (!has_future) { [18:03:24.003] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:03:24.003] info) [18:03:24.003] } [18:03:24.003] else { [18:03:24.003] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:03:24.003] info, version) [18:03:24.003] } [18:03:24.003] base::stop(msg) [18:03:24.003] } [18:03:24.003] }) [18:03:24.003] } [18:03:24.003] ...future.mc.cores.old <- base::getOption("mc.cores") [18:03:24.003] base::options(mc.cores = 1L) [18:03:24.003] } [18:03:24.003] options(future.plan = NULL) [18:03:24.003] Sys.unsetenv("R_FUTURE_PLAN") [18:03:24.003] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:03:24.003] } [18:03:24.003] ...future.workdir <- getwd() [18:03:24.003] } [18:03:24.003] ...future.oldOptions <- base::as.list(base::.Options) [18:03:24.003] ...future.oldEnvVars <- base::Sys.getenv() [18:03:24.003] } [18:03:24.003] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:03:24.003] future.globals.maxSize = NULL, future.globals.method = NULL, [18:03:24.003] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:03:24.003] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:03:24.003] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:03:24.003] future.stdout.windows.reencode = NULL, width = 80L) [18:03:24.003] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:03:24.003] base::names(...future.oldOptions)) [18:03:24.003] } [18:03:24.003] if (FALSE) { [18:03:24.003] } [18:03:24.003] else { [18:03:24.003] if (TRUE) { [18:03:24.003] ...future.stdout <- base::rawConnection(base::raw(0L), [18:03:24.003] open = "w") [18:03:24.003] } [18:03:24.003] else { [18:03:24.003] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:03:24.003] windows = "NUL", "/dev/null"), open = "w") [18:03:24.003] } [18:03:24.003] base::sink(...future.stdout, type = "output", split = FALSE) [18:03:24.003] base::on.exit(if (!base::is.null(...future.stdout)) { [18:03:24.003] base::sink(type = "output", split = FALSE) [18:03:24.003] base::close(...future.stdout) [18:03:24.003] }, add = TRUE) [18:03:24.003] } [18:03:24.003] ...future.frame <- base::sys.nframe() [18:03:24.003] ...future.conditions <- base::list() [18:03:24.003] ...future.rng <- base::globalenv()$.Random.seed [18:03:24.003] if (FALSE) { [18:03:24.003] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:03:24.003] "...future.value", "...future.globalenv.names", ".Random.seed") [18:03:24.003] } [18:03:24.003] ...future.result <- base::tryCatch({ [18:03:24.003] base::withCallingHandlers({ [18:03:24.003] ...future.value <- base::withVisible(base::local({ [18:03:24.003] ...future.makeSendCondition <- local({ [18:03:24.003] sendCondition <- NULL [18:03:24.003] function(frame = 1L) { [18:03:24.003] if (is.function(sendCondition)) [18:03:24.003] return(sendCondition) [18:03:24.003] ns <- getNamespace("parallel") [18:03:24.003] if (exists("sendData", mode = "function", [18:03:24.003] envir = ns)) { [18:03:24.003] parallel_sendData <- get("sendData", mode = "function", [18:03:24.003] envir = ns) [18:03:24.003] envir <- sys.frame(frame) [18:03:24.003] master <- NULL [18:03:24.003] while (!identical(envir, .GlobalEnv) && [18:03:24.003] !identical(envir, emptyenv())) { [18:03:24.003] if (exists("master", mode = "list", envir = envir, [18:03:24.003] inherits = FALSE)) { [18:03:24.003] master <- get("master", mode = "list", [18:03:24.003] envir = envir, inherits = FALSE) [18:03:24.003] if (inherits(master, c("SOCKnode", [18:03:24.003] "SOCK0node"))) { [18:03:24.003] sendCondition <<- function(cond) { [18:03:24.003] data <- list(type = "VALUE", value = cond, [18:03:24.003] success = TRUE) [18:03:24.003] parallel_sendData(master, data) [18:03:24.003] } [18:03:24.003] return(sendCondition) [18:03:24.003] } [18:03:24.003] } [18:03:24.003] frame <- frame + 1L [18:03:24.003] envir <- sys.frame(frame) [18:03:24.003] } [18:03:24.003] } [18:03:24.003] sendCondition <<- function(cond) NULL [18:03:24.003] } [18:03:24.003] }) [18:03:24.003] withCallingHandlers({ [18:03:24.003] NA [18:03:24.003] }, immediateCondition = function(cond) { [18:03:24.003] sendCondition <- ...future.makeSendCondition() [18:03:24.003] sendCondition(cond) [18:03:24.003] muffleCondition <- function (cond, pattern = "^muffle") [18:03:24.003] { [18:03:24.003] inherits <- base::inherits [18:03:24.003] invokeRestart <- base::invokeRestart [18:03:24.003] is.null <- base::is.null [18:03:24.003] muffled <- FALSE [18:03:24.003] if (inherits(cond, "message")) { [18:03:24.003] muffled <- grepl(pattern, "muffleMessage") [18:03:24.003] if (muffled) [18:03:24.003] invokeRestart("muffleMessage") [18:03:24.003] } [18:03:24.003] else if (inherits(cond, "warning")) { [18:03:24.003] muffled <- grepl(pattern, "muffleWarning") [18:03:24.003] if (muffled) [18:03:24.003] invokeRestart("muffleWarning") [18:03:24.003] } [18:03:24.003] else if (inherits(cond, "condition")) { [18:03:24.003] if (!is.null(pattern)) { [18:03:24.003] computeRestarts <- base::computeRestarts [18:03:24.003] grepl <- base::grepl [18:03:24.003] restarts <- computeRestarts(cond) [18:03:24.003] for (restart in restarts) { [18:03:24.003] name <- restart$name [18:03:24.003] if (is.null(name)) [18:03:24.003] next [18:03:24.003] if (!grepl(pattern, name)) [18:03:24.003] next [18:03:24.003] invokeRestart(restart) [18:03:24.003] muffled <- TRUE [18:03:24.003] break [18:03:24.003] } [18:03:24.003] } [18:03:24.003] } [18:03:24.003] invisible(muffled) [18:03:24.003] } [18:03:24.003] muffleCondition(cond) [18:03:24.003] }) [18:03:24.003] })) [18:03:24.003] future::FutureResult(value = ...future.value$value, [18:03:24.003] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:03:24.003] ...future.rng), globalenv = if (FALSE) [18:03:24.003] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:03:24.003] ...future.globalenv.names)) [18:03:24.003] else NULL, started = ...future.startTime, version = "1.8") [18:03:24.003] }, condition = base::local({ [18:03:24.003] c <- base::c [18:03:24.003] inherits <- base::inherits [18:03:24.003] invokeRestart <- base::invokeRestart [18:03:24.003] length <- base::length [18:03:24.003] list <- base::list [18:03:24.003] seq.int <- base::seq.int [18:03:24.003] signalCondition <- base::signalCondition [18:03:24.003] sys.calls <- base::sys.calls [18:03:24.003] `[[` <- base::`[[` [18:03:24.003] `+` <- base::`+` [18:03:24.003] `<<-` <- base::`<<-` [18:03:24.003] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:03:24.003] calls[seq.int(from = from + 12L, to = length(calls) - [18:03:24.003] 3L)] [18:03:24.003] } [18:03:24.003] function(cond) { [18:03:24.003] is_error <- inherits(cond, "error") [18:03:24.003] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:03:24.003] NULL) [18:03:24.003] if (is_error) { [18:03:24.003] sessionInformation <- function() { [18:03:24.003] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:03:24.003] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:03:24.003] search = base::search(), system = base::Sys.info()) [18:03:24.003] } [18:03:24.003] ...future.conditions[[length(...future.conditions) + [18:03:24.003] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:03:24.003] cond$call), session = sessionInformation(), [18:03:24.003] timestamp = base::Sys.time(), signaled = 0L) [18:03:24.003] signalCondition(cond) [18:03:24.003] } [18:03:24.003] else if (!ignore && TRUE && inherits(cond, c("condition", [18:03:24.003] "immediateCondition"))) { [18:03:24.003] signal <- TRUE && inherits(cond, "immediateCondition") [18:03:24.003] ...future.conditions[[length(...future.conditions) + [18:03:24.003] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:03:24.003] if (TRUE && !signal) { [18:03:24.003] muffleCondition <- function (cond, pattern = "^muffle") [18:03:24.003] { [18:03:24.003] inherits <- base::inherits [18:03:24.003] invokeRestart <- base::invokeRestart [18:03:24.003] is.null <- base::is.null [18:03:24.003] muffled <- FALSE [18:03:24.003] if (inherits(cond, "message")) { [18:03:24.003] muffled <- grepl(pattern, "muffleMessage") [18:03:24.003] if (muffled) [18:03:24.003] invokeRestart("muffleMessage") [18:03:24.003] } [18:03:24.003] else if (inherits(cond, "warning")) { [18:03:24.003] muffled <- grepl(pattern, "muffleWarning") [18:03:24.003] if (muffled) [18:03:24.003] invokeRestart("muffleWarning") [18:03:24.003] } [18:03:24.003] else if (inherits(cond, "condition")) { [18:03:24.003] if (!is.null(pattern)) { [18:03:24.003] computeRestarts <- base::computeRestarts [18:03:24.003] grepl <- base::grepl [18:03:24.003] restarts <- computeRestarts(cond) [18:03:24.003] for (restart in restarts) { [18:03:24.003] name <- restart$name [18:03:24.003] if (is.null(name)) [18:03:24.003] next [18:03:24.003] if (!grepl(pattern, name)) [18:03:24.003] next [18:03:24.003] invokeRestart(restart) [18:03:24.003] muffled <- TRUE [18:03:24.003] break [18:03:24.003] } [18:03:24.003] } [18:03:24.003] } [18:03:24.003] invisible(muffled) [18:03:24.003] } [18:03:24.003] muffleCondition(cond, pattern = "^muffle") [18:03:24.003] } [18:03:24.003] } [18:03:24.003] else { [18:03:24.003] if (TRUE) { [18:03:24.003] muffleCondition <- function (cond, pattern = "^muffle") [18:03:24.003] { [18:03:24.003] inherits <- base::inherits [18:03:24.003] invokeRestart <- base::invokeRestart [18:03:24.003] is.null <- base::is.null [18:03:24.003] muffled <- FALSE [18:03:24.003] if (inherits(cond, "message")) { [18:03:24.003] muffled <- grepl(pattern, "muffleMessage") [18:03:24.003] if (muffled) [18:03:24.003] invokeRestart("muffleMessage") [18:03:24.003] } [18:03:24.003] else if (inherits(cond, "warning")) { [18:03:24.003] muffled <- grepl(pattern, "muffleWarning") [18:03:24.003] if (muffled) [18:03:24.003] invokeRestart("muffleWarning") [18:03:24.003] } [18:03:24.003] else if (inherits(cond, "condition")) { [18:03:24.003] if (!is.null(pattern)) { [18:03:24.003] computeRestarts <- base::computeRestarts [18:03:24.003] grepl <- base::grepl [18:03:24.003] restarts <- computeRestarts(cond) [18:03:24.003] for (restart in restarts) { [18:03:24.003] name <- restart$name [18:03:24.003] if (is.null(name)) [18:03:24.003] next [18:03:24.003] if (!grepl(pattern, name)) [18:03:24.003] next [18:03:24.003] invokeRestart(restart) [18:03:24.003] muffled <- TRUE [18:03:24.003] break [18:03:24.003] } [18:03:24.003] } [18:03:24.003] } [18:03:24.003] invisible(muffled) [18:03:24.003] } [18:03:24.003] muffleCondition(cond, pattern = "^muffle") [18:03:24.003] } [18:03:24.003] } [18:03:24.003] } [18:03:24.003] })) [18:03:24.003] }, error = function(ex) { [18:03:24.003] base::structure(base::list(value = NULL, visible = NULL, [18:03:24.003] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:03:24.003] ...future.rng), started = ...future.startTime, [18:03:24.003] finished = Sys.time(), session_uuid = NA_character_, [18:03:24.003] version = "1.8"), class = "FutureResult") [18:03:24.003] }, finally = { [18:03:24.003] if (!identical(...future.workdir, getwd())) [18:03:24.003] setwd(...future.workdir) [18:03:24.003] { [18:03:24.003] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:03:24.003] ...future.oldOptions$nwarnings <- NULL [18:03:24.003] } [18:03:24.003] base::options(...future.oldOptions) [18:03:24.003] if (.Platform$OS.type == "windows") { [18:03:24.003] old_names <- names(...future.oldEnvVars) [18:03:24.003] envs <- base::Sys.getenv() [18:03:24.003] names <- names(envs) [18:03:24.003] common <- intersect(names, old_names) [18:03:24.003] added <- setdiff(names, old_names) [18:03:24.003] removed <- setdiff(old_names, names) [18:03:24.003] changed <- common[...future.oldEnvVars[common] != [18:03:24.003] envs[common]] [18:03:24.003] NAMES <- toupper(changed) [18:03:24.003] args <- list() [18:03:24.003] for (kk in seq_along(NAMES)) { [18:03:24.003] name <- changed[[kk]] [18:03:24.003] NAME <- NAMES[[kk]] [18:03:24.003] if (name != NAME && is.element(NAME, old_names)) [18:03:24.003] next [18:03:24.003] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:24.003] } [18:03:24.003] NAMES <- toupper(added) [18:03:24.003] for (kk in seq_along(NAMES)) { [18:03:24.003] name <- added[[kk]] [18:03:24.003] NAME <- NAMES[[kk]] [18:03:24.003] if (name != NAME && is.element(NAME, old_names)) [18:03:24.003] next [18:03:24.003] args[[name]] <- "" [18:03:24.003] } [18:03:24.003] NAMES <- toupper(removed) [18:03:24.003] for (kk in seq_along(NAMES)) { [18:03:24.003] name <- removed[[kk]] [18:03:24.003] NAME <- NAMES[[kk]] [18:03:24.003] if (name != NAME && is.element(NAME, old_names)) [18:03:24.003] next [18:03:24.003] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:24.003] } [18:03:24.003] if (length(args) > 0) [18:03:24.003] base::do.call(base::Sys.setenv, args = args) [18:03:24.003] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:03:24.003] } [18:03:24.003] else { [18:03:24.003] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:03:24.003] } [18:03:24.003] { [18:03:24.003] if (base::length(...future.futureOptionsAdded) > [18:03:24.003] 0L) { [18:03:24.003] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:03:24.003] base::names(opts) <- ...future.futureOptionsAdded [18:03:24.003] base::options(opts) [18:03:24.003] } [18:03:24.003] { [18:03:24.003] { [18:03:24.003] base::options(mc.cores = ...future.mc.cores.old) [18:03:24.003] NULL [18:03:24.003] } [18:03:24.003] options(future.plan = function (..., workers = 2L, [18:03:24.003] envir = parent.frame()) [18:03:24.003] strategy(..., workers = workers, envir = envir)) [18:03:24.003] if (is.na(NA_character_)) [18:03:24.003] Sys.unsetenv("R_FUTURE_PLAN") [18:03:24.003] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:03:24.003] future::plan(list(function (..., workers = 2L, [18:03:24.003] envir = parent.frame()) [18:03:24.003] strategy(..., workers = workers, envir = envir)), [18:03:24.003] .cleanup = FALSE, .init = FALSE) [18:03:24.003] } [18:03:24.003] } [18:03:24.003] } [18:03:24.003] }) [18:03:24.003] if (TRUE) { [18:03:24.003] base::sink(type = "output", split = FALSE) [18:03:24.003] if (TRUE) { [18:03:24.003] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:03:24.003] } [18:03:24.003] else { [18:03:24.003] ...future.result["stdout"] <- base::list(NULL) [18:03:24.003] } [18:03:24.003] base::close(...future.stdout) [18:03:24.003] ...future.stdout <- NULL [18:03:24.003] } [18:03:24.003] ...future.result$conditions <- ...future.conditions [18:03:24.003] ...future.result$finished <- base::Sys.time() [18:03:24.003] ...future.result [18:03:24.003] } [18:03:24.087] MultisessionFuture started [18:03:24.088] result() for ClusterFuture ... [18:03:24.088] receiveMessageFromWorker() for ClusterFuture ... [18:03:24.088] - Validating connection of MultisessionFuture [18:03:24.141] - received message: FutureResult [18:03:24.141] - Received FutureResult [18:03:24.145] - Erased future from FutureRegistry [18:03:24.145] result() for ClusterFuture ... [18:03:24.145] - result already collected: FutureResult [18:03:24.146] result() for ClusterFuture ... done [18:03:24.146] receiveMessageFromWorker() for ClusterFuture ... done [18:03:24.146] result() for ClusterFuture ... done [18:03:24.146] result() for ClusterFuture ... [18:03:24.146] - result already collected: FutureResult [18:03:24.147] result() for ClusterFuture ... done [18:03:24.147] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [18:03:24.147] 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) [18:03:24.149] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [18:03:24.149] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [18:03:24.149] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [18:03:24.149] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [18:03:24.150] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [18:03:24.150] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [18:03:24.150] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [18:03:24.150] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [18:03:24.151] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [18:03:24.151] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [18:03:24.151] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [18:03:24.151] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [18:03:24.151] Environment variable 'R_FUTURE_PLAN' not set [18:03:24.152] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [18:03:24.152] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [18:03:24.152] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [18:03:24.152] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [18:03:24.153] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [18:03:24.153] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [18:03:24.153] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [18:03:24.153] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [18:03:24.153] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [18:03:24.154] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [18:03:24.154] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [18:03:24.154] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [18:03:24.154] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [18:03:24.155] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [18:03:24.155] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [18:03:24.155] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [18:03:24.155] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [18:03:24.155] Environment variable 'R_FUTURE_JOURNAL' not set [18:03:24.156] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set Warning: future: Ignoring invalid number of processes specified in command-line option: -p 0 [18:03:24.156] R process uuid: 343601ce-d741-3023-f092-2bdafb2f2ff3 [18:03:24.157] Setting plan('default') [18:03:24.157] plan(): Setting new future strategy stack: [18:03:24.157] List of future strategies: [18:03:24.157] 1. sequential: [18:03:24.157] - args: function (..., envir = parent.frame()) [18:03:24.157] - tweaked: FALSE [18:03:24.157] - call: NULL [18:03:24.158] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) sequential: - args: function (..., envir = parent.frame()) - tweaked: FALSE - call: NULL > stopifnot(all(class(strategy) == class(strategy0))) > plan("default") [18:03:24.159] plan(): Setting new future strategy stack: [18:03:24.159] List of future strategies: [18:03:24.159] 1. sequential: [18:03:24.159] - args: function (..., envir = parent.frame()) [18:03:24.159] - tweaked: FALSE [18:03:24.159] - call: NULL [18:03:24.159] 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) [18:03:24.161] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [18:03:24.161] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [18:03:24.162] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [18:03:24.162] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [18:03:24.162] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [18:03:24.162] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [18:03:24.163] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [18:03:24.163] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [18:03:24.163] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [18:03:24.163] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [18:03:24.164] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [18:03:24.164] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [18:03:24.164] Environment variable 'R_FUTURE_PLAN' not set [18:03:24.164] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [18:03:24.165] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [18:03:24.165] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [18:03:24.165] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [18:03:24.165] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [18:03:24.165] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [18:03:24.166] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [18:03:24.166] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [18:03:24.166] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [18:03:24.166] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [18:03:24.167] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [18:03:24.167] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [18:03:24.167] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [18:03:24.167] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [18:03:24.167] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [18:03:24.168] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [18:03:24.168] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [18:03:24.168] Environment variable 'R_FUTURE_JOURNAL' not set [18:03:24.168] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set Warning: future: Ignoring invalid number of processes specified in command-line option: -p -1 [18:03:24.169] R process uuid: 343601ce-d741-3023-f092-2bdafb2f2ff3 [18:03:24.169] Setting plan('default') [18:03:24.169] plan(): Setting new future strategy stack: [18:03:24.170] List of future strategies: [18:03:24.170] 1. sequential: [18:03:24.170] - args: function (..., envir = parent.frame()) [18:03:24.170] - tweaked: FALSE [18:03:24.170] - call: NULL [18:03:24.170] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) sequential: - args: function (..., envir = parent.frame()) - tweaked: FALSE - call: NULL > stopifnot(all(class(strategy) == class(strategy0))) > plan("default") [18:03:24.171] plan(): Setting new future strategy stack: [18:03:24.171] List of future strategies: [18:03:24.171] 1. sequential: [18:03:24.171] - args: function (..., envir = parent.frame()) [18:03:24.171] - tweaked: FALSE [18:03:24.171] - call: NULL [18:03:24.171] 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) [18:03:24.173] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [18:03:24.173] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [18:03:24.173] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [18:03:24.173] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [18:03:24.174] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [18:03:24.174] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [18:03:24.174] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [18:03:24.174] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [18:03:24.174] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [18:03:24.175] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [18:03:24.175] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [18:03:24.175] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [18:03:24.175] Environment variable 'R_FUTURE_PLAN' not set [18:03:24.175] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [18:03:24.176] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [18:03:24.176] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [18:03:24.176] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [18:03:24.176] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [18:03:24.177] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [18:03:24.177] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [18:03:24.177] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [18:03:24.177] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [18:03:24.177] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [18:03:24.178] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [18:03:24.178] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [18:03:24.178] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [18:03:24.178] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [18:03:24.178] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [18:03:24.179] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [18:03:24.179] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [18:03:24.179] Environment variable 'R_FUTURE_JOURNAL' not set [18:03:24.179] 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 [18:03:24.180] R process uuid: 343601ce-d741-3023-f092-2bdafb2f2ff3 [18:03:24.180] Setting plan('default') [18:03:24.180] plan(): Setting new future strategy stack: [18:03:24.181] List of future strategies: [18:03:24.181] 1. sequential: [18:03:24.181] - args: function (..., envir = parent.frame()) [18:03:24.181] - tweaked: FALSE [18:03:24.181] - call: NULL [18:03:24.181] plan(): nbrOfWorkers() = 1 > strategy <- plan("next") > print(strategy) sequential: - args: function (..., envir = parent.frame()) - tweaked: FALSE - call: NULL > stopifnot(all(class(strategy) == class(strategy0))) > plan("default") [18:03:24.182] plan(): Setting new future strategy stack: [18:03:24.182] List of future strategies: [18:03:24.182] 1. sequential: [18:03:24.182] - args: function (..., envir = parent.frame()) [18:03:24.182] - tweaked: FALSE [18:03:24.182] - call: NULL [18:03:24.182] 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) [18:03:24.184] Future-specific environment variables: - R_FUTURE_PLAN='multisession' - R_FUTURE_WAIT_INTERVAL='0.01' [18:03:24.184] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [18:03:24.184] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [18:03:24.184] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [18:03:24.185] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [18:03:24.185] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [18:03:24.185] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [18:03:24.185] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [18:03:24.185] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [18:03:24.186] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [18:03:24.186] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [18:03:24.186] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [18:03:24.186] R_FUTURE_PLAN='multisession' [18:03:24.187] => options("future.plan" = 'multisession') [n=1, mode=character] [18:03:24.187] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [18:03:24.187] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [18:03:24.187] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [18:03:24.187] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [18:03:24.188] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [18:03:24.188] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [18:03:24.188] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [18:03:24.188] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [18:03:24.188] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [18:03:24.189] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [18:03:24.189] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [18:03:24.189] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [18:03:24.189] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [18:03:24.190] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [18:03:24.190] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [18:03:24.190] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [18:03:24.190] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [18:03:24.191] Environment variable 'R_FUTURE_JOURNAL' not set [18:03:24.191] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [18:03:24.191] Option 'future.plan' = 'multisession' [18:03:24.191] R process uuid: 343601ce-d741-3023-f092-2bdafb2f2ff3 [18:03:24.191] Setting plan('default') [18:03:24.192] plan(): Setting new future strategy stack: [18:03:24.192] List of future strategies: [18:03:24.192] 1. multisession: [18:03:24.192] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:24.192] - tweaked: FALSE [18:03:24.192] - call: plan("default", .init = FALSE) [18:03:24.195] 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") [18:03:24.195] plan(): Setting new future strategy stack: [18:03:24.195] List of future strategies: [18:03:24.195] 1. multisession: [18:03:24.195] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:24.195] - tweaked: FALSE [18:03:24.195] - call: plan("default") [18:03:24.196] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [18:03:24.196] multisession: [18:03:24.196] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:24.196] - tweaked: FALSE [18:03:24.196] - call: plan("default") [18:03:24.201] getGlobalsAndPackages() ... [18:03:24.201] Not searching for globals [18:03:24.202] - globals: [0] [18:03:24.202] getGlobalsAndPackages() ... DONE [18:03:24.202] [local output] makeClusterPSOCK() ... [18:03:24.203] [local output] Workers: [n = 2] 'localhost', 'localhost' [18:03:24.206] [local output] Base port: 27472 [18:03:24.206] [local output] Getting setup options for 2 cluster nodes ... [18:03:24.206] [local output] - Node 1 of 2 ... [18:03:24.206] [local output] localMachine=TRUE => revtunnel=FALSE [18:03:24.208] [local output] Rscript port: 27472 [18:03:24.208] [local output] - Node 2 of 2 ... [18:03:24.209] [local output] localMachine=TRUE => revtunnel=FALSE [18:03:24.210] [local output] Rscript port: 27472 [18:03:24.210] [local output] Getting setup options for 2 cluster nodes ... done [18:03:24.211] [local output] - Parallel setup requested for some PSOCK nodes [18:03:24.211] [local output] Setting up PSOCK nodes in parallel [18:03:24.211] List of 36 [18:03:24.211] $ worker : chr "localhost" [18:03:24.211] ..- attr(*, "localhost")= logi TRUE [18:03:24.211] $ master : chr "localhost" [18:03:24.211] $ port : int 27472 [18:03:24.211] $ connectTimeout : num 120 [18:03:24.211] $ timeout : num 120 [18:03:24.211] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [18:03:24.211] $ homogeneous : logi TRUE [18:03:24.211] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=startup.R:30624:CRANWIN3:CRAN\" "| __truncated__ [18:03:24.211] $ rscript_envs : NULL [18:03:24.211] $ rscript_libs : chr [1:2] "D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c" "D:/RCompile/recent/R/library" [18:03:24.211] $ rscript_startup : NULL [18:03:24.211] $ rscript_sh : chr "cmd" [18:03:24.211] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:03:24.211] $ methods : logi TRUE [18:03:24.211] $ socketOptions : chr "no-delay" [18:03:24.211] $ useXDR : logi FALSE [18:03:24.211] $ outfile : chr "/dev/null" [18:03:24.211] $ renice : int NA [18:03:24.211] $ rshcmd : NULL [18:03:24.211] $ user : chr(0) [18:03:24.211] $ revtunnel : logi FALSE [18:03:24.211] $ rshlogfile : NULL [18:03:24.211] $ rshopts : chr(0) [18:03:24.211] $ rank : int 1 [18:03:24.211] $ manual : logi FALSE [18:03:24.211] $ dryrun : logi FALSE [18:03:24.211] $ quiet : logi FALSE [18:03:24.211] $ setup_strategy : chr "parallel" [18:03:24.211] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:03:24.211] $ pidfile : chr "D:/temp/RtmpcnOdti/worker.rank=1.parallelly.parent=30624.77a01462b47.pid" [18:03:24.211] $ rshcmd_label : NULL [18:03:24.211] $ rsh_call : NULL [18:03:24.211] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:03:24.211] $ localMachine : logi TRUE [18:03:24.211] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [18:03:24.211] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [18:03:24.211] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [18:03:24.211] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [18:03:24.211] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [18:03:24.211] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [18:03:24.211] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [18:03:24.211] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [18:03:24.211] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [18:03:24.211] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [18:03:24.211] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [18:03:24.211] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [18:03:24.211] "parallel"), action = c("launch", "options"), verbose = FALSE) [18:03:24.211] $ arguments :List of 28 [18:03:24.211] ..$ worker : chr "localhost" [18:03:24.211] ..$ master : NULL [18:03:24.211] ..$ port : int 27472 [18:03:24.211] ..$ connectTimeout : num 120 [18:03:24.211] ..$ timeout : num 120 [18:03:24.211] ..$ rscript : NULL [18:03:24.211] ..$ homogeneous : NULL [18:03:24.211] ..$ rscript_args : NULL [18:03:24.211] ..$ rscript_envs : NULL [18:03:24.211] ..$ rscript_libs : chr [1:2] "D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c" "D:/RCompile/recent/R/library" [18:03:24.211] ..$ rscript_startup : NULL [18:03:24.211] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [18:03:24.211] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:03:24.211] ..$ methods : logi TRUE [18:03:24.211] ..$ socketOptions : chr "no-delay" [18:03:24.211] ..$ useXDR : logi FALSE [18:03:24.211] ..$ outfile : chr "/dev/null" [18:03:24.211] ..$ renice : int NA [18:03:24.211] ..$ rshcmd : NULL [18:03:24.211] ..$ user : NULL [18:03:24.211] ..$ revtunnel : logi NA [18:03:24.211] ..$ rshlogfile : NULL [18:03:24.211] ..$ rshopts : NULL [18:03:24.211] ..$ rank : int 1 [18:03:24.211] ..$ manual : logi FALSE [18:03:24.211] ..$ dryrun : logi FALSE [18:03:24.211] ..$ quiet : logi FALSE [18:03:24.211] ..$ setup_strategy : chr "parallel" [18:03:24.211] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [18:03:24.232] [local output] System call to launch all workers: [18:03:24.233] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=startup.R:30624:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpcnOdti/worker.rank=1.parallelly.parent=30624.77a01462b47.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=27472 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [18:03:24.233] [local output] Starting PSOCK main server [18:03:24.241] [local output] Workers launched [18:03:24.242] [local output] Waiting for workers to connect back [18:03:24.242] - [local output] 0 workers out of 2 ready [18:03:24.410] - [local output] 0 workers out of 2 ready [18:03:24.411] - [local output] 1 workers out of 2 ready [18:03:24.412] - [local output] 2 workers out of 2 ready [18:03:24.412] [local output] Launching of workers completed [18:03:24.412] [local output] Collecting session information from workers [18:03:24.413] [local output] - Worker #1 of 2 [18:03:24.414] [local output] - Worker #2 of 2 [18:03:24.414] [local output] makeClusterPSOCK() ... done [18:03:24.427] Packages needed by the future expression (n = 0): [18:03:24.427] Packages needed by future strategies (n = 0): [18:03:24.428] { [18:03:24.428] { [18:03:24.428] { [18:03:24.428] ...future.startTime <- base::Sys.time() [18:03:24.428] { [18:03:24.428] { [18:03:24.428] { [18:03:24.428] { [18:03:24.428] base::local({ [18:03:24.428] has_future <- base::requireNamespace("future", [18:03:24.428] quietly = TRUE) [18:03:24.428] if (has_future) { [18:03:24.428] ns <- base::getNamespace("future") [18:03:24.428] version <- ns[[".package"]][["version"]] [18:03:24.428] if (is.null(version)) [18:03:24.428] version <- utils::packageVersion("future") [18:03:24.428] } [18:03:24.428] else { [18:03:24.428] version <- NULL [18:03:24.428] } [18:03:24.428] if (!has_future || version < "1.8.0") { [18:03:24.428] info <- base::c(r_version = base::gsub("R version ", [18:03:24.428] "", base::R.version$version.string), [18:03:24.428] platform = base::sprintf("%s (%s-bit)", [18:03:24.428] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:03:24.428] os = base::paste(base::Sys.info()[base::c("sysname", [18:03:24.428] "release", "version")], collapse = " "), [18:03:24.428] hostname = base::Sys.info()[["nodename"]]) [18:03:24.428] info <- base::sprintf("%s: %s", base::names(info), [18:03:24.428] info) [18:03:24.428] info <- base::paste(info, collapse = "; ") [18:03:24.428] if (!has_future) { [18:03:24.428] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:03:24.428] info) [18:03:24.428] } [18:03:24.428] else { [18:03:24.428] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:03:24.428] info, version) [18:03:24.428] } [18:03:24.428] base::stop(msg) [18:03:24.428] } [18:03:24.428] }) [18:03:24.428] } [18:03:24.428] ...future.mc.cores.old <- base::getOption("mc.cores") [18:03:24.428] base::options(mc.cores = 1L) [18:03:24.428] } [18:03:24.428] options(future.plan = NULL) [18:03:24.428] Sys.unsetenv("R_FUTURE_PLAN") [18:03:24.428] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:03:24.428] } [18:03:24.428] ...future.workdir <- getwd() [18:03:24.428] } [18:03:24.428] ...future.oldOptions <- base::as.list(base::.Options) [18:03:24.428] ...future.oldEnvVars <- base::Sys.getenv() [18:03:24.428] } [18:03:24.428] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:03:24.428] future.globals.maxSize = NULL, future.globals.method = NULL, [18:03:24.428] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:03:24.428] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:03:24.428] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:03:24.428] future.stdout.windows.reencode = NULL, width = 80L) [18:03:24.428] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:03:24.428] base::names(...future.oldOptions)) [18:03:24.428] } [18:03:24.428] if (FALSE) { [18:03:24.428] } [18:03:24.428] else { [18:03:24.428] if (TRUE) { [18:03:24.428] ...future.stdout <- base::rawConnection(base::raw(0L), [18:03:24.428] open = "w") [18:03:24.428] } [18:03:24.428] else { [18:03:24.428] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:03:24.428] windows = "NUL", "/dev/null"), open = "w") [18:03:24.428] } [18:03:24.428] base::sink(...future.stdout, type = "output", split = FALSE) [18:03:24.428] base::on.exit(if (!base::is.null(...future.stdout)) { [18:03:24.428] base::sink(type = "output", split = FALSE) [18:03:24.428] base::close(...future.stdout) [18:03:24.428] }, add = TRUE) [18:03:24.428] } [18:03:24.428] ...future.frame <- base::sys.nframe() [18:03:24.428] ...future.conditions <- base::list() [18:03:24.428] ...future.rng <- base::globalenv()$.Random.seed [18:03:24.428] if (FALSE) { [18:03:24.428] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:03:24.428] "...future.value", "...future.globalenv.names", ".Random.seed") [18:03:24.428] } [18:03:24.428] ...future.result <- base::tryCatch({ [18:03:24.428] base::withCallingHandlers({ [18:03:24.428] ...future.value <- base::withVisible(base::local({ [18:03:24.428] ...future.makeSendCondition <- local({ [18:03:24.428] sendCondition <- NULL [18:03:24.428] function(frame = 1L) { [18:03:24.428] if (is.function(sendCondition)) [18:03:24.428] return(sendCondition) [18:03:24.428] ns <- getNamespace("parallel") [18:03:24.428] if (exists("sendData", mode = "function", [18:03:24.428] envir = ns)) { [18:03:24.428] parallel_sendData <- get("sendData", mode = "function", [18:03:24.428] envir = ns) [18:03:24.428] envir <- sys.frame(frame) [18:03:24.428] master <- NULL [18:03:24.428] while (!identical(envir, .GlobalEnv) && [18:03:24.428] !identical(envir, emptyenv())) { [18:03:24.428] if (exists("master", mode = "list", envir = envir, [18:03:24.428] inherits = FALSE)) { [18:03:24.428] master <- get("master", mode = "list", [18:03:24.428] envir = envir, inherits = FALSE) [18:03:24.428] if (inherits(master, c("SOCKnode", [18:03:24.428] "SOCK0node"))) { [18:03:24.428] sendCondition <<- function(cond) { [18:03:24.428] data <- list(type = "VALUE", value = cond, [18:03:24.428] success = TRUE) [18:03:24.428] parallel_sendData(master, data) [18:03:24.428] } [18:03:24.428] return(sendCondition) [18:03:24.428] } [18:03:24.428] } [18:03:24.428] frame <- frame + 1L [18:03:24.428] envir <- sys.frame(frame) [18:03:24.428] } [18:03:24.428] } [18:03:24.428] sendCondition <<- function(cond) NULL [18:03:24.428] } [18:03:24.428] }) [18:03:24.428] withCallingHandlers({ [18:03:24.428] NA [18:03:24.428] }, immediateCondition = function(cond) { [18:03:24.428] sendCondition <- ...future.makeSendCondition() [18:03:24.428] sendCondition(cond) [18:03:24.428] muffleCondition <- function (cond, pattern = "^muffle") [18:03:24.428] { [18:03:24.428] inherits <- base::inherits [18:03:24.428] invokeRestart <- base::invokeRestart [18:03:24.428] is.null <- base::is.null [18:03:24.428] muffled <- FALSE [18:03:24.428] if (inherits(cond, "message")) { [18:03:24.428] muffled <- grepl(pattern, "muffleMessage") [18:03:24.428] if (muffled) [18:03:24.428] invokeRestart("muffleMessage") [18:03:24.428] } [18:03:24.428] else if (inherits(cond, "warning")) { [18:03:24.428] muffled <- grepl(pattern, "muffleWarning") [18:03:24.428] if (muffled) [18:03:24.428] invokeRestart("muffleWarning") [18:03:24.428] } [18:03:24.428] else if (inherits(cond, "condition")) { [18:03:24.428] if (!is.null(pattern)) { [18:03:24.428] computeRestarts <- base::computeRestarts [18:03:24.428] grepl <- base::grepl [18:03:24.428] restarts <- computeRestarts(cond) [18:03:24.428] for (restart in restarts) { [18:03:24.428] name <- restart$name [18:03:24.428] if (is.null(name)) [18:03:24.428] next [18:03:24.428] if (!grepl(pattern, name)) [18:03:24.428] next [18:03:24.428] invokeRestart(restart) [18:03:24.428] muffled <- TRUE [18:03:24.428] break [18:03:24.428] } [18:03:24.428] } [18:03:24.428] } [18:03:24.428] invisible(muffled) [18:03:24.428] } [18:03:24.428] muffleCondition(cond) [18:03:24.428] }) [18:03:24.428] })) [18:03:24.428] future::FutureResult(value = ...future.value$value, [18:03:24.428] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:03:24.428] ...future.rng), globalenv = if (FALSE) [18:03:24.428] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:03:24.428] ...future.globalenv.names)) [18:03:24.428] else NULL, started = ...future.startTime, version = "1.8") [18:03:24.428] }, condition = base::local({ [18:03:24.428] c <- base::c [18:03:24.428] inherits <- base::inherits [18:03:24.428] invokeRestart <- base::invokeRestart [18:03:24.428] length <- base::length [18:03:24.428] list <- base::list [18:03:24.428] seq.int <- base::seq.int [18:03:24.428] signalCondition <- base::signalCondition [18:03:24.428] sys.calls <- base::sys.calls [18:03:24.428] `[[` <- base::`[[` [18:03:24.428] `+` <- base::`+` [18:03:24.428] `<<-` <- base::`<<-` [18:03:24.428] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:03:24.428] calls[seq.int(from = from + 12L, to = length(calls) - [18:03:24.428] 3L)] [18:03:24.428] } [18:03:24.428] function(cond) { [18:03:24.428] is_error <- inherits(cond, "error") [18:03:24.428] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:03:24.428] NULL) [18:03:24.428] if (is_error) { [18:03:24.428] sessionInformation <- function() { [18:03:24.428] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:03:24.428] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:03:24.428] search = base::search(), system = base::Sys.info()) [18:03:24.428] } [18:03:24.428] ...future.conditions[[length(...future.conditions) + [18:03:24.428] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:03:24.428] cond$call), session = sessionInformation(), [18:03:24.428] timestamp = base::Sys.time(), signaled = 0L) [18:03:24.428] signalCondition(cond) [18:03:24.428] } [18:03:24.428] else if (!ignore && TRUE && inherits(cond, c("condition", [18:03:24.428] "immediateCondition"))) { [18:03:24.428] signal <- TRUE && inherits(cond, "immediateCondition") [18:03:24.428] ...future.conditions[[length(...future.conditions) + [18:03:24.428] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:03:24.428] if (TRUE && !signal) { [18:03:24.428] muffleCondition <- function (cond, pattern = "^muffle") [18:03:24.428] { [18:03:24.428] inherits <- base::inherits [18:03:24.428] invokeRestart <- base::invokeRestart [18:03:24.428] is.null <- base::is.null [18:03:24.428] muffled <- FALSE [18:03:24.428] if (inherits(cond, "message")) { [18:03:24.428] muffled <- grepl(pattern, "muffleMessage") [18:03:24.428] if (muffled) [18:03:24.428] invokeRestart("muffleMessage") [18:03:24.428] } [18:03:24.428] else if (inherits(cond, "warning")) { [18:03:24.428] muffled <- grepl(pattern, "muffleWarning") [18:03:24.428] if (muffled) [18:03:24.428] invokeRestart("muffleWarning") [18:03:24.428] } [18:03:24.428] else if (inherits(cond, "condition")) { [18:03:24.428] if (!is.null(pattern)) { [18:03:24.428] computeRestarts <- base::computeRestarts [18:03:24.428] grepl <- base::grepl [18:03:24.428] restarts <- computeRestarts(cond) [18:03:24.428] for (restart in restarts) { [18:03:24.428] name <- restart$name [18:03:24.428] if (is.null(name)) [18:03:24.428] next [18:03:24.428] if (!grepl(pattern, name)) [18:03:24.428] next [18:03:24.428] invokeRestart(restart) [18:03:24.428] muffled <- TRUE [18:03:24.428] break [18:03:24.428] } [18:03:24.428] } [18:03:24.428] } [18:03:24.428] invisible(muffled) [18:03:24.428] } [18:03:24.428] muffleCondition(cond, pattern = "^muffle") [18:03:24.428] } [18:03:24.428] } [18:03:24.428] else { [18:03:24.428] if (TRUE) { [18:03:24.428] muffleCondition <- function (cond, pattern = "^muffle") [18:03:24.428] { [18:03:24.428] inherits <- base::inherits [18:03:24.428] invokeRestart <- base::invokeRestart [18:03:24.428] is.null <- base::is.null [18:03:24.428] muffled <- FALSE [18:03:24.428] if (inherits(cond, "message")) { [18:03:24.428] muffled <- grepl(pattern, "muffleMessage") [18:03:24.428] if (muffled) [18:03:24.428] invokeRestart("muffleMessage") [18:03:24.428] } [18:03:24.428] else if (inherits(cond, "warning")) { [18:03:24.428] muffled <- grepl(pattern, "muffleWarning") [18:03:24.428] if (muffled) [18:03:24.428] invokeRestart("muffleWarning") [18:03:24.428] } [18:03:24.428] else if (inherits(cond, "condition")) { [18:03:24.428] if (!is.null(pattern)) { [18:03:24.428] computeRestarts <- base::computeRestarts [18:03:24.428] grepl <- base::grepl [18:03:24.428] restarts <- computeRestarts(cond) [18:03:24.428] for (restart in restarts) { [18:03:24.428] name <- restart$name [18:03:24.428] if (is.null(name)) [18:03:24.428] next [18:03:24.428] if (!grepl(pattern, name)) [18:03:24.428] next [18:03:24.428] invokeRestart(restart) [18:03:24.428] muffled <- TRUE [18:03:24.428] break [18:03:24.428] } [18:03:24.428] } [18:03:24.428] } [18:03:24.428] invisible(muffled) [18:03:24.428] } [18:03:24.428] muffleCondition(cond, pattern = "^muffle") [18:03:24.428] } [18:03:24.428] } [18:03:24.428] } [18:03:24.428] })) [18:03:24.428] }, error = function(ex) { [18:03:24.428] base::structure(base::list(value = NULL, visible = NULL, [18:03:24.428] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:03:24.428] ...future.rng), started = ...future.startTime, [18:03:24.428] finished = Sys.time(), session_uuid = NA_character_, [18:03:24.428] version = "1.8"), class = "FutureResult") [18:03:24.428] }, finally = { [18:03:24.428] if (!identical(...future.workdir, getwd())) [18:03:24.428] setwd(...future.workdir) [18:03:24.428] { [18:03:24.428] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:03:24.428] ...future.oldOptions$nwarnings <- NULL [18:03:24.428] } [18:03:24.428] base::options(...future.oldOptions) [18:03:24.428] if (.Platform$OS.type == "windows") { [18:03:24.428] old_names <- names(...future.oldEnvVars) [18:03:24.428] envs <- base::Sys.getenv() [18:03:24.428] names <- names(envs) [18:03:24.428] common <- intersect(names, old_names) [18:03:24.428] added <- setdiff(names, old_names) [18:03:24.428] removed <- setdiff(old_names, names) [18:03:24.428] changed <- common[...future.oldEnvVars[common] != [18:03:24.428] envs[common]] [18:03:24.428] NAMES <- toupper(changed) [18:03:24.428] args <- list() [18:03:24.428] for (kk in seq_along(NAMES)) { [18:03:24.428] name <- changed[[kk]] [18:03:24.428] NAME <- NAMES[[kk]] [18:03:24.428] if (name != NAME && is.element(NAME, old_names)) [18:03:24.428] next [18:03:24.428] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:24.428] } [18:03:24.428] NAMES <- toupper(added) [18:03:24.428] for (kk in seq_along(NAMES)) { [18:03:24.428] name <- added[[kk]] [18:03:24.428] NAME <- NAMES[[kk]] [18:03:24.428] if (name != NAME && is.element(NAME, old_names)) [18:03:24.428] next [18:03:24.428] args[[name]] <- "" [18:03:24.428] } [18:03:24.428] NAMES <- toupper(removed) [18:03:24.428] for (kk in seq_along(NAMES)) { [18:03:24.428] name <- removed[[kk]] [18:03:24.428] NAME <- NAMES[[kk]] [18:03:24.428] if (name != NAME && is.element(NAME, old_names)) [18:03:24.428] next [18:03:24.428] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:24.428] } [18:03:24.428] if (length(args) > 0) [18:03:24.428] base::do.call(base::Sys.setenv, args = args) [18:03:24.428] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:03:24.428] } [18:03:24.428] else { [18:03:24.428] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:03:24.428] } [18:03:24.428] { [18:03:24.428] if (base::length(...future.futureOptionsAdded) > [18:03:24.428] 0L) { [18:03:24.428] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:03:24.428] base::names(opts) <- ...future.futureOptionsAdded [18:03:24.428] base::options(opts) [18:03:24.428] } [18:03:24.428] { [18:03:24.428] { [18:03:24.428] base::options(mc.cores = ...future.mc.cores.old) [18:03:24.428] NULL [18:03:24.428] } [18:03:24.428] options(future.plan = "multisession") [18:03:24.428] if (is.na("multisession")) [18:03:24.428] Sys.unsetenv("R_FUTURE_PLAN") [18:03:24.428] else Sys.setenv(R_FUTURE_PLAN = "multisession") [18:03:24.428] future::plan(list(function (..., workers = availableCores(), [18:03:24.428] lazy = FALSE, rscript_libs = .libPaths(), [18:03:24.428] envir = parent.frame()) [18:03:24.428] { [18:03:24.428] if (is.function(workers)) [18:03:24.428] workers <- workers() [18:03:24.428] workers <- structure(as.integer(workers), [18:03:24.428] class = class(workers)) [18:03:24.428] stop_if_not(length(workers) == 1, is.finite(workers), [18:03:24.428] workers >= 1) [18:03:24.428] if (workers == 1L && !inherits(workers, "AsIs")) { [18:03:24.428] return(sequential(..., lazy = TRUE, envir = envir)) [18:03:24.428] } [18:03:24.428] future <- MultisessionFuture(..., workers = workers, [18:03:24.428] lazy = lazy, rscript_libs = rscript_libs, [18:03:24.428] envir = envir) [18:03:24.428] if (!future$lazy) [18:03:24.428] future <- run(future) [18:03:24.428] invisible(future) [18:03:24.428] }), .cleanup = FALSE, .init = FALSE) [18:03:24.428] } [18:03:24.428] } [18:03:24.428] } [18:03:24.428] }) [18:03:24.428] if (TRUE) { [18:03:24.428] base::sink(type = "output", split = FALSE) [18:03:24.428] if (TRUE) { [18:03:24.428] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:03:24.428] } [18:03:24.428] else { [18:03:24.428] ...future.result["stdout"] <- base::list(NULL) [18:03:24.428] } [18:03:24.428] base::close(...future.stdout) [18:03:24.428] ...future.stdout <- NULL [18:03:24.428] } [18:03:24.428] ...future.result$conditions <- ...future.conditions [18:03:24.428] ...future.result$finished <- base::Sys.time() [18:03:24.428] ...future.result [18:03:24.428] } [18:03:24.515] MultisessionFuture started [18:03:24.516] result() for ClusterFuture ... [18:03:24.516] receiveMessageFromWorker() for ClusterFuture ... [18:03:24.516] - Validating connection of MultisessionFuture [18:03:24.571] - received message: FutureResult [18:03:24.571] - Received FutureResult [18:03:24.572] - Erased future from FutureRegistry [18:03:24.572] result() for ClusterFuture ... [18:03:24.572] - result already collected: FutureResult [18:03:24.572] result() for ClusterFuture ... done [18:03:24.572] receiveMessageFromWorker() for ClusterFuture ... done [18:03:24.572] result() for ClusterFuture ... done [18:03:24.573] result() for ClusterFuture ... [18:03:24.573] - result already collected: FutureResult [18:03:24.573] result() for ClusterFuture ... done [18:03:24.573] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [18:03:24.575] 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) [18:03:24.577] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [18:03:24.577] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [18:03:24.577] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [18:03:24.577] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [18:03:24.577] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [18:03:24.578] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [18:03:24.578] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [18:03:24.578] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [18:03:24.578] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [18:03:24.578] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [18:03:24.579] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [18:03:24.579] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [18:03:24.579] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [18:03:24.579] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [18:03:24.579] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [18:03:24.580] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [18:03:24.580] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [18:03:24.580] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [18:03:24.580] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [18:03:24.580] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [18:03:24.580] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [18:03:24.581] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [18:03:24.581] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [18:03:24.581] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [18:03:24.581] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [18:03:24.581] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [18:03:24.582] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [18:03:24.582] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [18:03:24.582] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [18:03:24.582] Environment variable 'R_FUTURE_JOURNAL' not set [18:03:24.582] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [18:03:24.583] Option 'future.plan' = 'multisession' [18:03:24.583] R process uuid: 343601ce-d741-3023-f092-2bdafb2f2ff3 [18:03:24.583] Setting plan('default') [18:03:24.583] plan(): Setting new future strategy stack: [18:03:24.583] List of future strategies: [18:03:24.583] 1. multisession: [18:03:24.583] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:24.583] - tweaked: FALSE [18:03:24.583] - call: plan("default", .init = FALSE) [18:03:24.587] 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") [18:03:24.587] plan(): Setting new future strategy stack: [18:03:24.587] List of future strategies: [18:03:24.587] 1. multisession: [18:03:24.587] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:24.587] - tweaked: FALSE [18:03:24.587] - call: plan("default") [18:03:24.588] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [18:03:24.588] multisession: [18:03:24.588] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:24.588] - tweaked: FALSE [18:03:24.588] - call: plan("default") [18:03:24.591] getGlobalsAndPackages() ... [18:03:24.591] Not searching for globals [18:03:24.592] - globals: [0] [18:03:24.592] getGlobalsAndPackages() ... DONE [18:03:24.592] [local output] makeClusterPSOCK() ... [18:03:24.593] [local output] Workers: [n = 2] 'localhost', 'localhost' [18:03:24.596] [local output] Base port: 38519 [18:03:24.596] [local output] Getting setup options for 2 cluster nodes ... [18:03:24.597] [local output] - Node 1 of 2 ... [18:03:24.597] [local output] localMachine=TRUE => revtunnel=FALSE [18:03:24.599] [local output] Rscript port: 38519 [18:03:24.600] [local output] - Node 2 of 2 ... [18:03:24.600] [local output] localMachine=TRUE => revtunnel=FALSE [18:03:24.602] [local output] Rscript port: 38519 [18:03:24.602] [local output] Getting setup options for 2 cluster nodes ... done [18:03:24.602] [local output] - Parallel setup requested for some PSOCK nodes [18:03:24.603] [local output] Setting up PSOCK nodes in parallel [18:03:24.603] List of 36 [18:03:24.603] $ worker : chr "localhost" [18:03:24.603] ..- attr(*, "localhost")= logi TRUE [18:03:24.603] $ master : chr "localhost" [18:03:24.603] $ port : int 38519 [18:03:24.603] $ connectTimeout : num 120 [18:03:24.603] $ timeout : num 120 [18:03:24.603] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [18:03:24.603] $ homogeneous : logi TRUE [18:03:24.603] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=startup.R:30624:CRANWIN3:CRAN\" "| __truncated__ [18:03:24.603] $ rscript_envs : NULL [18:03:24.603] $ rscript_libs : chr [1:2] "D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c" "D:/RCompile/recent/R/library" [18:03:24.603] $ rscript_startup : NULL [18:03:24.603] $ rscript_sh : chr "cmd" [18:03:24.603] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:03:24.603] $ methods : logi TRUE [18:03:24.603] $ socketOptions : chr "no-delay" [18:03:24.603] $ useXDR : logi FALSE [18:03:24.603] $ outfile : chr "/dev/null" [18:03:24.603] $ renice : int NA [18:03:24.603] $ rshcmd : NULL [18:03:24.603] $ user : chr(0) [18:03:24.603] $ revtunnel : logi FALSE [18:03:24.603] $ rshlogfile : NULL [18:03:24.603] $ rshopts : chr(0) [18:03:24.603] $ rank : int 1 [18:03:24.603] $ manual : logi FALSE [18:03:24.603] $ dryrun : logi FALSE [18:03:24.603] $ quiet : logi FALSE [18:03:24.603] $ setup_strategy : chr "parallel" [18:03:24.603] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:03:24.603] $ pidfile : chr "D:/temp/RtmpcnOdti/worker.rank=1.parallelly.parent=30624.77a0e75555b.pid" [18:03:24.603] $ rshcmd_label : NULL [18:03:24.603] $ rsh_call : NULL [18:03:24.603] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:03:24.603] $ localMachine : logi TRUE [18:03:24.603] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [18:03:24.603] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [18:03:24.603] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [18:03:24.603] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [18:03:24.603] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [18:03:24.603] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [18:03:24.603] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [18:03:24.603] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [18:03:24.603] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [18:03:24.603] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [18:03:24.603] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [18:03:24.603] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [18:03:24.603] "parallel"), action = c("launch", "options"), verbose = FALSE) [18:03:24.603] $ arguments :List of 28 [18:03:24.603] ..$ worker : chr "localhost" [18:03:24.603] ..$ master : NULL [18:03:24.603] ..$ port : int 38519 [18:03:24.603] ..$ connectTimeout : num 120 [18:03:24.603] ..$ timeout : num 120 [18:03:24.603] ..$ rscript : NULL [18:03:24.603] ..$ homogeneous : NULL [18:03:24.603] ..$ rscript_args : NULL [18:03:24.603] ..$ rscript_envs : NULL [18:03:24.603] ..$ rscript_libs : chr [1:2] "D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c" "D:/RCompile/recent/R/library" [18:03:24.603] ..$ rscript_startup : NULL [18:03:24.603] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [18:03:24.603] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:03:24.603] ..$ methods : logi TRUE [18:03:24.603] ..$ socketOptions : chr "no-delay" [18:03:24.603] ..$ useXDR : logi FALSE [18:03:24.603] ..$ outfile : chr "/dev/null" [18:03:24.603] ..$ renice : int NA [18:03:24.603] ..$ rshcmd : NULL [18:03:24.603] ..$ user : NULL [18:03:24.603] ..$ revtunnel : logi NA [18:03:24.603] ..$ rshlogfile : NULL [18:03:24.603] ..$ rshopts : NULL [18:03:24.603] ..$ rank : int 1 [18:03:24.603] ..$ manual : logi FALSE [18:03:24.603] ..$ dryrun : logi FALSE [18:03:24.603] ..$ quiet : logi FALSE [18:03:24.603] ..$ setup_strategy : chr "parallel" [18:03:24.603] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [18:03:24.633] [local output] System call to launch all workers: [18:03:24.633] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=startup.R:30624:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpcnOdti/worker.rank=1.parallelly.parent=30624.77a0e75555b.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=38519 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [18:03:24.633] [local output] Starting PSOCK main server [18:03:24.643] [local output] Workers launched [18:03:24.643] [local output] Waiting for workers to connect back [18:03:24.643] - [local output] 0 workers out of 2 ready [18:03:24.852] - [local output] 0 workers out of 2 ready [18:03:24.852] - [local output] 1 workers out of 2 ready [18:03:24.871] - [local output] 1 workers out of 2 ready [18:03:24.873] - [local output] 2 workers out of 2 ready [18:03:24.874] [local output] Launching of workers completed [18:03:24.874] [local output] Collecting session information from workers [18:03:24.875] [local output] - Worker #1 of 2 [18:03:24.877] [local output] - Worker #2 of 2 [18:03:24.878] [local output] makeClusterPSOCK() ... done [18:03:24.891] Packages needed by the future expression (n = 0): [18:03:24.891] Packages needed by future strategies (n = 0): [18:03:24.892] { [18:03:24.892] { [18:03:24.892] { [18:03:24.892] ...future.startTime <- base::Sys.time() [18:03:24.892] { [18:03:24.892] { [18:03:24.892] { [18:03:24.892] { [18:03:24.892] base::local({ [18:03:24.892] has_future <- base::requireNamespace("future", [18:03:24.892] quietly = TRUE) [18:03:24.892] if (has_future) { [18:03:24.892] ns <- base::getNamespace("future") [18:03:24.892] version <- ns[[".package"]][["version"]] [18:03:24.892] if (is.null(version)) [18:03:24.892] version <- utils::packageVersion("future") [18:03:24.892] } [18:03:24.892] else { [18:03:24.892] version <- NULL [18:03:24.892] } [18:03:24.892] if (!has_future || version < "1.8.0") { [18:03:24.892] info <- base::c(r_version = base::gsub("R version ", [18:03:24.892] "", base::R.version$version.string), [18:03:24.892] platform = base::sprintf("%s (%s-bit)", [18:03:24.892] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:03:24.892] os = base::paste(base::Sys.info()[base::c("sysname", [18:03:24.892] "release", "version")], collapse = " "), [18:03:24.892] hostname = base::Sys.info()[["nodename"]]) [18:03:24.892] info <- base::sprintf("%s: %s", base::names(info), [18:03:24.892] info) [18:03:24.892] info <- base::paste(info, collapse = "; ") [18:03:24.892] if (!has_future) { [18:03:24.892] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:03:24.892] info) [18:03:24.892] } [18:03:24.892] else { [18:03:24.892] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:03:24.892] info, version) [18:03:24.892] } [18:03:24.892] base::stop(msg) [18:03:24.892] } [18:03:24.892] }) [18:03:24.892] } [18:03:24.892] ...future.mc.cores.old <- base::getOption("mc.cores") [18:03:24.892] base::options(mc.cores = 1L) [18:03:24.892] } [18:03:24.892] options(future.plan = NULL) [18:03:24.892] Sys.unsetenv("R_FUTURE_PLAN") [18:03:24.892] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:03:24.892] } [18:03:24.892] ...future.workdir <- getwd() [18:03:24.892] } [18:03:24.892] ...future.oldOptions <- base::as.list(base::.Options) [18:03:24.892] ...future.oldEnvVars <- base::Sys.getenv() [18:03:24.892] } [18:03:24.892] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:03:24.892] future.globals.maxSize = NULL, future.globals.method = NULL, [18:03:24.892] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:03:24.892] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:03:24.892] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:03:24.892] future.stdout.windows.reencode = NULL, width = 80L) [18:03:24.892] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:03:24.892] base::names(...future.oldOptions)) [18:03:24.892] } [18:03:24.892] if (FALSE) { [18:03:24.892] } [18:03:24.892] else { [18:03:24.892] if (TRUE) { [18:03:24.892] ...future.stdout <- base::rawConnection(base::raw(0L), [18:03:24.892] open = "w") [18:03:24.892] } [18:03:24.892] else { [18:03:24.892] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:03:24.892] windows = "NUL", "/dev/null"), open = "w") [18:03:24.892] } [18:03:24.892] base::sink(...future.stdout, type = "output", split = FALSE) [18:03:24.892] base::on.exit(if (!base::is.null(...future.stdout)) { [18:03:24.892] base::sink(type = "output", split = FALSE) [18:03:24.892] base::close(...future.stdout) [18:03:24.892] }, add = TRUE) [18:03:24.892] } [18:03:24.892] ...future.frame <- base::sys.nframe() [18:03:24.892] ...future.conditions <- base::list() [18:03:24.892] ...future.rng <- base::globalenv()$.Random.seed [18:03:24.892] if (FALSE) { [18:03:24.892] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:03:24.892] "...future.value", "...future.globalenv.names", ".Random.seed") [18:03:24.892] } [18:03:24.892] ...future.result <- base::tryCatch({ [18:03:24.892] base::withCallingHandlers({ [18:03:24.892] ...future.value <- base::withVisible(base::local({ [18:03:24.892] ...future.makeSendCondition <- local({ [18:03:24.892] sendCondition <- NULL [18:03:24.892] function(frame = 1L) { [18:03:24.892] if (is.function(sendCondition)) [18:03:24.892] return(sendCondition) [18:03:24.892] ns <- getNamespace("parallel") [18:03:24.892] if (exists("sendData", mode = "function", [18:03:24.892] envir = ns)) { [18:03:24.892] parallel_sendData <- get("sendData", mode = "function", [18:03:24.892] envir = ns) [18:03:24.892] envir <- sys.frame(frame) [18:03:24.892] master <- NULL [18:03:24.892] while (!identical(envir, .GlobalEnv) && [18:03:24.892] !identical(envir, emptyenv())) { [18:03:24.892] if (exists("master", mode = "list", envir = envir, [18:03:24.892] inherits = FALSE)) { [18:03:24.892] master <- get("master", mode = "list", [18:03:24.892] envir = envir, inherits = FALSE) [18:03:24.892] if (inherits(master, c("SOCKnode", [18:03:24.892] "SOCK0node"))) { [18:03:24.892] sendCondition <<- function(cond) { [18:03:24.892] data <- list(type = "VALUE", value = cond, [18:03:24.892] success = TRUE) [18:03:24.892] parallel_sendData(master, data) [18:03:24.892] } [18:03:24.892] return(sendCondition) [18:03:24.892] } [18:03:24.892] } [18:03:24.892] frame <- frame + 1L [18:03:24.892] envir <- sys.frame(frame) [18:03:24.892] } [18:03:24.892] } [18:03:24.892] sendCondition <<- function(cond) NULL [18:03:24.892] } [18:03:24.892] }) [18:03:24.892] withCallingHandlers({ [18:03:24.892] NA [18:03:24.892] }, immediateCondition = function(cond) { [18:03:24.892] sendCondition <- ...future.makeSendCondition() [18:03:24.892] sendCondition(cond) [18:03:24.892] muffleCondition <- function (cond, pattern = "^muffle") [18:03:24.892] { [18:03:24.892] inherits <- base::inherits [18:03:24.892] invokeRestart <- base::invokeRestart [18:03:24.892] is.null <- base::is.null [18:03:24.892] muffled <- FALSE [18:03:24.892] if (inherits(cond, "message")) { [18:03:24.892] muffled <- grepl(pattern, "muffleMessage") [18:03:24.892] if (muffled) [18:03:24.892] invokeRestart("muffleMessage") [18:03:24.892] } [18:03:24.892] else if (inherits(cond, "warning")) { [18:03:24.892] muffled <- grepl(pattern, "muffleWarning") [18:03:24.892] if (muffled) [18:03:24.892] invokeRestart("muffleWarning") [18:03:24.892] } [18:03:24.892] else if (inherits(cond, "condition")) { [18:03:24.892] if (!is.null(pattern)) { [18:03:24.892] computeRestarts <- base::computeRestarts [18:03:24.892] grepl <- base::grepl [18:03:24.892] restarts <- computeRestarts(cond) [18:03:24.892] for (restart in restarts) { [18:03:24.892] name <- restart$name [18:03:24.892] if (is.null(name)) [18:03:24.892] next [18:03:24.892] if (!grepl(pattern, name)) [18:03:24.892] next [18:03:24.892] invokeRestart(restart) [18:03:24.892] muffled <- TRUE [18:03:24.892] break [18:03:24.892] } [18:03:24.892] } [18:03:24.892] } [18:03:24.892] invisible(muffled) [18:03:24.892] } [18:03:24.892] muffleCondition(cond) [18:03:24.892] }) [18:03:24.892] })) [18:03:24.892] future::FutureResult(value = ...future.value$value, [18:03:24.892] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:03:24.892] ...future.rng), globalenv = if (FALSE) [18:03:24.892] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:03:24.892] ...future.globalenv.names)) [18:03:24.892] else NULL, started = ...future.startTime, version = "1.8") [18:03:24.892] }, condition = base::local({ [18:03:24.892] c <- base::c [18:03:24.892] inherits <- base::inherits [18:03:24.892] invokeRestart <- base::invokeRestart [18:03:24.892] length <- base::length [18:03:24.892] list <- base::list [18:03:24.892] seq.int <- base::seq.int [18:03:24.892] signalCondition <- base::signalCondition [18:03:24.892] sys.calls <- base::sys.calls [18:03:24.892] `[[` <- base::`[[` [18:03:24.892] `+` <- base::`+` [18:03:24.892] `<<-` <- base::`<<-` [18:03:24.892] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:03:24.892] calls[seq.int(from = from + 12L, to = length(calls) - [18:03:24.892] 3L)] [18:03:24.892] } [18:03:24.892] function(cond) { [18:03:24.892] is_error <- inherits(cond, "error") [18:03:24.892] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:03:24.892] NULL) [18:03:24.892] if (is_error) { [18:03:24.892] sessionInformation <- function() { [18:03:24.892] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:03:24.892] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:03:24.892] search = base::search(), system = base::Sys.info()) [18:03:24.892] } [18:03:24.892] ...future.conditions[[length(...future.conditions) + [18:03:24.892] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:03:24.892] cond$call), session = sessionInformation(), [18:03:24.892] timestamp = base::Sys.time(), signaled = 0L) [18:03:24.892] signalCondition(cond) [18:03:24.892] } [18:03:24.892] else if (!ignore && TRUE && inherits(cond, c("condition", [18:03:24.892] "immediateCondition"))) { [18:03:24.892] signal <- TRUE && inherits(cond, "immediateCondition") [18:03:24.892] ...future.conditions[[length(...future.conditions) + [18:03:24.892] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:03:24.892] if (TRUE && !signal) { [18:03:24.892] muffleCondition <- function (cond, pattern = "^muffle") [18:03:24.892] { [18:03:24.892] inherits <- base::inherits [18:03:24.892] invokeRestart <- base::invokeRestart [18:03:24.892] is.null <- base::is.null [18:03:24.892] muffled <- FALSE [18:03:24.892] if (inherits(cond, "message")) { [18:03:24.892] muffled <- grepl(pattern, "muffleMessage") [18:03:24.892] if (muffled) [18:03:24.892] invokeRestart("muffleMessage") [18:03:24.892] } [18:03:24.892] else if (inherits(cond, "warning")) { [18:03:24.892] muffled <- grepl(pattern, "muffleWarning") [18:03:24.892] if (muffled) [18:03:24.892] invokeRestart("muffleWarning") [18:03:24.892] } [18:03:24.892] else if (inherits(cond, "condition")) { [18:03:24.892] if (!is.null(pattern)) { [18:03:24.892] computeRestarts <- base::computeRestarts [18:03:24.892] grepl <- base::grepl [18:03:24.892] restarts <- computeRestarts(cond) [18:03:24.892] for (restart in restarts) { [18:03:24.892] name <- restart$name [18:03:24.892] if (is.null(name)) [18:03:24.892] next [18:03:24.892] if (!grepl(pattern, name)) [18:03:24.892] next [18:03:24.892] invokeRestart(restart) [18:03:24.892] muffled <- TRUE [18:03:24.892] break [18:03:24.892] } [18:03:24.892] } [18:03:24.892] } [18:03:24.892] invisible(muffled) [18:03:24.892] } [18:03:24.892] muffleCondition(cond, pattern = "^muffle") [18:03:24.892] } [18:03:24.892] } [18:03:24.892] else { [18:03:24.892] if (TRUE) { [18:03:24.892] muffleCondition <- function (cond, pattern = "^muffle") [18:03:24.892] { [18:03:24.892] inherits <- base::inherits [18:03:24.892] invokeRestart <- base::invokeRestart [18:03:24.892] is.null <- base::is.null [18:03:24.892] muffled <- FALSE [18:03:24.892] if (inherits(cond, "message")) { [18:03:24.892] muffled <- grepl(pattern, "muffleMessage") [18:03:24.892] if (muffled) [18:03:24.892] invokeRestart("muffleMessage") [18:03:24.892] } [18:03:24.892] else if (inherits(cond, "warning")) { [18:03:24.892] muffled <- grepl(pattern, "muffleWarning") [18:03:24.892] if (muffled) [18:03:24.892] invokeRestart("muffleWarning") [18:03:24.892] } [18:03:24.892] else if (inherits(cond, "condition")) { [18:03:24.892] if (!is.null(pattern)) { [18:03:24.892] computeRestarts <- base::computeRestarts [18:03:24.892] grepl <- base::grepl [18:03:24.892] restarts <- computeRestarts(cond) [18:03:24.892] for (restart in restarts) { [18:03:24.892] name <- restart$name [18:03:24.892] if (is.null(name)) [18:03:24.892] next [18:03:24.892] if (!grepl(pattern, name)) [18:03:24.892] next [18:03:24.892] invokeRestart(restart) [18:03:24.892] muffled <- TRUE [18:03:24.892] break [18:03:24.892] } [18:03:24.892] } [18:03:24.892] } [18:03:24.892] invisible(muffled) [18:03:24.892] } [18:03:24.892] muffleCondition(cond, pattern = "^muffle") [18:03:24.892] } [18:03:24.892] } [18:03:24.892] } [18:03:24.892] })) [18:03:24.892] }, error = function(ex) { [18:03:24.892] base::structure(base::list(value = NULL, visible = NULL, [18:03:24.892] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:03:24.892] ...future.rng), started = ...future.startTime, [18:03:24.892] finished = Sys.time(), session_uuid = NA_character_, [18:03:24.892] version = "1.8"), class = "FutureResult") [18:03:24.892] }, finally = { [18:03:24.892] if (!identical(...future.workdir, getwd())) [18:03:24.892] setwd(...future.workdir) [18:03:24.892] { [18:03:24.892] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:03:24.892] ...future.oldOptions$nwarnings <- NULL [18:03:24.892] } [18:03:24.892] base::options(...future.oldOptions) [18:03:24.892] if (.Platform$OS.type == "windows") { [18:03:24.892] old_names <- names(...future.oldEnvVars) [18:03:24.892] envs <- base::Sys.getenv() [18:03:24.892] names <- names(envs) [18:03:24.892] common <- intersect(names, old_names) [18:03:24.892] added <- setdiff(names, old_names) [18:03:24.892] removed <- setdiff(old_names, names) [18:03:24.892] changed <- common[...future.oldEnvVars[common] != [18:03:24.892] envs[common]] [18:03:24.892] NAMES <- toupper(changed) [18:03:24.892] args <- list() [18:03:24.892] for (kk in seq_along(NAMES)) { [18:03:24.892] name <- changed[[kk]] [18:03:24.892] NAME <- NAMES[[kk]] [18:03:24.892] if (name != NAME && is.element(NAME, old_names)) [18:03:24.892] next [18:03:24.892] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:24.892] } [18:03:24.892] NAMES <- toupper(added) [18:03:24.892] for (kk in seq_along(NAMES)) { [18:03:24.892] name <- added[[kk]] [18:03:24.892] NAME <- NAMES[[kk]] [18:03:24.892] if (name != NAME && is.element(NAME, old_names)) [18:03:24.892] next [18:03:24.892] args[[name]] <- "" [18:03:24.892] } [18:03:24.892] NAMES <- toupper(removed) [18:03:24.892] for (kk in seq_along(NAMES)) { [18:03:24.892] name <- removed[[kk]] [18:03:24.892] NAME <- NAMES[[kk]] [18:03:24.892] if (name != NAME && is.element(NAME, old_names)) [18:03:24.892] next [18:03:24.892] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:24.892] } [18:03:24.892] if (length(args) > 0) [18:03:24.892] base::do.call(base::Sys.setenv, args = args) [18:03:24.892] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:03:24.892] } [18:03:24.892] else { [18:03:24.892] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:03:24.892] } [18:03:24.892] { [18:03:24.892] if (base::length(...future.futureOptionsAdded) > [18:03:24.892] 0L) { [18:03:24.892] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:03:24.892] base::names(opts) <- ...future.futureOptionsAdded [18:03:24.892] base::options(opts) [18:03:24.892] } [18:03:24.892] { [18:03:24.892] { [18:03:24.892] base::options(mc.cores = ...future.mc.cores.old) [18:03:24.892] NULL [18:03:24.892] } [18:03:24.892] options(future.plan = "multisession") [18:03:24.892] if (is.na(NA_character_)) [18:03:24.892] Sys.unsetenv("R_FUTURE_PLAN") [18:03:24.892] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:03:24.892] future::plan(list(function (..., workers = availableCores(), [18:03:24.892] lazy = FALSE, rscript_libs = .libPaths(), [18:03:24.892] envir = parent.frame()) [18:03:24.892] { [18:03:24.892] if (is.function(workers)) [18:03:24.892] workers <- workers() [18:03:24.892] workers <- structure(as.integer(workers), [18:03:24.892] class = class(workers)) [18:03:24.892] stop_if_not(length(workers) == 1, is.finite(workers), [18:03:24.892] workers >= 1) [18:03:24.892] if (workers == 1L && !inherits(workers, "AsIs")) { [18:03:24.892] return(sequential(..., lazy = TRUE, envir = envir)) [18:03:24.892] } [18:03:24.892] future <- MultisessionFuture(..., workers = workers, [18:03:24.892] lazy = lazy, rscript_libs = rscript_libs, [18:03:24.892] envir = envir) [18:03:24.892] if (!future$lazy) [18:03:24.892] future <- run(future) [18:03:24.892] invisible(future) [18:03:24.892] }), .cleanup = FALSE, .init = FALSE) [18:03:24.892] } [18:03:24.892] } [18:03:24.892] } [18:03:24.892] }) [18:03:24.892] if (TRUE) { [18:03:24.892] base::sink(type = "output", split = FALSE) [18:03:24.892] if (TRUE) { [18:03:24.892] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:03:24.892] } [18:03:24.892] else { [18:03:24.892] ...future.result["stdout"] <- base::list(NULL) [18:03:24.892] } [18:03:24.892] base::close(...future.stdout) [18:03:24.892] ...future.stdout <- NULL [18:03:24.892] } [18:03:24.892] ...future.result$conditions <- ...future.conditions [18:03:24.892] ...future.result$finished <- base::Sys.time() [18:03:24.892] ...future.result [18:03:24.892] } [18:03:24.987] MultisessionFuture started [18:03:24.987] result() for ClusterFuture ... [18:03:24.987] receiveMessageFromWorker() for ClusterFuture ... [18:03:24.988] - Validating connection of MultisessionFuture [18:03:25.061] - received message: FutureResult [18:03:25.061] - Received FutureResult [18:03:25.062] - Erased future from FutureRegistry [18:03:25.062] result() for ClusterFuture ... [18:03:25.062] - result already collected: FutureResult [18:03:25.062] result() for ClusterFuture ... done [18:03:25.062] receiveMessageFromWorker() for ClusterFuture ... done [18:03:25.063] result() for ClusterFuture ... done [18:03:25.063] result() for ClusterFuture ... [18:03:25.063] - result already collected: FutureResult [18:03:25.063] result() for ClusterFuture ... done [18:03:25.064] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [18:03:25.066] 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) [18:03:25.068] Future-specific environment variables: - R_FUTURE_PLAN='multisession' - R_FUTURE_WAIT_INTERVAL='0.01' [18:03:25.068] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [18:03:25.069] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [18:03:25.069] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [18:03:25.069] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [18:03:25.069] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [18:03:25.070] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [18:03:25.070] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [18:03:25.070] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [18:03:25.070] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [18:03:25.071] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [18:03:25.071] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [18:03:25.071] R_FUTURE_PLAN='multisession' [18:03:25.071] => options("future.plan" = 'multisession') [n=1, mode=character] [18:03:25.072] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [18:03:25.072] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [18:03:25.072] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [18:03:25.073] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [18:03:25.073] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [18:03:25.073] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [18:03:25.073] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [18:03:25.074] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [18:03:25.074] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [18:03:25.074] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [18:03:25.074] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [18:03:25.075] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [18:03:25.075] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [18:03:25.075] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [18:03:25.075] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [18:03:25.076] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [18:03:25.076] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [18:03:25.076] Environment variable 'R_FUTURE_JOURNAL' not set [18:03:25.076] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [18:03:25.076] Option 'future.plan' = 'multisession' [18:03:25.077] R command-line argument: -p 1 [18:03:25.077] => 'future.plan' already set. [18:03:25.078] R process uuid: 343601ce-d741-3023-f092-2bdafb2f2ff3 [18:03:25.078] Setting plan('default') [18:03:25.078] plan(): Setting new future strategy stack: [18:03:25.078] List of future strategies: [18:03:25.078] 1. multisession: [18:03:25.078] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:25.078] - tweaked: FALSE [18:03:25.078] - call: plan("default", .init = FALSE) [18:03:25.082] 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") [18:03:25.083] plan(): Setting new future strategy stack: [18:03:25.083] List of future strategies: [18:03:25.083] 1. multisession: [18:03:25.083] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:25.083] - tweaked: FALSE [18:03:25.083] - call: plan("default") [18:03:25.083] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [18:03:25.084] multisession: [18:03:25.084] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:25.084] - tweaked: FALSE [18:03:25.084] - call: plan("default") [18:03:25.087] getGlobalsAndPackages() ... [18:03:25.087] Not searching for globals [18:03:25.087] - globals: [0] [18:03:25.088] getGlobalsAndPackages() ... DONE [18:03:25.089] Packages needed by the future expression (n = 0): [18:03:25.089] Packages needed by future strategies (n = 0): [18:03:25.090] { [18:03:25.090] { [18:03:25.090] { [18:03:25.090] ...future.startTime <- base::Sys.time() [18:03:25.090] { [18:03:25.090] { [18:03:25.090] { [18:03:25.090] base::local({ [18:03:25.090] has_future <- base::requireNamespace("future", [18:03:25.090] quietly = TRUE) [18:03:25.090] if (has_future) { [18:03:25.090] ns <- base::getNamespace("future") [18:03:25.090] version <- ns[[".package"]][["version"]] [18:03:25.090] if (is.null(version)) [18:03:25.090] version <- utils::packageVersion("future") [18:03:25.090] } [18:03:25.090] else { [18:03:25.090] version <- NULL [18:03:25.090] } [18:03:25.090] if (!has_future || version < "1.8.0") { [18:03:25.090] info <- base::c(r_version = base::gsub("R version ", [18:03:25.090] "", base::R.version$version.string), [18:03:25.090] platform = base::sprintf("%s (%s-bit)", [18:03:25.090] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:03:25.090] os = base::paste(base::Sys.info()[base::c("sysname", [18:03:25.090] "release", "version")], collapse = " "), [18:03:25.090] hostname = base::Sys.info()[["nodename"]]) [18:03:25.090] info <- base::sprintf("%s: %s", base::names(info), [18:03:25.090] info) [18:03:25.090] info <- base::paste(info, collapse = "; ") [18:03:25.090] if (!has_future) { [18:03:25.090] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:03:25.090] info) [18:03:25.090] } [18:03:25.090] else { [18:03:25.090] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:03:25.090] info, version) [18:03:25.090] } [18:03:25.090] base::stop(msg) [18:03:25.090] } [18:03:25.090] }) [18:03:25.090] } [18:03:25.090] options(future.plan = NULL) [18:03:25.090] Sys.unsetenv("R_FUTURE_PLAN") [18:03:25.090] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:03:25.090] } [18:03:25.090] ...future.workdir <- getwd() [18:03:25.090] } [18:03:25.090] ...future.oldOptions <- base::as.list(base::.Options) [18:03:25.090] ...future.oldEnvVars <- base::Sys.getenv() [18:03:25.090] } [18:03:25.090] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:03:25.090] future.globals.maxSize = NULL, future.globals.method = NULL, [18:03:25.090] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:03:25.090] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:03:25.090] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:03:25.090] future.stdout.windows.reencode = NULL, width = 80L) [18:03:25.090] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:03:25.090] base::names(...future.oldOptions)) [18:03:25.090] } [18:03:25.090] if (FALSE) { [18:03:25.090] } [18:03:25.090] else { [18:03:25.090] if (TRUE) { [18:03:25.090] ...future.stdout <- base::rawConnection(base::raw(0L), [18:03:25.090] open = "w") [18:03:25.090] } [18:03:25.090] else { [18:03:25.090] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:03:25.090] windows = "NUL", "/dev/null"), open = "w") [18:03:25.090] } [18:03:25.090] base::sink(...future.stdout, type = "output", split = FALSE) [18:03:25.090] base::on.exit(if (!base::is.null(...future.stdout)) { [18:03:25.090] base::sink(type = "output", split = FALSE) [18:03:25.090] base::close(...future.stdout) [18:03:25.090] }, add = TRUE) [18:03:25.090] } [18:03:25.090] ...future.frame <- base::sys.nframe() [18:03:25.090] ...future.conditions <- base::list() [18:03:25.090] ...future.rng <- base::globalenv()$.Random.seed [18:03:25.090] if (FALSE) { [18:03:25.090] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:03:25.090] "...future.value", "...future.globalenv.names", ".Random.seed") [18:03:25.090] } [18:03:25.090] ...future.result <- base::tryCatch({ [18:03:25.090] base::withCallingHandlers({ [18:03:25.090] ...future.value <- base::withVisible(base::local(NA)) [18:03:25.090] future::FutureResult(value = ...future.value$value, [18:03:25.090] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:03:25.090] ...future.rng), globalenv = if (FALSE) [18:03:25.090] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:03:25.090] ...future.globalenv.names)) [18:03:25.090] else NULL, started = ...future.startTime, version = "1.8") [18:03:25.090] }, condition = base::local({ [18:03:25.090] c <- base::c [18:03:25.090] inherits <- base::inherits [18:03:25.090] invokeRestart <- base::invokeRestart [18:03:25.090] length <- base::length [18:03:25.090] list <- base::list [18:03:25.090] seq.int <- base::seq.int [18:03:25.090] signalCondition <- base::signalCondition [18:03:25.090] sys.calls <- base::sys.calls [18:03:25.090] `[[` <- base::`[[` [18:03:25.090] `+` <- base::`+` [18:03:25.090] `<<-` <- base::`<<-` [18:03:25.090] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:03:25.090] calls[seq.int(from = from + 12L, to = length(calls) - [18:03:25.090] 3L)] [18:03:25.090] } [18:03:25.090] function(cond) { [18:03:25.090] is_error <- inherits(cond, "error") [18:03:25.090] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:03:25.090] NULL) [18:03:25.090] if (is_error) { [18:03:25.090] sessionInformation <- function() { [18:03:25.090] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:03:25.090] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:03:25.090] search = base::search(), system = base::Sys.info()) [18:03:25.090] } [18:03:25.090] ...future.conditions[[length(...future.conditions) + [18:03:25.090] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:03:25.090] cond$call), session = sessionInformation(), [18:03:25.090] timestamp = base::Sys.time(), signaled = 0L) [18:03:25.090] signalCondition(cond) [18:03:25.090] } [18:03:25.090] else if (!ignore && TRUE && inherits(cond, c("condition", [18:03:25.090] "immediateCondition"))) { [18:03:25.090] signal <- TRUE && inherits(cond, "immediateCondition") [18:03:25.090] ...future.conditions[[length(...future.conditions) + [18:03:25.090] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:03:25.090] if (TRUE && !signal) { [18:03:25.090] muffleCondition <- function (cond, pattern = "^muffle") [18:03:25.090] { [18:03:25.090] inherits <- base::inherits [18:03:25.090] invokeRestart <- base::invokeRestart [18:03:25.090] is.null <- base::is.null [18:03:25.090] muffled <- FALSE [18:03:25.090] if (inherits(cond, "message")) { [18:03:25.090] muffled <- grepl(pattern, "muffleMessage") [18:03:25.090] if (muffled) [18:03:25.090] invokeRestart("muffleMessage") [18:03:25.090] } [18:03:25.090] else if (inherits(cond, "warning")) { [18:03:25.090] muffled <- grepl(pattern, "muffleWarning") [18:03:25.090] if (muffled) [18:03:25.090] invokeRestart("muffleWarning") [18:03:25.090] } [18:03:25.090] else if (inherits(cond, "condition")) { [18:03:25.090] if (!is.null(pattern)) { [18:03:25.090] computeRestarts <- base::computeRestarts [18:03:25.090] grepl <- base::grepl [18:03:25.090] restarts <- computeRestarts(cond) [18:03:25.090] for (restart in restarts) { [18:03:25.090] name <- restart$name [18:03:25.090] if (is.null(name)) [18:03:25.090] next [18:03:25.090] if (!grepl(pattern, name)) [18:03:25.090] next [18:03:25.090] invokeRestart(restart) [18:03:25.090] muffled <- TRUE [18:03:25.090] break [18:03:25.090] } [18:03:25.090] } [18:03:25.090] } [18:03:25.090] invisible(muffled) [18:03:25.090] } [18:03:25.090] muffleCondition(cond, pattern = "^muffle") [18:03:25.090] } [18:03:25.090] } [18:03:25.090] else { [18:03:25.090] if (TRUE) { [18:03:25.090] muffleCondition <- function (cond, pattern = "^muffle") [18:03:25.090] { [18:03:25.090] inherits <- base::inherits [18:03:25.090] invokeRestart <- base::invokeRestart [18:03:25.090] is.null <- base::is.null [18:03:25.090] muffled <- FALSE [18:03:25.090] if (inherits(cond, "message")) { [18:03:25.090] muffled <- grepl(pattern, "muffleMessage") [18:03:25.090] if (muffled) [18:03:25.090] invokeRestart("muffleMessage") [18:03:25.090] } [18:03:25.090] else if (inherits(cond, "warning")) { [18:03:25.090] muffled <- grepl(pattern, "muffleWarning") [18:03:25.090] if (muffled) [18:03:25.090] invokeRestart("muffleWarning") [18:03:25.090] } [18:03:25.090] else if (inherits(cond, "condition")) { [18:03:25.090] if (!is.null(pattern)) { [18:03:25.090] computeRestarts <- base::computeRestarts [18:03:25.090] grepl <- base::grepl [18:03:25.090] restarts <- computeRestarts(cond) [18:03:25.090] for (restart in restarts) { [18:03:25.090] name <- restart$name [18:03:25.090] if (is.null(name)) [18:03:25.090] next [18:03:25.090] if (!grepl(pattern, name)) [18:03:25.090] next [18:03:25.090] invokeRestart(restart) [18:03:25.090] muffled <- TRUE [18:03:25.090] break [18:03:25.090] } [18:03:25.090] } [18:03:25.090] } [18:03:25.090] invisible(muffled) [18:03:25.090] } [18:03:25.090] muffleCondition(cond, pattern = "^muffle") [18:03:25.090] } [18:03:25.090] } [18:03:25.090] } [18:03:25.090] })) [18:03:25.090] }, error = function(ex) { [18:03:25.090] base::structure(base::list(value = NULL, visible = NULL, [18:03:25.090] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:03:25.090] ...future.rng), started = ...future.startTime, [18:03:25.090] finished = Sys.time(), session_uuid = NA_character_, [18:03:25.090] version = "1.8"), class = "FutureResult") [18:03:25.090] }, finally = { [18:03:25.090] if (!identical(...future.workdir, getwd())) [18:03:25.090] setwd(...future.workdir) [18:03:25.090] { [18:03:25.090] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:03:25.090] ...future.oldOptions$nwarnings <- NULL [18:03:25.090] } [18:03:25.090] base::options(...future.oldOptions) [18:03:25.090] if (.Platform$OS.type == "windows") { [18:03:25.090] old_names <- names(...future.oldEnvVars) [18:03:25.090] envs <- base::Sys.getenv() [18:03:25.090] names <- names(envs) [18:03:25.090] common <- intersect(names, old_names) [18:03:25.090] added <- setdiff(names, old_names) [18:03:25.090] removed <- setdiff(old_names, names) [18:03:25.090] changed <- common[...future.oldEnvVars[common] != [18:03:25.090] envs[common]] [18:03:25.090] NAMES <- toupper(changed) [18:03:25.090] args <- list() [18:03:25.090] for (kk in seq_along(NAMES)) { [18:03:25.090] name <- changed[[kk]] [18:03:25.090] NAME <- NAMES[[kk]] [18:03:25.090] if (name != NAME && is.element(NAME, old_names)) [18:03:25.090] next [18:03:25.090] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:25.090] } [18:03:25.090] NAMES <- toupper(added) [18:03:25.090] for (kk in seq_along(NAMES)) { [18:03:25.090] name <- added[[kk]] [18:03:25.090] NAME <- NAMES[[kk]] [18:03:25.090] if (name != NAME && is.element(NAME, old_names)) [18:03:25.090] next [18:03:25.090] args[[name]] <- "" [18:03:25.090] } [18:03:25.090] NAMES <- toupper(removed) [18:03:25.090] for (kk in seq_along(NAMES)) { [18:03:25.090] name <- removed[[kk]] [18:03:25.090] NAME <- NAMES[[kk]] [18:03:25.090] if (name != NAME && is.element(NAME, old_names)) [18:03:25.090] next [18:03:25.090] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:25.090] } [18:03:25.090] if (length(args) > 0) [18:03:25.090] base::do.call(base::Sys.setenv, args = args) [18:03:25.090] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:03:25.090] } [18:03:25.090] else { [18:03:25.090] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:03:25.090] } [18:03:25.090] { [18:03:25.090] if (base::length(...future.futureOptionsAdded) > [18:03:25.090] 0L) { [18:03:25.090] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:03:25.090] base::names(opts) <- ...future.futureOptionsAdded [18:03:25.090] base::options(opts) [18:03:25.090] } [18:03:25.090] { [18:03:25.090] { [18:03:25.090] NULL [18:03:25.090] RNGkind("Mersenne-Twister") [18:03:25.090] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:03:25.090] inherits = FALSE) [18:03:25.090] } [18:03:25.090] options(future.plan = "multisession") [18:03:25.090] if (is.na("multisession")) [18:03:25.090] Sys.unsetenv("R_FUTURE_PLAN") [18:03:25.090] else Sys.setenv(R_FUTURE_PLAN = "multisession") [18:03:25.090] future::plan(list(function (..., workers = availableCores(), [18:03:25.090] lazy = FALSE, rscript_libs = .libPaths(), [18:03:25.090] envir = parent.frame()) [18:03:25.090] { [18:03:25.090] if (is.function(workers)) [18:03:25.090] workers <- workers() [18:03:25.090] workers <- structure(as.integer(workers), [18:03:25.090] class = class(workers)) [18:03:25.090] stop_if_not(length(workers) == 1, is.finite(workers), [18:03:25.090] workers >= 1) [18:03:25.090] if (workers == 1L && !inherits(workers, "AsIs")) { [18:03:25.090] return(sequential(..., lazy = TRUE, envir = envir)) [18:03:25.090] } [18:03:25.090] future <- MultisessionFuture(..., workers = workers, [18:03:25.090] lazy = lazy, rscript_libs = rscript_libs, [18:03:25.090] envir = envir) [18:03:25.090] if (!future$lazy) [18:03:25.090] future <- run(future) [18:03:25.090] invisible(future) [18:03:25.090] }), .cleanup = FALSE, .init = FALSE) [18:03:25.090] } [18:03:25.090] } [18:03:25.090] } [18:03:25.090] }) [18:03:25.090] if (TRUE) { [18:03:25.090] base::sink(type = "output", split = FALSE) [18:03:25.090] if (TRUE) { [18:03:25.090] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:03:25.090] } [18:03:25.090] else { [18:03:25.090] ...future.result["stdout"] <- base::list(NULL) [18:03:25.090] } [18:03:25.090] base::close(...future.stdout) [18:03:25.090] ...future.stdout <- NULL [18:03:25.090] } [18:03:25.090] ...future.result$conditions <- ...future.conditions [18:03:25.090] ...future.result$finished <- base::Sys.time() [18:03:25.090] ...future.result [18:03:25.090] } [18:03:25.095] plan(): Setting new future strategy stack: [18:03:25.096] List of future strategies: [18:03:25.096] 1. sequential: [18:03:25.096] - args: function (..., envir = parent.frame()) [18:03:25.096] - tweaked: FALSE [18:03:25.096] - call: NULL [18:03:25.096] plan(): nbrOfWorkers() = 1 [18:03:25.099] plan(): Setting new future strategy stack: [18:03:25.099] List of future strategies: [18:03:25.099] 1. multisession: [18:03:25.099] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:25.099] - tweaked: FALSE [18:03:25.099] - call: plan("default") [18:03:25.102] plan(): nbrOfWorkers() = 1 [18:03:25.102] SequentialFuture started (and completed) [18:03:25.103] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [18:03:25.106] 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) [18:03:25.107] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [18:03:25.108] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [18:03:25.108] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [18:03:25.108] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [18:03:25.108] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [18:03:25.109] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [18:03:25.109] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [18:03:25.109] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [18:03:25.110] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [18:03:25.110] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [18:03:25.110] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [18:03:25.110] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [18:03:25.111] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [18:03:25.111] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [18:03:25.111] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [18:03:25.111] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [18:03:25.112] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [18:03:25.112] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [18:03:25.112] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [18:03:25.112] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [18:03:25.113] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [18:03:25.113] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [18:03:25.113] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [18:03:25.113] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [18:03:25.114] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [18:03:25.114] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [18:03:25.114] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [18:03:25.114] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [18:03:25.115] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [18:03:25.115] Environment variable 'R_FUTURE_JOURNAL' not set [18:03:25.115] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [18:03:25.115] Option 'future.plan' = 'multisession' [18:03:25.116] R command-line argument: -p 1 [18:03:25.116] => 'future.plan' already set. [18:03:25.116] R process uuid: 343601ce-d741-3023-f092-2bdafb2f2ff3 [18:03:25.117] Setting plan('default') [18:03:25.117] plan(): Setting new future strategy stack: [18:03:25.117] List of future strategies: [18:03:25.117] 1. multisession: [18:03:25.117] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:25.117] - tweaked: FALSE [18:03:25.117] - call: plan("default", .init = FALSE) [18:03:25.120] 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") [18:03:25.121] plan(): Setting new future strategy stack: [18:03:25.122] List of future strategies: [18:03:25.122] 1. multisession: [18:03:25.122] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:25.122] - tweaked: FALSE [18:03:25.122] - call: plan("default") [18:03:25.122] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [18:03:25.123] multisession: [18:03:25.123] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:25.123] - tweaked: FALSE [18:03:25.123] - call: plan("default") [18:03:25.126] getGlobalsAndPackages() ... [18:03:25.126] Not searching for globals [18:03:25.126] - globals: [0] [18:03:25.126] getGlobalsAndPackages() ... DONE [18:03:25.127] Packages needed by the future expression (n = 0): [18:03:25.127] Packages needed by future strategies (n = 0): [18:03:25.128] { [18:03:25.128] { [18:03:25.128] { [18:03:25.128] ...future.startTime <- base::Sys.time() [18:03:25.128] { [18:03:25.128] { [18:03:25.128] { [18:03:25.128] base::local({ [18:03:25.128] has_future <- base::requireNamespace("future", [18:03:25.128] quietly = TRUE) [18:03:25.128] if (has_future) { [18:03:25.128] ns <- base::getNamespace("future") [18:03:25.128] version <- ns[[".package"]][["version"]] [18:03:25.128] if (is.null(version)) [18:03:25.128] version <- utils::packageVersion("future") [18:03:25.128] } [18:03:25.128] else { [18:03:25.128] version <- NULL [18:03:25.128] } [18:03:25.128] if (!has_future || version < "1.8.0") { [18:03:25.128] info <- base::c(r_version = base::gsub("R version ", [18:03:25.128] "", base::R.version$version.string), [18:03:25.128] platform = base::sprintf("%s (%s-bit)", [18:03:25.128] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:03:25.128] os = base::paste(base::Sys.info()[base::c("sysname", [18:03:25.128] "release", "version")], collapse = " "), [18:03:25.128] hostname = base::Sys.info()[["nodename"]]) [18:03:25.128] info <- base::sprintf("%s: %s", base::names(info), [18:03:25.128] info) [18:03:25.128] info <- base::paste(info, collapse = "; ") [18:03:25.128] if (!has_future) { [18:03:25.128] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:03:25.128] info) [18:03:25.128] } [18:03:25.128] else { [18:03:25.128] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:03:25.128] info, version) [18:03:25.128] } [18:03:25.128] base::stop(msg) [18:03:25.128] } [18:03:25.128] }) [18:03:25.128] } [18:03:25.128] options(future.plan = NULL) [18:03:25.128] Sys.unsetenv("R_FUTURE_PLAN") [18:03:25.128] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:03:25.128] } [18:03:25.128] ...future.workdir <- getwd() [18:03:25.128] } [18:03:25.128] ...future.oldOptions <- base::as.list(base::.Options) [18:03:25.128] ...future.oldEnvVars <- base::Sys.getenv() [18:03:25.128] } [18:03:25.128] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:03:25.128] future.globals.maxSize = NULL, future.globals.method = NULL, [18:03:25.128] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:03:25.128] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:03:25.128] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:03:25.128] future.stdout.windows.reencode = NULL, width = 80L) [18:03:25.128] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:03:25.128] base::names(...future.oldOptions)) [18:03:25.128] } [18:03:25.128] if (FALSE) { [18:03:25.128] } [18:03:25.128] else { [18:03:25.128] if (TRUE) { [18:03:25.128] ...future.stdout <- base::rawConnection(base::raw(0L), [18:03:25.128] open = "w") [18:03:25.128] } [18:03:25.128] else { [18:03:25.128] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:03:25.128] windows = "NUL", "/dev/null"), open = "w") [18:03:25.128] } [18:03:25.128] base::sink(...future.stdout, type = "output", split = FALSE) [18:03:25.128] base::on.exit(if (!base::is.null(...future.stdout)) { [18:03:25.128] base::sink(type = "output", split = FALSE) [18:03:25.128] base::close(...future.stdout) [18:03:25.128] }, add = TRUE) [18:03:25.128] } [18:03:25.128] ...future.frame <- base::sys.nframe() [18:03:25.128] ...future.conditions <- base::list() [18:03:25.128] ...future.rng <- base::globalenv()$.Random.seed [18:03:25.128] if (FALSE) { [18:03:25.128] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:03:25.128] "...future.value", "...future.globalenv.names", ".Random.seed") [18:03:25.128] } [18:03:25.128] ...future.result <- base::tryCatch({ [18:03:25.128] base::withCallingHandlers({ [18:03:25.128] ...future.value <- base::withVisible(base::local(NA)) [18:03:25.128] future::FutureResult(value = ...future.value$value, [18:03:25.128] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:03:25.128] ...future.rng), globalenv = if (FALSE) [18:03:25.128] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:03:25.128] ...future.globalenv.names)) [18:03:25.128] else NULL, started = ...future.startTime, version = "1.8") [18:03:25.128] }, condition = base::local({ [18:03:25.128] c <- base::c [18:03:25.128] inherits <- base::inherits [18:03:25.128] invokeRestart <- base::invokeRestart [18:03:25.128] length <- base::length [18:03:25.128] list <- base::list [18:03:25.128] seq.int <- base::seq.int [18:03:25.128] signalCondition <- base::signalCondition [18:03:25.128] sys.calls <- base::sys.calls [18:03:25.128] `[[` <- base::`[[` [18:03:25.128] `+` <- base::`+` [18:03:25.128] `<<-` <- base::`<<-` [18:03:25.128] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:03:25.128] calls[seq.int(from = from + 12L, to = length(calls) - [18:03:25.128] 3L)] [18:03:25.128] } [18:03:25.128] function(cond) { [18:03:25.128] is_error <- inherits(cond, "error") [18:03:25.128] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:03:25.128] NULL) [18:03:25.128] if (is_error) { [18:03:25.128] sessionInformation <- function() { [18:03:25.128] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:03:25.128] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:03:25.128] search = base::search(), system = base::Sys.info()) [18:03:25.128] } [18:03:25.128] ...future.conditions[[length(...future.conditions) + [18:03:25.128] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:03:25.128] cond$call), session = sessionInformation(), [18:03:25.128] timestamp = base::Sys.time(), signaled = 0L) [18:03:25.128] signalCondition(cond) [18:03:25.128] } [18:03:25.128] else if (!ignore && TRUE && inherits(cond, c("condition", [18:03:25.128] "immediateCondition"))) { [18:03:25.128] signal <- TRUE && inherits(cond, "immediateCondition") [18:03:25.128] ...future.conditions[[length(...future.conditions) + [18:03:25.128] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:03:25.128] if (TRUE && !signal) { [18:03:25.128] muffleCondition <- function (cond, pattern = "^muffle") [18:03:25.128] { [18:03:25.128] inherits <- base::inherits [18:03:25.128] invokeRestart <- base::invokeRestart [18:03:25.128] is.null <- base::is.null [18:03:25.128] muffled <- FALSE [18:03:25.128] if (inherits(cond, "message")) { [18:03:25.128] muffled <- grepl(pattern, "muffleMessage") [18:03:25.128] if (muffled) [18:03:25.128] invokeRestart("muffleMessage") [18:03:25.128] } [18:03:25.128] else if (inherits(cond, "warning")) { [18:03:25.128] muffled <- grepl(pattern, "muffleWarning") [18:03:25.128] if (muffled) [18:03:25.128] invokeRestart("muffleWarning") [18:03:25.128] } [18:03:25.128] else if (inherits(cond, "condition")) { [18:03:25.128] if (!is.null(pattern)) { [18:03:25.128] computeRestarts <- base::computeRestarts [18:03:25.128] grepl <- base::grepl [18:03:25.128] restarts <- computeRestarts(cond) [18:03:25.128] for (restart in restarts) { [18:03:25.128] name <- restart$name [18:03:25.128] if (is.null(name)) [18:03:25.128] next [18:03:25.128] if (!grepl(pattern, name)) [18:03:25.128] next [18:03:25.128] invokeRestart(restart) [18:03:25.128] muffled <- TRUE [18:03:25.128] break [18:03:25.128] } [18:03:25.128] } [18:03:25.128] } [18:03:25.128] invisible(muffled) [18:03:25.128] } [18:03:25.128] muffleCondition(cond, pattern = "^muffle") [18:03:25.128] } [18:03:25.128] } [18:03:25.128] else { [18:03:25.128] if (TRUE) { [18:03:25.128] muffleCondition <- function (cond, pattern = "^muffle") [18:03:25.128] { [18:03:25.128] inherits <- base::inherits [18:03:25.128] invokeRestart <- base::invokeRestart [18:03:25.128] is.null <- base::is.null [18:03:25.128] muffled <- FALSE [18:03:25.128] if (inherits(cond, "message")) { [18:03:25.128] muffled <- grepl(pattern, "muffleMessage") [18:03:25.128] if (muffled) [18:03:25.128] invokeRestart("muffleMessage") [18:03:25.128] } [18:03:25.128] else if (inherits(cond, "warning")) { [18:03:25.128] muffled <- grepl(pattern, "muffleWarning") [18:03:25.128] if (muffled) [18:03:25.128] invokeRestart("muffleWarning") [18:03:25.128] } [18:03:25.128] else if (inherits(cond, "condition")) { [18:03:25.128] if (!is.null(pattern)) { [18:03:25.128] computeRestarts <- base::computeRestarts [18:03:25.128] grepl <- base::grepl [18:03:25.128] restarts <- computeRestarts(cond) [18:03:25.128] for (restart in restarts) { [18:03:25.128] name <- restart$name [18:03:25.128] if (is.null(name)) [18:03:25.128] next [18:03:25.128] if (!grepl(pattern, name)) [18:03:25.128] next [18:03:25.128] invokeRestart(restart) [18:03:25.128] muffled <- TRUE [18:03:25.128] break [18:03:25.128] } [18:03:25.128] } [18:03:25.128] } [18:03:25.128] invisible(muffled) [18:03:25.128] } [18:03:25.128] muffleCondition(cond, pattern = "^muffle") [18:03:25.128] } [18:03:25.128] } [18:03:25.128] } [18:03:25.128] })) [18:03:25.128] }, error = function(ex) { [18:03:25.128] base::structure(base::list(value = NULL, visible = NULL, [18:03:25.128] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:03:25.128] ...future.rng), started = ...future.startTime, [18:03:25.128] finished = Sys.time(), session_uuid = NA_character_, [18:03:25.128] version = "1.8"), class = "FutureResult") [18:03:25.128] }, finally = { [18:03:25.128] if (!identical(...future.workdir, getwd())) [18:03:25.128] setwd(...future.workdir) [18:03:25.128] { [18:03:25.128] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:03:25.128] ...future.oldOptions$nwarnings <- NULL [18:03:25.128] } [18:03:25.128] base::options(...future.oldOptions) [18:03:25.128] if (.Platform$OS.type == "windows") { [18:03:25.128] old_names <- names(...future.oldEnvVars) [18:03:25.128] envs <- base::Sys.getenv() [18:03:25.128] names <- names(envs) [18:03:25.128] common <- intersect(names, old_names) [18:03:25.128] added <- setdiff(names, old_names) [18:03:25.128] removed <- setdiff(old_names, names) [18:03:25.128] changed <- common[...future.oldEnvVars[common] != [18:03:25.128] envs[common]] [18:03:25.128] NAMES <- toupper(changed) [18:03:25.128] args <- list() [18:03:25.128] for (kk in seq_along(NAMES)) { [18:03:25.128] name <- changed[[kk]] [18:03:25.128] NAME <- NAMES[[kk]] [18:03:25.128] if (name != NAME && is.element(NAME, old_names)) [18:03:25.128] next [18:03:25.128] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:25.128] } [18:03:25.128] NAMES <- toupper(added) [18:03:25.128] for (kk in seq_along(NAMES)) { [18:03:25.128] name <- added[[kk]] [18:03:25.128] NAME <- NAMES[[kk]] [18:03:25.128] if (name != NAME && is.element(NAME, old_names)) [18:03:25.128] next [18:03:25.128] args[[name]] <- "" [18:03:25.128] } [18:03:25.128] NAMES <- toupper(removed) [18:03:25.128] for (kk in seq_along(NAMES)) { [18:03:25.128] name <- removed[[kk]] [18:03:25.128] NAME <- NAMES[[kk]] [18:03:25.128] if (name != NAME && is.element(NAME, old_names)) [18:03:25.128] next [18:03:25.128] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:25.128] } [18:03:25.128] if (length(args) > 0) [18:03:25.128] base::do.call(base::Sys.setenv, args = args) [18:03:25.128] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:03:25.128] } [18:03:25.128] else { [18:03:25.128] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:03:25.128] } [18:03:25.128] { [18:03:25.128] if (base::length(...future.futureOptionsAdded) > [18:03:25.128] 0L) { [18:03:25.128] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:03:25.128] base::names(opts) <- ...future.futureOptionsAdded [18:03:25.128] base::options(opts) [18:03:25.128] } [18:03:25.128] { [18:03:25.128] { [18:03:25.128] NULL [18:03:25.128] RNGkind("Mersenne-Twister") [18:03:25.128] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:03:25.128] inherits = FALSE) [18:03:25.128] } [18:03:25.128] options(future.plan = "multisession") [18:03:25.128] if (is.na(NA_character_)) [18:03:25.128] Sys.unsetenv("R_FUTURE_PLAN") [18:03:25.128] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:03:25.128] future::plan(list(function (..., workers = availableCores(), [18:03:25.128] lazy = FALSE, rscript_libs = .libPaths(), [18:03:25.128] envir = parent.frame()) [18:03:25.128] { [18:03:25.128] if (is.function(workers)) [18:03:25.128] workers <- workers() [18:03:25.128] workers <- structure(as.integer(workers), [18:03:25.128] class = class(workers)) [18:03:25.128] stop_if_not(length(workers) == 1, is.finite(workers), [18:03:25.128] workers >= 1) [18:03:25.128] if (workers == 1L && !inherits(workers, "AsIs")) { [18:03:25.128] return(sequential(..., lazy = TRUE, envir = envir)) [18:03:25.128] } [18:03:25.128] future <- MultisessionFuture(..., workers = workers, [18:03:25.128] lazy = lazy, rscript_libs = rscript_libs, [18:03:25.128] envir = envir) [18:03:25.128] if (!future$lazy) [18:03:25.128] future <- run(future) [18:03:25.128] invisible(future) [18:03:25.128] }), .cleanup = FALSE, .init = FALSE) [18:03:25.128] } [18:03:25.128] } [18:03:25.128] } [18:03:25.128] }) [18:03:25.128] if (TRUE) { [18:03:25.128] base::sink(type = "output", split = FALSE) [18:03:25.128] if (TRUE) { [18:03:25.128] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:03:25.128] } [18:03:25.128] else { [18:03:25.128] ...future.result["stdout"] <- base::list(NULL) [18:03:25.128] } [18:03:25.128] base::close(...future.stdout) [18:03:25.128] ...future.stdout <- NULL [18:03:25.128] } [18:03:25.128] ...future.result$conditions <- ...future.conditions [18:03:25.128] ...future.result$finished <- base::Sys.time() [18:03:25.128] ...future.result [18:03:25.128] } [18:03:25.133] plan(): Setting new future strategy stack: [18:03:25.134] List of future strategies: [18:03:25.134] 1. sequential: [18:03:25.134] - args: function (..., envir = parent.frame()) [18:03:25.134] - tweaked: FALSE [18:03:25.134] - call: NULL [18:03:25.134] plan(): nbrOfWorkers() = 1 [18:03:25.135] plan(): Setting new future strategy stack: [18:03:25.136] List of future strategies: [18:03:25.136] 1. multisession: [18:03:25.136] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:25.136] - tweaked: FALSE [18:03:25.136] - call: plan("default") [18:03:25.138] plan(): nbrOfWorkers() = 1 [18:03:25.138] SequentialFuture started (and completed) [18:03:25.139] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [18:03:25.141] 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) [18:03:25.142] Future-specific environment variables: - R_FUTURE_WAIT_INTERVAL='0.01' [18:03:25.142] Environment variable 'R_FUTURE_DEMO_MANDELBROT_REGION' not set [18:03:25.142] Environment variable 'R_FUTURE_DEMO_MANDELBROT_NROW' not set [18:03:25.142] Environment variable 'R_FUTURE_DEPRECATED_IGNORE' not set [18:03:25.143] Environment variable 'R_FUTURE_DEPRECATED_DEFUNCT' not set [18:03:25.143] Environment variable 'R_FUTURE_FORK_MULTITHREADING_ENABLE' not set [18:03:25.143] Environment variable 'R_FUTURE_GLOBALS_MAXSIZE' not set [18:03:25.143] Environment variable 'R_FUTURE_GLOBALS_ONMISSING' not set [18:03:25.143] Environment variable 'R_FUTURE_GLOBALS_ONREFERENCE' not set [18:03:25.144] Environment variable 'R_FUTURE_GLOBALS_METHOD' not set [18:03:25.144] Environment variable 'R_FUTURE_GLOBALS_RESOLVE' not set [18:03:25.144] Environment variable 'R_FUTURE_LAZY_ASSERTOWNER' not set [18:03:25.144] Environment variable 'R_FUTURE_PLAN_DISALLOW' not set [18:03:25.144] Environment variable 'R_FUTURE_PSOCK_RELAY_IMMEDIATE' not set [18:03:25.145] Environment variable 'R_FUTURE_RELAY_IMMEDIATE' not set [18:03:25.145] Environment variable 'R_FUTURE_RESOLVE_RECURSIVE' not set [18:03:25.145] Environment variable 'R_FUTURE_ALIVE_TIMEOUT' not set [18:03:25.145] Environment variable 'R_FUTURE_RESOLVED_TIMEOUT' not set [18:03:25.145] Environment variable 'R_FUTURE_CLUSTER_RESOLVED_TIMEOUT' not set [18:03:25.146] Environment variable 'R_FUTURE_MULTICORE_RESOLVED_TIMEOUT' not set [18:03:25.146] Environment variable 'R_FUTURE_ONFUTURECONDITION_KEEPFUTURE' not set [18:03:25.146] Environment variable 'R_FUTURE_RNG_ONMISUSE' not set [18:03:25.146] Environment variable 'R_FUTURE_GLOBALENV_ONMISUSE' not set [18:03:25.146] Environment variable 'R_FUTURE_WAIT_TIMEOUT' not set [18:03:25.147] Environment variable 'R_FUTURE_WAIT_ALPHA' not set [18:03:25.147] Environment variable 'R_FUTURE_ASSIGN_GLOBALS_EXCLUDE' not set [18:03:25.147] Environment variable 'R_FUTURE_OUTPUT_WINDOWS_REENCODE' not set [18:03:25.147] Environment variable 'R_FUTURE_GLOBALS_GLOBALSOF_LOCALS' not set [18:03:25.147] Environment variable 'R_FUTURE_STATE_ONINVALID' not set [18:03:25.147] Environment variable 'R_FUTURE_JOURNAL' not set [18:03:25.148] Environment variable 'R_FUTURE_GLOBALS_KEEPWHERE' not set [18:03:25.148] Option 'future.plan' of type 'function' [18:03:25.148] R command-line argument: -p 1 [18:03:25.148] => 'future.plan' already set. [18:03:25.149] R process uuid: 343601ce-d741-3023-f092-2bdafb2f2ff3 [18:03:25.149] Setting plan('default') [18:03:25.149] plan(): Setting new future strategy stack: [18:03:25.149] List of future strategies: [18:03:25.149] 1. multisession: [18:03:25.149] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:25.149] - tweaked: FALSE [18:03:25.149] - call: NULL [18:03:25.152] 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") [18:03:25.152] plan(): Setting new future strategy stack: [18:03:25.152] List of future strategies: [18:03:25.152] 1. multisession: [18:03:25.152] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:25.152] - tweaked: FALSE [18:03:25.152] - call: NULL [18:03:25.153] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [18:03:25.153] multisession: [18:03:25.153] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:25.153] - tweaked: FALSE [18:03:25.153] - call: NULL [18:03:25.155] getGlobalsAndPackages() ... [18:03:25.155] Not searching for globals [18:03:25.156] - globals: [0] [18:03:25.156] getGlobalsAndPackages() ... DONE [18:03:25.156] Packages needed by the future expression (n = 0): [18:03:25.156] Packages needed by future strategies (n = 0): [18:03:25.157] { [18:03:25.157] { [18:03:25.157] { [18:03:25.157] ...future.startTime <- base::Sys.time() [18:03:25.157] { [18:03:25.157] { [18:03:25.157] { [18:03:25.157] base::local({ [18:03:25.157] has_future <- base::requireNamespace("future", [18:03:25.157] quietly = TRUE) [18:03:25.157] if (has_future) { [18:03:25.157] ns <- base::getNamespace("future") [18:03:25.157] version <- ns[[".package"]][["version"]] [18:03:25.157] if (is.null(version)) [18:03:25.157] version <- utils::packageVersion("future") [18:03:25.157] } [18:03:25.157] else { [18:03:25.157] version <- NULL [18:03:25.157] } [18:03:25.157] if (!has_future || version < "1.8.0") { [18:03:25.157] info <- base::c(r_version = base::gsub("R version ", [18:03:25.157] "", base::R.version$version.string), [18:03:25.157] platform = base::sprintf("%s (%s-bit)", [18:03:25.157] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:03:25.157] os = base::paste(base::Sys.info()[base::c("sysname", [18:03:25.157] "release", "version")], collapse = " "), [18:03:25.157] hostname = base::Sys.info()[["nodename"]]) [18:03:25.157] info <- base::sprintf("%s: %s", base::names(info), [18:03:25.157] info) [18:03:25.157] info <- base::paste(info, collapse = "; ") [18:03:25.157] if (!has_future) { [18:03:25.157] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:03:25.157] info) [18:03:25.157] } [18:03:25.157] else { [18:03:25.157] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:03:25.157] info, version) [18:03:25.157] } [18:03:25.157] base::stop(msg) [18:03:25.157] } [18:03:25.157] }) [18:03:25.157] } [18:03:25.157] options(future.plan = NULL) [18:03:25.157] Sys.unsetenv("R_FUTURE_PLAN") [18:03:25.157] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:03:25.157] } [18:03:25.157] ...future.workdir <- getwd() [18:03:25.157] } [18:03:25.157] ...future.oldOptions <- base::as.list(base::.Options) [18:03:25.157] ...future.oldEnvVars <- base::Sys.getenv() [18:03:25.157] } [18:03:25.157] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:03:25.157] future.globals.maxSize = NULL, future.globals.method = NULL, [18:03:25.157] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:03:25.157] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:03:25.157] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:03:25.157] future.stdout.windows.reencode = NULL, width = 80L) [18:03:25.157] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:03:25.157] base::names(...future.oldOptions)) [18:03:25.157] } [18:03:25.157] if (FALSE) { [18:03:25.157] } [18:03:25.157] else { [18:03:25.157] if (TRUE) { [18:03:25.157] ...future.stdout <- base::rawConnection(base::raw(0L), [18:03:25.157] open = "w") [18:03:25.157] } [18:03:25.157] else { [18:03:25.157] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:03:25.157] windows = "NUL", "/dev/null"), open = "w") [18:03:25.157] } [18:03:25.157] base::sink(...future.stdout, type = "output", split = FALSE) [18:03:25.157] base::on.exit(if (!base::is.null(...future.stdout)) { [18:03:25.157] base::sink(type = "output", split = FALSE) [18:03:25.157] base::close(...future.stdout) [18:03:25.157] }, add = TRUE) [18:03:25.157] } [18:03:25.157] ...future.frame <- base::sys.nframe() [18:03:25.157] ...future.conditions <- base::list() [18:03:25.157] ...future.rng <- base::globalenv()$.Random.seed [18:03:25.157] if (FALSE) { [18:03:25.157] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:03:25.157] "...future.value", "...future.globalenv.names", ".Random.seed") [18:03:25.157] } [18:03:25.157] ...future.result <- base::tryCatch({ [18:03:25.157] base::withCallingHandlers({ [18:03:25.157] ...future.value <- base::withVisible(base::local(NA)) [18:03:25.157] future::FutureResult(value = ...future.value$value, [18:03:25.157] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:03:25.157] ...future.rng), globalenv = if (FALSE) [18:03:25.157] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:03:25.157] ...future.globalenv.names)) [18:03:25.157] else NULL, started = ...future.startTime, version = "1.8") [18:03:25.157] }, condition = base::local({ [18:03:25.157] c <- base::c [18:03:25.157] inherits <- base::inherits [18:03:25.157] invokeRestart <- base::invokeRestart [18:03:25.157] length <- base::length [18:03:25.157] list <- base::list [18:03:25.157] seq.int <- base::seq.int [18:03:25.157] signalCondition <- base::signalCondition [18:03:25.157] sys.calls <- base::sys.calls [18:03:25.157] `[[` <- base::`[[` [18:03:25.157] `+` <- base::`+` [18:03:25.157] `<<-` <- base::`<<-` [18:03:25.157] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:03:25.157] calls[seq.int(from = from + 12L, to = length(calls) - [18:03:25.157] 3L)] [18:03:25.157] } [18:03:25.157] function(cond) { [18:03:25.157] is_error <- inherits(cond, "error") [18:03:25.157] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:03:25.157] NULL) [18:03:25.157] if (is_error) { [18:03:25.157] sessionInformation <- function() { [18:03:25.157] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:03:25.157] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:03:25.157] search = base::search(), system = base::Sys.info()) [18:03:25.157] } [18:03:25.157] ...future.conditions[[length(...future.conditions) + [18:03:25.157] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:03:25.157] cond$call), session = sessionInformation(), [18:03:25.157] timestamp = base::Sys.time(), signaled = 0L) [18:03:25.157] signalCondition(cond) [18:03:25.157] } [18:03:25.157] else if (!ignore && TRUE && inherits(cond, c("condition", [18:03:25.157] "immediateCondition"))) { [18:03:25.157] signal <- TRUE && inherits(cond, "immediateCondition") [18:03:25.157] ...future.conditions[[length(...future.conditions) + [18:03:25.157] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:03:25.157] if (TRUE && !signal) { [18:03:25.157] muffleCondition <- function (cond, pattern = "^muffle") [18:03:25.157] { [18:03:25.157] inherits <- base::inherits [18:03:25.157] invokeRestart <- base::invokeRestart [18:03:25.157] is.null <- base::is.null [18:03:25.157] muffled <- FALSE [18:03:25.157] if (inherits(cond, "message")) { [18:03:25.157] muffled <- grepl(pattern, "muffleMessage") [18:03:25.157] if (muffled) [18:03:25.157] invokeRestart("muffleMessage") [18:03:25.157] } [18:03:25.157] else if (inherits(cond, "warning")) { [18:03:25.157] muffled <- grepl(pattern, "muffleWarning") [18:03:25.157] if (muffled) [18:03:25.157] invokeRestart("muffleWarning") [18:03:25.157] } [18:03:25.157] else if (inherits(cond, "condition")) { [18:03:25.157] if (!is.null(pattern)) { [18:03:25.157] computeRestarts <- base::computeRestarts [18:03:25.157] grepl <- base::grepl [18:03:25.157] restarts <- computeRestarts(cond) [18:03:25.157] for (restart in restarts) { [18:03:25.157] name <- restart$name [18:03:25.157] if (is.null(name)) [18:03:25.157] next [18:03:25.157] if (!grepl(pattern, name)) [18:03:25.157] next [18:03:25.157] invokeRestart(restart) [18:03:25.157] muffled <- TRUE [18:03:25.157] break [18:03:25.157] } [18:03:25.157] } [18:03:25.157] } [18:03:25.157] invisible(muffled) [18:03:25.157] } [18:03:25.157] muffleCondition(cond, pattern = "^muffle") [18:03:25.157] } [18:03:25.157] } [18:03:25.157] else { [18:03:25.157] if (TRUE) { [18:03:25.157] muffleCondition <- function (cond, pattern = "^muffle") [18:03:25.157] { [18:03:25.157] inherits <- base::inherits [18:03:25.157] invokeRestart <- base::invokeRestart [18:03:25.157] is.null <- base::is.null [18:03:25.157] muffled <- FALSE [18:03:25.157] if (inherits(cond, "message")) { [18:03:25.157] muffled <- grepl(pattern, "muffleMessage") [18:03:25.157] if (muffled) [18:03:25.157] invokeRestart("muffleMessage") [18:03:25.157] } [18:03:25.157] else if (inherits(cond, "warning")) { [18:03:25.157] muffled <- grepl(pattern, "muffleWarning") [18:03:25.157] if (muffled) [18:03:25.157] invokeRestart("muffleWarning") [18:03:25.157] } [18:03:25.157] else if (inherits(cond, "condition")) { [18:03:25.157] if (!is.null(pattern)) { [18:03:25.157] computeRestarts <- base::computeRestarts [18:03:25.157] grepl <- base::grepl [18:03:25.157] restarts <- computeRestarts(cond) [18:03:25.157] for (restart in restarts) { [18:03:25.157] name <- restart$name [18:03:25.157] if (is.null(name)) [18:03:25.157] next [18:03:25.157] if (!grepl(pattern, name)) [18:03:25.157] next [18:03:25.157] invokeRestart(restart) [18:03:25.157] muffled <- TRUE [18:03:25.157] break [18:03:25.157] } [18:03:25.157] } [18:03:25.157] } [18:03:25.157] invisible(muffled) [18:03:25.157] } [18:03:25.157] muffleCondition(cond, pattern = "^muffle") [18:03:25.157] } [18:03:25.157] } [18:03:25.157] } [18:03:25.157] })) [18:03:25.157] }, error = function(ex) { [18:03:25.157] base::structure(base::list(value = NULL, visible = NULL, [18:03:25.157] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:03:25.157] ...future.rng), started = ...future.startTime, [18:03:25.157] finished = Sys.time(), session_uuid = NA_character_, [18:03:25.157] version = "1.8"), class = "FutureResult") [18:03:25.157] }, finally = { [18:03:25.157] if (!identical(...future.workdir, getwd())) [18:03:25.157] setwd(...future.workdir) [18:03:25.157] { [18:03:25.157] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:03:25.157] ...future.oldOptions$nwarnings <- NULL [18:03:25.157] } [18:03:25.157] base::options(...future.oldOptions) [18:03:25.157] if (.Platform$OS.type == "windows") { [18:03:25.157] old_names <- names(...future.oldEnvVars) [18:03:25.157] envs <- base::Sys.getenv() [18:03:25.157] names <- names(envs) [18:03:25.157] common <- intersect(names, old_names) [18:03:25.157] added <- setdiff(names, old_names) [18:03:25.157] removed <- setdiff(old_names, names) [18:03:25.157] changed <- common[...future.oldEnvVars[common] != [18:03:25.157] envs[common]] [18:03:25.157] NAMES <- toupper(changed) [18:03:25.157] args <- list() [18:03:25.157] for (kk in seq_along(NAMES)) { [18:03:25.157] name <- changed[[kk]] [18:03:25.157] NAME <- NAMES[[kk]] [18:03:25.157] if (name != NAME && is.element(NAME, old_names)) [18:03:25.157] next [18:03:25.157] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:25.157] } [18:03:25.157] NAMES <- toupper(added) [18:03:25.157] for (kk in seq_along(NAMES)) { [18:03:25.157] name <- added[[kk]] [18:03:25.157] NAME <- NAMES[[kk]] [18:03:25.157] if (name != NAME && is.element(NAME, old_names)) [18:03:25.157] next [18:03:25.157] args[[name]] <- "" [18:03:25.157] } [18:03:25.157] NAMES <- toupper(removed) [18:03:25.157] for (kk in seq_along(NAMES)) { [18:03:25.157] name <- removed[[kk]] [18:03:25.157] NAME <- NAMES[[kk]] [18:03:25.157] if (name != NAME && is.element(NAME, old_names)) [18:03:25.157] next [18:03:25.157] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:25.157] } [18:03:25.157] if (length(args) > 0) [18:03:25.157] base::do.call(base::Sys.setenv, args = args) [18:03:25.157] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:03:25.157] } [18:03:25.157] else { [18:03:25.157] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:03:25.157] } [18:03:25.157] { [18:03:25.157] if (base::length(...future.futureOptionsAdded) > [18:03:25.157] 0L) { [18:03:25.157] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:03:25.157] base::names(opts) <- ...future.futureOptionsAdded [18:03:25.157] base::options(opts) [18:03:25.157] } [18:03:25.157] { [18:03:25.157] { [18:03:25.157] NULL [18:03:25.157] RNGkind("Mersenne-Twister") [18:03:25.157] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:03:25.157] inherits = FALSE) [18:03:25.157] } [18:03:25.157] options(future.plan = function (..., workers = availableCores(), [18:03:25.157] lazy = FALSE, rscript_libs = .libPaths(), [18:03:25.157] envir = parent.frame()) [18:03:25.157] { [18:03:25.157] if (is.function(workers)) [18:03:25.157] workers <- workers() [18:03:25.157] workers <- structure(as.integer(workers), [18:03:25.157] class = class(workers)) [18:03:25.157] stop_if_not(length(workers) == 1, is.finite(workers), [18:03:25.157] workers >= 1) [18:03:25.157] if (workers == 1L && !inherits(workers, "AsIs")) { [18:03:25.157] return(sequential(..., lazy = TRUE, envir = envir)) [18:03:25.157] } [18:03:25.157] future <- MultisessionFuture(..., workers = workers, [18:03:25.157] lazy = lazy, rscript_libs = rscript_libs, [18:03:25.157] envir = envir) [18:03:25.157] if (!future$lazy) [18:03:25.157] future <- run(future) [18:03:25.157] invisible(future) [18:03:25.157] }) [18:03:25.157] if (is.na(NA_character_)) [18:03:25.157] Sys.unsetenv("R_FUTURE_PLAN") [18:03:25.157] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:03:25.157] future::plan(list(function (..., workers = availableCores(), [18:03:25.157] lazy = FALSE, rscript_libs = .libPaths(), [18:03:25.157] envir = parent.frame()) [18:03:25.157] { [18:03:25.157] if (is.function(workers)) [18:03:25.157] workers <- workers() [18:03:25.157] workers <- structure(as.integer(workers), [18:03:25.157] class = class(workers)) [18:03:25.157] stop_if_not(length(workers) == 1, is.finite(workers), [18:03:25.157] workers >= 1) [18:03:25.157] if (workers == 1L && !inherits(workers, "AsIs")) { [18:03:25.157] return(sequential(..., lazy = TRUE, envir = envir)) [18:03:25.157] } [18:03:25.157] future <- MultisessionFuture(..., workers = workers, [18:03:25.157] lazy = lazy, rscript_libs = rscript_libs, [18:03:25.157] envir = envir) [18:03:25.157] if (!future$lazy) [18:03:25.157] future <- run(future) [18:03:25.157] invisible(future) [18:03:25.157] }), .cleanup = FALSE, .init = FALSE) [18:03:25.157] } [18:03:25.157] } [18:03:25.157] } [18:03:25.157] }) [18:03:25.157] if (TRUE) { [18:03:25.157] base::sink(type = "output", split = FALSE) [18:03:25.157] if (TRUE) { [18:03:25.157] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:03:25.157] } [18:03:25.157] else { [18:03:25.157] ...future.result["stdout"] <- base::list(NULL) [18:03:25.157] } [18:03:25.157] base::close(...future.stdout) [18:03:25.157] ...future.stdout <- NULL [18:03:25.157] } [18:03:25.157] ...future.result$conditions <- ...future.conditions [18:03:25.157] ...future.result$finished <- base::Sys.time() [18:03:25.157] ...future.result [18:03:25.157] } [18:03:25.162] plan(): Setting new future strategy stack: [18:03:25.162] List of future strategies: [18:03:25.162] 1. sequential: [18:03:25.162] - args: function (..., envir = parent.frame()) [18:03:25.162] - tweaked: FALSE [18:03:25.162] - call: NULL [18:03:25.162] plan(): nbrOfWorkers() = 1 [18:03:25.163] plan(): Setting new future strategy stack: [18:03:25.164] List of future strategies: [18:03:25.164] 1. multisession: [18:03:25.164] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:03:25.164] - tweaked: FALSE [18:03:25.164] - call: NULL [18:03:25.166] plan(): nbrOfWorkers() = 1 [18:03:25.166] SequentialFuture started (and completed) [18:03:25.167] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [18:03:25.169] 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) + } [18:03:25.172] Option 'future.startup.script': TRUE [18:03:25.172] Future startup scripts considered: '.future.R', '~/.future.R' [18:03:25.172] Future startup scripts found: [18:03:25.173] Option 'future.startup.script': TRUE [18:03:25.173] Future startup scripts considered: '.future.R', '~/.future.R' [18:03:25.173] Future startup scripts found: [18:03:25.173] Option 'future.startup.script': TRUE [18:03:25.173] Future startup scripts considered: '.future.R', '~/.future.R' [18:03:25.174] 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) [18:03:25.174] Option 'future.startup.script': TRUE [18:03:25.175] Future startup scripts considered: '.future.R', '~/.future.R' [18:03:25.175] Future startup scripts found: '.future.R' [18:03:25.175] 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") [18:03:25.177] plan(): Setting new future strategy stack: [18:03:25.177] List of future strategies: [18:03:25.177] 1. FutureStrategy: [18:03:25.177] - args: function (..., envir = parent.frame()) [18:03:25.177] - tweaked: FALSE [18:03:25.177] - call: future::plan(oplan) [18:03:25.177] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=201] '!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', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RETICULATE_AUTOCONFIGURE', '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_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_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_', '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.64 0.17 2.26