R Under development (unstable) (2024-03-25 r86192 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [17:27:19.524] plan(): Setting new future strategy stack: [17:27:19.526] List of future strategies: [17:27:19.526] 1. sequential: [17:27:19.526] - args: function (..., envir = parent.frame(), workers = "") [17:27:19.526] - tweaked: FALSE [17:27:19.526] - call: future::plan("sequential") [17:27:19.541] plan(): nbrOfWorkers() = 1 > > message("*** nbrOfWorkers() ...") *** nbrOfWorkers() ... > > strategies <- c("sequential") > for (strategy in strategies) { + message("Type of future: ", strategy) + + evaluator <- get(strategy, mode = "function") + n <- nbrOfWorkers(evaluator) + message(sprintf("nbrOfWorkers: %d", n)) + stopifnot(n == 1L) + + plan(strategy) + n <- nbrOfWorkers() + message(sprintf("nbrOfWorkers: %d", n)) + stopifnot(n == 1L) + + n <- nbrOfFreeWorkers() + message(sprintf("nbrOfFreeWorkers: %d", n)) + stopifnot(n == 1L) + + n <- nbrOfFreeWorkers(background = TRUE) + message(sprintf("nbrOfFreeWorkers(background = TRUE): %d", n)) + stopifnot(n == 0L) + } ## for (strategy ...) Type of future: sequential nbrOfWorkers: 1 [17:27:19.557] plan(): Setting new future strategy stack: [17:27:19.557] List of future strategies: [17:27:19.557] 1. sequential: [17:27:19.557] - args: function (..., envir = parent.frame(), workers = "") [17:27:19.557] - tweaked: FALSE [17:27:19.557] - call: plan(strategy) [17:27:19.572] plan(): nbrOfWorkers() = 1 nbrOfWorkers: 1 nbrOfFreeWorkers: 1 nbrOfFreeWorkers(background = TRUE): 0 > > > strategies <- c("cluster", "multisession", "multicore") > strategies <- intersect(strategies, supportedStrategies()) > cores <- availableCores() > message("Number of available cores: ", cores) Number of available cores: 2 > workers <- availableWorkers() > nworkers <- length(workers) > message(sprintf("Available workers: [n = %d] %s", nworkers, hpaste(sQuote(workers)))) Available workers: [n = 2] 'localhost', 'localhost' > > allButOneCore <- function() max(1L, future::availableCores() - 1L) > allButOneWorker <- function() { + w <- future::availableWorkers() + if (length(w) > 1) w[-1] else w + } > > for (strategy in strategies) { + ## Speed up CRAN checks: Skip on CRAN Windows 32-bit + if (!fullTest && isWin32) next + + message("Type of future: ", strategy) + + evaluator <- get(strategy, mode = "function") + n <- nbrOfWorkers(evaluator) + message(sprintf("nbrOfWorkers: %d", n)) + stopifnot(n == nworkers) + + plan(strategy) + n <- nbrOfWorkers() + message(sprintf("nbrOfWorkers: %d", n)) + stopifnot(n == nworkers) + + n <- nbrOfFreeWorkers() + message(sprintf("nbrOfFreeWorkers: %d", n)) + stopifnot(n == nworkers) + + n <- nbrOfFreeWorkers(background = TRUE) + message(sprintf("nbrOfFreeWorkers(background = TRUE): %d", n)) + # FIXME stopifnot(n == 0L) + + plan(strategy, workers = 1L) + n <- nbrOfWorkers() + message(sprintf("nbrOfWorkers: %d", n)) + stopifnot(n == max(1L, nworkers - 1L)) + + n <- nbrOfFreeWorkers() + message(sprintf("nbrOfFreeWorkers: %d", n)) + stopifnot(n == max(1L, nworkers - 1L)) + + n <- nbrOfFreeWorkers(background = TRUE) + message(sprintf("nbrOfFreeWorkers(background = TRUE): %d", n)) + # FIXME stopifnot(n == 0L) + + plan(strategy, workers = allButOneCore) + n <- nbrOfWorkers() + message(sprintf("nbrOfWorkers: %d", n)) + stopifnot(n == max(1L, nworkers - 1L)) + + n <- nbrOfFreeWorkers() + message(sprintf("nbrOfFreeWorkers: %d", n)) + stopifnot(n == max(1L, nworkers - 1L)) + + n <- nbrOfFreeWorkers(background = TRUE) + message(sprintf("nbrOfFreeWorkers(background = TRUE): %d", n)) + # FIXME stopifnot(n == 0L) + } ## for (strategy ...) Type of future: multisession nbrOfWorkers: 2 [17:27:19.606] plan(): Setting new future strategy stack: [17:27:19.606] List of future strategies: [17:27:19.606] 1. multisession: [17:27:19.606] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:27:19.606] - tweaked: FALSE [17:27:19.606] - call: plan(strategy) [17:27:19.607] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:27:19.607] multisession: [17:27:19.607] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:27:19.607] - tweaked: FALSE [17:27:19.607] - call: plan(strategy) [17:27:19.612] getGlobalsAndPackages() ... [17:27:19.612] Not searching for globals [17:27:19.612] - globals: [0] [17:27:19.612] getGlobalsAndPackages() ... DONE [17:27:19.613] [local output] makeClusterPSOCK() ... [17:27:19.642] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:27:19.649] [local output] Base port: 23999 [17:27:19.649] [local output] Getting setup options for 2 cluster nodes ... [17:27:19.649] [local output] - Node 1 of 2 ... [17:27:19.650] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:19.651] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpuMG48r/worker.rank=1.parallelly.parent=12520.30e8c7e7acd.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpuMG48r/worker.rank=1.parallelly.parent=12520.30e8c7e7acd.pid\")"' [17:27:20.088] - Possible to infer worker's PID: TRUE [17:27:20.089] [local output] Rscript port: 23999 [17:27:20.089] [local output] - Node 2 of 2 ... [17:27:20.090] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:20.091] [local output] Rscript port: 23999 [17:27:20.091] [local output] Getting setup options for 2 cluster nodes ... done [17:27:20.091] [local output] - Parallel setup requested for some PSOCK nodes [17:27:20.092] [local output] Setting up PSOCK nodes in parallel [17:27:20.092] List of 36 [17:27:20.092] $ worker : chr "localhost" [17:27:20.092] ..- attr(*, "localhost")= logi TRUE [17:27:20.092] $ master : chr "localhost" [17:27:20.092] $ port : int 23999 [17:27:20.092] $ connectTimeout : num 120 [17:27:20.092] $ timeout : num 120 [17:27:20.092] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:27:20.092] $ homogeneous : logi TRUE [17:27:20.092] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=nbrOfWorkers.R:12520:CRANWIN3:CR"| __truncated__ [17:27:20.092] $ rscript_envs : NULL [17:27:20.092] $ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:27:20.092] $ rscript_startup : NULL [17:27:20.092] $ rscript_sh : chr "cmd" [17:27:20.092] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:20.092] $ methods : logi TRUE [17:27:20.092] $ socketOptions : chr "no-delay" [17:27:20.092] $ useXDR : logi FALSE [17:27:20.092] $ outfile : chr "/dev/null" [17:27:20.092] $ renice : int NA [17:27:20.092] $ rshcmd : NULL [17:27:20.092] $ user : chr(0) [17:27:20.092] $ revtunnel : logi FALSE [17:27:20.092] $ rshlogfile : NULL [17:27:20.092] $ rshopts : chr(0) [17:27:20.092] $ rank : int 1 [17:27:20.092] $ manual : logi FALSE [17:27:20.092] $ dryrun : logi FALSE [17:27:20.092] $ quiet : logi FALSE [17:27:20.092] $ setup_strategy : chr "parallel" [17:27:20.092] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:20.092] $ pidfile : chr "D:/temp/RtmpuMG48r/worker.rank=1.parallelly.parent=12520.30e8c7e7acd.pid" [17:27:20.092] $ rshcmd_label : NULL [17:27:20.092] $ rsh_call : NULL [17:27:20.092] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:20.092] $ localMachine : logi TRUE [17:27:20.092] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:27:20.092] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:27:20.092] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:27:20.092] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:27:20.092] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:27:20.092] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:27:20.092] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:27:20.092] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:27:20.092] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:27:20.092] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:27:20.092] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:27:20.092] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:27:20.092] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:27:20.092] $ arguments :List of 28 [17:27:20.092] ..$ worker : chr "localhost" [17:27:20.092] ..$ master : NULL [17:27:20.092] ..$ port : int 23999 [17:27:20.092] ..$ connectTimeout : num 120 [17:27:20.092] ..$ timeout : num 120 [17:27:20.092] ..$ rscript : NULL [17:27:20.092] ..$ homogeneous : NULL [17:27:20.092] ..$ rscript_args : NULL [17:27:20.092] ..$ rscript_envs : NULL [17:27:20.092] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:27:20.092] ..$ rscript_startup : NULL [17:27:20.092] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:27:20.092] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:20.092] ..$ methods : logi TRUE [17:27:20.092] ..$ socketOptions : chr "no-delay" [17:27:20.092] ..$ useXDR : logi FALSE [17:27:20.092] ..$ outfile : chr "/dev/null" [17:27:20.092] ..$ renice : int NA [17:27:20.092] ..$ rshcmd : NULL [17:27:20.092] ..$ user : NULL [17:27:20.092] ..$ revtunnel : logi NA [17:27:20.092] ..$ rshlogfile : NULL [17:27:20.092] ..$ rshopts : NULL [17:27:20.092] ..$ rank : int 1 [17:27:20.092] ..$ manual : logi FALSE [17:27:20.092] ..$ dryrun : logi FALSE [17:27:20.092] ..$ quiet : logi FALSE [17:27:20.092] ..$ setup_strategy : chr "parallel" [17:27:20.092] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:27:20.116] [local output] System call to launch all workers: [17:27:20.116] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=nbrOfWorkers.R:12520:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpuMG48r/worker.rank=1.parallelly.parent=12520.30e8c7e7acd.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=23999 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:27:20.116] [local output] Starting PSOCK main server [17:27:20.122] [local output] Workers launched [17:27:20.122] [local output] Waiting for workers to connect back [17:27:20.122] - [local output] 0 workers out of 2 ready [17:27:20.284] - [local output] 0 workers out of 2 ready [17:27:20.285] - [local output] 1 workers out of 2 ready [17:27:20.288] - [local output] 1 workers out of 2 ready [17:27:20.288] - [local output] 2 workers out of 2 ready [17:27:20.288] [local output] Launching of workers completed [17:27:20.289] [local output] Collecting session information from workers [17:27:20.290] [local output] - Worker #1 of 2 [17:27:20.290] [local output] - Worker #2 of 2 [17:27:20.290] [local output] makeClusterPSOCK() ... done [17:27:20.304] Packages needed by the future expression (n = 0): [17:27:20.304] Packages needed by future strategies (n = 0): [17:27:20.305] { [17:27:20.305] { [17:27:20.305] { [17:27:20.305] ...future.startTime <- base::Sys.time() [17:27:20.305] { [17:27:20.305] { [17:27:20.305] { [17:27:20.305] { [17:27:20.305] base::local({ [17:27:20.305] has_future <- base::requireNamespace("future", [17:27:20.305] quietly = TRUE) [17:27:20.305] if (has_future) { [17:27:20.305] ns <- base::getNamespace("future") [17:27:20.305] version <- ns[[".package"]][["version"]] [17:27:20.305] if (is.null(version)) [17:27:20.305] version <- utils::packageVersion("future") [17:27:20.305] } [17:27:20.305] else { [17:27:20.305] version <- NULL [17:27:20.305] } [17:27:20.305] if (!has_future || version < "1.8.0") { [17:27:20.305] info <- base::c(r_version = base::gsub("R version ", [17:27:20.305] "", base::R.version$version.string), [17:27:20.305] platform = base::sprintf("%s (%s-bit)", [17:27:20.305] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:20.305] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:20.305] "release", "version")], collapse = " "), [17:27:20.305] hostname = base::Sys.info()[["nodename"]]) [17:27:20.305] info <- base::sprintf("%s: %s", base::names(info), [17:27:20.305] info) [17:27:20.305] info <- base::paste(info, collapse = "; ") [17:27:20.305] if (!has_future) { [17:27:20.305] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:20.305] info) [17:27:20.305] } [17:27:20.305] else { [17:27:20.305] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:20.305] info, version) [17:27:20.305] } [17:27:20.305] base::stop(msg) [17:27:20.305] } [17:27:20.305] }) [17:27:20.305] } [17:27:20.305] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:20.305] base::options(mc.cores = 1L) [17:27:20.305] } [17:27:20.305] ...future.strategy.old <- future::plan("list") [17:27:20.305] options(future.plan = NULL) [17:27:20.305] Sys.unsetenv("R_FUTURE_PLAN") [17:27:20.305] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:20.305] } [17:27:20.305] ...future.workdir <- getwd() [17:27:20.305] } [17:27:20.305] ...future.oldOptions <- base::as.list(base::.Options) [17:27:20.305] ...future.oldEnvVars <- base::Sys.getenv() [17:27:20.305] } [17:27:20.305] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:20.305] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:20.305] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:20.305] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:20.305] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:20.305] future.stdout.windows.reencode = NULL, width = 80L) [17:27:20.305] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:20.305] base::names(...future.oldOptions)) [17:27:20.305] } [17:27:20.305] if (FALSE) { [17:27:20.305] } [17:27:20.305] else { [17:27:20.305] if (TRUE) { [17:27:20.305] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:20.305] open = "w") [17:27:20.305] } [17:27:20.305] else { [17:27:20.305] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:20.305] windows = "NUL", "/dev/null"), open = "w") [17:27:20.305] } [17:27:20.305] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:20.305] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:20.305] base::sink(type = "output", split = FALSE) [17:27:20.305] base::close(...future.stdout) [17:27:20.305] }, add = TRUE) [17:27:20.305] } [17:27:20.305] ...future.frame <- base::sys.nframe() [17:27:20.305] ...future.conditions <- base::list() [17:27:20.305] ...future.rng <- base::globalenv()$.Random.seed [17:27:20.305] if (FALSE) { [17:27:20.305] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:20.305] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:20.305] } [17:27:20.305] ...future.result <- base::tryCatch({ [17:27:20.305] base::withCallingHandlers({ [17:27:20.305] ...future.value <- base::withVisible(base::local({ [17:27:20.305] ...future.makeSendCondition <- base::local({ [17:27:20.305] sendCondition <- NULL [17:27:20.305] function(frame = 1L) { [17:27:20.305] if (is.function(sendCondition)) [17:27:20.305] return(sendCondition) [17:27:20.305] ns <- getNamespace("parallel") [17:27:20.305] if (exists("sendData", mode = "function", [17:27:20.305] envir = ns)) { [17:27:20.305] parallel_sendData <- get("sendData", mode = "function", [17:27:20.305] envir = ns) [17:27:20.305] envir <- sys.frame(frame) [17:27:20.305] master <- NULL [17:27:20.305] while (!identical(envir, .GlobalEnv) && [17:27:20.305] !identical(envir, emptyenv())) { [17:27:20.305] if (exists("master", mode = "list", envir = envir, [17:27:20.305] inherits = FALSE)) { [17:27:20.305] master <- get("master", mode = "list", [17:27:20.305] envir = envir, inherits = FALSE) [17:27:20.305] if (inherits(master, c("SOCKnode", [17:27:20.305] "SOCK0node"))) { [17:27:20.305] sendCondition <<- function(cond) { [17:27:20.305] data <- list(type = "VALUE", value = cond, [17:27:20.305] success = TRUE) [17:27:20.305] parallel_sendData(master, data) [17:27:20.305] } [17:27:20.305] return(sendCondition) [17:27:20.305] } [17:27:20.305] } [17:27:20.305] frame <- frame + 1L [17:27:20.305] envir <- sys.frame(frame) [17:27:20.305] } [17:27:20.305] } [17:27:20.305] sendCondition <<- function(cond) NULL [17:27:20.305] } [17:27:20.305] }) [17:27:20.305] withCallingHandlers({ [17:27:20.305] NA [17:27:20.305] }, immediateCondition = function(cond) { [17:27:20.305] sendCondition <- ...future.makeSendCondition() [17:27:20.305] sendCondition(cond) [17:27:20.305] muffleCondition <- function (cond, pattern = "^muffle") [17:27:20.305] { [17:27:20.305] inherits <- base::inherits [17:27:20.305] invokeRestart <- base::invokeRestart [17:27:20.305] is.null <- base::is.null [17:27:20.305] muffled <- FALSE [17:27:20.305] if (inherits(cond, "message")) { [17:27:20.305] muffled <- grepl(pattern, "muffleMessage") [17:27:20.305] if (muffled) [17:27:20.305] invokeRestart("muffleMessage") [17:27:20.305] } [17:27:20.305] else if (inherits(cond, "warning")) { [17:27:20.305] muffled <- grepl(pattern, "muffleWarning") [17:27:20.305] if (muffled) [17:27:20.305] invokeRestart("muffleWarning") [17:27:20.305] } [17:27:20.305] else if (inherits(cond, "condition")) { [17:27:20.305] if (!is.null(pattern)) { [17:27:20.305] computeRestarts <- base::computeRestarts [17:27:20.305] grepl <- base::grepl [17:27:20.305] restarts <- computeRestarts(cond) [17:27:20.305] for (restart in restarts) { [17:27:20.305] name <- restart$name [17:27:20.305] if (is.null(name)) [17:27:20.305] next [17:27:20.305] if (!grepl(pattern, name)) [17:27:20.305] next [17:27:20.305] invokeRestart(restart) [17:27:20.305] muffled <- TRUE [17:27:20.305] break [17:27:20.305] } [17:27:20.305] } [17:27:20.305] } [17:27:20.305] invisible(muffled) [17:27:20.305] } [17:27:20.305] muffleCondition(cond) [17:27:20.305] }) [17:27:20.305] })) [17:27:20.305] future::FutureResult(value = ...future.value$value, [17:27:20.305] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:20.305] ...future.rng), globalenv = if (FALSE) [17:27:20.305] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:20.305] ...future.globalenv.names)) [17:27:20.305] else NULL, started = ...future.startTime, version = "1.8") [17:27:20.305] }, condition = base::local({ [17:27:20.305] c <- base::c [17:27:20.305] inherits <- base::inherits [17:27:20.305] invokeRestart <- base::invokeRestart [17:27:20.305] length <- base::length [17:27:20.305] list <- base::list [17:27:20.305] seq.int <- base::seq.int [17:27:20.305] signalCondition <- base::signalCondition [17:27:20.305] sys.calls <- base::sys.calls [17:27:20.305] `[[` <- base::`[[` [17:27:20.305] `+` <- base::`+` [17:27:20.305] `<<-` <- base::`<<-` [17:27:20.305] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:20.305] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:20.305] 3L)] [17:27:20.305] } [17:27:20.305] function(cond) { [17:27:20.305] is_error <- inherits(cond, "error") [17:27:20.305] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:20.305] NULL) [17:27:20.305] if (is_error) { [17:27:20.305] sessionInformation <- function() { [17:27:20.305] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:20.305] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:20.305] search = base::search(), system = base::Sys.info()) [17:27:20.305] } [17:27:20.305] ...future.conditions[[length(...future.conditions) + [17:27:20.305] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:20.305] cond$call), session = sessionInformation(), [17:27:20.305] timestamp = base::Sys.time(), signaled = 0L) [17:27:20.305] signalCondition(cond) [17:27:20.305] } [17:27:20.305] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:20.305] "immediateCondition"))) { [17:27:20.305] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:20.305] ...future.conditions[[length(...future.conditions) + [17:27:20.305] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:20.305] if (TRUE && !signal) { [17:27:20.305] muffleCondition <- function (cond, pattern = "^muffle") [17:27:20.305] { [17:27:20.305] inherits <- base::inherits [17:27:20.305] invokeRestart <- base::invokeRestart [17:27:20.305] is.null <- base::is.null [17:27:20.305] muffled <- FALSE [17:27:20.305] if (inherits(cond, "message")) { [17:27:20.305] muffled <- grepl(pattern, "muffleMessage") [17:27:20.305] if (muffled) [17:27:20.305] invokeRestart("muffleMessage") [17:27:20.305] } [17:27:20.305] else if (inherits(cond, "warning")) { [17:27:20.305] muffled <- grepl(pattern, "muffleWarning") [17:27:20.305] if (muffled) [17:27:20.305] invokeRestart("muffleWarning") [17:27:20.305] } [17:27:20.305] else if (inherits(cond, "condition")) { [17:27:20.305] if (!is.null(pattern)) { [17:27:20.305] computeRestarts <- base::computeRestarts [17:27:20.305] grepl <- base::grepl [17:27:20.305] restarts <- computeRestarts(cond) [17:27:20.305] for (restart in restarts) { [17:27:20.305] name <- restart$name [17:27:20.305] if (is.null(name)) [17:27:20.305] next [17:27:20.305] if (!grepl(pattern, name)) [17:27:20.305] next [17:27:20.305] invokeRestart(restart) [17:27:20.305] muffled <- TRUE [17:27:20.305] break [17:27:20.305] } [17:27:20.305] } [17:27:20.305] } [17:27:20.305] invisible(muffled) [17:27:20.305] } [17:27:20.305] muffleCondition(cond, pattern = "^muffle") [17:27:20.305] } [17:27:20.305] } [17:27:20.305] else { [17:27:20.305] if (TRUE) { [17:27:20.305] muffleCondition <- function (cond, pattern = "^muffle") [17:27:20.305] { [17:27:20.305] inherits <- base::inherits [17:27:20.305] invokeRestart <- base::invokeRestart [17:27:20.305] is.null <- base::is.null [17:27:20.305] muffled <- FALSE [17:27:20.305] if (inherits(cond, "message")) { [17:27:20.305] muffled <- grepl(pattern, "muffleMessage") [17:27:20.305] if (muffled) [17:27:20.305] invokeRestart("muffleMessage") [17:27:20.305] } [17:27:20.305] else if (inherits(cond, "warning")) { [17:27:20.305] muffled <- grepl(pattern, "muffleWarning") [17:27:20.305] if (muffled) [17:27:20.305] invokeRestart("muffleWarning") [17:27:20.305] } [17:27:20.305] else if (inherits(cond, "condition")) { [17:27:20.305] if (!is.null(pattern)) { [17:27:20.305] computeRestarts <- base::computeRestarts [17:27:20.305] grepl <- base::grepl [17:27:20.305] restarts <- computeRestarts(cond) [17:27:20.305] for (restart in restarts) { [17:27:20.305] name <- restart$name [17:27:20.305] if (is.null(name)) [17:27:20.305] next [17:27:20.305] if (!grepl(pattern, name)) [17:27:20.305] next [17:27:20.305] invokeRestart(restart) [17:27:20.305] muffled <- TRUE [17:27:20.305] break [17:27:20.305] } [17:27:20.305] } [17:27:20.305] } [17:27:20.305] invisible(muffled) [17:27:20.305] } [17:27:20.305] muffleCondition(cond, pattern = "^muffle") [17:27:20.305] } [17:27:20.305] } [17:27:20.305] } [17:27:20.305] })) [17:27:20.305] }, error = function(ex) { [17:27:20.305] base::structure(base::list(value = NULL, visible = NULL, [17:27:20.305] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:20.305] ...future.rng), started = ...future.startTime, [17:27:20.305] finished = Sys.time(), session_uuid = NA_character_, [17:27:20.305] version = "1.8"), class = "FutureResult") [17:27:20.305] }, finally = { [17:27:20.305] if (!identical(...future.workdir, getwd())) [17:27:20.305] setwd(...future.workdir) [17:27:20.305] { [17:27:20.305] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:20.305] ...future.oldOptions$nwarnings <- NULL [17:27:20.305] } [17:27:20.305] base::options(...future.oldOptions) [17:27:20.305] if (.Platform$OS.type == "windows") { [17:27:20.305] old_names <- names(...future.oldEnvVars) [17:27:20.305] envs <- base::Sys.getenv() [17:27:20.305] names <- names(envs) [17:27:20.305] common <- intersect(names, old_names) [17:27:20.305] added <- setdiff(names, old_names) [17:27:20.305] removed <- setdiff(old_names, names) [17:27:20.305] changed <- common[...future.oldEnvVars[common] != [17:27:20.305] envs[common]] [17:27:20.305] NAMES <- toupper(changed) [17:27:20.305] args <- list() [17:27:20.305] for (kk in seq_along(NAMES)) { [17:27:20.305] name <- changed[[kk]] [17:27:20.305] NAME <- NAMES[[kk]] [17:27:20.305] if (name != NAME && is.element(NAME, old_names)) [17:27:20.305] next [17:27:20.305] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:20.305] } [17:27:20.305] NAMES <- toupper(added) [17:27:20.305] for (kk in seq_along(NAMES)) { [17:27:20.305] name <- added[[kk]] [17:27:20.305] NAME <- NAMES[[kk]] [17:27:20.305] if (name != NAME && is.element(NAME, old_names)) [17:27:20.305] next [17:27:20.305] args[[name]] <- "" [17:27:20.305] } [17:27:20.305] NAMES <- toupper(removed) [17:27:20.305] for (kk in seq_along(NAMES)) { [17:27:20.305] name <- removed[[kk]] [17:27:20.305] NAME <- NAMES[[kk]] [17:27:20.305] if (name != NAME && is.element(NAME, old_names)) [17:27:20.305] next [17:27:20.305] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:20.305] } [17:27:20.305] if (length(args) > 0) [17:27:20.305] base::do.call(base::Sys.setenv, args = args) [17:27:20.305] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:20.305] } [17:27:20.305] else { [17:27:20.305] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:20.305] } [17:27:20.305] { [17:27:20.305] if (base::length(...future.futureOptionsAdded) > [17:27:20.305] 0L) { [17:27:20.305] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:20.305] base::names(opts) <- ...future.futureOptionsAdded [17:27:20.305] base::options(opts) [17:27:20.305] } [17:27:20.305] { [17:27:20.305] { [17:27:20.305] base::options(mc.cores = ...future.mc.cores.old) [17:27:20.305] NULL [17:27:20.305] } [17:27:20.305] options(future.plan = NULL) [17:27:20.305] if (is.na(NA_character_)) [17:27:20.305] Sys.unsetenv("R_FUTURE_PLAN") [17:27:20.305] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:20.305] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:20.305] .init = FALSE) [17:27:20.305] } [17:27:20.305] } [17:27:20.305] } [17:27:20.305] }) [17:27:20.305] if (TRUE) { [17:27:20.305] base::sink(type = "output", split = FALSE) [17:27:20.305] if (TRUE) { [17:27:20.305] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:20.305] } [17:27:20.305] else { [17:27:20.305] ...future.result["stdout"] <- base::list(NULL) [17:27:20.305] } [17:27:20.305] base::close(...future.stdout) [17:27:20.305] ...future.stdout <- NULL [17:27:20.305] } [17:27:20.305] ...future.result$conditions <- ...future.conditions [17:27:20.305] ...future.result$finished <- base::Sys.time() [17:27:20.305] ...future.result [17:27:20.305] } [17:27:20.390] MultisessionFuture started [17:27:20.391] result() for ClusterFuture ... [17:27:20.392] receiveMessageFromWorker() for ClusterFuture ... [17:27:20.392] - Validating connection of MultisessionFuture [17:27:20.443] - received message: FutureResult [17:27:20.443] - Received FutureResult [17:27:20.446] - Erased future from FutureRegistry [17:27:20.447] result() for ClusterFuture ... [17:27:20.447] - result already collected: FutureResult [17:27:20.447] result() for ClusterFuture ... done [17:27:20.447] receiveMessageFromWorker() for ClusterFuture ... done [17:27:20.448] result() for ClusterFuture ... done [17:27:20.448] result() for ClusterFuture ... [17:27:20.448] - result already collected: FutureResult [17:27:20.448] result() for ClusterFuture ... done [17:27:20.448] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:27:20.451] plan(): nbrOfWorkers() = 2 nbrOfWorkers: 2 [17:27:20.458] getGlobalsAndPackages() ... [17:27:20.458] [17:27:20.458] - globals: [0] [17:27:20.458] getGlobalsAndPackages() ... DONE nbrOfFreeWorkers: 2 [17:27:20.474] getGlobalsAndPackages() ... [17:27:20.475] [17:27:20.475] - globals: [0] [17:27:20.475] getGlobalsAndPackages() ... DONE nbrOfFreeWorkers(background = TRUE): 2 [17:27:20.488] plan(): Setting new future strategy stack: [17:27:20.488] List of future strategies: [17:27:20.488] 1. multisession: [17:27:20.488] - args: function (..., workers = 1L, envir = parent.frame()) [17:27:20.488] - tweaked: TRUE [17:27:20.488] - call: plan(strategy, workers = 1L) [17:27:20.489] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:27:20.489] multisession: [17:27:20.489] - args: function (..., workers = 1L, envir = parent.frame()) [17:27:20.489] - tweaked: TRUE [17:27:20.489] - call: plan(strategy, workers = 1L) [17:27:20.489] getGlobalsAndPackages() ... [17:27:20.490] Not searching for globals [17:27:20.490] - globals: [0] [17:27:20.490] getGlobalsAndPackages() ... DONE [17:27:20.491] Packages needed by the future expression (n = 0): [17:27:20.491] Packages needed by future strategies (n = 0): [17:27:20.492] { [17:27:20.492] { [17:27:20.492] { [17:27:20.492] ...future.startTime <- base::Sys.time() [17:27:20.492] { [17:27:20.492] { [17:27:20.492] { [17:27:20.492] base::local({ [17:27:20.492] has_future <- base::requireNamespace("future", [17:27:20.492] quietly = TRUE) [17:27:20.492] if (has_future) { [17:27:20.492] ns <- base::getNamespace("future") [17:27:20.492] version <- ns[[".package"]][["version"]] [17:27:20.492] if (is.null(version)) [17:27:20.492] version <- utils::packageVersion("future") [17:27:20.492] } [17:27:20.492] else { [17:27:20.492] version <- NULL [17:27:20.492] } [17:27:20.492] if (!has_future || version < "1.8.0") { [17:27:20.492] info <- base::c(r_version = base::gsub("R version ", [17:27:20.492] "", base::R.version$version.string), [17:27:20.492] platform = base::sprintf("%s (%s-bit)", [17:27:20.492] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:20.492] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:20.492] "release", "version")], collapse = " "), [17:27:20.492] hostname = base::Sys.info()[["nodename"]]) [17:27:20.492] info <- base::sprintf("%s: %s", base::names(info), [17:27:20.492] info) [17:27:20.492] info <- base::paste(info, collapse = "; ") [17:27:20.492] if (!has_future) { [17:27:20.492] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:20.492] info) [17:27:20.492] } [17:27:20.492] else { [17:27:20.492] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:20.492] info, version) [17:27:20.492] } [17:27:20.492] base::stop(msg) [17:27:20.492] } [17:27:20.492] }) [17:27:20.492] } [17:27:20.492] ...future.strategy.old <- future::plan("list") [17:27:20.492] options(future.plan = NULL) [17:27:20.492] Sys.unsetenv("R_FUTURE_PLAN") [17:27:20.492] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:20.492] } [17:27:20.492] ...future.workdir <- getwd() [17:27:20.492] } [17:27:20.492] ...future.oldOptions <- base::as.list(base::.Options) [17:27:20.492] ...future.oldEnvVars <- base::Sys.getenv() [17:27:20.492] } [17:27:20.492] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:20.492] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:20.492] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:20.492] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:20.492] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:20.492] future.stdout.windows.reencode = NULL, width = 80L) [17:27:20.492] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:20.492] base::names(...future.oldOptions)) [17:27:20.492] } [17:27:20.492] if (FALSE) { [17:27:20.492] } [17:27:20.492] else { [17:27:20.492] if (TRUE) { [17:27:20.492] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:20.492] open = "w") [17:27:20.492] } [17:27:20.492] else { [17:27:20.492] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:20.492] windows = "NUL", "/dev/null"), open = "w") [17:27:20.492] } [17:27:20.492] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:20.492] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:20.492] base::sink(type = "output", split = FALSE) [17:27:20.492] base::close(...future.stdout) [17:27:20.492] }, add = TRUE) [17:27:20.492] } [17:27:20.492] ...future.frame <- base::sys.nframe() [17:27:20.492] ...future.conditions <- base::list() [17:27:20.492] ...future.rng <- base::globalenv()$.Random.seed [17:27:20.492] if (FALSE) { [17:27:20.492] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:20.492] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:20.492] } [17:27:20.492] ...future.result <- base::tryCatch({ [17:27:20.492] base::withCallingHandlers({ [17:27:20.492] ...future.value <- base::withVisible(base::local(NA)) [17:27:20.492] future::FutureResult(value = ...future.value$value, [17:27:20.492] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:20.492] ...future.rng), globalenv = if (FALSE) [17:27:20.492] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:20.492] ...future.globalenv.names)) [17:27:20.492] else NULL, started = ...future.startTime, version = "1.8") [17:27:20.492] }, condition = base::local({ [17:27:20.492] c <- base::c [17:27:20.492] inherits <- base::inherits [17:27:20.492] invokeRestart <- base::invokeRestart [17:27:20.492] length <- base::length [17:27:20.492] list <- base::list [17:27:20.492] seq.int <- base::seq.int [17:27:20.492] signalCondition <- base::signalCondition [17:27:20.492] sys.calls <- base::sys.calls [17:27:20.492] `[[` <- base::`[[` [17:27:20.492] `+` <- base::`+` [17:27:20.492] `<<-` <- base::`<<-` [17:27:20.492] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:20.492] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:20.492] 3L)] [17:27:20.492] } [17:27:20.492] function(cond) { [17:27:20.492] is_error <- inherits(cond, "error") [17:27:20.492] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:20.492] NULL) [17:27:20.492] if (is_error) { [17:27:20.492] sessionInformation <- function() { [17:27:20.492] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:20.492] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:20.492] search = base::search(), system = base::Sys.info()) [17:27:20.492] } [17:27:20.492] ...future.conditions[[length(...future.conditions) + [17:27:20.492] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:20.492] cond$call), session = sessionInformation(), [17:27:20.492] timestamp = base::Sys.time(), signaled = 0L) [17:27:20.492] signalCondition(cond) [17:27:20.492] } [17:27:20.492] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:20.492] "immediateCondition"))) { [17:27:20.492] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:20.492] ...future.conditions[[length(...future.conditions) + [17:27:20.492] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:20.492] if (TRUE && !signal) { [17:27:20.492] muffleCondition <- function (cond, pattern = "^muffle") [17:27:20.492] { [17:27:20.492] inherits <- base::inherits [17:27:20.492] invokeRestart <- base::invokeRestart [17:27:20.492] is.null <- base::is.null [17:27:20.492] muffled <- FALSE [17:27:20.492] if (inherits(cond, "message")) { [17:27:20.492] muffled <- grepl(pattern, "muffleMessage") [17:27:20.492] if (muffled) [17:27:20.492] invokeRestart("muffleMessage") [17:27:20.492] } [17:27:20.492] else if (inherits(cond, "warning")) { [17:27:20.492] muffled <- grepl(pattern, "muffleWarning") [17:27:20.492] if (muffled) [17:27:20.492] invokeRestart("muffleWarning") [17:27:20.492] } [17:27:20.492] else if (inherits(cond, "condition")) { [17:27:20.492] if (!is.null(pattern)) { [17:27:20.492] computeRestarts <- base::computeRestarts [17:27:20.492] grepl <- base::grepl [17:27:20.492] restarts <- computeRestarts(cond) [17:27:20.492] for (restart in restarts) { [17:27:20.492] name <- restart$name [17:27:20.492] if (is.null(name)) [17:27:20.492] next [17:27:20.492] if (!grepl(pattern, name)) [17:27:20.492] next [17:27:20.492] invokeRestart(restart) [17:27:20.492] muffled <- TRUE [17:27:20.492] break [17:27:20.492] } [17:27:20.492] } [17:27:20.492] } [17:27:20.492] invisible(muffled) [17:27:20.492] } [17:27:20.492] muffleCondition(cond, pattern = "^muffle") [17:27:20.492] } [17:27:20.492] } [17:27:20.492] else { [17:27:20.492] if (TRUE) { [17:27:20.492] muffleCondition <- function (cond, pattern = "^muffle") [17:27:20.492] { [17:27:20.492] inherits <- base::inherits [17:27:20.492] invokeRestart <- base::invokeRestart [17:27:20.492] is.null <- base::is.null [17:27:20.492] muffled <- FALSE [17:27:20.492] if (inherits(cond, "message")) { [17:27:20.492] muffled <- grepl(pattern, "muffleMessage") [17:27:20.492] if (muffled) [17:27:20.492] invokeRestart("muffleMessage") [17:27:20.492] } [17:27:20.492] else if (inherits(cond, "warning")) { [17:27:20.492] muffled <- grepl(pattern, "muffleWarning") [17:27:20.492] if (muffled) [17:27:20.492] invokeRestart("muffleWarning") [17:27:20.492] } [17:27:20.492] else if (inherits(cond, "condition")) { [17:27:20.492] if (!is.null(pattern)) { [17:27:20.492] computeRestarts <- base::computeRestarts [17:27:20.492] grepl <- base::grepl [17:27:20.492] restarts <- computeRestarts(cond) [17:27:20.492] for (restart in restarts) { [17:27:20.492] name <- restart$name [17:27:20.492] if (is.null(name)) [17:27:20.492] next [17:27:20.492] if (!grepl(pattern, name)) [17:27:20.492] next [17:27:20.492] invokeRestart(restart) [17:27:20.492] muffled <- TRUE [17:27:20.492] break [17:27:20.492] } [17:27:20.492] } [17:27:20.492] } [17:27:20.492] invisible(muffled) [17:27:20.492] } [17:27:20.492] muffleCondition(cond, pattern = "^muffle") [17:27:20.492] } [17:27:20.492] } [17:27:20.492] } [17:27:20.492] })) [17:27:20.492] }, error = function(ex) { [17:27:20.492] base::structure(base::list(value = NULL, visible = NULL, [17:27:20.492] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:20.492] ...future.rng), started = ...future.startTime, [17:27:20.492] finished = Sys.time(), session_uuid = NA_character_, [17:27:20.492] version = "1.8"), class = "FutureResult") [17:27:20.492] }, finally = { [17:27:20.492] if (!identical(...future.workdir, getwd())) [17:27:20.492] setwd(...future.workdir) [17:27:20.492] { [17:27:20.492] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:20.492] ...future.oldOptions$nwarnings <- NULL [17:27:20.492] } [17:27:20.492] base::options(...future.oldOptions) [17:27:20.492] if (.Platform$OS.type == "windows") { [17:27:20.492] old_names <- names(...future.oldEnvVars) [17:27:20.492] envs <- base::Sys.getenv() [17:27:20.492] names <- names(envs) [17:27:20.492] common <- intersect(names, old_names) [17:27:20.492] added <- setdiff(names, old_names) [17:27:20.492] removed <- setdiff(old_names, names) [17:27:20.492] changed <- common[...future.oldEnvVars[common] != [17:27:20.492] envs[common]] [17:27:20.492] NAMES <- toupper(changed) [17:27:20.492] args <- list() [17:27:20.492] for (kk in seq_along(NAMES)) { [17:27:20.492] name <- changed[[kk]] [17:27:20.492] NAME <- NAMES[[kk]] [17:27:20.492] if (name != NAME && is.element(NAME, old_names)) [17:27:20.492] next [17:27:20.492] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:20.492] } [17:27:20.492] NAMES <- toupper(added) [17:27:20.492] for (kk in seq_along(NAMES)) { [17:27:20.492] name <- added[[kk]] [17:27:20.492] NAME <- NAMES[[kk]] [17:27:20.492] if (name != NAME && is.element(NAME, old_names)) [17:27:20.492] next [17:27:20.492] args[[name]] <- "" [17:27:20.492] } [17:27:20.492] NAMES <- toupper(removed) [17:27:20.492] for (kk in seq_along(NAMES)) { [17:27:20.492] name <- removed[[kk]] [17:27:20.492] NAME <- NAMES[[kk]] [17:27:20.492] if (name != NAME && is.element(NAME, old_names)) [17:27:20.492] next [17:27:20.492] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:20.492] } [17:27:20.492] if (length(args) > 0) [17:27:20.492] base::do.call(base::Sys.setenv, args = args) [17:27:20.492] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:20.492] } [17:27:20.492] else { [17:27:20.492] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:20.492] } [17:27:20.492] { [17:27:20.492] if (base::length(...future.futureOptionsAdded) > [17:27:20.492] 0L) { [17:27:20.492] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:20.492] base::names(opts) <- ...future.futureOptionsAdded [17:27:20.492] base::options(opts) [17:27:20.492] } [17:27:20.492] { [17:27:20.492] { [17:27:20.492] NULL [17:27:20.492] RNGkind("Mersenne-Twister") [17:27:20.492] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:20.492] inherits = FALSE) [17:27:20.492] } [17:27:20.492] options(future.plan = NULL) [17:27:20.492] if (is.na(NA_character_)) [17:27:20.492] Sys.unsetenv("R_FUTURE_PLAN") [17:27:20.492] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:20.492] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:20.492] .init = FALSE) [17:27:20.492] } [17:27:20.492] } [17:27:20.492] } [17:27:20.492] }) [17:27:20.492] if (TRUE) { [17:27:20.492] base::sink(type = "output", split = FALSE) [17:27:20.492] if (TRUE) { [17:27:20.492] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:20.492] } [17:27:20.492] else { [17:27:20.492] ...future.result["stdout"] <- base::list(NULL) [17:27:20.492] } [17:27:20.492] base::close(...future.stdout) [17:27:20.492] ...future.stdout <- NULL [17:27:20.492] } [17:27:20.492] ...future.result$conditions <- ...future.conditions [17:27:20.492] ...future.result$finished <- base::Sys.time() [17:27:20.492] ...future.result [17:27:20.492] } [17:27:20.496] plan(): Setting new future strategy stack: [17:27:20.496] List of future strategies: [17:27:20.496] 1. sequential: [17:27:20.496] - args: function (..., envir = parent.frame(), workers = "") [17:27:20.496] - tweaked: FALSE [17:27:20.496] - call: NULL [17:27:20.497] plan(): nbrOfWorkers() = 1 [17:27:20.499] plan(): Setting new future strategy stack: [17:27:20.500] List of future strategies: [17:27:20.500] 1. multisession: [17:27:20.500] - args: function (..., workers = 1L, envir = parent.frame()) [17:27:20.500] - tweaked: TRUE [17:27:20.500] - call: plan(strategy, workers = 1L) [17:27:20.500] plan(): nbrOfWorkers() = 1 [17:27:20.501] SequentialFuture started (and completed) [17:27:20.501] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:27:20.502] plan(): nbrOfWorkers() = 1 nbrOfWorkers: 1 [17:27:20.502] getGlobalsAndPackages() ... [17:27:20.502] Searching for globals... [17:27:20.505] [17:27:20.505] Searching for globals ... DONE [17:27:20.506] - globals: [0] [17:27:20.506] getGlobalsAndPackages() ... DONE nbrOfFreeWorkers: 1 [17:27:20.506] getGlobalsAndPackages() ... [17:27:20.507] Searching for globals... [17:27:20.507] [17:27:20.507] Searching for globals ... DONE [17:27:20.508] - globals: [0] [17:27:20.508] getGlobalsAndPackages() ... DONE nbrOfFreeWorkers(background = TRUE): 0 [17:27:20.509] plan(): Setting new future strategy stack: [17:27:20.509] List of future strategies: [17:27:20.509] 1. multisession: [17:27:20.509] - args: function (..., workers = "", envir = parent.frame()) [17:27:20.509] - tweaked: TRUE [17:27:20.509] - call: plan(strategy, workers = allButOneCore) [17:27:20.510] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:27:20.510] multisession: [17:27:20.510] - args: function (..., workers = "", envir = parent.frame()) [17:27:20.510] - tweaked: TRUE [17:27:20.510] - call: plan(strategy, workers = allButOneCore) [17:27:20.513] getGlobalsAndPackages() ... [17:27:20.513] Not searching for globals [17:27:20.513] - globals: [0] [17:27:20.514] getGlobalsAndPackages() ... DONE [17:27:20.514] Packages needed by the future expression (n = 0): [17:27:20.514] Packages needed by future strategies (n = 0): [17:27:20.515] { [17:27:20.515] { [17:27:20.515] { [17:27:20.515] ...future.startTime <- base::Sys.time() [17:27:20.515] { [17:27:20.515] { [17:27:20.515] { [17:27:20.515] base::local({ [17:27:20.515] has_future <- base::requireNamespace("future", [17:27:20.515] quietly = TRUE) [17:27:20.515] if (has_future) { [17:27:20.515] ns <- base::getNamespace("future") [17:27:20.515] version <- ns[[".package"]][["version"]] [17:27:20.515] if (is.null(version)) [17:27:20.515] version <- utils::packageVersion("future") [17:27:20.515] } [17:27:20.515] else { [17:27:20.515] version <- NULL [17:27:20.515] } [17:27:20.515] if (!has_future || version < "1.8.0") { [17:27:20.515] info <- base::c(r_version = base::gsub("R version ", [17:27:20.515] "", base::R.version$version.string), [17:27:20.515] platform = base::sprintf("%s (%s-bit)", [17:27:20.515] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:20.515] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:20.515] "release", "version")], collapse = " "), [17:27:20.515] hostname = base::Sys.info()[["nodename"]]) [17:27:20.515] info <- base::sprintf("%s: %s", base::names(info), [17:27:20.515] info) [17:27:20.515] info <- base::paste(info, collapse = "; ") [17:27:20.515] if (!has_future) { [17:27:20.515] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:20.515] info) [17:27:20.515] } [17:27:20.515] else { [17:27:20.515] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:20.515] info, version) [17:27:20.515] } [17:27:20.515] base::stop(msg) [17:27:20.515] } [17:27:20.515] }) [17:27:20.515] } [17:27:20.515] ...future.strategy.old <- future::plan("list") [17:27:20.515] options(future.plan = NULL) [17:27:20.515] Sys.unsetenv("R_FUTURE_PLAN") [17:27:20.515] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:20.515] } [17:27:20.515] ...future.workdir <- getwd() [17:27:20.515] } [17:27:20.515] ...future.oldOptions <- base::as.list(base::.Options) [17:27:20.515] ...future.oldEnvVars <- base::Sys.getenv() [17:27:20.515] } [17:27:20.515] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:20.515] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:20.515] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:20.515] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:20.515] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:20.515] future.stdout.windows.reencode = NULL, width = 80L) [17:27:20.515] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:20.515] base::names(...future.oldOptions)) [17:27:20.515] } [17:27:20.515] if (FALSE) { [17:27:20.515] } [17:27:20.515] else { [17:27:20.515] if (TRUE) { [17:27:20.515] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:20.515] open = "w") [17:27:20.515] } [17:27:20.515] else { [17:27:20.515] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:20.515] windows = "NUL", "/dev/null"), open = "w") [17:27:20.515] } [17:27:20.515] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:20.515] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:20.515] base::sink(type = "output", split = FALSE) [17:27:20.515] base::close(...future.stdout) [17:27:20.515] }, add = TRUE) [17:27:20.515] } [17:27:20.515] ...future.frame <- base::sys.nframe() [17:27:20.515] ...future.conditions <- base::list() [17:27:20.515] ...future.rng <- base::globalenv()$.Random.seed [17:27:20.515] if (FALSE) { [17:27:20.515] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:20.515] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:20.515] } [17:27:20.515] ...future.result <- base::tryCatch({ [17:27:20.515] base::withCallingHandlers({ [17:27:20.515] ...future.value <- base::withVisible(base::local(NA)) [17:27:20.515] future::FutureResult(value = ...future.value$value, [17:27:20.515] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:20.515] ...future.rng), globalenv = if (FALSE) [17:27:20.515] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:20.515] ...future.globalenv.names)) [17:27:20.515] else NULL, started = ...future.startTime, version = "1.8") [17:27:20.515] }, condition = base::local({ [17:27:20.515] c <- base::c [17:27:20.515] inherits <- base::inherits [17:27:20.515] invokeRestart <- base::invokeRestart [17:27:20.515] length <- base::length [17:27:20.515] list <- base::list [17:27:20.515] seq.int <- base::seq.int [17:27:20.515] signalCondition <- base::signalCondition [17:27:20.515] sys.calls <- base::sys.calls [17:27:20.515] `[[` <- base::`[[` [17:27:20.515] `+` <- base::`+` [17:27:20.515] `<<-` <- base::`<<-` [17:27:20.515] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:20.515] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:20.515] 3L)] [17:27:20.515] } [17:27:20.515] function(cond) { [17:27:20.515] is_error <- inherits(cond, "error") [17:27:20.515] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:20.515] NULL) [17:27:20.515] if (is_error) { [17:27:20.515] sessionInformation <- function() { [17:27:20.515] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:20.515] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:20.515] search = base::search(), system = base::Sys.info()) [17:27:20.515] } [17:27:20.515] ...future.conditions[[length(...future.conditions) + [17:27:20.515] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:20.515] cond$call), session = sessionInformation(), [17:27:20.515] timestamp = base::Sys.time(), signaled = 0L) [17:27:20.515] signalCondition(cond) [17:27:20.515] } [17:27:20.515] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:20.515] "immediateCondition"))) { [17:27:20.515] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:20.515] ...future.conditions[[length(...future.conditions) + [17:27:20.515] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:20.515] if (TRUE && !signal) { [17:27:20.515] muffleCondition <- function (cond, pattern = "^muffle") [17:27:20.515] { [17:27:20.515] inherits <- base::inherits [17:27:20.515] invokeRestart <- base::invokeRestart [17:27:20.515] is.null <- base::is.null [17:27:20.515] muffled <- FALSE [17:27:20.515] if (inherits(cond, "message")) { [17:27:20.515] muffled <- grepl(pattern, "muffleMessage") [17:27:20.515] if (muffled) [17:27:20.515] invokeRestart("muffleMessage") [17:27:20.515] } [17:27:20.515] else if (inherits(cond, "warning")) { [17:27:20.515] muffled <- grepl(pattern, "muffleWarning") [17:27:20.515] if (muffled) [17:27:20.515] invokeRestart("muffleWarning") [17:27:20.515] } [17:27:20.515] else if (inherits(cond, "condition")) { [17:27:20.515] if (!is.null(pattern)) { [17:27:20.515] computeRestarts <- base::computeRestarts [17:27:20.515] grepl <- base::grepl [17:27:20.515] restarts <- computeRestarts(cond) [17:27:20.515] for (restart in restarts) { [17:27:20.515] name <- restart$name [17:27:20.515] if (is.null(name)) [17:27:20.515] next [17:27:20.515] if (!grepl(pattern, name)) [17:27:20.515] next [17:27:20.515] invokeRestart(restart) [17:27:20.515] muffled <- TRUE [17:27:20.515] break [17:27:20.515] } [17:27:20.515] } [17:27:20.515] } [17:27:20.515] invisible(muffled) [17:27:20.515] } [17:27:20.515] muffleCondition(cond, pattern = "^muffle") [17:27:20.515] } [17:27:20.515] } [17:27:20.515] else { [17:27:20.515] if (TRUE) { [17:27:20.515] muffleCondition <- function (cond, pattern = "^muffle") [17:27:20.515] { [17:27:20.515] inherits <- base::inherits [17:27:20.515] invokeRestart <- base::invokeRestart [17:27:20.515] is.null <- base::is.null [17:27:20.515] muffled <- FALSE [17:27:20.515] if (inherits(cond, "message")) { [17:27:20.515] muffled <- grepl(pattern, "muffleMessage") [17:27:20.515] if (muffled) [17:27:20.515] invokeRestart("muffleMessage") [17:27:20.515] } [17:27:20.515] else if (inherits(cond, "warning")) { [17:27:20.515] muffled <- grepl(pattern, "muffleWarning") [17:27:20.515] if (muffled) [17:27:20.515] invokeRestart("muffleWarning") [17:27:20.515] } [17:27:20.515] else if (inherits(cond, "condition")) { [17:27:20.515] if (!is.null(pattern)) { [17:27:20.515] computeRestarts <- base::computeRestarts [17:27:20.515] grepl <- base::grepl [17:27:20.515] restarts <- computeRestarts(cond) [17:27:20.515] for (restart in restarts) { [17:27:20.515] name <- restart$name [17:27:20.515] if (is.null(name)) [17:27:20.515] next [17:27:20.515] if (!grepl(pattern, name)) [17:27:20.515] next [17:27:20.515] invokeRestart(restart) [17:27:20.515] muffled <- TRUE [17:27:20.515] break [17:27:20.515] } [17:27:20.515] } [17:27:20.515] } [17:27:20.515] invisible(muffled) [17:27:20.515] } [17:27:20.515] muffleCondition(cond, pattern = "^muffle") [17:27:20.515] } [17:27:20.515] } [17:27:20.515] } [17:27:20.515] })) [17:27:20.515] }, error = function(ex) { [17:27:20.515] base::structure(base::list(value = NULL, visible = NULL, [17:27:20.515] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:20.515] ...future.rng), started = ...future.startTime, [17:27:20.515] finished = Sys.time(), session_uuid = NA_character_, [17:27:20.515] version = "1.8"), class = "FutureResult") [17:27:20.515] }, finally = { [17:27:20.515] if (!identical(...future.workdir, getwd())) [17:27:20.515] setwd(...future.workdir) [17:27:20.515] { [17:27:20.515] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:20.515] ...future.oldOptions$nwarnings <- NULL [17:27:20.515] } [17:27:20.515] base::options(...future.oldOptions) [17:27:20.515] if (.Platform$OS.type == "windows") { [17:27:20.515] old_names <- names(...future.oldEnvVars) [17:27:20.515] envs <- base::Sys.getenv() [17:27:20.515] names <- names(envs) [17:27:20.515] common <- intersect(names, old_names) [17:27:20.515] added <- setdiff(names, old_names) [17:27:20.515] removed <- setdiff(old_names, names) [17:27:20.515] changed <- common[...future.oldEnvVars[common] != [17:27:20.515] envs[common]] [17:27:20.515] NAMES <- toupper(changed) [17:27:20.515] args <- list() [17:27:20.515] for (kk in seq_along(NAMES)) { [17:27:20.515] name <- changed[[kk]] [17:27:20.515] NAME <- NAMES[[kk]] [17:27:20.515] if (name != NAME && is.element(NAME, old_names)) [17:27:20.515] next [17:27:20.515] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:20.515] } [17:27:20.515] NAMES <- toupper(added) [17:27:20.515] for (kk in seq_along(NAMES)) { [17:27:20.515] name <- added[[kk]] [17:27:20.515] NAME <- NAMES[[kk]] [17:27:20.515] if (name != NAME && is.element(NAME, old_names)) [17:27:20.515] next [17:27:20.515] args[[name]] <- "" [17:27:20.515] } [17:27:20.515] NAMES <- toupper(removed) [17:27:20.515] for (kk in seq_along(NAMES)) { [17:27:20.515] name <- removed[[kk]] [17:27:20.515] NAME <- NAMES[[kk]] [17:27:20.515] if (name != NAME && is.element(NAME, old_names)) [17:27:20.515] next [17:27:20.515] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:20.515] } [17:27:20.515] if (length(args) > 0) [17:27:20.515] base::do.call(base::Sys.setenv, args = args) [17:27:20.515] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:20.515] } [17:27:20.515] else { [17:27:20.515] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:20.515] } [17:27:20.515] { [17:27:20.515] if (base::length(...future.futureOptionsAdded) > [17:27:20.515] 0L) { [17:27:20.515] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:20.515] base::names(opts) <- ...future.futureOptionsAdded [17:27:20.515] base::options(opts) [17:27:20.515] } [17:27:20.515] { [17:27:20.515] { [17:27:20.515] NULL [17:27:20.515] RNGkind("Mersenne-Twister") [17:27:20.515] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:20.515] inherits = FALSE) [17:27:20.515] } [17:27:20.515] options(future.plan = NULL) [17:27:20.515] if (is.na(NA_character_)) [17:27:20.515] Sys.unsetenv("R_FUTURE_PLAN") [17:27:20.515] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:20.515] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:20.515] .init = FALSE) [17:27:20.515] } [17:27:20.515] } [17:27:20.515] } [17:27:20.515] }) [17:27:20.515] if (TRUE) { [17:27:20.515] base::sink(type = "output", split = FALSE) [17:27:20.515] if (TRUE) { [17:27:20.515] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:20.515] } [17:27:20.515] else { [17:27:20.515] ...future.result["stdout"] <- base::list(NULL) [17:27:20.515] } [17:27:20.515] base::close(...future.stdout) [17:27:20.515] ...future.stdout <- NULL [17:27:20.515] } [17:27:20.515] ...future.result$conditions <- ...future.conditions [17:27:20.515] ...future.result$finished <- base::Sys.time() [17:27:20.515] ...future.result [17:27:20.515] } [17:27:20.519] plan(): Setting new future strategy stack: [17:27:20.519] List of future strategies: [17:27:20.519] 1. sequential: [17:27:20.519] - args: function (..., envir = parent.frame(), workers = "") [17:27:20.519] - tweaked: FALSE [17:27:20.519] - call: NULL [17:27:20.520] plan(): nbrOfWorkers() = 1 [17:27:20.524] plan(): Setting new future strategy stack: [17:27:20.524] List of future strategies: [17:27:20.524] 1. multisession: [17:27:20.524] - args: function (..., workers = "", envir = parent.frame()) [17:27:20.524] - tweaked: TRUE [17:27:20.524] - call: plan(strategy, workers = allButOneCore) [17:27:20.528] plan(): nbrOfWorkers() = 1 [17:27:20.528] SequentialFuture started (and completed) [17:27:20.529] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:27:20.531] plan(): nbrOfWorkers() = 1 nbrOfWorkers: 1 [17:27:20.537] getGlobalsAndPackages() ... [17:27:20.537] Searching for globals... [17:27:20.537] [17:27:20.538] Searching for globals ... DONE [17:27:20.538] - globals: [0] [17:27:20.538] getGlobalsAndPackages() ... DONE nbrOfFreeWorkers: 1 [17:27:20.542] getGlobalsAndPackages() ... [17:27:20.542] Searching for globals... [17:27:20.543] [17:27:20.543] Searching for globals ... DONE [17:27:20.543] - globals: [0] [17:27:20.543] getGlobalsAndPackages() ... DONE nbrOfFreeWorkers(background = TRUE): 0 > > > message("Type of future: cluster") Type of future: cluster > workers <- rep("localhost", times = 2L) > plan(cluster, workers = workers) [17:27:20.544] plan(): Setting new future strategy stack: [17:27:20.544] List of future strategies: [17:27:20.544] 1. cluster: [17:27:20.544] - args: function (..., workers = c("localhost", "localhost"), envir = parent.frame()) [17:27:20.544] - tweaked: TRUE [17:27:20.544] - call: plan(cluster, workers = workers) [17:27:20.545] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... [17:27:20.545] cluster: [17:27:20.545] - args: function (..., workers = c("localhost", "localhost"), envir = parent.frame()) [17:27:20.545] - tweaked: TRUE [17:27:20.545] - call: plan(cluster, workers = workers) [17:27:20.545] getGlobalsAndPackages() ... [17:27:20.545] Not searching for globals [17:27:20.546] - globals: [0] [17:27:20.546] getGlobalsAndPackages() ... DONE [17:27:20.547] [local output] makeClusterPSOCK() ... [17:27:20.547] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:27:20.550] [local output] Base port: 29683 [17:27:20.550] [local output] Getting setup options for 2 cluster nodes ... [17:27:20.550] [local output] - Node 1 of 2 ... [17:27:20.550] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:20.552] [local output] Rscript port: 29683 [17:27:20.552] [local output] - Node 2 of 2 ... [17:27:20.553] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:20.554] [local output] Rscript port: 29683 [17:27:20.554] [local output] Getting setup options for 2 cluster nodes ... done [17:27:20.554] [local output] - Parallel setup requested for some PSOCK nodes [17:27:20.555] [local output] Setting up PSOCK nodes in parallel [17:27:20.555] List of 36 [17:27:20.555] $ worker : chr "localhost" [17:27:20.555] ..- attr(*, "localhost")= logi TRUE [17:27:20.555] $ master : chr "localhost" [17:27:20.555] $ port : int 29683 [17:27:20.555] $ connectTimeout : num 120 [17:27:20.555] $ timeout : num 120 [17:27:20.555] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:27:20.555] $ homogeneous : logi TRUE [17:27:20.555] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=nbrOfWorkers.R:12520:CRANWIN3:CR"| __truncated__ [17:27:20.555] $ rscript_envs : NULL [17:27:20.555] $ rscript_libs : NULL [17:27:20.555] $ rscript_startup : NULL [17:27:20.555] $ rscript_sh : chr "cmd" [17:27:20.555] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:20.555] $ methods : logi TRUE [17:27:20.555] $ socketOptions : chr "no-delay" [17:27:20.555] $ useXDR : logi FALSE [17:27:20.555] $ outfile : chr "/dev/null" [17:27:20.555] $ renice : int NA [17:27:20.555] $ rshcmd : NULL [17:27:20.555] $ user : chr(0) [17:27:20.555] $ revtunnel : logi FALSE [17:27:20.555] $ rshlogfile : NULL [17:27:20.555] $ rshopts : chr(0) [17:27:20.555] $ rank : int 1 [17:27:20.555] $ manual : logi FALSE [17:27:20.555] $ dryrun : logi FALSE [17:27:20.555] $ quiet : logi FALSE [17:27:20.555] $ setup_strategy : chr "parallel" [17:27:20.555] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:20.555] $ pidfile : chr "D:/temp/RtmpuMG48r/worker.rank=1.parallelly.parent=12520.30e82e4d3bb4.pid" [17:27:20.555] $ rshcmd_label : NULL [17:27:20.555] $ rsh_call : NULL [17:27:20.555] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:20.555] $ localMachine : logi TRUE [17:27:20.555] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:27:20.555] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:27:20.555] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:27:20.555] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:27:20.555] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:27:20.555] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:27:20.555] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:27:20.555] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:27:20.555] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:27:20.555] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:27:20.555] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:27:20.555] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:27:20.555] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:27:20.555] $ arguments :List of 28 [17:27:20.555] ..$ worker : chr "localhost" [17:27:20.555] ..$ master : NULL [17:27:20.555] ..$ port : int 29683 [17:27:20.555] ..$ connectTimeout : num 120 [17:27:20.555] ..$ timeout : num 120 [17:27:20.555] ..$ rscript : NULL [17:27:20.555] ..$ homogeneous : NULL [17:27:20.555] ..$ rscript_args : NULL [17:27:20.555] ..$ rscript_envs : NULL [17:27:20.555] ..$ rscript_libs : NULL [17:27:20.555] ..$ rscript_startup : NULL [17:27:20.555] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:27:20.555] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:20.555] ..$ methods : logi TRUE [17:27:20.555] ..$ socketOptions : chr "no-delay" [17:27:20.555] ..$ useXDR : logi FALSE [17:27:20.555] ..$ outfile : chr "/dev/null" [17:27:20.555] ..$ renice : int NA [17:27:20.555] ..$ rshcmd : NULL [17:27:20.555] ..$ user : NULL [17:27:20.555] ..$ revtunnel : logi NA [17:27:20.555] ..$ rshlogfile : NULL [17:27:20.555] ..$ rshopts : NULL [17:27:20.555] ..$ rank : int 1 [17:27:20.555] ..$ manual : logi FALSE [17:27:20.555] ..$ dryrun : logi FALSE [17:27:20.555] ..$ quiet : logi FALSE [17:27:20.555] ..$ setup_strategy : chr "parallel" [17:27:20.555] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:27:20.576] [local output] System call to launch all workers: [17:27:20.576] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=nbrOfWorkers.R:12520:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpuMG48r/worker.rank=1.parallelly.parent=12520.30e82e4d3bb4.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=29683 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:27:20.576] [local output] Starting PSOCK main server [17:27:20.582] [local output] Workers launched [17:27:20.582] [local output] Waiting for workers to connect back [17:27:20.582] - [local output] 0 workers out of 2 ready [17:27:20.741] - [local output] 0 workers out of 2 ready [17:27:20.741] - [local output] 1 workers out of 2 ready [17:27:20.746] - [local output] 1 workers out of 2 ready [17:27:20.746] - [local output] 2 workers out of 2 ready [17:27:20.746] [local output] Launching of workers completed [17:27:20.747] [local output] Collecting session information from workers [17:27:20.747] [local output] - Worker #1 of 2 [17:27:20.748] [local output] - Worker #2 of 2 [17:27:20.748] [local output] makeClusterPSOCK() ... done [17:27:20.760] Packages needed by the future expression (n = 0): [17:27:20.760] Packages needed by future strategies (n = 0): [17:27:20.761] { [17:27:20.761] { [17:27:20.761] { [17:27:20.761] ...future.startTime <- base::Sys.time() [17:27:20.761] { [17:27:20.761] { [17:27:20.761] { [17:27:20.761] base::local({ [17:27:20.761] has_future <- base::requireNamespace("future", [17:27:20.761] quietly = TRUE) [17:27:20.761] if (has_future) { [17:27:20.761] ns <- base::getNamespace("future") [17:27:20.761] version <- ns[[".package"]][["version"]] [17:27:20.761] if (is.null(version)) [17:27:20.761] version <- utils::packageVersion("future") [17:27:20.761] } [17:27:20.761] else { [17:27:20.761] version <- NULL [17:27:20.761] } [17:27:20.761] if (!has_future || version < "1.8.0") { [17:27:20.761] info <- base::c(r_version = base::gsub("R version ", [17:27:20.761] "", base::R.version$version.string), [17:27:20.761] platform = base::sprintf("%s (%s-bit)", [17:27:20.761] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:20.761] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:20.761] "release", "version")], collapse = " "), [17:27:20.761] hostname = base::Sys.info()[["nodename"]]) [17:27:20.761] info <- base::sprintf("%s: %s", base::names(info), [17:27:20.761] info) [17:27:20.761] info <- base::paste(info, collapse = "; ") [17:27:20.761] if (!has_future) { [17:27:20.761] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:20.761] info) [17:27:20.761] } [17:27:20.761] else { [17:27:20.761] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:20.761] info, version) [17:27:20.761] } [17:27:20.761] base::stop(msg) [17:27:20.761] } [17:27:20.761] }) [17:27:20.761] } [17:27:20.761] ...future.strategy.old <- future::plan("list") [17:27:20.761] options(future.plan = NULL) [17:27:20.761] Sys.unsetenv("R_FUTURE_PLAN") [17:27:20.761] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:20.761] } [17:27:20.761] ...future.workdir <- getwd() [17:27:20.761] } [17:27:20.761] ...future.oldOptions <- base::as.list(base::.Options) [17:27:20.761] ...future.oldEnvVars <- base::Sys.getenv() [17:27:20.761] } [17:27:20.761] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:20.761] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:20.761] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:20.761] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:20.761] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:20.761] future.stdout.windows.reencode = NULL, width = 80L) [17:27:20.761] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:20.761] base::names(...future.oldOptions)) [17:27:20.761] } [17:27:20.761] if (FALSE) { [17:27:20.761] } [17:27:20.761] else { [17:27:20.761] if (TRUE) { [17:27:20.761] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:20.761] open = "w") [17:27:20.761] } [17:27:20.761] else { [17:27:20.761] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:20.761] windows = "NUL", "/dev/null"), open = "w") [17:27:20.761] } [17:27:20.761] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:20.761] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:20.761] base::sink(type = "output", split = FALSE) [17:27:20.761] base::close(...future.stdout) [17:27:20.761] }, add = TRUE) [17:27:20.761] } [17:27:20.761] ...future.frame <- base::sys.nframe() [17:27:20.761] ...future.conditions <- base::list() [17:27:20.761] ...future.rng <- base::globalenv()$.Random.seed [17:27:20.761] if (FALSE) { [17:27:20.761] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:20.761] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:20.761] } [17:27:20.761] ...future.result <- base::tryCatch({ [17:27:20.761] base::withCallingHandlers({ [17:27:20.761] ...future.value <- base::withVisible(base::local({ [17:27:20.761] ...future.makeSendCondition <- base::local({ [17:27:20.761] sendCondition <- NULL [17:27:20.761] function(frame = 1L) { [17:27:20.761] if (is.function(sendCondition)) [17:27:20.761] return(sendCondition) [17:27:20.761] ns <- getNamespace("parallel") [17:27:20.761] if (exists("sendData", mode = "function", [17:27:20.761] envir = ns)) { [17:27:20.761] parallel_sendData <- get("sendData", mode = "function", [17:27:20.761] envir = ns) [17:27:20.761] envir <- sys.frame(frame) [17:27:20.761] master <- NULL [17:27:20.761] while (!identical(envir, .GlobalEnv) && [17:27:20.761] !identical(envir, emptyenv())) { [17:27:20.761] if (exists("master", mode = "list", envir = envir, [17:27:20.761] inherits = FALSE)) { [17:27:20.761] master <- get("master", mode = "list", [17:27:20.761] envir = envir, inherits = FALSE) [17:27:20.761] if (inherits(master, c("SOCKnode", [17:27:20.761] "SOCK0node"))) { [17:27:20.761] sendCondition <<- function(cond) { [17:27:20.761] data <- list(type = "VALUE", value = cond, [17:27:20.761] success = TRUE) [17:27:20.761] parallel_sendData(master, data) [17:27:20.761] } [17:27:20.761] return(sendCondition) [17:27:20.761] } [17:27:20.761] } [17:27:20.761] frame <- frame + 1L [17:27:20.761] envir <- sys.frame(frame) [17:27:20.761] } [17:27:20.761] } [17:27:20.761] sendCondition <<- function(cond) NULL [17:27:20.761] } [17:27:20.761] }) [17:27:20.761] withCallingHandlers({ [17:27:20.761] NA [17:27:20.761] }, immediateCondition = function(cond) { [17:27:20.761] sendCondition <- ...future.makeSendCondition() [17:27:20.761] sendCondition(cond) [17:27:20.761] muffleCondition <- function (cond, pattern = "^muffle") [17:27:20.761] { [17:27:20.761] inherits <- base::inherits [17:27:20.761] invokeRestart <- base::invokeRestart [17:27:20.761] is.null <- base::is.null [17:27:20.761] muffled <- FALSE [17:27:20.761] if (inherits(cond, "message")) { [17:27:20.761] muffled <- grepl(pattern, "muffleMessage") [17:27:20.761] if (muffled) [17:27:20.761] invokeRestart("muffleMessage") [17:27:20.761] } [17:27:20.761] else if (inherits(cond, "warning")) { [17:27:20.761] muffled <- grepl(pattern, "muffleWarning") [17:27:20.761] if (muffled) [17:27:20.761] invokeRestart("muffleWarning") [17:27:20.761] } [17:27:20.761] else if (inherits(cond, "condition")) { [17:27:20.761] if (!is.null(pattern)) { [17:27:20.761] computeRestarts <- base::computeRestarts [17:27:20.761] grepl <- base::grepl [17:27:20.761] restarts <- computeRestarts(cond) [17:27:20.761] for (restart in restarts) { [17:27:20.761] name <- restart$name [17:27:20.761] if (is.null(name)) [17:27:20.761] next [17:27:20.761] if (!grepl(pattern, name)) [17:27:20.761] next [17:27:20.761] invokeRestart(restart) [17:27:20.761] muffled <- TRUE [17:27:20.761] break [17:27:20.761] } [17:27:20.761] } [17:27:20.761] } [17:27:20.761] invisible(muffled) [17:27:20.761] } [17:27:20.761] muffleCondition(cond) [17:27:20.761] }) [17:27:20.761] })) [17:27:20.761] future::FutureResult(value = ...future.value$value, [17:27:20.761] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:20.761] ...future.rng), globalenv = if (FALSE) [17:27:20.761] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:20.761] ...future.globalenv.names)) [17:27:20.761] else NULL, started = ...future.startTime, version = "1.8") [17:27:20.761] }, condition = base::local({ [17:27:20.761] c <- base::c [17:27:20.761] inherits <- base::inherits [17:27:20.761] invokeRestart <- base::invokeRestart [17:27:20.761] length <- base::length [17:27:20.761] list <- base::list [17:27:20.761] seq.int <- base::seq.int [17:27:20.761] signalCondition <- base::signalCondition [17:27:20.761] sys.calls <- base::sys.calls [17:27:20.761] `[[` <- base::`[[` [17:27:20.761] `+` <- base::`+` [17:27:20.761] `<<-` <- base::`<<-` [17:27:20.761] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:20.761] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:20.761] 3L)] [17:27:20.761] } [17:27:20.761] function(cond) { [17:27:20.761] is_error <- inherits(cond, "error") [17:27:20.761] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:20.761] NULL) [17:27:20.761] if (is_error) { [17:27:20.761] sessionInformation <- function() { [17:27:20.761] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:20.761] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:20.761] search = base::search(), system = base::Sys.info()) [17:27:20.761] } [17:27:20.761] ...future.conditions[[length(...future.conditions) + [17:27:20.761] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:20.761] cond$call), session = sessionInformation(), [17:27:20.761] timestamp = base::Sys.time(), signaled = 0L) [17:27:20.761] signalCondition(cond) [17:27:20.761] } [17:27:20.761] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:20.761] "immediateCondition"))) { [17:27:20.761] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:20.761] ...future.conditions[[length(...future.conditions) + [17:27:20.761] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:20.761] if (TRUE && !signal) { [17:27:20.761] muffleCondition <- function (cond, pattern = "^muffle") [17:27:20.761] { [17:27:20.761] inherits <- base::inherits [17:27:20.761] invokeRestart <- base::invokeRestart [17:27:20.761] is.null <- base::is.null [17:27:20.761] muffled <- FALSE [17:27:20.761] if (inherits(cond, "message")) { [17:27:20.761] muffled <- grepl(pattern, "muffleMessage") [17:27:20.761] if (muffled) [17:27:20.761] invokeRestart("muffleMessage") [17:27:20.761] } [17:27:20.761] else if (inherits(cond, "warning")) { [17:27:20.761] muffled <- grepl(pattern, "muffleWarning") [17:27:20.761] if (muffled) [17:27:20.761] invokeRestart("muffleWarning") [17:27:20.761] } [17:27:20.761] else if (inherits(cond, "condition")) { [17:27:20.761] if (!is.null(pattern)) { [17:27:20.761] computeRestarts <- base::computeRestarts [17:27:20.761] grepl <- base::grepl [17:27:20.761] restarts <- computeRestarts(cond) [17:27:20.761] for (restart in restarts) { [17:27:20.761] name <- restart$name [17:27:20.761] if (is.null(name)) [17:27:20.761] next [17:27:20.761] if (!grepl(pattern, name)) [17:27:20.761] next [17:27:20.761] invokeRestart(restart) [17:27:20.761] muffled <- TRUE [17:27:20.761] break [17:27:20.761] } [17:27:20.761] } [17:27:20.761] } [17:27:20.761] invisible(muffled) [17:27:20.761] } [17:27:20.761] muffleCondition(cond, pattern = "^muffle") [17:27:20.761] } [17:27:20.761] } [17:27:20.761] else { [17:27:20.761] if (TRUE) { [17:27:20.761] muffleCondition <- function (cond, pattern = "^muffle") [17:27:20.761] { [17:27:20.761] inherits <- base::inherits [17:27:20.761] invokeRestart <- base::invokeRestart [17:27:20.761] is.null <- base::is.null [17:27:20.761] muffled <- FALSE [17:27:20.761] if (inherits(cond, "message")) { [17:27:20.761] muffled <- grepl(pattern, "muffleMessage") [17:27:20.761] if (muffled) [17:27:20.761] invokeRestart("muffleMessage") [17:27:20.761] } [17:27:20.761] else if (inherits(cond, "warning")) { [17:27:20.761] muffled <- grepl(pattern, "muffleWarning") [17:27:20.761] if (muffled) [17:27:20.761] invokeRestart("muffleWarning") [17:27:20.761] } [17:27:20.761] else if (inherits(cond, "condition")) { [17:27:20.761] if (!is.null(pattern)) { [17:27:20.761] computeRestarts <- base::computeRestarts [17:27:20.761] grepl <- base::grepl [17:27:20.761] restarts <- computeRestarts(cond) [17:27:20.761] for (restart in restarts) { [17:27:20.761] name <- restart$name [17:27:20.761] if (is.null(name)) [17:27:20.761] next [17:27:20.761] if (!grepl(pattern, name)) [17:27:20.761] next [17:27:20.761] invokeRestart(restart) [17:27:20.761] muffled <- TRUE [17:27:20.761] break [17:27:20.761] } [17:27:20.761] } [17:27:20.761] } [17:27:20.761] invisible(muffled) [17:27:20.761] } [17:27:20.761] muffleCondition(cond, pattern = "^muffle") [17:27:20.761] } [17:27:20.761] } [17:27:20.761] } [17:27:20.761] })) [17:27:20.761] }, error = function(ex) { [17:27:20.761] base::structure(base::list(value = NULL, visible = NULL, [17:27:20.761] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:20.761] ...future.rng), started = ...future.startTime, [17:27:20.761] finished = Sys.time(), session_uuid = NA_character_, [17:27:20.761] version = "1.8"), class = "FutureResult") [17:27:20.761] }, finally = { [17:27:20.761] if (!identical(...future.workdir, getwd())) [17:27:20.761] setwd(...future.workdir) [17:27:20.761] { [17:27:20.761] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:20.761] ...future.oldOptions$nwarnings <- NULL [17:27:20.761] } [17:27:20.761] base::options(...future.oldOptions) [17:27:20.761] if (.Platform$OS.type == "windows") { [17:27:20.761] old_names <- names(...future.oldEnvVars) [17:27:20.761] envs <- base::Sys.getenv() [17:27:20.761] names <- names(envs) [17:27:20.761] common <- intersect(names, old_names) [17:27:20.761] added <- setdiff(names, old_names) [17:27:20.761] removed <- setdiff(old_names, names) [17:27:20.761] changed <- common[...future.oldEnvVars[common] != [17:27:20.761] envs[common]] [17:27:20.761] NAMES <- toupper(changed) [17:27:20.761] args <- list() [17:27:20.761] for (kk in seq_along(NAMES)) { [17:27:20.761] name <- changed[[kk]] [17:27:20.761] NAME <- NAMES[[kk]] [17:27:20.761] if (name != NAME && is.element(NAME, old_names)) [17:27:20.761] next [17:27:20.761] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:20.761] } [17:27:20.761] NAMES <- toupper(added) [17:27:20.761] for (kk in seq_along(NAMES)) { [17:27:20.761] name <- added[[kk]] [17:27:20.761] NAME <- NAMES[[kk]] [17:27:20.761] if (name != NAME && is.element(NAME, old_names)) [17:27:20.761] next [17:27:20.761] args[[name]] <- "" [17:27:20.761] } [17:27:20.761] NAMES <- toupper(removed) [17:27:20.761] for (kk in seq_along(NAMES)) { [17:27:20.761] name <- removed[[kk]] [17:27:20.761] NAME <- NAMES[[kk]] [17:27:20.761] if (name != NAME && is.element(NAME, old_names)) [17:27:20.761] next [17:27:20.761] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:20.761] } [17:27:20.761] if (length(args) > 0) [17:27:20.761] base::do.call(base::Sys.setenv, args = args) [17:27:20.761] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:20.761] } [17:27:20.761] else { [17:27:20.761] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:20.761] } [17:27:20.761] { [17:27:20.761] if (base::length(...future.futureOptionsAdded) > [17:27:20.761] 0L) { [17:27:20.761] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:20.761] base::names(opts) <- ...future.futureOptionsAdded [17:27:20.761] base::options(opts) [17:27:20.761] } [17:27:20.761] { [17:27:20.761] NULL [17:27:20.761] options(future.plan = NULL) [17:27:20.761] if (is.na(NA_character_)) [17:27:20.761] Sys.unsetenv("R_FUTURE_PLAN") [17:27:20.761] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:20.761] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:20.761] .init = FALSE) [17:27:20.761] } [17:27:20.761] } [17:27:20.761] } [17:27:20.761] }) [17:27:20.761] if (TRUE) { [17:27:20.761] base::sink(type = "output", split = FALSE) [17:27:20.761] if (TRUE) { [17:27:20.761] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:20.761] } [17:27:20.761] else { [17:27:20.761] ...future.result["stdout"] <- base::list(NULL) [17:27:20.761] } [17:27:20.761] base::close(...future.stdout) [17:27:20.761] ...future.stdout <- NULL [17:27:20.761] } [17:27:20.761] ...future.result$conditions <- ...future.conditions [17:27:20.761] ...future.result$finished <- base::Sys.time() [17:27:20.761] ...future.result [17:27:20.761] } [17:27:20.840] ClusterFuture started [17:27:20.840] result() for ClusterFuture ... [17:27:20.840] receiveMessageFromWorker() for ClusterFuture ... [17:27:20.841] - Validating connection of ClusterFuture [17:27:20.892] - received message: FutureResult [17:27:20.893] - Received FutureResult [17:27:20.893] - Erased future from FutureRegistry [17:27:20.893] result() for ClusterFuture ... [17:27:20.893] - result already collected: FutureResult [17:27:20.893] result() for ClusterFuture ... done [17:27:20.894] receiveMessageFromWorker() for ClusterFuture ... done [17:27:20.894] result() for ClusterFuture ... done [17:27:20.894] result() for ClusterFuture ... [17:27:20.894] - result already collected: FutureResult [17:27:20.894] result() for ClusterFuture ... done [17:27:20.894] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:27:20.895] plan(): nbrOfWorkers() = 2 > n <- nbrOfWorkers() > message(sprintf("nbrOfWorkers: %d", n)) nbrOfWorkers: 2 > stopifnot(n == length(workers)) > plan(cluster, workers = allButOneWorker) [17:27:20.895] plan(): Setting new future strategy stack: [17:27:20.896] List of future strategies: [17:27:20.896] 1. cluster: [17:27:20.896] - args: function (..., workers = "", envir = parent.frame()) [17:27:20.896] - tweaked: TRUE [17:27:20.896] - call: plan(cluster, workers = allButOneWorker) [17:27:20.897] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... [17:27:20.897] cluster: [17:27:20.897] - args: function (..., workers = "", envir = parent.frame()) [17:27:20.897] - tweaked: TRUE [17:27:20.897] - call: plan(cluster, workers = allButOneWorker) [17:27:20.898] getGlobalsAndPackages() ... [17:27:20.898] Not searching for globals [17:27:20.898] - globals: [0] [17:27:20.899] getGlobalsAndPackages() ... DONE [17:27:20.902] [local output] makeClusterPSOCK() ... [17:27:20.903] [local output] Workers: [n = 1] 'localhost' [17:27:20.905] [local output] Base port: 28369 [17:27:20.905] [local output] Getting setup options for 1 cluster nodes ... [17:27:20.906] [local output] - Node 1 of 1 ... [17:27:20.906] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:20.908] [local output] Rscript port: 28369 [17:27:20.908] [local output] Getting setup options for 1 cluster nodes ... done [17:27:20.908] [local output] - Parallel setup requested for some PSOCK nodes [17:27:20.909] [local output] Setting up PSOCK nodes in parallel [17:27:20.909] List of 36 [17:27:20.909] $ worker : chr "localhost" [17:27:20.909] ..- attr(*, "localhost")= logi TRUE [17:27:20.909] $ master : chr "localhost" [17:27:20.909] $ port : int 28369 [17:27:20.909] $ connectTimeout : num 120 [17:27:20.909] $ timeout : num 120 [17:27:20.909] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:27:20.909] $ homogeneous : logi TRUE [17:27:20.909] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=nbrOfWorkers.R:12520:CRANWIN3:CR"| __truncated__ [17:27:20.909] $ rscript_envs : NULL [17:27:20.909] $ rscript_libs : NULL [17:27:20.909] $ rscript_startup : NULL [17:27:20.909] $ rscript_sh : chr "cmd" [17:27:20.909] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:20.909] $ methods : logi TRUE [17:27:20.909] $ socketOptions : chr "no-delay" [17:27:20.909] $ useXDR : logi FALSE [17:27:20.909] $ outfile : chr "/dev/null" [17:27:20.909] $ renice : int NA [17:27:20.909] $ rshcmd : NULL [17:27:20.909] $ user : chr(0) [17:27:20.909] $ revtunnel : logi FALSE [17:27:20.909] $ rshlogfile : NULL [17:27:20.909] $ rshopts : chr(0) [17:27:20.909] $ rank : int 1 [17:27:20.909] $ manual : logi FALSE [17:27:20.909] $ dryrun : logi FALSE [17:27:20.909] $ quiet : logi FALSE [17:27:20.909] $ setup_strategy : chr "parallel" [17:27:20.909] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:20.909] $ pidfile : chr "D:/temp/RtmpuMG48r/worker.rank=1.parallelly.parent=12520.30e87d96833.pid" [17:27:20.909] $ rshcmd_label : NULL [17:27:20.909] $ rsh_call : NULL [17:27:20.909] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:20.909] $ localMachine : logi TRUE [17:27:20.909] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:27:20.909] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:27:20.909] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:27:20.909] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:27:20.909] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:27:20.909] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:27:20.909] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:27:20.909] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:27:20.909] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:27:20.909] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:27:20.909] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:27:20.909] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:27:20.909] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:27:20.909] $ arguments :List of 28 [17:27:20.909] ..$ worker : chr "localhost" [17:27:20.909] ..$ master : NULL [17:27:20.909] ..$ port : int 28369 [17:27:20.909] ..$ connectTimeout : num 120 [17:27:20.909] ..$ timeout : num 120 [17:27:20.909] ..$ rscript : NULL [17:27:20.909] ..$ homogeneous : NULL [17:27:20.909] ..$ rscript_args : NULL [17:27:20.909] ..$ rscript_envs : NULL [17:27:20.909] ..$ rscript_libs : NULL [17:27:20.909] ..$ rscript_startup : NULL [17:27:20.909] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:27:20.909] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:20.909] ..$ methods : logi TRUE [17:27:20.909] ..$ socketOptions : chr "no-delay" [17:27:20.909] ..$ useXDR : logi FALSE [17:27:20.909] ..$ outfile : chr "/dev/null" [17:27:20.909] ..$ renice : int NA [17:27:20.909] ..$ rshcmd : NULL [17:27:20.909] ..$ user : NULL [17:27:20.909] ..$ revtunnel : logi NA [17:27:20.909] ..$ rshlogfile : NULL [17:27:20.909] ..$ rshopts : NULL [17:27:20.909] ..$ rank : int 1 [17:27:20.909] ..$ manual : logi FALSE [17:27:20.909] ..$ dryrun : logi FALSE [17:27:20.909] ..$ quiet : logi FALSE [17:27:20.909] ..$ setup_strategy : chr "parallel" [17:27:20.909] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:27:20.932] [local output] System call to launch all workers: [17:27:20.932] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=nbrOfWorkers.R:12520:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpuMG48r/worker.rank=1.parallelly.parent=12520.30e87d96833.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=28369 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:27:20.932] [local output] Starting PSOCK main server [17:27:20.936] [local output] Workers launched [17:27:20.937] [local output] Waiting for workers to connect back [17:27:20.937] - [local output] 0 workers out of 1 ready [17:27:21.094] - [local output] 0 workers out of 1 ready [17:27:21.094] - [local output] 1 workers out of 1 ready [17:27:21.095] [local output] Launching of workers completed [17:27:21.095] [local output] Collecting session information from workers [17:27:21.096] [local output] - Worker #1 of 1 [17:27:21.096] [local output] makeClusterPSOCK() ... done [17:27:21.102] Packages needed by the future expression (n = 0): [17:27:21.102] Packages needed by future strategies (n = 0): [17:27:21.103] { [17:27:21.103] { [17:27:21.103] { [17:27:21.103] ...future.startTime <- base::Sys.time() [17:27:21.103] { [17:27:21.103] { [17:27:21.103] { [17:27:21.103] base::local({ [17:27:21.103] has_future <- base::requireNamespace("future", [17:27:21.103] quietly = TRUE) [17:27:21.103] if (has_future) { [17:27:21.103] ns <- base::getNamespace("future") [17:27:21.103] version <- ns[[".package"]][["version"]] [17:27:21.103] if (is.null(version)) [17:27:21.103] version <- utils::packageVersion("future") [17:27:21.103] } [17:27:21.103] else { [17:27:21.103] version <- NULL [17:27:21.103] } [17:27:21.103] if (!has_future || version < "1.8.0") { [17:27:21.103] info <- base::c(r_version = base::gsub("R version ", [17:27:21.103] "", base::R.version$version.string), [17:27:21.103] platform = base::sprintf("%s (%s-bit)", [17:27:21.103] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:21.103] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:21.103] "release", "version")], collapse = " "), [17:27:21.103] hostname = base::Sys.info()[["nodename"]]) [17:27:21.103] info <- base::sprintf("%s: %s", base::names(info), [17:27:21.103] info) [17:27:21.103] info <- base::paste(info, collapse = "; ") [17:27:21.103] if (!has_future) { [17:27:21.103] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:21.103] info) [17:27:21.103] } [17:27:21.103] else { [17:27:21.103] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:21.103] info, version) [17:27:21.103] } [17:27:21.103] base::stop(msg) [17:27:21.103] } [17:27:21.103] }) [17:27:21.103] } [17:27:21.103] ...future.strategy.old <- future::plan("list") [17:27:21.103] options(future.plan = NULL) [17:27:21.103] Sys.unsetenv("R_FUTURE_PLAN") [17:27:21.103] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:21.103] } [17:27:21.103] ...future.workdir <- getwd() [17:27:21.103] } [17:27:21.103] ...future.oldOptions <- base::as.list(base::.Options) [17:27:21.103] ...future.oldEnvVars <- base::Sys.getenv() [17:27:21.103] } [17:27:21.103] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:21.103] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:21.103] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:21.103] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:21.103] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:21.103] future.stdout.windows.reencode = NULL, width = 80L) [17:27:21.103] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:21.103] base::names(...future.oldOptions)) [17:27:21.103] } [17:27:21.103] if (FALSE) { [17:27:21.103] } [17:27:21.103] else { [17:27:21.103] if (TRUE) { [17:27:21.103] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:21.103] open = "w") [17:27:21.103] } [17:27:21.103] else { [17:27:21.103] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:21.103] windows = "NUL", "/dev/null"), open = "w") [17:27:21.103] } [17:27:21.103] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:21.103] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:21.103] base::sink(type = "output", split = FALSE) [17:27:21.103] base::close(...future.stdout) [17:27:21.103] }, add = TRUE) [17:27:21.103] } [17:27:21.103] ...future.frame <- base::sys.nframe() [17:27:21.103] ...future.conditions <- base::list() [17:27:21.103] ...future.rng <- base::globalenv()$.Random.seed [17:27:21.103] if (FALSE) { [17:27:21.103] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:21.103] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:21.103] } [17:27:21.103] ...future.result <- base::tryCatch({ [17:27:21.103] base::withCallingHandlers({ [17:27:21.103] ...future.value <- base::withVisible(base::local({ [17:27:21.103] ...future.makeSendCondition <- base::local({ [17:27:21.103] sendCondition <- NULL [17:27:21.103] function(frame = 1L) { [17:27:21.103] if (is.function(sendCondition)) [17:27:21.103] return(sendCondition) [17:27:21.103] ns <- getNamespace("parallel") [17:27:21.103] if (exists("sendData", mode = "function", [17:27:21.103] envir = ns)) { [17:27:21.103] parallel_sendData <- get("sendData", mode = "function", [17:27:21.103] envir = ns) [17:27:21.103] envir <- sys.frame(frame) [17:27:21.103] master <- NULL [17:27:21.103] while (!identical(envir, .GlobalEnv) && [17:27:21.103] !identical(envir, emptyenv())) { [17:27:21.103] if (exists("master", mode = "list", envir = envir, [17:27:21.103] inherits = FALSE)) { [17:27:21.103] master <- get("master", mode = "list", [17:27:21.103] envir = envir, inherits = FALSE) [17:27:21.103] if (inherits(master, c("SOCKnode", [17:27:21.103] "SOCK0node"))) { [17:27:21.103] sendCondition <<- function(cond) { [17:27:21.103] data <- list(type = "VALUE", value = cond, [17:27:21.103] success = TRUE) [17:27:21.103] parallel_sendData(master, data) [17:27:21.103] } [17:27:21.103] return(sendCondition) [17:27:21.103] } [17:27:21.103] } [17:27:21.103] frame <- frame + 1L [17:27:21.103] envir <- sys.frame(frame) [17:27:21.103] } [17:27:21.103] } [17:27:21.103] sendCondition <<- function(cond) NULL [17:27:21.103] } [17:27:21.103] }) [17:27:21.103] withCallingHandlers({ [17:27:21.103] NA [17:27:21.103] }, immediateCondition = function(cond) { [17:27:21.103] sendCondition <- ...future.makeSendCondition() [17:27:21.103] sendCondition(cond) [17:27:21.103] muffleCondition <- function (cond, pattern = "^muffle") [17:27:21.103] { [17:27:21.103] inherits <- base::inherits [17:27:21.103] invokeRestart <- base::invokeRestart [17:27:21.103] is.null <- base::is.null [17:27:21.103] muffled <- FALSE [17:27:21.103] if (inherits(cond, "message")) { [17:27:21.103] muffled <- grepl(pattern, "muffleMessage") [17:27:21.103] if (muffled) [17:27:21.103] invokeRestart("muffleMessage") [17:27:21.103] } [17:27:21.103] else if (inherits(cond, "warning")) { [17:27:21.103] muffled <- grepl(pattern, "muffleWarning") [17:27:21.103] if (muffled) [17:27:21.103] invokeRestart("muffleWarning") [17:27:21.103] } [17:27:21.103] else if (inherits(cond, "condition")) { [17:27:21.103] if (!is.null(pattern)) { [17:27:21.103] computeRestarts <- base::computeRestarts [17:27:21.103] grepl <- base::grepl [17:27:21.103] restarts <- computeRestarts(cond) [17:27:21.103] for (restart in restarts) { [17:27:21.103] name <- restart$name [17:27:21.103] if (is.null(name)) [17:27:21.103] next [17:27:21.103] if (!grepl(pattern, name)) [17:27:21.103] next [17:27:21.103] invokeRestart(restart) [17:27:21.103] muffled <- TRUE [17:27:21.103] break [17:27:21.103] } [17:27:21.103] } [17:27:21.103] } [17:27:21.103] invisible(muffled) [17:27:21.103] } [17:27:21.103] muffleCondition(cond) [17:27:21.103] }) [17:27:21.103] })) [17:27:21.103] future::FutureResult(value = ...future.value$value, [17:27:21.103] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:21.103] ...future.rng), globalenv = if (FALSE) [17:27:21.103] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:21.103] ...future.globalenv.names)) [17:27:21.103] else NULL, started = ...future.startTime, version = "1.8") [17:27:21.103] }, condition = base::local({ [17:27:21.103] c <- base::c [17:27:21.103] inherits <- base::inherits [17:27:21.103] invokeRestart <- base::invokeRestart [17:27:21.103] length <- base::length [17:27:21.103] list <- base::list [17:27:21.103] seq.int <- base::seq.int [17:27:21.103] signalCondition <- base::signalCondition [17:27:21.103] sys.calls <- base::sys.calls [17:27:21.103] `[[` <- base::`[[` [17:27:21.103] `+` <- base::`+` [17:27:21.103] `<<-` <- base::`<<-` [17:27:21.103] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:21.103] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:21.103] 3L)] [17:27:21.103] } [17:27:21.103] function(cond) { [17:27:21.103] is_error <- inherits(cond, "error") [17:27:21.103] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:21.103] NULL) [17:27:21.103] if (is_error) { [17:27:21.103] sessionInformation <- function() { [17:27:21.103] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:21.103] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:21.103] search = base::search(), system = base::Sys.info()) [17:27:21.103] } [17:27:21.103] ...future.conditions[[length(...future.conditions) + [17:27:21.103] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:21.103] cond$call), session = sessionInformation(), [17:27:21.103] timestamp = base::Sys.time(), signaled = 0L) [17:27:21.103] signalCondition(cond) [17:27:21.103] } [17:27:21.103] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:21.103] "immediateCondition"))) { [17:27:21.103] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:21.103] ...future.conditions[[length(...future.conditions) + [17:27:21.103] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:21.103] if (TRUE && !signal) { [17:27:21.103] muffleCondition <- function (cond, pattern = "^muffle") [17:27:21.103] { [17:27:21.103] inherits <- base::inherits [17:27:21.103] invokeRestart <- base::invokeRestart [17:27:21.103] is.null <- base::is.null [17:27:21.103] muffled <- FALSE [17:27:21.103] if (inherits(cond, "message")) { [17:27:21.103] muffled <- grepl(pattern, "muffleMessage") [17:27:21.103] if (muffled) [17:27:21.103] invokeRestart("muffleMessage") [17:27:21.103] } [17:27:21.103] else if (inherits(cond, "warning")) { [17:27:21.103] muffled <- grepl(pattern, "muffleWarning") [17:27:21.103] if (muffled) [17:27:21.103] invokeRestart("muffleWarning") [17:27:21.103] } [17:27:21.103] else if (inherits(cond, "condition")) { [17:27:21.103] if (!is.null(pattern)) { [17:27:21.103] computeRestarts <- base::computeRestarts [17:27:21.103] grepl <- base::grepl [17:27:21.103] restarts <- computeRestarts(cond) [17:27:21.103] for (restart in restarts) { [17:27:21.103] name <- restart$name [17:27:21.103] if (is.null(name)) [17:27:21.103] next [17:27:21.103] if (!grepl(pattern, name)) [17:27:21.103] next [17:27:21.103] invokeRestart(restart) [17:27:21.103] muffled <- TRUE [17:27:21.103] break [17:27:21.103] } [17:27:21.103] } [17:27:21.103] } [17:27:21.103] invisible(muffled) [17:27:21.103] } [17:27:21.103] muffleCondition(cond, pattern = "^muffle") [17:27:21.103] } [17:27:21.103] } [17:27:21.103] else { [17:27:21.103] if (TRUE) { [17:27:21.103] muffleCondition <- function (cond, pattern = "^muffle") [17:27:21.103] { [17:27:21.103] inherits <- base::inherits [17:27:21.103] invokeRestart <- base::invokeRestart [17:27:21.103] is.null <- base::is.null [17:27:21.103] muffled <- FALSE [17:27:21.103] if (inherits(cond, "message")) { [17:27:21.103] muffled <- grepl(pattern, "muffleMessage") [17:27:21.103] if (muffled) [17:27:21.103] invokeRestart("muffleMessage") [17:27:21.103] } [17:27:21.103] else if (inherits(cond, "warning")) { [17:27:21.103] muffled <- grepl(pattern, "muffleWarning") [17:27:21.103] if (muffled) [17:27:21.103] invokeRestart("muffleWarning") [17:27:21.103] } [17:27:21.103] else if (inherits(cond, "condition")) { [17:27:21.103] if (!is.null(pattern)) { [17:27:21.103] computeRestarts <- base::computeRestarts [17:27:21.103] grepl <- base::grepl [17:27:21.103] restarts <- computeRestarts(cond) [17:27:21.103] for (restart in restarts) { [17:27:21.103] name <- restart$name [17:27:21.103] if (is.null(name)) [17:27:21.103] next [17:27:21.103] if (!grepl(pattern, name)) [17:27:21.103] next [17:27:21.103] invokeRestart(restart) [17:27:21.103] muffled <- TRUE [17:27:21.103] break [17:27:21.103] } [17:27:21.103] } [17:27:21.103] } [17:27:21.103] invisible(muffled) [17:27:21.103] } [17:27:21.103] muffleCondition(cond, pattern = "^muffle") [17:27:21.103] } [17:27:21.103] } [17:27:21.103] } [17:27:21.103] })) [17:27:21.103] }, error = function(ex) { [17:27:21.103] base::structure(base::list(value = NULL, visible = NULL, [17:27:21.103] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:21.103] ...future.rng), started = ...future.startTime, [17:27:21.103] finished = Sys.time(), session_uuid = NA_character_, [17:27:21.103] version = "1.8"), class = "FutureResult") [17:27:21.103] }, finally = { [17:27:21.103] if (!identical(...future.workdir, getwd())) [17:27:21.103] setwd(...future.workdir) [17:27:21.103] { [17:27:21.103] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:21.103] ...future.oldOptions$nwarnings <- NULL [17:27:21.103] } [17:27:21.103] base::options(...future.oldOptions) [17:27:21.103] if (.Platform$OS.type == "windows") { [17:27:21.103] old_names <- names(...future.oldEnvVars) [17:27:21.103] envs <- base::Sys.getenv() [17:27:21.103] names <- names(envs) [17:27:21.103] common <- intersect(names, old_names) [17:27:21.103] added <- setdiff(names, old_names) [17:27:21.103] removed <- setdiff(old_names, names) [17:27:21.103] changed <- common[...future.oldEnvVars[common] != [17:27:21.103] envs[common]] [17:27:21.103] NAMES <- toupper(changed) [17:27:21.103] args <- list() [17:27:21.103] for (kk in seq_along(NAMES)) { [17:27:21.103] name <- changed[[kk]] [17:27:21.103] NAME <- NAMES[[kk]] [17:27:21.103] if (name != NAME && is.element(NAME, old_names)) [17:27:21.103] next [17:27:21.103] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:21.103] } [17:27:21.103] NAMES <- toupper(added) [17:27:21.103] for (kk in seq_along(NAMES)) { [17:27:21.103] name <- added[[kk]] [17:27:21.103] NAME <- NAMES[[kk]] [17:27:21.103] if (name != NAME && is.element(NAME, old_names)) [17:27:21.103] next [17:27:21.103] args[[name]] <- "" [17:27:21.103] } [17:27:21.103] NAMES <- toupper(removed) [17:27:21.103] for (kk in seq_along(NAMES)) { [17:27:21.103] name <- removed[[kk]] [17:27:21.103] NAME <- NAMES[[kk]] [17:27:21.103] if (name != NAME && is.element(NAME, old_names)) [17:27:21.103] next [17:27:21.103] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:21.103] } [17:27:21.103] if (length(args) > 0) [17:27:21.103] base::do.call(base::Sys.setenv, args = args) [17:27:21.103] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:21.103] } [17:27:21.103] else { [17:27:21.103] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:21.103] } [17:27:21.103] { [17:27:21.103] if (base::length(...future.futureOptionsAdded) > [17:27:21.103] 0L) { [17:27:21.103] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:21.103] base::names(opts) <- ...future.futureOptionsAdded [17:27:21.103] base::options(opts) [17:27:21.103] } [17:27:21.103] { [17:27:21.103] NULL [17:27:21.103] options(future.plan = NULL) [17:27:21.103] if (is.na(NA_character_)) [17:27:21.103] Sys.unsetenv("R_FUTURE_PLAN") [17:27:21.103] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:21.103] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:21.103] .init = FALSE) [17:27:21.103] } [17:27:21.103] } [17:27:21.103] } [17:27:21.103] }) [17:27:21.103] if (TRUE) { [17:27:21.103] base::sink(type = "output", split = FALSE) [17:27:21.103] if (TRUE) { [17:27:21.103] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:21.103] } [17:27:21.103] else { [17:27:21.103] ...future.result["stdout"] <- base::list(NULL) [17:27:21.103] } [17:27:21.103] base::close(...future.stdout) [17:27:21.103] ...future.stdout <- NULL [17:27:21.103] } [17:27:21.103] ...future.result$conditions <- ...future.conditions [17:27:21.103] ...future.result$finished <- base::Sys.time() [17:27:21.103] ...future.result [17:27:21.103] } [17:27:21.186] ClusterFuture started [17:27:21.186] result() for ClusterFuture ... [17:27:21.187] receiveMessageFromWorker() for ClusterFuture ... [17:27:21.187] - Validating connection of ClusterFuture [17:27:21.238] - received message: FutureResult [17:27:21.238] - Received FutureResult [17:27:21.239] - Erased future from FutureRegistry [17:27:21.239] result() for ClusterFuture ... [17:27:21.239] - result already collected: FutureResult [17:27:21.239] result() for ClusterFuture ... done [17:27:21.239] receiveMessageFromWorker() for ClusterFuture ... done [17:27:21.239] result() for ClusterFuture ... done [17:27:21.240] result() for ClusterFuture ... [17:27:21.240] - result already collected: FutureResult [17:27:21.240] result() for ClusterFuture ... done [17:27:21.240] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:27:21.247] plan(): nbrOfWorkers() = 1 > n <- nbrOfWorkers() > message(sprintf("nbrOfWorkers: %d", n)) nbrOfWorkers: 1 > stopifnot(n == max(1L, nworkers - 1L)) > > message("Type of future: constant") Type of future: constant > n <- nbrOfWorkers(constant) > message(sprintf("nbrOfWorkers: %d", n)) nbrOfWorkers: 1 > stopifnot(n == 1) > > message("Type of future: ") Type of future: > foo <- structure(function(...) NULL, class = c("future")) > n <- nbrOfWorkers(foo) > message(sprintf("nbrOfWorkers: %g", n)) nbrOfWorkers: Inf > stopifnot(n >= 0, is.infinite(n)) > > > message("Type of future: cluster with workers = ") Type of future: cluster with workers = > > workers <- makeClusterPSOCK(2L) [17:27:21.253] [local output] makeClusterPSOCK() ... [17:27:21.255] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:27:21.259] [local output] Base port: 31993 [17:27:21.259] [local output] Getting setup options for 2 cluster nodes ... [17:27:21.259] [local output] - Node 1 of 2 ... [17:27:21.260] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:21.261] [local output] Rscript port: 31993 [17:27:21.262] [local output] - Node 2 of 2 ... [17:27:21.263] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:21.264] [local output] Rscript port: 31993 [17:27:21.264] [local output] Getting setup options for 2 cluster nodes ... done [17:27:21.264] [local output] - Parallel setup requested for some PSOCK nodes [17:27:21.265] [local output] Setting up PSOCK nodes in parallel [17:27:21.265] List of 36 [17:27:21.265] $ worker : chr "localhost" [17:27:21.265] ..- attr(*, "localhost")= logi TRUE [17:27:21.265] $ master : chr "localhost" [17:27:21.265] $ port : int 31993 [17:27:21.265] $ connectTimeout : num 120 [17:27:21.265] $ timeout : num 120 [17:27:21.265] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:27:21.265] $ homogeneous : logi TRUE [17:27:21.265] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=nbrOfWorkers.R:12520:CRANWIN3:CR"| __truncated__ [17:27:21.265] $ rscript_envs : NULL [17:27:21.265] $ rscript_libs : NULL [17:27:21.265] $ rscript_startup : NULL [17:27:21.265] $ rscript_sh : chr "cmd" [17:27:21.265] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:21.265] $ methods : logi TRUE [17:27:21.265] $ socketOptions : chr "no-delay" [17:27:21.265] $ useXDR : logi FALSE [17:27:21.265] $ outfile : chr "/dev/null" [17:27:21.265] $ renice : int NA [17:27:21.265] $ rshcmd : NULL [17:27:21.265] $ user : chr(0) [17:27:21.265] $ revtunnel : logi FALSE [17:27:21.265] $ rshlogfile : NULL [17:27:21.265] $ rshopts : chr(0) [17:27:21.265] $ rank : int 1 [17:27:21.265] $ manual : logi FALSE [17:27:21.265] $ dryrun : logi FALSE [17:27:21.265] $ quiet : logi FALSE [17:27:21.265] $ setup_strategy : chr "parallel" [17:27:21.265] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:21.265] $ pidfile : chr "D:/temp/RtmpuMG48r/worker.rank=1.parallelly.parent=12520.30e82b6f269c.pid" [17:27:21.265] $ rshcmd_label : NULL [17:27:21.265] $ rsh_call : NULL [17:27:21.265] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:21.265] $ localMachine : logi TRUE [17:27:21.265] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:27:21.265] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:27:21.265] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:27:21.265] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:27:21.265] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:27:21.265] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:27:21.265] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:27:21.265] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:27:21.265] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:27:21.265] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:27:21.265] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:27:21.265] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:27:21.265] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:27:21.265] $ arguments :List of 28 [17:27:21.265] ..$ worker : chr "localhost" [17:27:21.265] ..$ master : NULL [17:27:21.265] ..$ port : int 31993 [17:27:21.265] ..$ connectTimeout : num 120 [17:27:21.265] ..$ timeout : num 120 [17:27:21.265] ..$ rscript : NULL [17:27:21.265] ..$ homogeneous : NULL [17:27:21.265] ..$ rscript_args : NULL [17:27:21.265] ..$ rscript_envs : NULL [17:27:21.265] ..$ rscript_libs : NULL [17:27:21.265] ..$ rscript_startup : NULL [17:27:21.265] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:27:21.265] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:21.265] ..$ methods : logi TRUE [17:27:21.265] ..$ socketOptions : chr "no-delay" [17:27:21.265] ..$ useXDR : logi FALSE [17:27:21.265] ..$ outfile : chr "/dev/null" [17:27:21.265] ..$ renice : int NA [17:27:21.265] ..$ rshcmd : NULL [17:27:21.265] ..$ user : NULL [17:27:21.265] ..$ revtunnel : logi NA [17:27:21.265] ..$ rshlogfile : NULL [17:27:21.265] ..$ rshopts : NULL [17:27:21.265] ..$ rank : int 1 [17:27:21.265] ..$ manual : logi FALSE [17:27:21.265] ..$ dryrun : logi FALSE [17:27:21.265] ..$ quiet : logi FALSE [17:27:21.265] ..$ setup_strategy : chr "parallel" [17:27:21.265] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:27:21.291] [local output] System call to launch all workers: [17:27:21.291] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=nbrOfWorkers.R:12520:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpuMG48r/worker.rank=1.parallelly.parent=12520.30e82b6f269c.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=31993 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:27:21.291] [local output] Starting PSOCK main server [17:27:21.297] [local output] Workers launched [17:27:21.298] [local output] Waiting for workers to connect back [17:27:21.298] - [local output] 0 workers out of 2 ready [17:27:21.461] - [local output] 0 workers out of 2 ready [17:27:21.462] - [local output] 1 workers out of 2 ready [17:27:21.463] - [local output] 2 workers out of 2 ready [17:27:21.463] [local output] Launching of workers completed [17:27:21.463] [local output] Collecting session information from workers [17:27:21.464] [local output] - Worker #1 of 2 [17:27:21.465] [local output] - Worker #2 of 2 [17:27:21.465] [local output] makeClusterPSOCK() ... done > print(workers) Socket cluster with 2 nodes where 2 nodes are on host 'localhost' (R Under development (unstable) (2024-03-25 r86192 ucrt), platform x86_64-w64-mingw32) > plan(cluster, workers = workers) [17:27:21.471] plan(): Setting new future strategy stack: [17:27:21.471] List of future strategies: [17:27:21.471] 1. cluster: [17:27:21.471] - args: function (..., workers = "", envir = parent.frame()) [17:27:21.471] - tweaked: TRUE [17:27:21.471] - call: plan(cluster, workers = workers) [17:27:21.474] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... [17:27:21.474] cluster: [17:27:21.474] - args: function (..., workers = "", envir = parent.frame()) [17:27:21.474] - tweaked: TRUE [17:27:21.474] - call: plan(cluster, workers = workers) [17:27:21.477] getGlobalsAndPackages() ... [17:27:21.477] Not searching for globals [17:27:21.477] - globals: [0] [17:27:21.477] getGlobalsAndPackages() ... DONE [17:27:21.493] Packages needed by the future expression (n = 0): [17:27:21.493] Packages needed by future strategies (n = 0): [17:27:21.494] { [17:27:21.494] { [17:27:21.494] { [17:27:21.494] ...future.startTime <- base::Sys.time() [17:27:21.494] { [17:27:21.494] { [17:27:21.494] { [17:27:21.494] base::local({ [17:27:21.494] has_future <- base::requireNamespace("future", [17:27:21.494] quietly = TRUE) [17:27:21.494] if (has_future) { [17:27:21.494] ns <- base::getNamespace("future") [17:27:21.494] version <- ns[[".package"]][["version"]] [17:27:21.494] if (is.null(version)) [17:27:21.494] version <- utils::packageVersion("future") [17:27:21.494] } [17:27:21.494] else { [17:27:21.494] version <- NULL [17:27:21.494] } [17:27:21.494] if (!has_future || version < "1.8.0") { [17:27:21.494] info <- base::c(r_version = base::gsub("R version ", [17:27:21.494] "", base::R.version$version.string), [17:27:21.494] platform = base::sprintf("%s (%s-bit)", [17:27:21.494] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:21.494] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:21.494] "release", "version")], collapse = " "), [17:27:21.494] hostname = base::Sys.info()[["nodename"]]) [17:27:21.494] info <- base::sprintf("%s: %s", base::names(info), [17:27:21.494] info) [17:27:21.494] info <- base::paste(info, collapse = "; ") [17:27:21.494] if (!has_future) { [17:27:21.494] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:21.494] info) [17:27:21.494] } [17:27:21.494] else { [17:27:21.494] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:21.494] info, version) [17:27:21.494] } [17:27:21.494] base::stop(msg) [17:27:21.494] } [17:27:21.494] }) [17:27:21.494] } [17:27:21.494] ...future.strategy.old <- future::plan("list") [17:27:21.494] options(future.plan = NULL) [17:27:21.494] Sys.unsetenv("R_FUTURE_PLAN") [17:27:21.494] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:21.494] } [17:27:21.494] ...future.workdir <- getwd() [17:27:21.494] } [17:27:21.494] ...future.oldOptions <- base::as.list(base::.Options) [17:27:21.494] ...future.oldEnvVars <- base::Sys.getenv() [17:27:21.494] } [17:27:21.494] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:21.494] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:21.494] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:21.494] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:21.494] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:21.494] future.stdout.windows.reencode = NULL, width = 80L) [17:27:21.494] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:21.494] base::names(...future.oldOptions)) [17:27:21.494] } [17:27:21.494] if (FALSE) { [17:27:21.494] } [17:27:21.494] else { [17:27:21.494] if (TRUE) { [17:27:21.494] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:21.494] open = "w") [17:27:21.494] } [17:27:21.494] else { [17:27:21.494] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:21.494] windows = "NUL", "/dev/null"), open = "w") [17:27:21.494] } [17:27:21.494] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:21.494] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:21.494] base::sink(type = "output", split = FALSE) [17:27:21.494] base::close(...future.stdout) [17:27:21.494] }, add = TRUE) [17:27:21.494] } [17:27:21.494] ...future.frame <- base::sys.nframe() [17:27:21.494] ...future.conditions <- base::list() [17:27:21.494] ...future.rng <- base::globalenv()$.Random.seed [17:27:21.494] if (FALSE) { [17:27:21.494] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:21.494] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:21.494] } [17:27:21.494] ...future.result <- base::tryCatch({ [17:27:21.494] base::withCallingHandlers({ [17:27:21.494] ...future.value <- base::withVisible(base::local({ [17:27:21.494] ...future.makeSendCondition <- base::local({ [17:27:21.494] sendCondition <- NULL [17:27:21.494] function(frame = 1L) { [17:27:21.494] if (is.function(sendCondition)) [17:27:21.494] return(sendCondition) [17:27:21.494] ns <- getNamespace("parallel") [17:27:21.494] if (exists("sendData", mode = "function", [17:27:21.494] envir = ns)) { [17:27:21.494] parallel_sendData <- get("sendData", mode = "function", [17:27:21.494] envir = ns) [17:27:21.494] envir <- sys.frame(frame) [17:27:21.494] master <- NULL [17:27:21.494] while (!identical(envir, .GlobalEnv) && [17:27:21.494] !identical(envir, emptyenv())) { [17:27:21.494] if (exists("master", mode = "list", envir = envir, [17:27:21.494] inherits = FALSE)) { [17:27:21.494] master <- get("master", mode = "list", [17:27:21.494] envir = envir, inherits = FALSE) [17:27:21.494] if (inherits(master, c("SOCKnode", [17:27:21.494] "SOCK0node"))) { [17:27:21.494] sendCondition <<- function(cond) { [17:27:21.494] data <- list(type = "VALUE", value = cond, [17:27:21.494] success = TRUE) [17:27:21.494] parallel_sendData(master, data) [17:27:21.494] } [17:27:21.494] return(sendCondition) [17:27:21.494] } [17:27:21.494] } [17:27:21.494] frame <- frame + 1L [17:27:21.494] envir <- sys.frame(frame) [17:27:21.494] } [17:27:21.494] } [17:27:21.494] sendCondition <<- function(cond) NULL [17:27:21.494] } [17:27:21.494] }) [17:27:21.494] withCallingHandlers({ [17:27:21.494] NA [17:27:21.494] }, immediateCondition = function(cond) { [17:27:21.494] sendCondition <- ...future.makeSendCondition() [17:27:21.494] sendCondition(cond) [17:27:21.494] muffleCondition <- function (cond, pattern = "^muffle") [17:27:21.494] { [17:27:21.494] inherits <- base::inherits [17:27:21.494] invokeRestart <- base::invokeRestart [17:27:21.494] is.null <- base::is.null [17:27:21.494] muffled <- FALSE [17:27:21.494] if (inherits(cond, "message")) { [17:27:21.494] muffled <- grepl(pattern, "muffleMessage") [17:27:21.494] if (muffled) [17:27:21.494] invokeRestart("muffleMessage") [17:27:21.494] } [17:27:21.494] else if (inherits(cond, "warning")) { [17:27:21.494] muffled <- grepl(pattern, "muffleWarning") [17:27:21.494] if (muffled) [17:27:21.494] invokeRestart("muffleWarning") [17:27:21.494] } [17:27:21.494] else if (inherits(cond, "condition")) { [17:27:21.494] if (!is.null(pattern)) { [17:27:21.494] computeRestarts <- base::computeRestarts [17:27:21.494] grepl <- base::grepl [17:27:21.494] restarts <- computeRestarts(cond) [17:27:21.494] for (restart in restarts) { [17:27:21.494] name <- restart$name [17:27:21.494] if (is.null(name)) [17:27:21.494] next [17:27:21.494] if (!grepl(pattern, name)) [17:27:21.494] next [17:27:21.494] invokeRestart(restart) [17:27:21.494] muffled <- TRUE [17:27:21.494] break [17:27:21.494] } [17:27:21.494] } [17:27:21.494] } [17:27:21.494] invisible(muffled) [17:27:21.494] } [17:27:21.494] muffleCondition(cond) [17:27:21.494] }) [17:27:21.494] })) [17:27:21.494] future::FutureResult(value = ...future.value$value, [17:27:21.494] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:21.494] ...future.rng), globalenv = if (FALSE) [17:27:21.494] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:21.494] ...future.globalenv.names)) [17:27:21.494] else NULL, started = ...future.startTime, version = "1.8") [17:27:21.494] }, condition = base::local({ [17:27:21.494] c <- base::c [17:27:21.494] inherits <- base::inherits [17:27:21.494] invokeRestart <- base::invokeRestart [17:27:21.494] length <- base::length [17:27:21.494] list <- base::list [17:27:21.494] seq.int <- base::seq.int [17:27:21.494] signalCondition <- base::signalCondition [17:27:21.494] sys.calls <- base::sys.calls [17:27:21.494] `[[` <- base::`[[` [17:27:21.494] `+` <- base::`+` [17:27:21.494] `<<-` <- base::`<<-` [17:27:21.494] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:21.494] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:21.494] 3L)] [17:27:21.494] } [17:27:21.494] function(cond) { [17:27:21.494] is_error <- inherits(cond, "error") [17:27:21.494] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:21.494] NULL) [17:27:21.494] if (is_error) { [17:27:21.494] sessionInformation <- function() { [17:27:21.494] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:21.494] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:21.494] search = base::search(), system = base::Sys.info()) [17:27:21.494] } [17:27:21.494] ...future.conditions[[length(...future.conditions) + [17:27:21.494] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:21.494] cond$call), session = sessionInformation(), [17:27:21.494] timestamp = base::Sys.time(), signaled = 0L) [17:27:21.494] signalCondition(cond) [17:27:21.494] } [17:27:21.494] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:21.494] "immediateCondition"))) { [17:27:21.494] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:21.494] ...future.conditions[[length(...future.conditions) + [17:27:21.494] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:21.494] if (TRUE && !signal) { [17:27:21.494] muffleCondition <- function (cond, pattern = "^muffle") [17:27:21.494] { [17:27:21.494] inherits <- base::inherits [17:27:21.494] invokeRestart <- base::invokeRestart [17:27:21.494] is.null <- base::is.null [17:27:21.494] muffled <- FALSE [17:27:21.494] if (inherits(cond, "message")) { [17:27:21.494] muffled <- grepl(pattern, "muffleMessage") [17:27:21.494] if (muffled) [17:27:21.494] invokeRestart("muffleMessage") [17:27:21.494] } [17:27:21.494] else if (inherits(cond, "warning")) { [17:27:21.494] muffled <- grepl(pattern, "muffleWarning") [17:27:21.494] if (muffled) [17:27:21.494] invokeRestart("muffleWarning") [17:27:21.494] } [17:27:21.494] else if (inherits(cond, "condition")) { [17:27:21.494] if (!is.null(pattern)) { [17:27:21.494] computeRestarts <- base::computeRestarts [17:27:21.494] grepl <- base::grepl [17:27:21.494] restarts <- computeRestarts(cond) [17:27:21.494] for (restart in restarts) { [17:27:21.494] name <- restart$name [17:27:21.494] if (is.null(name)) [17:27:21.494] next [17:27:21.494] if (!grepl(pattern, name)) [17:27:21.494] next [17:27:21.494] invokeRestart(restart) [17:27:21.494] muffled <- TRUE [17:27:21.494] break [17:27:21.494] } [17:27:21.494] } [17:27:21.494] } [17:27:21.494] invisible(muffled) [17:27:21.494] } [17:27:21.494] muffleCondition(cond, pattern = "^muffle") [17:27:21.494] } [17:27:21.494] } [17:27:21.494] else { [17:27:21.494] if (TRUE) { [17:27:21.494] muffleCondition <- function (cond, pattern = "^muffle") [17:27:21.494] { [17:27:21.494] inherits <- base::inherits [17:27:21.494] invokeRestart <- base::invokeRestart [17:27:21.494] is.null <- base::is.null [17:27:21.494] muffled <- FALSE [17:27:21.494] if (inherits(cond, "message")) { [17:27:21.494] muffled <- grepl(pattern, "muffleMessage") [17:27:21.494] if (muffled) [17:27:21.494] invokeRestart("muffleMessage") [17:27:21.494] } [17:27:21.494] else if (inherits(cond, "warning")) { [17:27:21.494] muffled <- grepl(pattern, "muffleWarning") [17:27:21.494] if (muffled) [17:27:21.494] invokeRestart("muffleWarning") [17:27:21.494] } [17:27:21.494] else if (inherits(cond, "condition")) { [17:27:21.494] if (!is.null(pattern)) { [17:27:21.494] computeRestarts <- base::computeRestarts [17:27:21.494] grepl <- base::grepl [17:27:21.494] restarts <- computeRestarts(cond) [17:27:21.494] for (restart in restarts) { [17:27:21.494] name <- restart$name [17:27:21.494] if (is.null(name)) [17:27:21.494] next [17:27:21.494] if (!grepl(pattern, name)) [17:27:21.494] next [17:27:21.494] invokeRestart(restart) [17:27:21.494] muffled <- TRUE [17:27:21.494] break [17:27:21.494] } [17:27:21.494] } [17:27:21.494] } [17:27:21.494] invisible(muffled) [17:27:21.494] } [17:27:21.494] muffleCondition(cond, pattern = "^muffle") [17:27:21.494] } [17:27:21.494] } [17:27:21.494] } [17:27:21.494] })) [17:27:21.494] }, error = function(ex) { [17:27:21.494] base::structure(base::list(value = NULL, visible = NULL, [17:27:21.494] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:21.494] ...future.rng), started = ...future.startTime, [17:27:21.494] finished = Sys.time(), session_uuid = NA_character_, [17:27:21.494] version = "1.8"), class = "FutureResult") [17:27:21.494] }, finally = { [17:27:21.494] if (!identical(...future.workdir, getwd())) [17:27:21.494] setwd(...future.workdir) [17:27:21.494] { [17:27:21.494] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:21.494] ...future.oldOptions$nwarnings <- NULL [17:27:21.494] } [17:27:21.494] base::options(...future.oldOptions) [17:27:21.494] if (.Platform$OS.type == "windows") { [17:27:21.494] old_names <- names(...future.oldEnvVars) [17:27:21.494] envs <- base::Sys.getenv() [17:27:21.494] names <- names(envs) [17:27:21.494] common <- intersect(names, old_names) [17:27:21.494] added <- setdiff(names, old_names) [17:27:21.494] removed <- setdiff(old_names, names) [17:27:21.494] changed <- common[...future.oldEnvVars[common] != [17:27:21.494] envs[common]] [17:27:21.494] NAMES <- toupper(changed) [17:27:21.494] args <- list() [17:27:21.494] for (kk in seq_along(NAMES)) { [17:27:21.494] name <- changed[[kk]] [17:27:21.494] NAME <- NAMES[[kk]] [17:27:21.494] if (name != NAME && is.element(NAME, old_names)) [17:27:21.494] next [17:27:21.494] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:21.494] } [17:27:21.494] NAMES <- toupper(added) [17:27:21.494] for (kk in seq_along(NAMES)) { [17:27:21.494] name <- added[[kk]] [17:27:21.494] NAME <- NAMES[[kk]] [17:27:21.494] if (name != NAME && is.element(NAME, old_names)) [17:27:21.494] next [17:27:21.494] args[[name]] <- "" [17:27:21.494] } [17:27:21.494] NAMES <- toupper(removed) [17:27:21.494] for (kk in seq_along(NAMES)) { [17:27:21.494] name <- removed[[kk]] [17:27:21.494] NAME <- NAMES[[kk]] [17:27:21.494] if (name != NAME && is.element(NAME, old_names)) [17:27:21.494] next [17:27:21.494] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:21.494] } [17:27:21.494] if (length(args) > 0) [17:27:21.494] base::do.call(base::Sys.setenv, args = args) [17:27:21.494] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:21.494] } [17:27:21.494] else { [17:27:21.494] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:21.494] } [17:27:21.494] { [17:27:21.494] if (base::length(...future.futureOptionsAdded) > [17:27:21.494] 0L) { [17:27:21.494] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:21.494] base::names(opts) <- ...future.futureOptionsAdded [17:27:21.494] base::options(opts) [17:27:21.494] } [17:27:21.494] { [17:27:21.494] NULL [17:27:21.494] options(future.plan = NULL) [17:27:21.494] if (is.na(NA_character_)) [17:27:21.494] Sys.unsetenv("R_FUTURE_PLAN") [17:27:21.494] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:21.494] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:21.494] .init = FALSE) [17:27:21.494] } [17:27:21.494] } [17:27:21.494] } [17:27:21.494] }) [17:27:21.494] if (TRUE) { [17:27:21.494] base::sink(type = "output", split = FALSE) [17:27:21.494] if (TRUE) { [17:27:21.494] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:21.494] } [17:27:21.494] else { [17:27:21.494] ...future.result["stdout"] <- base::list(NULL) [17:27:21.494] } [17:27:21.494] base::close(...future.stdout) [17:27:21.494] ...future.stdout <- NULL [17:27:21.494] } [17:27:21.494] ...future.result$conditions <- ...future.conditions [17:27:21.494] ...future.result$finished <- base::Sys.time() [17:27:21.494] ...future.result [17:27:21.494] } [17:27:21.576] ClusterFuture started [17:27:21.576] result() for ClusterFuture ... [17:27:21.576] receiveMessageFromWorker() for ClusterFuture ... [17:27:21.577] - Validating connection of ClusterFuture [17:27:21.628] - received message: FutureResult [17:27:21.628] - Received FutureResult [17:27:21.628] - Erased future from FutureRegistry [17:27:21.628] result() for ClusterFuture ... [17:27:21.629] - result already collected: FutureResult [17:27:21.629] result() for ClusterFuture ... done [17:27:21.629] receiveMessageFromWorker() for ClusterFuture ... done [17:27:21.629] result() for ClusterFuture ... done [17:27:21.629] result() for ClusterFuture ... [17:27:21.629] - result already collected: FutureResult [17:27:21.630] result() for ClusterFuture ... done [17:27:21.630] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:27:21.630] plan(): nbrOfWorkers() = 2 > n <- nbrOfWorkers() > message(sprintf("nbrOfWorkers: %g", n)) nbrOfWorkers: 2 > stopifnot(n == length(workers)) > parallel::stopCluster(workers) > > message("*** nbrOfWorkers() ... DONE") *** nbrOfWorkers() ... DONE > > source("incl/end.R") [17:27:21.632] plan(): Setting new future strategy stack: [17:27:21.632] List of future strategies: [17:27:21.632] 1. FutureStrategy: [17:27:21.632] - args: function (..., envir = parent.frame(), workers = "") [17:27:21.632] - tweaked: FALSE [17:27:21.632] - call: future::plan(oplan) [17:27:21.633] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=204] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', 'RTOOLS44_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS44_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 0.70 0.10 2.39