R Under development (unstable) (2023-12-20 r85713 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [01:28:25.944] plan(): Setting new future strategy stack: [01:28:25.947] List of future strategies: [01:28:25.947] 1. sequential: [01:28:25.947] - args: function (..., envir = parent.frame(), workers = "") [01:28:25.947] - tweaked: FALSE [01:28:25.947] - call: future::plan("sequential") [01:28:25.970] 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 [01:28:25.994] plan(): Setting new future strategy stack: [01:28:25.994] List of future strategies: [01:28:25.994] 1. sequential: [01:28:25.994] - args: function (..., envir = parent.frame(), workers = "") [01:28:25.994] - tweaked: FALSE [01:28:25.994] - call: plan(strategy) [01:28:26.012] 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 [01:28:26.049] plan(): Setting new future strategy stack: [01:28:26.050] List of future strategies: [01:28:26.050] 1. multisession: [01:28:26.050] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:28:26.050] - tweaked: FALSE [01:28:26.050] - call: plan(strategy) [01:28:26.050] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [01:28:26.050] multisession: [01:28:26.050] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:28:26.050] - tweaked: FALSE [01:28:26.050] - call: plan(strategy) [01:28:26.056] getGlobalsAndPackages() ... [01:28:26.056] Not searching for globals [01:28:26.057] - globals: [0] [01:28:26.057] getGlobalsAndPackages() ... DONE [01:28:26.057] [local output] makeClusterPSOCK() ... [01:28:26.129] [local output] Workers: [n = 2] 'localhost', 'localhost' [01:28:26.136] [local output] Base port: 26658 [01:28:26.136] [local output] Getting setup options for 2 cluster nodes ... [01:28:26.136] [local output] - Node 1 of 2 ... [01:28:26.137] [local output] localMachine=TRUE => revtunnel=FALSE [01:28:26.138] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpm8xsqT/worker.rank=1.parallelly.parent=13504.34c0372054f7.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/Rtmpm8xsqT/worker.rank=1.parallelly.parent=13504.34c0372054f7.pid\")"' [01:28:26.465] - Possible to infer worker's PID: TRUE [01:28:26.466] [local output] Rscript port: 26658 [01:28:26.467] [local output] - Node 2 of 2 ... [01:28:26.467] [local output] localMachine=TRUE => revtunnel=FALSE [01:28:26.469] [local output] Rscript port: 26658 [01:28:26.469] [local output] Getting setup options for 2 cluster nodes ... done [01:28:26.469] [local output] - Parallel setup requested for some PSOCK nodes [01:28:26.470] [local output] Setting up PSOCK nodes in parallel [01:28:26.470] List of 36 [01:28:26.470] $ worker : chr "localhost" [01:28:26.470] ..- attr(*, "localhost")= logi TRUE [01:28:26.470] $ master : chr "localhost" [01:28:26.470] $ port : int 26658 [01:28:26.470] $ connectTimeout : num 120 [01:28:26.470] $ timeout : num 120 [01:28:26.470] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [01:28:26.470] $ homogeneous : logi TRUE [01:28:26.470] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=nbrOfWorkers.R:13504:CRANWIN3:CR"| __truncated__ [01:28:26.470] $ rscript_envs : NULL [01:28:26.470] $ rscript_libs : chr [1:2] "D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47" "D:/RCompile/recent/R/library" [01:28:26.470] $ rscript_startup : NULL [01:28:26.470] $ rscript_sh : chr "cmd" [01:28:26.470] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:28:26.470] $ methods : logi TRUE [01:28:26.470] $ socketOptions : chr "no-delay" [01:28:26.470] $ useXDR : logi FALSE [01:28:26.470] $ outfile : chr "/dev/null" [01:28:26.470] $ renice : int NA [01:28:26.470] $ rshcmd : NULL [01:28:26.470] $ user : chr(0) [01:28:26.470] $ revtunnel : logi FALSE [01:28:26.470] $ rshlogfile : NULL [01:28:26.470] $ rshopts : chr(0) [01:28:26.470] $ rank : int 1 [01:28:26.470] $ manual : logi FALSE [01:28:26.470] $ dryrun : logi FALSE [01:28:26.470] $ quiet : logi FALSE [01:28:26.470] $ setup_strategy : chr "parallel" [01:28:26.470] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:28:26.470] $ pidfile : chr "D:/temp/Rtmpm8xsqT/worker.rank=1.parallelly.parent=13504.34c0372054f7.pid" [01:28:26.470] $ rshcmd_label : NULL [01:28:26.470] $ rsh_call : NULL [01:28:26.470] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:28:26.470] $ localMachine : logi TRUE [01:28:26.470] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [01:28:26.470] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [01:28:26.470] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [01:28:26.470] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [01:28:26.470] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [01:28:26.470] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [01:28:26.470] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [01:28:26.470] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [01:28:26.470] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [01:28:26.470] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [01:28:26.470] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [01:28:26.470] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [01:28:26.470] "parallel"), action = c("launch", "options"), verbose = FALSE) [01:28:26.470] $ arguments :List of 28 [01:28:26.470] ..$ worker : chr "localhost" [01:28:26.470] ..$ master : NULL [01:28:26.470] ..$ port : int 26658 [01:28:26.470] ..$ connectTimeout : num 120 [01:28:26.470] ..$ timeout : num 120 [01:28:26.470] ..$ rscript : NULL [01:28:26.470] ..$ homogeneous : NULL [01:28:26.470] ..$ rscript_args : NULL [01:28:26.470] ..$ rscript_envs : NULL [01:28:26.470] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47" "D:/RCompile/recent/R/library" [01:28:26.470] ..$ rscript_startup : NULL [01:28:26.470] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [01:28:26.470] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:28:26.470] ..$ methods : logi TRUE [01:28:26.470] ..$ socketOptions : chr "no-delay" [01:28:26.470] ..$ useXDR : logi FALSE [01:28:26.470] ..$ outfile : chr "/dev/null" [01:28:26.470] ..$ renice : int NA [01:28:26.470] ..$ rshcmd : NULL [01:28:26.470] ..$ user : NULL [01:28:26.470] ..$ revtunnel : logi NA [01:28:26.470] ..$ rshlogfile : NULL [01:28:26.470] ..$ rshopts : NULL [01:28:26.470] ..$ rank : int 1 [01:28:26.470] ..$ manual : logi FALSE [01:28:26.470] ..$ dryrun : logi FALSE [01:28:26.470] ..$ quiet : logi FALSE [01:28:26.470] ..$ setup_strategy : chr "parallel" [01:28:26.470] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [01:28:26.497] [local output] System call to launch all workers: [01:28:26.497] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=nbrOfWorkers.R:13504:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpm8xsqT/worker.rank=1.parallelly.parent=13504.34c0372054f7.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=26658 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [01:28:26.497] [local output] Starting PSOCK main server [01:28:26.503] [local output] Workers launched [01:28:26.503] [local output] Waiting for workers to connect back [01:28:26.503] - [local output] 0 workers out of 2 ready [01:28:26.696] - [local output] 0 workers out of 2 ready [01:28:26.697] - [local output] 1 workers out of 2 ready [01:28:26.697] - [local output] 2 workers out of 2 ready [01:28:26.697] [local output] Launching of workers completed [01:28:26.698] [local output] Collecting session information from workers [01:28:26.699] [local output] - Worker #1 of 2 [01:28:26.699] [local output] - Worker #2 of 2 [01:28:26.700] [local output] makeClusterPSOCK() ... done [01:28:26.714] Packages needed by the future expression (n = 0): [01:28:26.714] Packages needed by future strategies (n = 0): [01:28:26.715] { [01:28:26.715] { [01:28:26.715] { [01:28:26.715] ...future.startTime <- base::Sys.time() [01:28:26.715] { [01:28:26.715] { [01:28:26.715] { [01:28:26.715] { [01:28:26.715] base::local({ [01:28:26.715] has_future <- base::requireNamespace("future", [01:28:26.715] quietly = TRUE) [01:28:26.715] if (has_future) { [01:28:26.715] ns <- base::getNamespace("future") [01:28:26.715] version <- ns[[".package"]][["version"]] [01:28:26.715] if (is.null(version)) [01:28:26.715] version <- utils::packageVersion("future") [01:28:26.715] } [01:28:26.715] else { [01:28:26.715] version <- NULL [01:28:26.715] } [01:28:26.715] if (!has_future || version < "1.8.0") { [01:28:26.715] info <- base::c(r_version = base::gsub("R version ", [01:28:26.715] "", base::R.version$version.string), [01:28:26.715] platform = base::sprintf("%s (%s-bit)", [01:28:26.715] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:28:26.715] os = base::paste(base::Sys.info()[base::c("sysname", [01:28:26.715] "release", "version")], collapse = " "), [01:28:26.715] hostname = base::Sys.info()[["nodename"]]) [01:28:26.715] info <- base::sprintf("%s: %s", base::names(info), [01:28:26.715] info) [01:28:26.715] info <- base::paste(info, collapse = "; ") [01:28:26.715] if (!has_future) { [01:28:26.715] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:28:26.715] info) [01:28:26.715] } [01:28:26.715] else { [01:28:26.715] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:28:26.715] info, version) [01:28:26.715] } [01:28:26.715] base::stop(msg) [01:28:26.715] } [01:28:26.715] }) [01:28:26.715] } [01:28:26.715] ...future.mc.cores.old <- base::getOption("mc.cores") [01:28:26.715] base::options(mc.cores = 1L) [01:28:26.715] } [01:28:26.715] options(future.plan = NULL) [01:28:26.715] Sys.unsetenv("R_FUTURE_PLAN") [01:28:26.715] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:28:26.715] } [01:28:26.715] ...future.workdir <- getwd() [01:28:26.715] } [01:28:26.715] ...future.oldOptions <- base::as.list(base::.Options) [01:28:26.715] ...future.oldEnvVars <- base::Sys.getenv() [01:28:26.715] } [01:28:26.715] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:28:26.715] future.globals.maxSize = NULL, future.globals.method = NULL, [01:28:26.715] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:28:26.715] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:28:26.715] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:28:26.715] future.stdout.windows.reencode = NULL, width = 80L) [01:28:26.715] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:28:26.715] base::names(...future.oldOptions)) [01:28:26.715] } [01:28:26.715] if (FALSE) { [01:28:26.715] } [01:28:26.715] else { [01:28:26.715] if (TRUE) { [01:28:26.715] ...future.stdout <- base::rawConnection(base::raw(0L), [01:28:26.715] open = "w") [01:28:26.715] } [01:28:26.715] else { [01:28:26.715] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:28:26.715] windows = "NUL", "/dev/null"), open = "w") [01:28:26.715] } [01:28:26.715] base::sink(...future.stdout, type = "output", split = FALSE) [01:28:26.715] base::on.exit(if (!base::is.null(...future.stdout)) { [01:28:26.715] base::sink(type = "output", split = FALSE) [01:28:26.715] base::close(...future.stdout) [01:28:26.715] }, add = TRUE) [01:28:26.715] } [01:28:26.715] ...future.frame <- base::sys.nframe() [01:28:26.715] ...future.conditions <- base::list() [01:28:26.715] ...future.rng <- base::globalenv()$.Random.seed [01:28:26.715] if (FALSE) { [01:28:26.715] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:28:26.715] "...future.value", "...future.globalenv.names", ".Random.seed") [01:28:26.715] } [01:28:26.715] ...future.result <- base::tryCatch({ [01:28:26.715] base::withCallingHandlers({ [01:28:26.715] ...future.value <- base::withVisible(base::local({ [01:28:26.715] ...future.makeSendCondition <- base::local({ [01:28:26.715] sendCondition <- NULL [01:28:26.715] function(frame = 1L) { [01:28:26.715] if (is.function(sendCondition)) [01:28:26.715] return(sendCondition) [01:28:26.715] ns <- getNamespace("parallel") [01:28:26.715] if (exists("sendData", mode = "function", [01:28:26.715] envir = ns)) { [01:28:26.715] parallel_sendData <- get("sendData", mode = "function", [01:28:26.715] envir = ns) [01:28:26.715] envir <- sys.frame(frame) [01:28:26.715] master <- NULL [01:28:26.715] while (!identical(envir, .GlobalEnv) && [01:28:26.715] !identical(envir, emptyenv())) { [01:28:26.715] if (exists("master", mode = "list", envir = envir, [01:28:26.715] inherits = FALSE)) { [01:28:26.715] master <- get("master", mode = "list", [01:28:26.715] envir = envir, inherits = FALSE) [01:28:26.715] if (inherits(master, c("SOCKnode", [01:28:26.715] "SOCK0node"))) { [01:28:26.715] sendCondition <<- function(cond) { [01:28:26.715] data <- list(type = "VALUE", value = cond, [01:28:26.715] success = TRUE) [01:28:26.715] parallel_sendData(master, data) [01:28:26.715] } [01:28:26.715] return(sendCondition) [01:28:26.715] } [01:28:26.715] } [01:28:26.715] frame <- frame + 1L [01:28:26.715] envir <- sys.frame(frame) [01:28:26.715] } [01:28:26.715] } [01:28:26.715] sendCondition <<- function(cond) NULL [01:28:26.715] } [01:28:26.715] }) [01:28:26.715] withCallingHandlers({ [01:28:26.715] NA [01:28:26.715] }, immediateCondition = function(cond) { [01:28:26.715] sendCondition <- ...future.makeSendCondition() [01:28:26.715] sendCondition(cond) [01:28:26.715] muffleCondition <- function (cond, pattern = "^muffle") [01:28:26.715] { [01:28:26.715] inherits <- base::inherits [01:28:26.715] invokeRestart <- base::invokeRestart [01:28:26.715] is.null <- base::is.null [01:28:26.715] muffled <- FALSE [01:28:26.715] if (inherits(cond, "message")) { [01:28:26.715] muffled <- grepl(pattern, "muffleMessage") [01:28:26.715] if (muffled) [01:28:26.715] invokeRestart("muffleMessage") [01:28:26.715] } [01:28:26.715] else if (inherits(cond, "warning")) { [01:28:26.715] muffled <- grepl(pattern, "muffleWarning") [01:28:26.715] if (muffled) [01:28:26.715] invokeRestart("muffleWarning") [01:28:26.715] } [01:28:26.715] else if (inherits(cond, "condition")) { [01:28:26.715] if (!is.null(pattern)) { [01:28:26.715] computeRestarts <- base::computeRestarts [01:28:26.715] grepl <- base::grepl [01:28:26.715] restarts <- computeRestarts(cond) [01:28:26.715] for (restart in restarts) { [01:28:26.715] name <- restart$name [01:28:26.715] if (is.null(name)) [01:28:26.715] next [01:28:26.715] if (!grepl(pattern, name)) [01:28:26.715] next [01:28:26.715] invokeRestart(restart) [01:28:26.715] muffled <- TRUE [01:28:26.715] break [01:28:26.715] } [01:28:26.715] } [01:28:26.715] } [01:28:26.715] invisible(muffled) [01:28:26.715] } [01:28:26.715] muffleCondition(cond) [01:28:26.715] }) [01:28:26.715] })) [01:28:26.715] future::FutureResult(value = ...future.value$value, [01:28:26.715] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:28:26.715] ...future.rng), globalenv = if (FALSE) [01:28:26.715] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:28:26.715] ...future.globalenv.names)) [01:28:26.715] else NULL, started = ...future.startTime, version = "1.8") [01:28:26.715] }, condition = base::local({ [01:28:26.715] c <- base::c [01:28:26.715] inherits <- base::inherits [01:28:26.715] invokeRestart <- base::invokeRestart [01:28:26.715] length <- base::length [01:28:26.715] list <- base::list [01:28:26.715] seq.int <- base::seq.int [01:28:26.715] signalCondition <- base::signalCondition [01:28:26.715] sys.calls <- base::sys.calls [01:28:26.715] `[[` <- base::`[[` [01:28:26.715] `+` <- base::`+` [01:28:26.715] `<<-` <- base::`<<-` [01:28:26.715] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:28:26.715] calls[seq.int(from = from + 12L, to = length(calls) - [01:28:26.715] 3L)] [01:28:26.715] } [01:28:26.715] function(cond) { [01:28:26.715] is_error <- inherits(cond, "error") [01:28:26.715] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:28:26.715] NULL) [01:28:26.715] if (is_error) { [01:28:26.715] sessionInformation <- function() { [01:28:26.715] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:28:26.715] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:28:26.715] search = base::search(), system = base::Sys.info()) [01:28:26.715] } [01:28:26.715] ...future.conditions[[length(...future.conditions) + [01:28:26.715] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:28:26.715] cond$call), session = sessionInformation(), [01:28:26.715] timestamp = base::Sys.time(), signaled = 0L) [01:28:26.715] signalCondition(cond) [01:28:26.715] } [01:28:26.715] else if (!ignore && TRUE && inherits(cond, c("condition", [01:28:26.715] "immediateCondition"))) { [01:28:26.715] signal <- TRUE && inherits(cond, "immediateCondition") [01:28:26.715] ...future.conditions[[length(...future.conditions) + [01:28:26.715] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:28:26.715] if (TRUE && !signal) { [01:28:26.715] muffleCondition <- function (cond, pattern = "^muffle") [01:28:26.715] { [01:28:26.715] inherits <- base::inherits [01:28:26.715] invokeRestart <- base::invokeRestart [01:28:26.715] is.null <- base::is.null [01:28:26.715] muffled <- FALSE [01:28:26.715] if (inherits(cond, "message")) { [01:28:26.715] muffled <- grepl(pattern, "muffleMessage") [01:28:26.715] if (muffled) [01:28:26.715] invokeRestart("muffleMessage") [01:28:26.715] } [01:28:26.715] else if (inherits(cond, "warning")) { [01:28:26.715] muffled <- grepl(pattern, "muffleWarning") [01:28:26.715] if (muffled) [01:28:26.715] invokeRestart("muffleWarning") [01:28:26.715] } [01:28:26.715] else if (inherits(cond, "condition")) { [01:28:26.715] if (!is.null(pattern)) { [01:28:26.715] computeRestarts <- base::computeRestarts [01:28:26.715] grepl <- base::grepl [01:28:26.715] restarts <- computeRestarts(cond) [01:28:26.715] for (restart in restarts) { [01:28:26.715] name <- restart$name [01:28:26.715] if (is.null(name)) [01:28:26.715] next [01:28:26.715] if (!grepl(pattern, name)) [01:28:26.715] next [01:28:26.715] invokeRestart(restart) [01:28:26.715] muffled <- TRUE [01:28:26.715] break [01:28:26.715] } [01:28:26.715] } [01:28:26.715] } [01:28:26.715] invisible(muffled) [01:28:26.715] } [01:28:26.715] muffleCondition(cond, pattern = "^muffle") [01:28:26.715] } [01:28:26.715] } [01:28:26.715] else { [01:28:26.715] if (TRUE) { [01:28:26.715] muffleCondition <- function (cond, pattern = "^muffle") [01:28:26.715] { [01:28:26.715] inherits <- base::inherits [01:28:26.715] invokeRestart <- base::invokeRestart [01:28:26.715] is.null <- base::is.null [01:28:26.715] muffled <- FALSE [01:28:26.715] if (inherits(cond, "message")) { [01:28:26.715] muffled <- grepl(pattern, "muffleMessage") [01:28:26.715] if (muffled) [01:28:26.715] invokeRestart("muffleMessage") [01:28:26.715] } [01:28:26.715] else if (inherits(cond, "warning")) { [01:28:26.715] muffled <- grepl(pattern, "muffleWarning") [01:28:26.715] if (muffled) [01:28:26.715] invokeRestart("muffleWarning") [01:28:26.715] } [01:28:26.715] else if (inherits(cond, "condition")) { [01:28:26.715] if (!is.null(pattern)) { [01:28:26.715] computeRestarts <- base::computeRestarts [01:28:26.715] grepl <- base::grepl [01:28:26.715] restarts <- computeRestarts(cond) [01:28:26.715] for (restart in restarts) { [01:28:26.715] name <- restart$name [01:28:26.715] if (is.null(name)) [01:28:26.715] next [01:28:26.715] if (!grepl(pattern, name)) [01:28:26.715] next [01:28:26.715] invokeRestart(restart) [01:28:26.715] muffled <- TRUE [01:28:26.715] break [01:28:26.715] } [01:28:26.715] } [01:28:26.715] } [01:28:26.715] invisible(muffled) [01:28:26.715] } [01:28:26.715] muffleCondition(cond, pattern = "^muffle") [01:28:26.715] } [01:28:26.715] } [01:28:26.715] } [01:28:26.715] })) [01:28:26.715] }, error = function(ex) { [01:28:26.715] base::structure(base::list(value = NULL, visible = NULL, [01:28:26.715] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:28:26.715] ...future.rng), started = ...future.startTime, [01:28:26.715] finished = Sys.time(), session_uuid = NA_character_, [01:28:26.715] version = "1.8"), class = "FutureResult") [01:28:26.715] }, finally = { [01:28:26.715] if (!identical(...future.workdir, getwd())) [01:28:26.715] setwd(...future.workdir) [01:28:26.715] { [01:28:26.715] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:28:26.715] ...future.oldOptions$nwarnings <- NULL [01:28:26.715] } [01:28:26.715] base::options(...future.oldOptions) [01:28:26.715] if (.Platform$OS.type == "windows") { [01:28:26.715] old_names <- names(...future.oldEnvVars) [01:28:26.715] envs <- base::Sys.getenv() [01:28:26.715] names <- names(envs) [01:28:26.715] common <- intersect(names, old_names) [01:28:26.715] added <- setdiff(names, old_names) [01:28:26.715] removed <- setdiff(old_names, names) [01:28:26.715] changed <- common[...future.oldEnvVars[common] != [01:28:26.715] envs[common]] [01:28:26.715] NAMES <- toupper(changed) [01:28:26.715] args <- list() [01:28:26.715] for (kk in seq_along(NAMES)) { [01:28:26.715] name <- changed[[kk]] [01:28:26.715] NAME <- NAMES[[kk]] [01:28:26.715] if (name != NAME && is.element(NAME, old_names)) [01:28:26.715] next [01:28:26.715] args[[name]] <- ...future.oldEnvVars[[name]] [01:28:26.715] } [01:28:26.715] NAMES <- toupper(added) [01:28:26.715] for (kk in seq_along(NAMES)) { [01:28:26.715] name <- added[[kk]] [01:28:26.715] NAME <- NAMES[[kk]] [01:28:26.715] if (name != NAME && is.element(NAME, old_names)) [01:28:26.715] next [01:28:26.715] args[[name]] <- "" [01:28:26.715] } [01:28:26.715] NAMES <- toupper(removed) [01:28:26.715] for (kk in seq_along(NAMES)) { [01:28:26.715] name <- removed[[kk]] [01:28:26.715] NAME <- NAMES[[kk]] [01:28:26.715] if (name != NAME && is.element(NAME, old_names)) [01:28:26.715] next [01:28:26.715] args[[name]] <- ...future.oldEnvVars[[name]] [01:28:26.715] } [01:28:26.715] if (length(args) > 0) [01:28:26.715] base::do.call(base::Sys.setenv, args = args) [01:28:26.715] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:28:26.715] } [01:28:26.715] else { [01:28:26.715] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:28:26.715] } [01:28:26.715] { [01:28:26.715] if (base::length(...future.futureOptionsAdded) > [01:28:26.715] 0L) { [01:28:26.715] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:28:26.715] base::names(opts) <- ...future.futureOptionsAdded [01:28:26.715] base::options(opts) [01:28:26.715] } [01:28:26.715] { [01:28:26.715] { [01:28:26.715] base::options(mc.cores = ...future.mc.cores.old) [01:28:26.715] NULL [01:28:26.715] } [01:28:26.715] options(future.plan = NULL) [01:28:26.715] if (is.na(NA_character_)) [01:28:26.715] Sys.unsetenv("R_FUTURE_PLAN") [01:28:26.715] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:28:26.715] future::plan(list(function (..., workers = availableCores(), [01:28:26.715] lazy = FALSE, rscript_libs = .libPaths(), [01:28:26.715] envir = parent.frame()) [01:28:26.715] { [01:28:26.715] if (is.function(workers)) [01:28:26.715] workers <- workers() [01:28:26.715] workers <- structure(as.integer(workers), [01:28:26.715] class = class(workers)) [01:28:26.715] stop_if_not(length(workers) == 1, is.finite(workers), [01:28:26.715] workers >= 1) [01:28:26.715] if (workers == 1L && !inherits(workers, "AsIs")) { [01:28:26.715] return(sequential(..., lazy = TRUE, envir = envir)) [01:28:26.715] } [01:28:26.715] future <- MultisessionFuture(..., workers = workers, [01:28:26.715] lazy = lazy, rscript_libs = rscript_libs, [01:28:26.715] envir = envir) [01:28:26.715] if (!future$lazy) [01:28:26.715] future <- run(future) [01:28:26.715] invisible(future) [01:28:26.715] }), .cleanup = FALSE, .init = FALSE) [01:28:26.715] } [01:28:26.715] } [01:28:26.715] } [01:28:26.715] }) [01:28:26.715] if (TRUE) { [01:28:26.715] base::sink(type = "output", split = FALSE) [01:28:26.715] if (TRUE) { [01:28:26.715] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:28:26.715] } [01:28:26.715] else { [01:28:26.715] ...future.result["stdout"] <- base::list(NULL) [01:28:26.715] } [01:28:26.715] base::close(...future.stdout) [01:28:26.715] ...future.stdout <- NULL [01:28:26.715] } [01:28:26.715] ...future.result$conditions <- ...future.conditions [01:28:26.715] ...future.result$finished <- base::Sys.time() [01:28:26.715] ...future.result [01:28:26.715] } [01:28:26.799] MultisessionFuture started [01:28:26.800] result() for ClusterFuture ... [01:28:26.800] receiveMessageFromWorker() for ClusterFuture ... [01:28:26.800] - Validating connection of MultisessionFuture [01:28:26.860] - received message: FutureResult [01:28:26.860] - Received FutureResult [01:28:26.864] - Erased future from FutureRegistry [01:28:26.864] result() for ClusterFuture ... [01:28:26.864] - result already collected: FutureResult [01:28:26.865] result() for ClusterFuture ... done [01:28:26.865] receiveMessageFromWorker() for ClusterFuture ... done [01:28:26.865] result() for ClusterFuture ... done [01:28:26.865] result() for ClusterFuture ... [01:28:26.865] - result already collected: FutureResult [01:28:26.866] result() for ClusterFuture ... done [01:28:26.866] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:28:26.868] plan(): nbrOfWorkers() = 2 nbrOfWorkers: 2 [01:28:26.876] getGlobalsAndPackages() ... [01:28:26.876] [01:28:26.876] - globals: [0] [01:28:26.877] getGlobalsAndPackages() ... DONE nbrOfFreeWorkers: 2 [01:28:26.894] getGlobalsAndPackages() ... [01:28:26.894] [01:28:26.894] - globals: [0] [01:28:26.895] getGlobalsAndPackages() ... DONE nbrOfFreeWorkers(background = TRUE): 2 [01:28:26.908] plan(): Setting new future strategy stack: [01:28:26.908] List of future strategies: [01:28:26.908] 1. multisession: [01:28:26.908] - args: function (..., workers = 1L, envir = parent.frame()) [01:28:26.908] - tweaked: TRUE [01:28:26.908] - call: plan(strategy, workers = 1L) [01:28:26.909] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [01:28:26.910] multisession: [01:28:26.910] - args: function (..., workers = 1L, envir = parent.frame()) [01:28:26.910] - tweaked: TRUE [01:28:26.910] - call: plan(strategy, workers = 1L) [01:28:26.910] getGlobalsAndPackages() ... [01:28:26.911] Not searching for globals [01:28:26.911] - globals: [0] [01:28:26.911] getGlobalsAndPackages() ... DONE [01:28:26.912] Packages needed by the future expression (n = 0): [01:28:26.912] Packages needed by future strategies (n = 0): [01:28:26.913] { [01:28:26.913] { [01:28:26.913] { [01:28:26.913] ...future.startTime <- base::Sys.time() [01:28:26.913] { [01:28:26.913] { [01:28:26.913] { [01:28:26.913] base::local({ [01:28:26.913] has_future <- base::requireNamespace("future", [01:28:26.913] quietly = TRUE) [01:28:26.913] if (has_future) { [01:28:26.913] ns <- base::getNamespace("future") [01:28:26.913] version <- ns[[".package"]][["version"]] [01:28:26.913] if (is.null(version)) [01:28:26.913] version <- utils::packageVersion("future") [01:28:26.913] } [01:28:26.913] else { [01:28:26.913] version <- NULL [01:28:26.913] } [01:28:26.913] if (!has_future || version < "1.8.0") { [01:28:26.913] info <- base::c(r_version = base::gsub("R version ", [01:28:26.913] "", base::R.version$version.string), [01:28:26.913] platform = base::sprintf("%s (%s-bit)", [01:28:26.913] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:28:26.913] os = base::paste(base::Sys.info()[base::c("sysname", [01:28:26.913] "release", "version")], collapse = " "), [01:28:26.913] hostname = base::Sys.info()[["nodename"]]) [01:28:26.913] info <- base::sprintf("%s: %s", base::names(info), [01:28:26.913] info) [01:28:26.913] info <- base::paste(info, collapse = "; ") [01:28:26.913] if (!has_future) { [01:28:26.913] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:28:26.913] info) [01:28:26.913] } [01:28:26.913] else { [01:28:26.913] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:28:26.913] info, version) [01:28:26.913] } [01:28:26.913] base::stop(msg) [01:28:26.913] } [01:28:26.913] }) [01:28:26.913] } [01:28:26.913] options(future.plan = NULL) [01:28:26.913] Sys.unsetenv("R_FUTURE_PLAN") [01:28:26.913] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:28:26.913] } [01:28:26.913] ...future.workdir <- getwd() [01:28:26.913] } [01:28:26.913] ...future.oldOptions <- base::as.list(base::.Options) [01:28:26.913] ...future.oldEnvVars <- base::Sys.getenv() [01:28:26.913] } [01:28:26.913] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:28:26.913] future.globals.maxSize = NULL, future.globals.method = NULL, [01:28:26.913] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:28:26.913] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:28:26.913] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:28:26.913] future.stdout.windows.reencode = NULL, width = 80L) [01:28:26.913] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:28:26.913] base::names(...future.oldOptions)) [01:28:26.913] } [01:28:26.913] if (FALSE) { [01:28:26.913] } [01:28:26.913] else { [01:28:26.913] if (TRUE) { [01:28:26.913] ...future.stdout <- base::rawConnection(base::raw(0L), [01:28:26.913] open = "w") [01:28:26.913] } [01:28:26.913] else { [01:28:26.913] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:28:26.913] windows = "NUL", "/dev/null"), open = "w") [01:28:26.913] } [01:28:26.913] base::sink(...future.stdout, type = "output", split = FALSE) [01:28:26.913] base::on.exit(if (!base::is.null(...future.stdout)) { [01:28:26.913] base::sink(type = "output", split = FALSE) [01:28:26.913] base::close(...future.stdout) [01:28:26.913] }, add = TRUE) [01:28:26.913] } [01:28:26.913] ...future.frame <- base::sys.nframe() [01:28:26.913] ...future.conditions <- base::list() [01:28:26.913] ...future.rng <- base::globalenv()$.Random.seed [01:28:26.913] if (FALSE) { [01:28:26.913] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:28:26.913] "...future.value", "...future.globalenv.names", ".Random.seed") [01:28:26.913] } [01:28:26.913] ...future.result <- base::tryCatch({ [01:28:26.913] base::withCallingHandlers({ [01:28:26.913] ...future.value <- base::withVisible(base::local(NA)) [01:28:26.913] future::FutureResult(value = ...future.value$value, [01:28:26.913] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:28:26.913] ...future.rng), globalenv = if (FALSE) [01:28:26.913] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:28:26.913] ...future.globalenv.names)) [01:28:26.913] else NULL, started = ...future.startTime, version = "1.8") [01:28:26.913] }, condition = base::local({ [01:28:26.913] c <- base::c [01:28:26.913] inherits <- base::inherits [01:28:26.913] invokeRestart <- base::invokeRestart [01:28:26.913] length <- base::length [01:28:26.913] list <- base::list [01:28:26.913] seq.int <- base::seq.int [01:28:26.913] signalCondition <- base::signalCondition [01:28:26.913] sys.calls <- base::sys.calls [01:28:26.913] `[[` <- base::`[[` [01:28:26.913] `+` <- base::`+` [01:28:26.913] `<<-` <- base::`<<-` [01:28:26.913] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:28:26.913] calls[seq.int(from = from + 12L, to = length(calls) - [01:28:26.913] 3L)] [01:28:26.913] } [01:28:26.913] function(cond) { [01:28:26.913] is_error <- inherits(cond, "error") [01:28:26.913] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:28:26.913] NULL) [01:28:26.913] if (is_error) { [01:28:26.913] sessionInformation <- function() { [01:28:26.913] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:28:26.913] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:28:26.913] search = base::search(), system = base::Sys.info()) [01:28:26.913] } [01:28:26.913] ...future.conditions[[length(...future.conditions) + [01:28:26.913] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:28:26.913] cond$call), session = sessionInformation(), [01:28:26.913] timestamp = base::Sys.time(), signaled = 0L) [01:28:26.913] signalCondition(cond) [01:28:26.913] } [01:28:26.913] else if (!ignore && TRUE && inherits(cond, c("condition", [01:28:26.913] "immediateCondition"))) { [01:28:26.913] signal <- TRUE && inherits(cond, "immediateCondition") [01:28:26.913] ...future.conditions[[length(...future.conditions) + [01:28:26.913] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:28:26.913] if (TRUE && !signal) { [01:28:26.913] muffleCondition <- function (cond, pattern = "^muffle") [01:28:26.913] { [01:28:26.913] inherits <- base::inherits [01:28:26.913] invokeRestart <- base::invokeRestart [01:28:26.913] is.null <- base::is.null [01:28:26.913] muffled <- FALSE [01:28:26.913] if (inherits(cond, "message")) { [01:28:26.913] muffled <- grepl(pattern, "muffleMessage") [01:28:26.913] if (muffled) [01:28:26.913] invokeRestart("muffleMessage") [01:28:26.913] } [01:28:26.913] else if (inherits(cond, "warning")) { [01:28:26.913] muffled <- grepl(pattern, "muffleWarning") [01:28:26.913] if (muffled) [01:28:26.913] invokeRestart("muffleWarning") [01:28:26.913] } [01:28:26.913] else if (inherits(cond, "condition")) { [01:28:26.913] if (!is.null(pattern)) { [01:28:26.913] computeRestarts <- base::computeRestarts [01:28:26.913] grepl <- base::grepl [01:28:26.913] restarts <- computeRestarts(cond) [01:28:26.913] for (restart in restarts) { [01:28:26.913] name <- restart$name [01:28:26.913] if (is.null(name)) [01:28:26.913] next [01:28:26.913] if (!grepl(pattern, name)) [01:28:26.913] next [01:28:26.913] invokeRestart(restart) [01:28:26.913] muffled <- TRUE [01:28:26.913] break [01:28:26.913] } [01:28:26.913] } [01:28:26.913] } [01:28:26.913] invisible(muffled) [01:28:26.913] } [01:28:26.913] muffleCondition(cond, pattern = "^muffle") [01:28:26.913] } [01:28:26.913] } [01:28:26.913] else { [01:28:26.913] if (TRUE) { [01:28:26.913] muffleCondition <- function (cond, pattern = "^muffle") [01:28:26.913] { [01:28:26.913] inherits <- base::inherits [01:28:26.913] invokeRestart <- base::invokeRestart [01:28:26.913] is.null <- base::is.null [01:28:26.913] muffled <- FALSE [01:28:26.913] if (inherits(cond, "message")) { [01:28:26.913] muffled <- grepl(pattern, "muffleMessage") [01:28:26.913] if (muffled) [01:28:26.913] invokeRestart("muffleMessage") [01:28:26.913] } [01:28:26.913] else if (inherits(cond, "warning")) { [01:28:26.913] muffled <- grepl(pattern, "muffleWarning") [01:28:26.913] if (muffled) [01:28:26.913] invokeRestart("muffleWarning") [01:28:26.913] } [01:28:26.913] else if (inherits(cond, "condition")) { [01:28:26.913] if (!is.null(pattern)) { [01:28:26.913] computeRestarts <- base::computeRestarts [01:28:26.913] grepl <- base::grepl [01:28:26.913] restarts <- computeRestarts(cond) [01:28:26.913] for (restart in restarts) { [01:28:26.913] name <- restart$name [01:28:26.913] if (is.null(name)) [01:28:26.913] next [01:28:26.913] if (!grepl(pattern, name)) [01:28:26.913] next [01:28:26.913] invokeRestart(restart) [01:28:26.913] muffled <- TRUE [01:28:26.913] break [01:28:26.913] } [01:28:26.913] } [01:28:26.913] } [01:28:26.913] invisible(muffled) [01:28:26.913] } [01:28:26.913] muffleCondition(cond, pattern = "^muffle") [01:28:26.913] } [01:28:26.913] } [01:28:26.913] } [01:28:26.913] })) [01:28:26.913] }, error = function(ex) { [01:28:26.913] base::structure(base::list(value = NULL, visible = NULL, [01:28:26.913] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:28:26.913] ...future.rng), started = ...future.startTime, [01:28:26.913] finished = Sys.time(), session_uuid = NA_character_, [01:28:26.913] version = "1.8"), class = "FutureResult") [01:28:26.913] }, finally = { [01:28:26.913] if (!identical(...future.workdir, getwd())) [01:28:26.913] setwd(...future.workdir) [01:28:26.913] { [01:28:26.913] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:28:26.913] ...future.oldOptions$nwarnings <- NULL [01:28:26.913] } [01:28:26.913] base::options(...future.oldOptions) [01:28:26.913] if (.Platform$OS.type == "windows") { [01:28:26.913] old_names <- names(...future.oldEnvVars) [01:28:26.913] envs <- base::Sys.getenv() [01:28:26.913] names <- names(envs) [01:28:26.913] common <- intersect(names, old_names) [01:28:26.913] added <- setdiff(names, old_names) [01:28:26.913] removed <- setdiff(old_names, names) [01:28:26.913] changed <- common[...future.oldEnvVars[common] != [01:28:26.913] envs[common]] [01:28:26.913] NAMES <- toupper(changed) [01:28:26.913] args <- list() [01:28:26.913] for (kk in seq_along(NAMES)) { [01:28:26.913] name <- changed[[kk]] [01:28:26.913] NAME <- NAMES[[kk]] [01:28:26.913] if (name != NAME && is.element(NAME, old_names)) [01:28:26.913] next [01:28:26.913] args[[name]] <- ...future.oldEnvVars[[name]] [01:28:26.913] } [01:28:26.913] NAMES <- toupper(added) [01:28:26.913] for (kk in seq_along(NAMES)) { [01:28:26.913] name <- added[[kk]] [01:28:26.913] NAME <- NAMES[[kk]] [01:28:26.913] if (name != NAME && is.element(NAME, old_names)) [01:28:26.913] next [01:28:26.913] args[[name]] <- "" [01:28:26.913] } [01:28:26.913] NAMES <- toupper(removed) [01:28:26.913] for (kk in seq_along(NAMES)) { [01:28:26.913] name <- removed[[kk]] [01:28:26.913] NAME <- NAMES[[kk]] [01:28:26.913] if (name != NAME && is.element(NAME, old_names)) [01:28:26.913] next [01:28:26.913] args[[name]] <- ...future.oldEnvVars[[name]] [01:28:26.913] } [01:28:26.913] if (length(args) > 0) [01:28:26.913] base::do.call(base::Sys.setenv, args = args) [01:28:26.913] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:28:26.913] } [01:28:26.913] else { [01:28:26.913] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:28:26.913] } [01:28:26.913] { [01:28:26.913] if (base::length(...future.futureOptionsAdded) > [01:28:26.913] 0L) { [01:28:26.913] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:28:26.913] base::names(opts) <- ...future.futureOptionsAdded [01:28:26.913] base::options(opts) [01:28:26.913] } [01:28:26.913] { [01:28:26.913] { [01:28:26.913] NULL [01:28:26.913] RNGkind("Mersenne-Twister") [01:28:26.913] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:28:26.913] inherits = FALSE) [01:28:26.913] } [01:28:26.913] options(future.plan = NULL) [01:28:26.913] if (is.na(NA_character_)) [01:28:26.913] Sys.unsetenv("R_FUTURE_PLAN") [01:28:26.913] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:28:26.913] future::plan(list(function (..., workers = 1L, [01:28:26.913] envir = parent.frame()) [01:28:26.913] strategy(..., workers = workers, envir = envir)), [01:28:26.913] .cleanup = FALSE, .init = FALSE) [01:28:26.913] } [01:28:26.913] } [01:28:26.913] } [01:28:26.913] }) [01:28:26.913] if (TRUE) { [01:28:26.913] base::sink(type = "output", split = FALSE) [01:28:26.913] if (TRUE) { [01:28:26.913] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:28:26.913] } [01:28:26.913] else { [01:28:26.913] ...future.result["stdout"] <- base::list(NULL) [01:28:26.913] } [01:28:26.913] base::close(...future.stdout) [01:28:26.913] ...future.stdout <- NULL [01:28:26.913] } [01:28:26.913] ...future.result$conditions <- ...future.conditions [01:28:26.913] ...future.result$finished <- base::Sys.time() [01:28:26.913] ...future.result [01:28:26.913] } [01:28:26.917] plan(): Setting new future strategy stack: [01:28:26.917] List of future strategies: [01:28:26.917] 1. sequential: [01:28:26.917] - args: function (..., envir = parent.frame(), workers = "") [01:28:26.917] - tweaked: FALSE [01:28:26.917] - call: NULL [01:28:26.918] plan(): nbrOfWorkers() = 1 [01:28:26.920] plan(): Setting new future strategy stack: [01:28:26.921] List of future strategies: [01:28:26.921] 1. multisession: [01:28:26.921] - args: function (..., workers = 1L, envir = parent.frame()) [01:28:26.921] - tweaked: TRUE [01:28:26.921] - call: plan(strategy, workers = 1L) [01:28:26.921] plan(): nbrOfWorkers() = 1 [01:28:26.922] SequentialFuture started (and completed) [01:28:26.922] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:28:26.922] plan(): nbrOfWorkers() = 1 nbrOfWorkers: 1 [01:28:26.923] getGlobalsAndPackages() ... [01:28:26.923] Searching for globals... [01:28:26.926] [01:28:26.926] Searching for globals ... DONE [01:28:26.927] - globals: [0] [01:28:26.927] getGlobalsAndPackages() ... DONE nbrOfFreeWorkers: 1 [01:28:26.928] getGlobalsAndPackages() ... [01:28:26.928] Searching for globals... [01:28:26.928] [01:28:26.929] Searching for globals ... DONE [01:28:26.929] - globals: [0] [01:28:26.929] getGlobalsAndPackages() ... DONE nbrOfFreeWorkers(background = TRUE): 0 [01:28:26.930] plan(): Setting new future strategy stack: [01:28:26.930] List of future strategies: [01:28:26.930] 1. multisession: [01:28:26.930] - args: function (..., workers = "", envir = parent.frame()) [01:28:26.930] - tweaked: TRUE [01:28:26.930] - call: plan(strategy, workers = allButOneCore) [01:28:26.931] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [01:28:26.931] multisession: [01:28:26.931] - args: function (..., workers = "", envir = parent.frame()) [01:28:26.931] - tweaked: TRUE [01:28:26.931] - call: plan(strategy, workers = allButOneCore) [01:28:26.935] getGlobalsAndPackages() ... [01:28:26.936] Not searching for globals [01:28:26.936] - globals: [0] [01:28:26.936] getGlobalsAndPackages() ... DONE [01:28:26.938] Packages needed by the future expression (n = 0): [01:28:26.938] Packages needed by future strategies (n = 0): [01:28:26.939] { [01:28:26.939] { [01:28:26.939] { [01:28:26.939] ...future.startTime <- base::Sys.time() [01:28:26.939] { [01:28:26.939] { [01:28:26.939] { [01:28:26.939] base::local({ [01:28:26.939] has_future <- base::requireNamespace("future", [01:28:26.939] quietly = TRUE) [01:28:26.939] if (has_future) { [01:28:26.939] ns <- base::getNamespace("future") [01:28:26.939] version <- ns[[".package"]][["version"]] [01:28:26.939] if (is.null(version)) [01:28:26.939] version <- utils::packageVersion("future") [01:28:26.939] } [01:28:26.939] else { [01:28:26.939] version <- NULL [01:28:26.939] } [01:28:26.939] if (!has_future || version < "1.8.0") { [01:28:26.939] info <- base::c(r_version = base::gsub("R version ", [01:28:26.939] "", base::R.version$version.string), [01:28:26.939] platform = base::sprintf("%s (%s-bit)", [01:28:26.939] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:28:26.939] os = base::paste(base::Sys.info()[base::c("sysname", [01:28:26.939] "release", "version")], collapse = " "), [01:28:26.939] hostname = base::Sys.info()[["nodename"]]) [01:28:26.939] info <- base::sprintf("%s: %s", base::names(info), [01:28:26.939] info) [01:28:26.939] info <- base::paste(info, collapse = "; ") [01:28:26.939] if (!has_future) { [01:28:26.939] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:28:26.939] info) [01:28:26.939] } [01:28:26.939] else { [01:28:26.939] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:28:26.939] info, version) [01:28:26.939] } [01:28:26.939] base::stop(msg) [01:28:26.939] } [01:28:26.939] }) [01:28:26.939] } [01:28:26.939] options(future.plan = NULL) [01:28:26.939] Sys.unsetenv("R_FUTURE_PLAN") [01:28:26.939] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:28:26.939] } [01:28:26.939] ...future.workdir <- getwd() [01:28:26.939] } [01:28:26.939] ...future.oldOptions <- base::as.list(base::.Options) [01:28:26.939] ...future.oldEnvVars <- base::Sys.getenv() [01:28:26.939] } [01:28:26.939] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:28:26.939] future.globals.maxSize = NULL, future.globals.method = NULL, [01:28:26.939] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:28:26.939] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:28:26.939] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:28:26.939] future.stdout.windows.reencode = NULL, width = 80L) [01:28:26.939] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:28:26.939] base::names(...future.oldOptions)) [01:28:26.939] } [01:28:26.939] if (FALSE) { [01:28:26.939] } [01:28:26.939] else { [01:28:26.939] if (TRUE) { [01:28:26.939] ...future.stdout <- base::rawConnection(base::raw(0L), [01:28:26.939] open = "w") [01:28:26.939] } [01:28:26.939] else { [01:28:26.939] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:28:26.939] windows = "NUL", "/dev/null"), open = "w") [01:28:26.939] } [01:28:26.939] base::sink(...future.stdout, type = "output", split = FALSE) [01:28:26.939] base::on.exit(if (!base::is.null(...future.stdout)) { [01:28:26.939] base::sink(type = "output", split = FALSE) [01:28:26.939] base::close(...future.stdout) [01:28:26.939] }, add = TRUE) [01:28:26.939] } [01:28:26.939] ...future.frame <- base::sys.nframe() [01:28:26.939] ...future.conditions <- base::list() [01:28:26.939] ...future.rng <- base::globalenv()$.Random.seed [01:28:26.939] if (FALSE) { [01:28:26.939] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:28:26.939] "...future.value", "...future.globalenv.names", ".Random.seed") [01:28:26.939] } [01:28:26.939] ...future.result <- base::tryCatch({ [01:28:26.939] base::withCallingHandlers({ [01:28:26.939] ...future.value <- base::withVisible(base::local(NA)) [01:28:26.939] future::FutureResult(value = ...future.value$value, [01:28:26.939] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:28:26.939] ...future.rng), globalenv = if (FALSE) [01:28:26.939] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:28:26.939] ...future.globalenv.names)) [01:28:26.939] else NULL, started = ...future.startTime, version = "1.8") [01:28:26.939] }, condition = base::local({ [01:28:26.939] c <- base::c [01:28:26.939] inherits <- base::inherits [01:28:26.939] invokeRestart <- base::invokeRestart [01:28:26.939] length <- base::length [01:28:26.939] list <- base::list [01:28:26.939] seq.int <- base::seq.int [01:28:26.939] signalCondition <- base::signalCondition [01:28:26.939] sys.calls <- base::sys.calls [01:28:26.939] `[[` <- base::`[[` [01:28:26.939] `+` <- base::`+` [01:28:26.939] `<<-` <- base::`<<-` [01:28:26.939] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:28:26.939] calls[seq.int(from = from + 12L, to = length(calls) - [01:28:26.939] 3L)] [01:28:26.939] } [01:28:26.939] function(cond) { [01:28:26.939] is_error <- inherits(cond, "error") [01:28:26.939] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:28:26.939] NULL) [01:28:26.939] if (is_error) { [01:28:26.939] sessionInformation <- function() { [01:28:26.939] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:28:26.939] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:28:26.939] search = base::search(), system = base::Sys.info()) [01:28:26.939] } [01:28:26.939] ...future.conditions[[length(...future.conditions) + [01:28:26.939] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:28:26.939] cond$call), session = sessionInformation(), [01:28:26.939] timestamp = base::Sys.time(), signaled = 0L) [01:28:26.939] signalCondition(cond) [01:28:26.939] } [01:28:26.939] else if (!ignore && TRUE && inherits(cond, c("condition", [01:28:26.939] "immediateCondition"))) { [01:28:26.939] signal <- TRUE && inherits(cond, "immediateCondition") [01:28:26.939] ...future.conditions[[length(...future.conditions) + [01:28:26.939] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:28:26.939] if (TRUE && !signal) { [01:28:26.939] muffleCondition <- function (cond, pattern = "^muffle") [01:28:26.939] { [01:28:26.939] inherits <- base::inherits [01:28:26.939] invokeRestart <- base::invokeRestart [01:28:26.939] is.null <- base::is.null [01:28:26.939] muffled <- FALSE [01:28:26.939] if (inherits(cond, "message")) { [01:28:26.939] muffled <- grepl(pattern, "muffleMessage") [01:28:26.939] if (muffled) [01:28:26.939] invokeRestart("muffleMessage") [01:28:26.939] } [01:28:26.939] else if (inherits(cond, "warning")) { [01:28:26.939] muffled <- grepl(pattern, "muffleWarning") [01:28:26.939] if (muffled) [01:28:26.939] invokeRestart("muffleWarning") [01:28:26.939] } [01:28:26.939] else if (inherits(cond, "condition")) { [01:28:26.939] if (!is.null(pattern)) { [01:28:26.939] computeRestarts <- base::computeRestarts [01:28:26.939] grepl <- base::grepl [01:28:26.939] restarts <- computeRestarts(cond) [01:28:26.939] for (restart in restarts) { [01:28:26.939] name <- restart$name [01:28:26.939] if (is.null(name)) [01:28:26.939] next [01:28:26.939] if (!grepl(pattern, name)) [01:28:26.939] next [01:28:26.939] invokeRestart(restart) [01:28:26.939] muffled <- TRUE [01:28:26.939] break [01:28:26.939] } [01:28:26.939] } [01:28:26.939] } [01:28:26.939] invisible(muffled) [01:28:26.939] } [01:28:26.939] muffleCondition(cond, pattern = "^muffle") [01:28:26.939] } [01:28:26.939] } [01:28:26.939] else { [01:28:26.939] if (TRUE) { [01:28:26.939] muffleCondition <- function (cond, pattern = "^muffle") [01:28:26.939] { [01:28:26.939] inherits <- base::inherits [01:28:26.939] invokeRestart <- base::invokeRestart [01:28:26.939] is.null <- base::is.null [01:28:26.939] muffled <- FALSE [01:28:26.939] if (inherits(cond, "message")) { [01:28:26.939] muffled <- grepl(pattern, "muffleMessage") [01:28:26.939] if (muffled) [01:28:26.939] invokeRestart("muffleMessage") [01:28:26.939] } [01:28:26.939] else if (inherits(cond, "warning")) { [01:28:26.939] muffled <- grepl(pattern, "muffleWarning") [01:28:26.939] if (muffled) [01:28:26.939] invokeRestart("muffleWarning") [01:28:26.939] } [01:28:26.939] else if (inherits(cond, "condition")) { [01:28:26.939] if (!is.null(pattern)) { [01:28:26.939] computeRestarts <- base::computeRestarts [01:28:26.939] grepl <- base::grepl [01:28:26.939] restarts <- computeRestarts(cond) [01:28:26.939] for (restart in restarts) { [01:28:26.939] name <- restart$name [01:28:26.939] if (is.null(name)) [01:28:26.939] next [01:28:26.939] if (!grepl(pattern, name)) [01:28:26.939] next [01:28:26.939] invokeRestart(restart) [01:28:26.939] muffled <- TRUE [01:28:26.939] break [01:28:26.939] } [01:28:26.939] } [01:28:26.939] } [01:28:26.939] invisible(muffled) [01:28:26.939] } [01:28:26.939] muffleCondition(cond, pattern = "^muffle") [01:28:26.939] } [01:28:26.939] } [01:28:26.939] } [01:28:26.939] })) [01:28:26.939] }, error = function(ex) { [01:28:26.939] base::structure(base::list(value = NULL, visible = NULL, [01:28:26.939] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:28:26.939] ...future.rng), started = ...future.startTime, [01:28:26.939] finished = Sys.time(), session_uuid = NA_character_, [01:28:26.939] version = "1.8"), class = "FutureResult") [01:28:26.939] }, finally = { [01:28:26.939] if (!identical(...future.workdir, getwd())) [01:28:26.939] setwd(...future.workdir) [01:28:26.939] { [01:28:26.939] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:28:26.939] ...future.oldOptions$nwarnings <- NULL [01:28:26.939] } [01:28:26.939] base::options(...future.oldOptions) [01:28:26.939] if (.Platform$OS.type == "windows") { [01:28:26.939] old_names <- names(...future.oldEnvVars) [01:28:26.939] envs <- base::Sys.getenv() [01:28:26.939] names <- names(envs) [01:28:26.939] common <- intersect(names, old_names) [01:28:26.939] added <- setdiff(names, old_names) [01:28:26.939] removed <- setdiff(old_names, names) [01:28:26.939] changed <- common[...future.oldEnvVars[common] != [01:28:26.939] envs[common]] [01:28:26.939] NAMES <- toupper(changed) [01:28:26.939] args <- list() [01:28:26.939] for (kk in seq_along(NAMES)) { [01:28:26.939] name <- changed[[kk]] [01:28:26.939] NAME <- NAMES[[kk]] [01:28:26.939] if (name != NAME && is.element(NAME, old_names)) [01:28:26.939] next [01:28:26.939] args[[name]] <- ...future.oldEnvVars[[name]] [01:28:26.939] } [01:28:26.939] NAMES <- toupper(added) [01:28:26.939] for (kk in seq_along(NAMES)) { [01:28:26.939] name <- added[[kk]] [01:28:26.939] NAME <- NAMES[[kk]] [01:28:26.939] if (name != NAME && is.element(NAME, old_names)) [01:28:26.939] next [01:28:26.939] args[[name]] <- "" [01:28:26.939] } [01:28:26.939] NAMES <- toupper(removed) [01:28:26.939] for (kk in seq_along(NAMES)) { [01:28:26.939] name <- removed[[kk]] [01:28:26.939] NAME <- NAMES[[kk]] [01:28:26.939] if (name != NAME && is.element(NAME, old_names)) [01:28:26.939] next [01:28:26.939] args[[name]] <- ...future.oldEnvVars[[name]] [01:28:26.939] } [01:28:26.939] if (length(args) > 0) [01:28:26.939] base::do.call(base::Sys.setenv, args = args) [01:28:26.939] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:28:26.939] } [01:28:26.939] else { [01:28:26.939] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:28:26.939] } [01:28:26.939] { [01:28:26.939] if (base::length(...future.futureOptionsAdded) > [01:28:26.939] 0L) { [01:28:26.939] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:28:26.939] base::names(opts) <- ...future.futureOptionsAdded [01:28:26.939] base::options(opts) [01:28:26.939] } [01:28:26.939] { [01:28:26.939] { [01:28:26.939] NULL [01:28:26.939] RNGkind("Mersenne-Twister") [01:28:26.939] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:28:26.939] inherits = FALSE) [01:28:26.939] } [01:28:26.939] options(future.plan = NULL) [01:28:26.939] if (is.na(NA_character_)) [01:28:26.939] Sys.unsetenv("R_FUTURE_PLAN") [01:28:26.939] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:28:26.939] future::plan(list(function (..., workers = function () [01:28:26.939] max(1L, future::availableCores() - 1L), envir = parent.frame()) [01:28:26.939] strategy(..., workers = workers, envir = envir)), [01:28:26.939] .cleanup = FALSE, .init = FALSE) [01:28:26.939] } [01:28:26.939] } [01:28:26.939] } [01:28:26.939] }) [01:28:26.939] if (TRUE) { [01:28:26.939] base::sink(type = "output", split = FALSE) [01:28:26.939] if (TRUE) { [01:28:26.939] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:28:26.939] } [01:28:26.939] else { [01:28:26.939] ...future.result["stdout"] <- base::list(NULL) [01:28:26.939] } [01:28:26.939] base::close(...future.stdout) [01:28:26.939] ...future.stdout <- NULL [01:28:26.939] } [01:28:26.939] ...future.result$conditions <- ...future.conditions [01:28:26.939] ...future.result$finished <- base::Sys.time() [01:28:26.939] ...future.result [01:28:26.939] } [01:28:26.944] plan(): Setting new future strategy stack: [01:28:26.944] List of future strategies: [01:28:26.944] 1. sequential: [01:28:26.944] - args: function (..., envir = parent.frame(), workers = "") [01:28:26.944] - tweaked: FALSE [01:28:26.944] - call: NULL [01:28:26.946] plan(): nbrOfWorkers() = 1 [01:28:26.957] plan(): Setting new future strategy stack: [01:28:26.958] List of future strategies: [01:28:26.958] 1. multisession: [01:28:26.958] - args: function (..., workers = "", envir = parent.frame()) [01:28:26.958] - tweaked: TRUE [01:28:26.958] - call: plan(strategy, workers = allButOneCore) [01:28:26.964] plan(): nbrOfWorkers() = 1 [01:28:26.964] SequentialFuture started (and completed) [01:28:26.965] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:28:26.968] plan(): nbrOfWorkers() = 1 nbrOfWorkers: 1 [01:28:26.975] getGlobalsAndPackages() ... [01:28:26.975] Searching for globals... [01:28:26.976] [01:28:26.976] Searching for globals ... DONE [01:28:26.976] - globals: [0] [01:28:26.977] getGlobalsAndPackages() ... DONE nbrOfFreeWorkers: 1 [01:28:26.982] getGlobalsAndPackages() ... [01:28:26.982] Searching for globals... [01:28:26.983] [01:28:26.983] Searching for globals ... DONE [01:28:26.983] - globals: [0] [01:28:26.983] getGlobalsAndPackages() ... DONE nbrOfFreeWorkers(background = TRUE): 0 > > > message("Type of future: cluster") Type of future: cluster > workers <- rep("localhost", times = 2L) > plan(cluster, workers = workers) [01:28:26.985] plan(): Setting new future strategy stack: [01:28:26.985] List of future strategies: [01:28:26.985] 1. cluster: [01:28:26.985] - args: function (..., workers = c("localhost", "localhost"), envir = parent.frame()) [01:28:26.985] - tweaked: TRUE [01:28:26.985] - call: plan(cluster, workers = workers) [01:28:26.985] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... [01:28:26.986] cluster: [01:28:26.986] - args: function (..., workers = c("localhost", "localhost"), envir = parent.frame()) [01:28:26.986] - tweaked: TRUE [01:28:26.986] - call: plan(cluster, workers = workers) [01:28:26.986] getGlobalsAndPackages() ... [01:28:26.987] Not searching for globals [01:28:26.987] - globals: [0] [01:28:26.987] getGlobalsAndPackages() ... DONE [01:28:26.988] [local output] makeClusterPSOCK() ... [01:28:26.989] [local output] Workers: [n = 2] 'localhost', 'localhost' [01:28:26.992] [local output] Base port: 35000 [01:28:26.992] [local output] Getting setup options for 2 cluster nodes ... [01:28:26.993] [local output] - Node 1 of 2 ... [01:28:26.993] [local output] localMachine=TRUE => revtunnel=FALSE [01:28:26.995] [local output] Rscript port: 35000 [01:28:26.995] [local output] - Node 2 of 2 ... [01:28:26.996] [local output] localMachine=TRUE => revtunnel=FALSE [01:28:26.997] [local output] Rscript port: 35000 [01:28:26.997] [local output] Getting setup options for 2 cluster nodes ... done [01:28:26.997] [local output] - Parallel setup requested for some PSOCK nodes [01:28:26.998] [local output] Setting up PSOCK nodes in parallel [01:28:26.998] List of 36 [01:28:26.998] $ worker : chr "localhost" [01:28:26.998] ..- attr(*, "localhost")= logi TRUE [01:28:26.998] $ master : chr "localhost" [01:28:26.998] $ port : int 35000 [01:28:26.998] $ connectTimeout : num 120 [01:28:26.998] $ timeout : num 120 [01:28:26.998] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [01:28:26.998] $ homogeneous : logi TRUE [01:28:26.998] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=nbrOfWorkers.R:13504:CRANWIN3:CR"| __truncated__ [01:28:26.998] $ rscript_envs : NULL [01:28:26.998] $ rscript_libs : NULL [01:28:26.998] $ rscript_startup : NULL [01:28:26.998] $ rscript_sh : chr "cmd" [01:28:26.998] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:28:26.998] $ methods : logi TRUE [01:28:26.998] $ socketOptions : chr "no-delay" [01:28:26.998] $ useXDR : logi FALSE [01:28:26.998] $ outfile : chr "/dev/null" [01:28:26.998] $ renice : int NA [01:28:26.998] $ rshcmd : NULL [01:28:26.998] $ user : chr(0) [01:28:26.998] $ revtunnel : logi FALSE [01:28:26.998] $ rshlogfile : NULL [01:28:26.998] $ rshopts : chr(0) [01:28:26.998] $ rank : int 1 [01:28:26.998] $ manual : logi FALSE [01:28:26.998] $ dryrun : logi FALSE [01:28:26.998] $ quiet : logi FALSE [01:28:26.998] $ setup_strategy : chr "parallel" [01:28:26.998] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:28:26.998] $ pidfile : chr "D:/temp/Rtmpm8xsqT/worker.rank=1.parallelly.parent=13504.34c052c38f0.pid" [01:28:26.998] $ rshcmd_label : NULL [01:28:26.998] $ rsh_call : NULL [01:28:26.998] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:28:26.998] $ localMachine : logi TRUE [01:28:26.998] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [01:28:26.998] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [01:28:26.998] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [01:28:26.998] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [01:28:26.998] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [01:28:26.998] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [01:28:26.998] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [01:28:26.998] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [01:28:26.998] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [01:28:26.998] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [01:28:26.998] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [01:28:26.998] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [01:28:26.998] "parallel"), action = c("launch", "options"), verbose = FALSE) [01:28:26.998] $ arguments :List of 28 [01:28:26.998] ..$ worker : chr "localhost" [01:28:26.998] ..$ master : NULL [01:28:26.998] ..$ port : int 35000 [01:28:26.998] ..$ connectTimeout : num 120 [01:28:26.998] ..$ timeout : num 120 [01:28:26.998] ..$ rscript : NULL [01:28:26.998] ..$ homogeneous : NULL [01:28:26.998] ..$ rscript_args : NULL [01:28:26.998] ..$ rscript_envs : NULL [01:28:26.998] ..$ rscript_libs : NULL [01:28:26.998] ..$ rscript_startup : NULL [01:28:26.998] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [01:28:26.998] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:28:26.998] ..$ methods : logi TRUE [01:28:26.998] ..$ socketOptions : chr "no-delay" [01:28:26.998] ..$ useXDR : logi FALSE [01:28:26.998] ..$ outfile : chr "/dev/null" [01:28:26.998] ..$ renice : int NA [01:28:26.998] ..$ rshcmd : NULL [01:28:26.998] ..$ user : NULL [01:28:26.998] ..$ revtunnel : logi NA [01:28:26.998] ..$ rshlogfile : NULL [01:28:26.998] ..$ rshopts : NULL [01:28:26.998] ..$ rank : int 1 [01:28:26.998] ..$ manual : logi FALSE [01:28:26.998] ..$ dryrun : logi FALSE [01:28:26.998] ..$ quiet : logi FALSE [01:28:26.998] ..$ setup_strategy : chr "parallel" [01:28:26.998] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [01:28:27.028] [local output] System call to launch all workers: [01:28:27.028] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=nbrOfWorkers.R:13504:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpm8xsqT/worker.rank=1.parallelly.parent=13504.34c052c38f0.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=35000 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [01:28:27.028] [local output] Starting PSOCK main server [01:28:27.035] [local output] Workers launched [01:28:27.035] [local output] Waiting for workers to connect back [01:28:27.035] - [local output] 0 workers out of 2 ready [01:28:27.207] - [local output] 0 workers out of 2 ready [01:28:27.208] - [local output] 1 workers out of 2 ready [01:28:27.239] - [local output] 1 workers out of 2 ready [01:28:27.239] - [local output] 2 workers out of 2 ready [01:28:27.240] [local output] Launching of workers completed [01:28:27.240] [local output] Collecting session information from workers [01:28:27.241] [local output] - Worker #1 of 2 [01:28:27.241] [local output] - Worker #2 of 2 [01:28:27.242] [local output] makeClusterPSOCK() ... done [01:28:27.254] Packages needed by the future expression (n = 0): [01:28:27.254] Packages needed by future strategies (n = 0): [01:28:27.255] { [01:28:27.255] { [01:28:27.255] { [01:28:27.255] ...future.startTime <- base::Sys.time() [01:28:27.255] { [01:28:27.255] { [01:28:27.255] { [01:28:27.255] base::local({ [01:28:27.255] has_future <- base::requireNamespace("future", [01:28:27.255] quietly = TRUE) [01:28:27.255] if (has_future) { [01:28:27.255] ns <- base::getNamespace("future") [01:28:27.255] version <- ns[[".package"]][["version"]] [01:28:27.255] if (is.null(version)) [01:28:27.255] version <- utils::packageVersion("future") [01:28:27.255] } [01:28:27.255] else { [01:28:27.255] version <- NULL [01:28:27.255] } [01:28:27.255] if (!has_future || version < "1.8.0") { [01:28:27.255] info <- base::c(r_version = base::gsub("R version ", [01:28:27.255] "", base::R.version$version.string), [01:28:27.255] platform = base::sprintf("%s (%s-bit)", [01:28:27.255] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:28:27.255] os = base::paste(base::Sys.info()[base::c("sysname", [01:28:27.255] "release", "version")], collapse = " "), [01:28:27.255] hostname = base::Sys.info()[["nodename"]]) [01:28:27.255] info <- base::sprintf("%s: %s", base::names(info), [01:28:27.255] info) [01:28:27.255] info <- base::paste(info, collapse = "; ") [01:28:27.255] if (!has_future) { [01:28:27.255] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:28:27.255] info) [01:28:27.255] } [01:28:27.255] else { [01:28:27.255] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:28:27.255] info, version) [01:28:27.255] } [01:28:27.255] base::stop(msg) [01:28:27.255] } [01:28:27.255] }) [01:28:27.255] } [01:28:27.255] options(future.plan = NULL) [01:28:27.255] Sys.unsetenv("R_FUTURE_PLAN") [01:28:27.255] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:28:27.255] } [01:28:27.255] ...future.workdir <- getwd() [01:28:27.255] } [01:28:27.255] ...future.oldOptions <- base::as.list(base::.Options) [01:28:27.255] ...future.oldEnvVars <- base::Sys.getenv() [01:28:27.255] } [01:28:27.255] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:28:27.255] future.globals.maxSize = NULL, future.globals.method = NULL, [01:28:27.255] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:28:27.255] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:28:27.255] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:28:27.255] future.stdout.windows.reencode = NULL, width = 80L) [01:28:27.255] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:28:27.255] base::names(...future.oldOptions)) [01:28:27.255] } [01:28:27.255] if (FALSE) { [01:28:27.255] } [01:28:27.255] else { [01:28:27.255] if (TRUE) { [01:28:27.255] ...future.stdout <- base::rawConnection(base::raw(0L), [01:28:27.255] open = "w") [01:28:27.255] } [01:28:27.255] else { [01:28:27.255] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:28:27.255] windows = "NUL", "/dev/null"), open = "w") [01:28:27.255] } [01:28:27.255] base::sink(...future.stdout, type = "output", split = FALSE) [01:28:27.255] base::on.exit(if (!base::is.null(...future.stdout)) { [01:28:27.255] base::sink(type = "output", split = FALSE) [01:28:27.255] base::close(...future.stdout) [01:28:27.255] }, add = TRUE) [01:28:27.255] } [01:28:27.255] ...future.frame <- base::sys.nframe() [01:28:27.255] ...future.conditions <- base::list() [01:28:27.255] ...future.rng <- base::globalenv()$.Random.seed [01:28:27.255] if (FALSE) { [01:28:27.255] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:28:27.255] "...future.value", "...future.globalenv.names", ".Random.seed") [01:28:27.255] } [01:28:27.255] ...future.result <- base::tryCatch({ [01:28:27.255] base::withCallingHandlers({ [01:28:27.255] ...future.value <- base::withVisible(base::local({ [01:28:27.255] ...future.makeSendCondition <- base::local({ [01:28:27.255] sendCondition <- NULL [01:28:27.255] function(frame = 1L) { [01:28:27.255] if (is.function(sendCondition)) [01:28:27.255] return(sendCondition) [01:28:27.255] ns <- getNamespace("parallel") [01:28:27.255] if (exists("sendData", mode = "function", [01:28:27.255] envir = ns)) { [01:28:27.255] parallel_sendData <- get("sendData", mode = "function", [01:28:27.255] envir = ns) [01:28:27.255] envir <- sys.frame(frame) [01:28:27.255] master <- NULL [01:28:27.255] while (!identical(envir, .GlobalEnv) && [01:28:27.255] !identical(envir, emptyenv())) { [01:28:27.255] if (exists("master", mode = "list", envir = envir, [01:28:27.255] inherits = FALSE)) { [01:28:27.255] master <- get("master", mode = "list", [01:28:27.255] envir = envir, inherits = FALSE) [01:28:27.255] if (inherits(master, c("SOCKnode", [01:28:27.255] "SOCK0node"))) { [01:28:27.255] sendCondition <<- function(cond) { [01:28:27.255] data <- list(type = "VALUE", value = cond, [01:28:27.255] success = TRUE) [01:28:27.255] parallel_sendData(master, data) [01:28:27.255] } [01:28:27.255] return(sendCondition) [01:28:27.255] } [01:28:27.255] } [01:28:27.255] frame <- frame + 1L [01:28:27.255] envir <- sys.frame(frame) [01:28:27.255] } [01:28:27.255] } [01:28:27.255] sendCondition <<- function(cond) NULL [01:28:27.255] } [01:28:27.255] }) [01:28:27.255] withCallingHandlers({ [01:28:27.255] NA [01:28:27.255] }, immediateCondition = function(cond) { [01:28:27.255] sendCondition <- ...future.makeSendCondition() [01:28:27.255] sendCondition(cond) [01:28:27.255] muffleCondition <- function (cond, pattern = "^muffle") [01:28:27.255] { [01:28:27.255] inherits <- base::inherits [01:28:27.255] invokeRestart <- base::invokeRestart [01:28:27.255] is.null <- base::is.null [01:28:27.255] muffled <- FALSE [01:28:27.255] if (inherits(cond, "message")) { [01:28:27.255] muffled <- grepl(pattern, "muffleMessage") [01:28:27.255] if (muffled) [01:28:27.255] invokeRestart("muffleMessage") [01:28:27.255] } [01:28:27.255] else if (inherits(cond, "warning")) { [01:28:27.255] muffled <- grepl(pattern, "muffleWarning") [01:28:27.255] if (muffled) [01:28:27.255] invokeRestart("muffleWarning") [01:28:27.255] } [01:28:27.255] else if (inherits(cond, "condition")) { [01:28:27.255] if (!is.null(pattern)) { [01:28:27.255] computeRestarts <- base::computeRestarts [01:28:27.255] grepl <- base::grepl [01:28:27.255] restarts <- computeRestarts(cond) [01:28:27.255] for (restart in restarts) { [01:28:27.255] name <- restart$name [01:28:27.255] if (is.null(name)) [01:28:27.255] next [01:28:27.255] if (!grepl(pattern, name)) [01:28:27.255] next [01:28:27.255] invokeRestart(restart) [01:28:27.255] muffled <- TRUE [01:28:27.255] break [01:28:27.255] } [01:28:27.255] } [01:28:27.255] } [01:28:27.255] invisible(muffled) [01:28:27.255] } [01:28:27.255] muffleCondition(cond) [01:28:27.255] }) [01:28:27.255] })) [01:28:27.255] future::FutureResult(value = ...future.value$value, [01:28:27.255] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:28:27.255] ...future.rng), globalenv = if (FALSE) [01:28:27.255] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:28:27.255] ...future.globalenv.names)) [01:28:27.255] else NULL, started = ...future.startTime, version = "1.8") [01:28:27.255] }, condition = base::local({ [01:28:27.255] c <- base::c [01:28:27.255] inherits <- base::inherits [01:28:27.255] invokeRestart <- base::invokeRestart [01:28:27.255] length <- base::length [01:28:27.255] list <- base::list [01:28:27.255] seq.int <- base::seq.int [01:28:27.255] signalCondition <- base::signalCondition [01:28:27.255] sys.calls <- base::sys.calls [01:28:27.255] `[[` <- base::`[[` [01:28:27.255] `+` <- base::`+` [01:28:27.255] `<<-` <- base::`<<-` [01:28:27.255] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:28:27.255] calls[seq.int(from = from + 12L, to = length(calls) - [01:28:27.255] 3L)] [01:28:27.255] } [01:28:27.255] function(cond) { [01:28:27.255] is_error <- inherits(cond, "error") [01:28:27.255] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:28:27.255] NULL) [01:28:27.255] if (is_error) { [01:28:27.255] sessionInformation <- function() { [01:28:27.255] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:28:27.255] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:28:27.255] search = base::search(), system = base::Sys.info()) [01:28:27.255] } [01:28:27.255] ...future.conditions[[length(...future.conditions) + [01:28:27.255] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:28:27.255] cond$call), session = sessionInformation(), [01:28:27.255] timestamp = base::Sys.time(), signaled = 0L) [01:28:27.255] signalCondition(cond) [01:28:27.255] } [01:28:27.255] else if (!ignore && TRUE && inherits(cond, c("condition", [01:28:27.255] "immediateCondition"))) { [01:28:27.255] signal <- TRUE && inherits(cond, "immediateCondition") [01:28:27.255] ...future.conditions[[length(...future.conditions) + [01:28:27.255] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:28:27.255] if (TRUE && !signal) { [01:28:27.255] muffleCondition <- function (cond, pattern = "^muffle") [01:28:27.255] { [01:28:27.255] inherits <- base::inherits [01:28:27.255] invokeRestart <- base::invokeRestart [01:28:27.255] is.null <- base::is.null [01:28:27.255] muffled <- FALSE [01:28:27.255] if (inherits(cond, "message")) { [01:28:27.255] muffled <- grepl(pattern, "muffleMessage") [01:28:27.255] if (muffled) [01:28:27.255] invokeRestart("muffleMessage") [01:28:27.255] } [01:28:27.255] else if (inherits(cond, "warning")) { [01:28:27.255] muffled <- grepl(pattern, "muffleWarning") [01:28:27.255] if (muffled) [01:28:27.255] invokeRestart("muffleWarning") [01:28:27.255] } [01:28:27.255] else if (inherits(cond, "condition")) { [01:28:27.255] if (!is.null(pattern)) { [01:28:27.255] computeRestarts <- base::computeRestarts [01:28:27.255] grepl <- base::grepl [01:28:27.255] restarts <- computeRestarts(cond) [01:28:27.255] for (restart in restarts) { [01:28:27.255] name <- restart$name [01:28:27.255] if (is.null(name)) [01:28:27.255] next [01:28:27.255] if (!grepl(pattern, name)) [01:28:27.255] next [01:28:27.255] invokeRestart(restart) [01:28:27.255] muffled <- TRUE [01:28:27.255] break [01:28:27.255] } [01:28:27.255] } [01:28:27.255] } [01:28:27.255] invisible(muffled) [01:28:27.255] } [01:28:27.255] muffleCondition(cond, pattern = "^muffle") [01:28:27.255] } [01:28:27.255] } [01:28:27.255] else { [01:28:27.255] if (TRUE) { [01:28:27.255] muffleCondition <- function (cond, pattern = "^muffle") [01:28:27.255] { [01:28:27.255] inherits <- base::inherits [01:28:27.255] invokeRestart <- base::invokeRestart [01:28:27.255] is.null <- base::is.null [01:28:27.255] muffled <- FALSE [01:28:27.255] if (inherits(cond, "message")) { [01:28:27.255] muffled <- grepl(pattern, "muffleMessage") [01:28:27.255] if (muffled) [01:28:27.255] invokeRestart("muffleMessage") [01:28:27.255] } [01:28:27.255] else if (inherits(cond, "warning")) { [01:28:27.255] muffled <- grepl(pattern, "muffleWarning") [01:28:27.255] if (muffled) [01:28:27.255] invokeRestart("muffleWarning") [01:28:27.255] } [01:28:27.255] else if (inherits(cond, "condition")) { [01:28:27.255] if (!is.null(pattern)) { [01:28:27.255] computeRestarts <- base::computeRestarts [01:28:27.255] grepl <- base::grepl [01:28:27.255] restarts <- computeRestarts(cond) [01:28:27.255] for (restart in restarts) { [01:28:27.255] name <- restart$name [01:28:27.255] if (is.null(name)) [01:28:27.255] next [01:28:27.255] if (!grepl(pattern, name)) [01:28:27.255] next [01:28:27.255] invokeRestart(restart) [01:28:27.255] muffled <- TRUE [01:28:27.255] break [01:28:27.255] } [01:28:27.255] } [01:28:27.255] } [01:28:27.255] invisible(muffled) [01:28:27.255] } [01:28:27.255] muffleCondition(cond, pattern = "^muffle") [01:28:27.255] } [01:28:27.255] } [01:28:27.255] } [01:28:27.255] })) [01:28:27.255] }, error = function(ex) { [01:28:27.255] base::structure(base::list(value = NULL, visible = NULL, [01:28:27.255] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:28:27.255] ...future.rng), started = ...future.startTime, [01:28:27.255] finished = Sys.time(), session_uuid = NA_character_, [01:28:27.255] version = "1.8"), class = "FutureResult") [01:28:27.255] }, finally = { [01:28:27.255] if (!identical(...future.workdir, getwd())) [01:28:27.255] setwd(...future.workdir) [01:28:27.255] { [01:28:27.255] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:28:27.255] ...future.oldOptions$nwarnings <- NULL [01:28:27.255] } [01:28:27.255] base::options(...future.oldOptions) [01:28:27.255] if (.Platform$OS.type == "windows") { [01:28:27.255] old_names <- names(...future.oldEnvVars) [01:28:27.255] envs <- base::Sys.getenv() [01:28:27.255] names <- names(envs) [01:28:27.255] common <- intersect(names, old_names) [01:28:27.255] added <- setdiff(names, old_names) [01:28:27.255] removed <- setdiff(old_names, names) [01:28:27.255] changed <- common[...future.oldEnvVars[common] != [01:28:27.255] envs[common]] [01:28:27.255] NAMES <- toupper(changed) [01:28:27.255] args <- list() [01:28:27.255] for (kk in seq_along(NAMES)) { [01:28:27.255] name <- changed[[kk]] [01:28:27.255] NAME <- NAMES[[kk]] [01:28:27.255] if (name != NAME && is.element(NAME, old_names)) [01:28:27.255] next [01:28:27.255] args[[name]] <- ...future.oldEnvVars[[name]] [01:28:27.255] } [01:28:27.255] NAMES <- toupper(added) [01:28:27.255] for (kk in seq_along(NAMES)) { [01:28:27.255] name <- added[[kk]] [01:28:27.255] NAME <- NAMES[[kk]] [01:28:27.255] if (name != NAME && is.element(NAME, old_names)) [01:28:27.255] next [01:28:27.255] args[[name]] <- "" [01:28:27.255] } [01:28:27.255] NAMES <- toupper(removed) [01:28:27.255] for (kk in seq_along(NAMES)) { [01:28:27.255] name <- removed[[kk]] [01:28:27.255] NAME <- NAMES[[kk]] [01:28:27.255] if (name != NAME && is.element(NAME, old_names)) [01:28:27.255] next [01:28:27.255] args[[name]] <- ...future.oldEnvVars[[name]] [01:28:27.255] } [01:28:27.255] if (length(args) > 0) [01:28:27.255] base::do.call(base::Sys.setenv, args = args) [01:28:27.255] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:28:27.255] } [01:28:27.255] else { [01:28:27.255] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:28:27.255] } [01:28:27.255] { [01:28:27.255] if (base::length(...future.futureOptionsAdded) > [01:28:27.255] 0L) { [01:28:27.255] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:28:27.255] base::names(opts) <- ...future.futureOptionsAdded [01:28:27.255] base::options(opts) [01:28:27.255] } [01:28:27.255] { [01:28:27.255] NULL [01:28:27.255] options(future.plan = NULL) [01:28:27.255] if (is.na(NA_character_)) [01:28:27.255] Sys.unsetenv("R_FUTURE_PLAN") [01:28:27.255] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:28:27.255] future::plan(list(function (..., workers = c("localhost", [01:28:27.255] "localhost"), envir = parent.frame()) [01:28:27.255] strategy(..., workers = workers, envir = envir)), [01:28:27.255] .cleanup = FALSE, .init = FALSE) [01:28:27.255] } [01:28:27.255] } [01:28:27.255] } [01:28:27.255] }) [01:28:27.255] if (TRUE) { [01:28:27.255] base::sink(type = "output", split = FALSE) [01:28:27.255] if (TRUE) { [01:28:27.255] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:28:27.255] } [01:28:27.255] else { [01:28:27.255] ...future.result["stdout"] <- base::list(NULL) [01:28:27.255] } [01:28:27.255] base::close(...future.stdout) [01:28:27.255] ...future.stdout <- NULL [01:28:27.255] } [01:28:27.255] ...future.result$conditions <- ...future.conditions [01:28:27.255] ...future.result$finished <- base::Sys.time() [01:28:27.255] ...future.result [01:28:27.255] } [01:28:27.334] ClusterFuture started [01:28:27.334] result() for ClusterFuture ... [01:28:27.334] receiveMessageFromWorker() for ClusterFuture ... [01:28:27.335] - Validating connection of ClusterFuture [01:28:27.390] - received message: FutureResult [01:28:27.390] - Received FutureResult [01:28:27.390] - Erased future from FutureRegistry [01:28:27.391] result() for ClusterFuture ... [01:28:27.391] - result already collected: FutureResult [01:28:27.391] result() for ClusterFuture ... done [01:28:27.391] receiveMessageFromWorker() for ClusterFuture ... done [01:28:27.391] result() for ClusterFuture ... done [01:28:27.392] result() for ClusterFuture ... [01:28:27.392] - result already collected: FutureResult [01:28:27.392] result() for ClusterFuture ... done [01:28:27.392] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:28:27.392] plan(): nbrOfWorkers() = 2 > n <- nbrOfWorkers() > message(sprintf("nbrOfWorkers: %d", n)) nbrOfWorkers: 2 > stopifnot(n == length(workers)) > plan(cluster, workers = allButOneWorker) [01:28:27.393] plan(): Setting new future strategy stack: [01:28:27.394] List of future strategies: [01:28:27.394] 1. cluster: [01:28:27.394] - args: function (..., workers = "", envir = parent.frame()) [01:28:27.394] - tweaked: TRUE [01:28:27.394] - call: plan(cluster, workers = allButOneWorker) [01:28:27.395] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... [01:28:27.395] cluster: [01:28:27.395] - args: function (..., workers = "", envir = parent.frame()) [01:28:27.395] - tweaked: TRUE [01:28:27.395] - call: plan(cluster, workers = allButOneWorker) [01:28:27.396] getGlobalsAndPackages() ... [01:28:27.396] Not searching for globals [01:28:27.397] - globals: [0] [01:28:27.397] getGlobalsAndPackages() ... DONE [01:28:27.403] [local output] makeClusterPSOCK() ... [01:28:27.404] [local output] Workers: [n = 1] 'localhost' [01:28:27.407] [local output] Base port: 37997 [01:28:27.407] [local output] Getting setup options for 1 cluster nodes ... [01:28:27.407] [local output] - Node 1 of 1 ... [01:28:27.408] [local output] localMachine=TRUE => revtunnel=FALSE [01:28:27.410] [local output] Rscript port: 37997 [01:28:27.410] [local output] Getting setup options for 1 cluster nodes ... done [01:28:27.410] [local output] - Parallel setup requested for some PSOCK nodes [01:28:27.411] [local output] Setting up PSOCK nodes in parallel [01:28:27.411] List of 36 [01:28:27.411] $ worker : chr "localhost" [01:28:27.411] ..- attr(*, "localhost")= logi TRUE [01:28:27.411] $ master : chr "localhost" [01:28:27.411] $ port : int 37997 [01:28:27.411] $ connectTimeout : num 120 [01:28:27.411] $ timeout : num 120 [01:28:27.411] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [01:28:27.411] $ homogeneous : logi TRUE [01:28:27.411] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=nbrOfWorkers.R:13504:CRANWIN3:CR"| __truncated__ [01:28:27.411] $ rscript_envs : NULL [01:28:27.411] $ rscript_libs : NULL [01:28:27.411] $ rscript_startup : NULL [01:28:27.411] $ rscript_sh : chr "cmd" [01:28:27.411] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:28:27.411] $ methods : logi TRUE [01:28:27.411] $ socketOptions : chr "no-delay" [01:28:27.411] $ useXDR : logi FALSE [01:28:27.411] $ outfile : chr "/dev/null" [01:28:27.411] $ renice : int NA [01:28:27.411] $ rshcmd : NULL [01:28:27.411] $ user : chr(0) [01:28:27.411] $ revtunnel : logi FALSE [01:28:27.411] $ rshlogfile : NULL [01:28:27.411] $ rshopts : chr(0) [01:28:27.411] $ rank : int 1 [01:28:27.411] $ manual : logi FALSE [01:28:27.411] $ dryrun : logi FALSE [01:28:27.411] $ quiet : logi FALSE [01:28:27.411] $ setup_strategy : chr "parallel" [01:28:27.411] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:28:27.411] $ pidfile : chr "D:/temp/Rtmpm8xsqT/worker.rank=1.parallelly.parent=13504.34c050d94c04.pid" [01:28:27.411] $ rshcmd_label : NULL [01:28:27.411] $ rsh_call : NULL [01:28:27.411] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:28:27.411] $ localMachine : logi TRUE [01:28:27.411] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [01:28:27.411] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [01:28:27.411] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [01:28:27.411] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [01:28:27.411] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [01:28:27.411] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [01:28:27.411] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [01:28:27.411] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [01:28:27.411] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [01:28:27.411] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [01:28:27.411] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [01:28:27.411] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [01:28:27.411] "parallel"), action = c("launch", "options"), verbose = FALSE) [01:28:27.411] $ arguments :List of 28 [01:28:27.411] ..$ worker : chr "localhost" [01:28:27.411] ..$ master : NULL [01:28:27.411] ..$ port : int 37997 [01:28:27.411] ..$ connectTimeout : num 120 [01:28:27.411] ..$ timeout : num 120 [01:28:27.411] ..$ rscript : NULL [01:28:27.411] ..$ homogeneous : NULL [01:28:27.411] ..$ rscript_args : NULL [01:28:27.411] ..$ rscript_envs : NULL [01:28:27.411] ..$ rscript_libs : NULL [01:28:27.411] ..$ rscript_startup : NULL [01:28:27.411] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [01:28:27.411] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:28:27.411] ..$ methods : logi TRUE [01:28:27.411] ..$ socketOptions : chr "no-delay" [01:28:27.411] ..$ useXDR : logi FALSE [01:28:27.411] ..$ outfile : chr "/dev/null" [01:28:27.411] ..$ renice : int NA [01:28:27.411] ..$ rshcmd : NULL [01:28:27.411] ..$ user : NULL [01:28:27.411] ..$ revtunnel : logi NA [01:28:27.411] ..$ rshlogfile : NULL [01:28:27.411] ..$ rshopts : NULL [01:28:27.411] ..$ rank : int 1 [01:28:27.411] ..$ manual : logi FALSE [01:28:27.411] ..$ dryrun : logi FALSE [01:28:27.411] ..$ quiet : logi FALSE [01:28:27.411] ..$ setup_strategy : chr "parallel" [01:28:27.411] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [01:28:27.447] [local output] System call to launch all workers: [01:28:27.447] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=nbrOfWorkers.R:13504:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpm8xsqT/worker.rank=1.parallelly.parent=13504.34c050d94c04.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=37997 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [01:28:27.447] [local output] Starting PSOCK main server [01:28:27.453] [local output] Workers launched [01:28:27.453] [local output] Waiting for workers to connect back [01:28:27.453] - [local output] 0 workers out of 1 ready [01:28:27.639] - [local output] 0 workers out of 1 ready [01:28:27.640] - [local output] 1 workers out of 1 ready [01:28:27.640] [local output] Launching of workers completed [01:28:27.640] [local output] Collecting session information from workers [01:28:27.641] [local output] - Worker #1 of 1 [01:28:27.641] [local output] makeClusterPSOCK() ... done [01:28:27.648] Packages needed by the future expression (n = 0): [01:28:27.648] Packages needed by future strategies (n = 0): [01:28:27.649] { [01:28:27.649] { [01:28:27.649] { [01:28:27.649] ...future.startTime <- base::Sys.time() [01:28:27.649] { [01:28:27.649] { [01:28:27.649] { [01:28:27.649] base::local({ [01:28:27.649] has_future <- base::requireNamespace("future", [01:28:27.649] quietly = TRUE) [01:28:27.649] if (has_future) { [01:28:27.649] ns <- base::getNamespace("future") [01:28:27.649] version <- ns[[".package"]][["version"]] [01:28:27.649] if (is.null(version)) [01:28:27.649] version <- utils::packageVersion("future") [01:28:27.649] } [01:28:27.649] else { [01:28:27.649] version <- NULL [01:28:27.649] } [01:28:27.649] if (!has_future || version < "1.8.0") { [01:28:27.649] info <- base::c(r_version = base::gsub("R version ", [01:28:27.649] "", base::R.version$version.string), [01:28:27.649] platform = base::sprintf("%s (%s-bit)", [01:28:27.649] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:28:27.649] os = base::paste(base::Sys.info()[base::c("sysname", [01:28:27.649] "release", "version")], collapse = " "), [01:28:27.649] hostname = base::Sys.info()[["nodename"]]) [01:28:27.649] info <- base::sprintf("%s: %s", base::names(info), [01:28:27.649] info) [01:28:27.649] info <- base::paste(info, collapse = "; ") [01:28:27.649] if (!has_future) { [01:28:27.649] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:28:27.649] info) [01:28:27.649] } [01:28:27.649] else { [01:28:27.649] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:28:27.649] info, version) [01:28:27.649] } [01:28:27.649] base::stop(msg) [01:28:27.649] } [01:28:27.649] }) [01:28:27.649] } [01:28:27.649] options(future.plan = NULL) [01:28:27.649] Sys.unsetenv("R_FUTURE_PLAN") [01:28:27.649] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:28:27.649] } [01:28:27.649] ...future.workdir <- getwd() [01:28:27.649] } [01:28:27.649] ...future.oldOptions <- base::as.list(base::.Options) [01:28:27.649] ...future.oldEnvVars <- base::Sys.getenv() [01:28:27.649] } [01:28:27.649] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:28:27.649] future.globals.maxSize = NULL, future.globals.method = NULL, [01:28:27.649] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:28:27.649] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:28:27.649] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:28:27.649] future.stdout.windows.reencode = NULL, width = 80L) [01:28:27.649] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:28:27.649] base::names(...future.oldOptions)) [01:28:27.649] } [01:28:27.649] if (FALSE) { [01:28:27.649] } [01:28:27.649] else { [01:28:27.649] if (TRUE) { [01:28:27.649] ...future.stdout <- base::rawConnection(base::raw(0L), [01:28:27.649] open = "w") [01:28:27.649] } [01:28:27.649] else { [01:28:27.649] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:28:27.649] windows = "NUL", "/dev/null"), open = "w") [01:28:27.649] } [01:28:27.649] base::sink(...future.stdout, type = "output", split = FALSE) [01:28:27.649] base::on.exit(if (!base::is.null(...future.stdout)) { [01:28:27.649] base::sink(type = "output", split = FALSE) [01:28:27.649] base::close(...future.stdout) [01:28:27.649] }, add = TRUE) [01:28:27.649] } [01:28:27.649] ...future.frame <- base::sys.nframe() [01:28:27.649] ...future.conditions <- base::list() [01:28:27.649] ...future.rng <- base::globalenv()$.Random.seed [01:28:27.649] if (FALSE) { [01:28:27.649] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:28:27.649] "...future.value", "...future.globalenv.names", ".Random.seed") [01:28:27.649] } [01:28:27.649] ...future.result <- base::tryCatch({ [01:28:27.649] base::withCallingHandlers({ [01:28:27.649] ...future.value <- base::withVisible(base::local({ [01:28:27.649] ...future.makeSendCondition <- base::local({ [01:28:27.649] sendCondition <- NULL [01:28:27.649] function(frame = 1L) { [01:28:27.649] if (is.function(sendCondition)) [01:28:27.649] return(sendCondition) [01:28:27.649] ns <- getNamespace("parallel") [01:28:27.649] if (exists("sendData", mode = "function", [01:28:27.649] envir = ns)) { [01:28:27.649] parallel_sendData <- get("sendData", mode = "function", [01:28:27.649] envir = ns) [01:28:27.649] envir <- sys.frame(frame) [01:28:27.649] master <- NULL [01:28:27.649] while (!identical(envir, .GlobalEnv) && [01:28:27.649] !identical(envir, emptyenv())) { [01:28:27.649] if (exists("master", mode = "list", envir = envir, [01:28:27.649] inherits = FALSE)) { [01:28:27.649] master <- get("master", mode = "list", [01:28:27.649] envir = envir, inherits = FALSE) [01:28:27.649] if (inherits(master, c("SOCKnode", [01:28:27.649] "SOCK0node"))) { [01:28:27.649] sendCondition <<- function(cond) { [01:28:27.649] data <- list(type = "VALUE", value = cond, [01:28:27.649] success = TRUE) [01:28:27.649] parallel_sendData(master, data) [01:28:27.649] } [01:28:27.649] return(sendCondition) [01:28:27.649] } [01:28:27.649] } [01:28:27.649] frame <- frame + 1L [01:28:27.649] envir <- sys.frame(frame) [01:28:27.649] } [01:28:27.649] } [01:28:27.649] sendCondition <<- function(cond) NULL [01:28:27.649] } [01:28:27.649] }) [01:28:27.649] withCallingHandlers({ [01:28:27.649] NA [01:28:27.649] }, immediateCondition = function(cond) { [01:28:27.649] sendCondition <- ...future.makeSendCondition() [01:28:27.649] sendCondition(cond) [01:28:27.649] muffleCondition <- function (cond, pattern = "^muffle") [01:28:27.649] { [01:28:27.649] inherits <- base::inherits [01:28:27.649] invokeRestart <- base::invokeRestart [01:28:27.649] is.null <- base::is.null [01:28:27.649] muffled <- FALSE [01:28:27.649] if (inherits(cond, "message")) { [01:28:27.649] muffled <- grepl(pattern, "muffleMessage") [01:28:27.649] if (muffled) [01:28:27.649] invokeRestart("muffleMessage") [01:28:27.649] } [01:28:27.649] else if (inherits(cond, "warning")) { [01:28:27.649] muffled <- grepl(pattern, "muffleWarning") [01:28:27.649] if (muffled) [01:28:27.649] invokeRestart("muffleWarning") [01:28:27.649] } [01:28:27.649] else if (inherits(cond, "condition")) { [01:28:27.649] if (!is.null(pattern)) { [01:28:27.649] computeRestarts <- base::computeRestarts [01:28:27.649] grepl <- base::grepl [01:28:27.649] restarts <- computeRestarts(cond) [01:28:27.649] for (restart in restarts) { [01:28:27.649] name <- restart$name [01:28:27.649] if (is.null(name)) [01:28:27.649] next [01:28:27.649] if (!grepl(pattern, name)) [01:28:27.649] next [01:28:27.649] invokeRestart(restart) [01:28:27.649] muffled <- TRUE [01:28:27.649] break [01:28:27.649] } [01:28:27.649] } [01:28:27.649] } [01:28:27.649] invisible(muffled) [01:28:27.649] } [01:28:27.649] muffleCondition(cond) [01:28:27.649] }) [01:28:27.649] })) [01:28:27.649] future::FutureResult(value = ...future.value$value, [01:28:27.649] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:28:27.649] ...future.rng), globalenv = if (FALSE) [01:28:27.649] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:28:27.649] ...future.globalenv.names)) [01:28:27.649] else NULL, started = ...future.startTime, version = "1.8") [01:28:27.649] }, condition = base::local({ [01:28:27.649] c <- base::c [01:28:27.649] inherits <- base::inherits [01:28:27.649] invokeRestart <- base::invokeRestart [01:28:27.649] length <- base::length [01:28:27.649] list <- base::list [01:28:27.649] seq.int <- base::seq.int [01:28:27.649] signalCondition <- base::signalCondition [01:28:27.649] sys.calls <- base::sys.calls [01:28:27.649] `[[` <- base::`[[` [01:28:27.649] `+` <- base::`+` [01:28:27.649] `<<-` <- base::`<<-` [01:28:27.649] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:28:27.649] calls[seq.int(from = from + 12L, to = length(calls) - [01:28:27.649] 3L)] [01:28:27.649] } [01:28:27.649] function(cond) { [01:28:27.649] is_error <- inherits(cond, "error") [01:28:27.649] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:28:27.649] NULL) [01:28:27.649] if (is_error) { [01:28:27.649] sessionInformation <- function() { [01:28:27.649] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:28:27.649] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:28:27.649] search = base::search(), system = base::Sys.info()) [01:28:27.649] } [01:28:27.649] ...future.conditions[[length(...future.conditions) + [01:28:27.649] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:28:27.649] cond$call), session = sessionInformation(), [01:28:27.649] timestamp = base::Sys.time(), signaled = 0L) [01:28:27.649] signalCondition(cond) [01:28:27.649] } [01:28:27.649] else if (!ignore && TRUE && inherits(cond, c("condition", [01:28:27.649] "immediateCondition"))) { [01:28:27.649] signal <- TRUE && inherits(cond, "immediateCondition") [01:28:27.649] ...future.conditions[[length(...future.conditions) + [01:28:27.649] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:28:27.649] if (TRUE && !signal) { [01:28:27.649] muffleCondition <- function (cond, pattern = "^muffle") [01:28:27.649] { [01:28:27.649] inherits <- base::inherits [01:28:27.649] invokeRestart <- base::invokeRestart [01:28:27.649] is.null <- base::is.null [01:28:27.649] muffled <- FALSE [01:28:27.649] if (inherits(cond, "message")) { [01:28:27.649] muffled <- grepl(pattern, "muffleMessage") [01:28:27.649] if (muffled) [01:28:27.649] invokeRestart("muffleMessage") [01:28:27.649] } [01:28:27.649] else if (inherits(cond, "warning")) { [01:28:27.649] muffled <- grepl(pattern, "muffleWarning") [01:28:27.649] if (muffled) [01:28:27.649] invokeRestart("muffleWarning") [01:28:27.649] } [01:28:27.649] else if (inherits(cond, "condition")) { [01:28:27.649] if (!is.null(pattern)) { [01:28:27.649] computeRestarts <- base::computeRestarts [01:28:27.649] grepl <- base::grepl [01:28:27.649] restarts <- computeRestarts(cond) [01:28:27.649] for (restart in restarts) { [01:28:27.649] name <- restart$name [01:28:27.649] if (is.null(name)) [01:28:27.649] next [01:28:27.649] if (!grepl(pattern, name)) [01:28:27.649] next [01:28:27.649] invokeRestart(restart) [01:28:27.649] muffled <- TRUE [01:28:27.649] break [01:28:27.649] } [01:28:27.649] } [01:28:27.649] } [01:28:27.649] invisible(muffled) [01:28:27.649] } [01:28:27.649] muffleCondition(cond, pattern = "^muffle") [01:28:27.649] } [01:28:27.649] } [01:28:27.649] else { [01:28:27.649] if (TRUE) { [01:28:27.649] muffleCondition <- function (cond, pattern = "^muffle") [01:28:27.649] { [01:28:27.649] inherits <- base::inherits [01:28:27.649] invokeRestart <- base::invokeRestart [01:28:27.649] is.null <- base::is.null [01:28:27.649] muffled <- FALSE [01:28:27.649] if (inherits(cond, "message")) { [01:28:27.649] muffled <- grepl(pattern, "muffleMessage") [01:28:27.649] if (muffled) [01:28:27.649] invokeRestart("muffleMessage") [01:28:27.649] } [01:28:27.649] else if (inherits(cond, "warning")) { [01:28:27.649] muffled <- grepl(pattern, "muffleWarning") [01:28:27.649] if (muffled) [01:28:27.649] invokeRestart("muffleWarning") [01:28:27.649] } [01:28:27.649] else if (inherits(cond, "condition")) { [01:28:27.649] if (!is.null(pattern)) { [01:28:27.649] computeRestarts <- base::computeRestarts [01:28:27.649] grepl <- base::grepl [01:28:27.649] restarts <- computeRestarts(cond) [01:28:27.649] for (restart in restarts) { [01:28:27.649] name <- restart$name [01:28:27.649] if (is.null(name)) [01:28:27.649] next [01:28:27.649] if (!grepl(pattern, name)) [01:28:27.649] next [01:28:27.649] invokeRestart(restart) [01:28:27.649] muffled <- TRUE [01:28:27.649] break [01:28:27.649] } [01:28:27.649] } [01:28:27.649] } [01:28:27.649] invisible(muffled) [01:28:27.649] } [01:28:27.649] muffleCondition(cond, pattern = "^muffle") [01:28:27.649] } [01:28:27.649] } [01:28:27.649] } [01:28:27.649] })) [01:28:27.649] }, error = function(ex) { [01:28:27.649] base::structure(base::list(value = NULL, visible = NULL, [01:28:27.649] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:28:27.649] ...future.rng), started = ...future.startTime, [01:28:27.649] finished = Sys.time(), session_uuid = NA_character_, [01:28:27.649] version = "1.8"), class = "FutureResult") [01:28:27.649] }, finally = { [01:28:27.649] if (!identical(...future.workdir, getwd())) [01:28:27.649] setwd(...future.workdir) [01:28:27.649] { [01:28:27.649] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:28:27.649] ...future.oldOptions$nwarnings <- NULL [01:28:27.649] } [01:28:27.649] base::options(...future.oldOptions) [01:28:27.649] if (.Platform$OS.type == "windows") { [01:28:27.649] old_names <- names(...future.oldEnvVars) [01:28:27.649] envs <- base::Sys.getenv() [01:28:27.649] names <- names(envs) [01:28:27.649] common <- intersect(names, old_names) [01:28:27.649] added <- setdiff(names, old_names) [01:28:27.649] removed <- setdiff(old_names, names) [01:28:27.649] changed <- common[...future.oldEnvVars[common] != [01:28:27.649] envs[common]] [01:28:27.649] NAMES <- toupper(changed) [01:28:27.649] args <- list() [01:28:27.649] for (kk in seq_along(NAMES)) { [01:28:27.649] name <- changed[[kk]] [01:28:27.649] NAME <- NAMES[[kk]] [01:28:27.649] if (name != NAME && is.element(NAME, old_names)) [01:28:27.649] next [01:28:27.649] args[[name]] <- ...future.oldEnvVars[[name]] [01:28:27.649] } [01:28:27.649] NAMES <- toupper(added) [01:28:27.649] for (kk in seq_along(NAMES)) { [01:28:27.649] name <- added[[kk]] [01:28:27.649] NAME <- NAMES[[kk]] [01:28:27.649] if (name != NAME && is.element(NAME, old_names)) [01:28:27.649] next [01:28:27.649] args[[name]] <- "" [01:28:27.649] } [01:28:27.649] NAMES <- toupper(removed) [01:28:27.649] for (kk in seq_along(NAMES)) { [01:28:27.649] name <- removed[[kk]] [01:28:27.649] NAME <- NAMES[[kk]] [01:28:27.649] if (name != NAME && is.element(NAME, old_names)) [01:28:27.649] next [01:28:27.649] args[[name]] <- ...future.oldEnvVars[[name]] [01:28:27.649] } [01:28:27.649] if (length(args) > 0) [01:28:27.649] base::do.call(base::Sys.setenv, args = args) [01:28:27.649] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:28:27.649] } [01:28:27.649] else { [01:28:27.649] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:28:27.649] } [01:28:27.649] { [01:28:27.649] if (base::length(...future.futureOptionsAdded) > [01:28:27.649] 0L) { [01:28:27.649] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:28:27.649] base::names(opts) <- ...future.futureOptionsAdded [01:28:27.649] base::options(opts) [01:28:27.649] } [01:28:27.649] { [01:28:27.649] NULL [01:28:27.649] options(future.plan = NULL) [01:28:27.649] if (is.na(NA_character_)) [01:28:27.649] Sys.unsetenv("R_FUTURE_PLAN") [01:28:27.649] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:28:27.649] future::plan(list(function (..., workers = function () [01:28:27.649] { [01:28:27.649] w <- future::availableWorkers() [01:28:27.649] if (length(w) > 1) [01:28:27.649] w[-1] [01:28:27.649] else w [01:28:27.649] }, envir = parent.frame()) [01:28:27.649] strategy(..., workers = workers, envir = envir)), [01:28:27.649] .cleanup = FALSE, .init = FALSE) [01:28:27.649] } [01:28:27.649] } [01:28:27.649] } [01:28:27.649] }) [01:28:27.649] if (TRUE) { [01:28:27.649] base::sink(type = "output", split = FALSE) [01:28:27.649] if (TRUE) { [01:28:27.649] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:28:27.649] } [01:28:27.649] else { [01:28:27.649] ...future.result["stdout"] <- base::list(NULL) [01:28:27.649] } [01:28:27.649] base::close(...future.stdout) [01:28:27.649] ...future.stdout <- NULL [01:28:27.649] } [01:28:27.649] ...future.result$conditions <- ...future.conditions [01:28:27.649] ...future.result$finished <- base::Sys.time() [01:28:27.649] ...future.result [01:28:27.649] } [01:28:27.730] ClusterFuture started [01:28:27.730] result() for ClusterFuture ... [01:28:27.730] receiveMessageFromWorker() for ClusterFuture ... [01:28:27.731] - Validating connection of ClusterFuture [01:28:27.813] - received message: FutureResult [01:28:27.813] - Received FutureResult [01:28:27.813] - Erased future from FutureRegistry [01:28:27.814] result() for ClusterFuture ... [01:28:27.814] - result already collected: FutureResult [01:28:27.814] result() for ClusterFuture ... done [01:28:27.814] receiveMessageFromWorker() for ClusterFuture ... done [01:28:27.814] result() for ClusterFuture ... done [01:28:27.815] result() for ClusterFuture ... [01:28:27.815] - result already collected: FutureResult [01:28:27.815] result() for ClusterFuture ... done [01:28:27.815] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:28:27.821] 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) [01:28:27.825] [local output] makeClusterPSOCK() ... [01:28:27.826] [local output] Workers: [n = 2] 'localhost', 'localhost' [01:28:27.829] [local output] Base port: 30799 [01:28:27.829] [local output] Getting setup options for 2 cluster nodes ... [01:28:27.829] [local output] - Node 1 of 2 ... [01:28:27.829] [local output] localMachine=TRUE => revtunnel=FALSE [01:28:27.831] [local output] Rscript port: 30799 [01:28:27.831] [local output] - Node 2 of 2 ... [01:28:27.832] [local output] localMachine=TRUE => revtunnel=FALSE [01:28:27.833] [local output] Rscript port: 30799 [01:28:27.833] [local output] Getting setup options for 2 cluster nodes ... done [01:28:27.833] [local output] - Parallel setup requested for some PSOCK nodes [01:28:27.834] [local output] Setting up PSOCK nodes in parallel [01:28:27.834] List of 36 [01:28:27.834] $ worker : chr "localhost" [01:28:27.834] ..- attr(*, "localhost")= logi TRUE [01:28:27.834] $ master : chr "localhost" [01:28:27.834] $ port : int 30799 [01:28:27.834] $ connectTimeout : num 120 [01:28:27.834] $ timeout : num 120 [01:28:27.834] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [01:28:27.834] $ homogeneous : logi TRUE [01:28:27.834] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=nbrOfWorkers.R:13504:CRANWIN3:CR"| __truncated__ [01:28:27.834] $ rscript_envs : NULL [01:28:27.834] $ rscript_libs : NULL [01:28:27.834] $ rscript_startup : NULL [01:28:27.834] $ rscript_sh : chr "cmd" [01:28:27.834] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:28:27.834] $ methods : logi TRUE [01:28:27.834] $ socketOptions : chr "no-delay" [01:28:27.834] $ useXDR : logi FALSE [01:28:27.834] $ outfile : chr "/dev/null" [01:28:27.834] $ renice : int NA [01:28:27.834] $ rshcmd : NULL [01:28:27.834] $ user : chr(0) [01:28:27.834] $ revtunnel : logi FALSE [01:28:27.834] $ rshlogfile : NULL [01:28:27.834] $ rshopts : chr(0) [01:28:27.834] $ rank : int 1 [01:28:27.834] $ manual : logi FALSE [01:28:27.834] $ dryrun : logi FALSE [01:28:27.834] $ quiet : logi FALSE [01:28:27.834] $ setup_strategy : chr "parallel" [01:28:27.834] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:28:27.834] $ pidfile : chr "D:/temp/Rtmpm8xsqT/worker.rank=1.parallelly.parent=13504.34c07e221b08.pid" [01:28:27.834] $ rshcmd_label : NULL [01:28:27.834] $ rsh_call : NULL [01:28:27.834] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:28:27.834] $ localMachine : logi TRUE [01:28:27.834] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [01:28:27.834] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [01:28:27.834] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [01:28:27.834] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [01:28:27.834] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [01:28:27.834] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [01:28:27.834] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [01:28:27.834] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [01:28:27.834] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [01:28:27.834] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [01:28:27.834] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [01:28:27.834] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [01:28:27.834] "parallel"), action = c("launch", "options"), verbose = FALSE) [01:28:27.834] $ arguments :List of 28 [01:28:27.834] ..$ worker : chr "localhost" [01:28:27.834] ..$ master : NULL [01:28:27.834] ..$ port : int 30799 [01:28:27.834] ..$ connectTimeout : num 120 [01:28:27.834] ..$ timeout : num 120 [01:28:27.834] ..$ rscript : NULL [01:28:27.834] ..$ homogeneous : NULL [01:28:27.834] ..$ rscript_args : NULL [01:28:27.834] ..$ rscript_envs : NULL [01:28:27.834] ..$ rscript_libs : NULL [01:28:27.834] ..$ rscript_startup : NULL [01:28:27.834] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [01:28:27.834] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:28:27.834] ..$ methods : logi TRUE [01:28:27.834] ..$ socketOptions : chr "no-delay" [01:28:27.834] ..$ useXDR : logi FALSE [01:28:27.834] ..$ outfile : chr "/dev/null" [01:28:27.834] ..$ renice : int NA [01:28:27.834] ..$ rshcmd : NULL [01:28:27.834] ..$ user : NULL [01:28:27.834] ..$ revtunnel : logi NA [01:28:27.834] ..$ rshlogfile : NULL [01:28:27.834] ..$ rshopts : NULL [01:28:27.834] ..$ rank : int 1 [01:28:27.834] ..$ manual : logi FALSE [01:28:27.834] ..$ dryrun : logi FALSE [01:28:27.834] ..$ quiet : logi FALSE [01:28:27.834] ..$ setup_strategy : chr "parallel" [01:28:27.834] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [01:28:27.855] [local output] System call to launch all workers: [01:28:27.856] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=nbrOfWorkers.R:13504:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpm8xsqT/worker.rank=1.parallelly.parent=13504.34c07e221b08.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=30799 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [01:28:27.856] [local output] Starting PSOCK main server [01:28:27.862] [local output] Workers launched [01:28:27.862] [local output] Waiting for workers to connect back [01:28:27.862] - [local output] 0 workers out of 2 ready [01:28:28.039] - [local output] 0 workers out of 2 ready [01:28:28.039] - [local output] 1 workers out of 2 ready [01:28:28.071] - [local output] 1 workers out of 2 ready [01:28:28.072] - [local output] 2 workers out of 2 ready [01:28:28.072] [local output] Launching of workers completed [01:28:28.072] [local output] Collecting session information from workers [01:28:28.073] [local output] - Worker #1 of 2 [01:28:28.073] [local output] - Worker #2 of 2 [01:28:28.074] [local output] makeClusterPSOCK() ... done > print(workers) Socket cluster with 2 nodes where 2 nodes are on host 'localhost' (R Under development (unstable) (2023-12-20 r85713 ucrt), platform x86_64-w64-mingw32) > plan(cluster, workers = workers) [01:28:28.079] plan(): Setting new future strategy stack: [01:28:28.079] List of future strategies: [01:28:28.079] 1. cluster: [01:28:28.079] - args: function (..., workers = "", envir = parent.frame()) [01:28:28.079] - tweaked: TRUE [01:28:28.079] - call: plan(cluster, workers = workers) [01:28:28.082] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... [01:28:28.082] cluster: [01:28:28.082] - args: function (..., workers = "", envir = parent.frame()) [01:28:28.082] - tweaked: TRUE [01:28:28.082] - call: plan(cluster, workers = workers) [01:28:28.084] getGlobalsAndPackages() ... [01:28:28.084] Not searching for globals [01:28:28.085] - globals: [0] [01:28:28.085] getGlobalsAndPackages() ... DONE [01:28:28.100] Packages needed by the future expression (n = 0): [01:28:28.100] Packages needed by future strategies (n = 0): [01:28:28.100] { [01:28:28.100] { [01:28:28.100] { [01:28:28.100] ...future.startTime <- base::Sys.time() [01:28:28.100] { [01:28:28.100] { [01:28:28.100] { [01:28:28.100] base::local({ [01:28:28.100] has_future <- base::requireNamespace("future", [01:28:28.100] quietly = TRUE) [01:28:28.100] if (has_future) { [01:28:28.100] ns <- base::getNamespace("future") [01:28:28.100] version <- ns[[".package"]][["version"]] [01:28:28.100] if (is.null(version)) [01:28:28.100] version <- utils::packageVersion("future") [01:28:28.100] } [01:28:28.100] else { [01:28:28.100] version <- NULL [01:28:28.100] } [01:28:28.100] if (!has_future || version < "1.8.0") { [01:28:28.100] info <- base::c(r_version = base::gsub("R version ", [01:28:28.100] "", base::R.version$version.string), [01:28:28.100] platform = base::sprintf("%s (%s-bit)", [01:28:28.100] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:28:28.100] os = base::paste(base::Sys.info()[base::c("sysname", [01:28:28.100] "release", "version")], collapse = " "), [01:28:28.100] hostname = base::Sys.info()[["nodename"]]) [01:28:28.100] info <- base::sprintf("%s: %s", base::names(info), [01:28:28.100] info) [01:28:28.100] info <- base::paste(info, collapse = "; ") [01:28:28.100] if (!has_future) { [01:28:28.100] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:28:28.100] info) [01:28:28.100] } [01:28:28.100] else { [01:28:28.100] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:28:28.100] info, version) [01:28:28.100] } [01:28:28.100] base::stop(msg) [01:28:28.100] } [01:28:28.100] }) [01:28:28.100] } [01:28:28.100] options(future.plan = NULL) [01:28:28.100] Sys.unsetenv("R_FUTURE_PLAN") [01:28:28.100] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:28:28.100] } [01:28:28.100] ...future.workdir <- getwd() [01:28:28.100] } [01:28:28.100] ...future.oldOptions <- base::as.list(base::.Options) [01:28:28.100] ...future.oldEnvVars <- base::Sys.getenv() [01:28:28.100] } [01:28:28.100] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:28:28.100] future.globals.maxSize = NULL, future.globals.method = NULL, [01:28:28.100] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:28:28.100] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:28:28.100] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:28:28.100] future.stdout.windows.reencode = NULL, width = 80L) [01:28:28.100] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:28:28.100] base::names(...future.oldOptions)) [01:28:28.100] } [01:28:28.100] if (FALSE) { [01:28:28.100] } [01:28:28.100] else { [01:28:28.100] if (TRUE) { [01:28:28.100] ...future.stdout <- base::rawConnection(base::raw(0L), [01:28:28.100] open = "w") [01:28:28.100] } [01:28:28.100] else { [01:28:28.100] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:28:28.100] windows = "NUL", "/dev/null"), open = "w") [01:28:28.100] } [01:28:28.100] base::sink(...future.stdout, type = "output", split = FALSE) [01:28:28.100] base::on.exit(if (!base::is.null(...future.stdout)) { [01:28:28.100] base::sink(type = "output", split = FALSE) [01:28:28.100] base::close(...future.stdout) [01:28:28.100] }, add = TRUE) [01:28:28.100] } [01:28:28.100] ...future.frame <- base::sys.nframe() [01:28:28.100] ...future.conditions <- base::list() [01:28:28.100] ...future.rng <- base::globalenv()$.Random.seed [01:28:28.100] if (FALSE) { [01:28:28.100] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:28:28.100] "...future.value", "...future.globalenv.names", ".Random.seed") [01:28:28.100] } [01:28:28.100] ...future.result <- base::tryCatch({ [01:28:28.100] base::withCallingHandlers({ [01:28:28.100] ...future.value <- base::withVisible(base::local({ [01:28:28.100] ...future.makeSendCondition <- base::local({ [01:28:28.100] sendCondition <- NULL [01:28:28.100] function(frame = 1L) { [01:28:28.100] if (is.function(sendCondition)) [01:28:28.100] return(sendCondition) [01:28:28.100] ns <- getNamespace("parallel") [01:28:28.100] if (exists("sendData", mode = "function", [01:28:28.100] envir = ns)) { [01:28:28.100] parallel_sendData <- get("sendData", mode = "function", [01:28:28.100] envir = ns) [01:28:28.100] envir <- sys.frame(frame) [01:28:28.100] master <- NULL [01:28:28.100] while (!identical(envir, .GlobalEnv) && [01:28:28.100] !identical(envir, emptyenv())) { [01:28:28.100] if (exists("master", mode = "list", envir = envir, [01:28:28.100] inherits = FALSE)) { [01:28:28.100] master <- get("master", mode = "list", [01:28:28.100] envir = envir, inherits = FALSE) [01:28:28.100] if (inherits(master, c("SOCKnode", [01:28:28.100] "SOCK0node"))) { [01:28:28.100] sendCondition <<- function(cond) { [01:28:28.100] data <- list(type = "VALUE", value = cond, [01:28:28.100] success = TRUE) [01:28:28.100] parallel_sendData(master, data) [01:28:28.100] } [01:28:28.100] return(sendCondition) [01:28:28.100] } [01:28:28.100] } [01:28:28.100] frame <- frame + 1L [01:28:28.100] envir <- sys.frame(frame) [01:28:28.100] } [01:28:28.100] } [01:28:28.100] sendCondition <<- function(cond) NULL [01:28:28.100] } [01:28:28.100] }) [01:28:28.100] withCallingHandlers({ [01:28:28.100] NA [01:28:28.100] }, immediateCondition = function(cond) { [01:28:28.100] sendCondition <- ...future.makeSendCondition() [01:28:28.100] sendCondition(cond) [01:28:28.100] muffleCondition <- function (cond, pattern = "^muffle") [01:28:28.100] { [01:28:28.100] inherits <- base::inherits [01:28:28.100] invokeRestart <- base::invokeRestart [01:28:28.100] is.null <- base::is.null [01:28:28.100] muffled <- FALSE [01:28:28.100] if (inherits(cond, "message")) { [01:28:28.100] muffled <- grepl(pattern, "muffleMessage") [01:28:28.100] if (muffled) [01:28:28.100] invokeRestart("muffleMessage") [01:28:28.100] } [01:28:28.100] else if (inherits(cond, "warning")) { [01:28:28.100] muffled <- grepl(pattern, "muffleWarning") [01:28:28.100] if (muffled) [01:28:28.100] invokeRestart("muffleWarning") [01:28:28.100] } [01:28:28.100] else if (inherits(cond, "condition")) { [01:28:28.100] if (!is.null(pattern)) { [01:28:28.100] computeRestarts <- base::computeRestarts [01:28:28.100] grepl <- base::grepl [01:28:28.100] restarts <- computeRestarts(cond) [01:28:28.100] for (restart in restarts) { [01:28:28.100] name <- restart$name [01:28:28.100] if (is.null(name)) [01:28:28.100] next [01:28:28.100] if (!grepl(pattern, name)) [01:28:28.100] next [01:28:28.100] invokeRestart(restart) [01:28:28.100] muffled <- TRUE [01:28:28.100] break [01:28:28.100] } [01:28:28.100] } [01:28:28.100] } [01:28:28.100] invisible(muffled) [01:28:28.100] } [01:28:28.100] muffleCondition(cond) [01:28:28.100] }) [01:28:28.100] })) [01:28:28.100] future::FutureResult(value = ...future.value$value, [01:28:28.100] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:28:28.100] ...future.rng), globalenv = if (FALSE) [01:28:28.100] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:28:28.100] ...future.globalenv.names)) [01:28:28.100] else NULL, started = ...future.startTime, version = "1.8") [01:28:28.100] }, condition = base::local({ [01:28:28.100] c <- base::c [01:28:28.100] inherits <- base::inherits [01:28:28.100] invokeRestart <- base::invokeRestart [01:28:28.100] length <- base::length [01:28:28.100] list <- base::list [01:28:28.100] seq.int <- base::seq.int [01:28:28.100] signalCondition <- base::signalCondition [01:28:28.100] sys.calls <- base::sys.calls [01:28:28.100] `[[` <- base::`[[` [01:28:28.100] `+` <- base::`+` [01:28:28.100] `<<-` <- base::`<<-` [01:28:28.100] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:28:28.100] calls[seq.int(from = from + 12L, to = length(calls) - [01:28:28.100] 3L)] [01:28:28.100] } [01:28:28.100] function(cond) { [01:28:28.100] is_error <- inherits(cond, "error") [01:28:28.100] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:28:28.100] NULL) [01:28:28.100] if (is_error) { [01:28:28.100] sessionInformation <- function() { [01:28:28.100] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:28:28.100] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:28:28.100] search = base::search(), system = base::Sys.info()) [01:28:28.100] } [01:28:28.100] ...future.conditions[[length(...future.conditions) + [01:28:28.100] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:28:28.100] cond$call), session = sessionInformation(), [01:28:28.100] timestamp = base::Sys.time(), signaled = 0L) [01:28:28.100] signalCondition(cond) [01:28:28.100] } [01:28:28.100] else if (!ignore && TRUE && inherits(cond, c("condition", [01:28:28.100] "immediateCondition"))) { [01:28:28.100] signal <- TRUE && inherits(cond, "immediateCondition") [01:28:28.100] ...future.conditions[[length(...future.conditions) + [01:28:28.100] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:28:28.100] if (TRUE && !signal) { [01:28:28.100] muffleCondition <- function (cond, pattern = "^muffle") [01:28:28.100] { [01:28:28.100] inherits <- base::inherits [01:28:28.100] invokeRestart <- base::invokeRestart [01:28:28.100] is.null <- base::is.null [01:28:28.100] muffled <- FALSE [01:28:28.100] if (inherits(cond, "message")) { [01:28:28.100] muffled <- grepl(pattern, "muffleMessage") [01:28:28.100] if (muffled) [01:28:28.100] invokeRestart("muffleMessage") [01:28:28.100] } [01:28:28.100] else if (inherits(cond, "warning")) { [01:28:28.100] muffled <- grepl(pattern, "muffleWarning") [01:28:28.100] if (muffled) [01:28:28.100] invokeRestart("muffleWarning") [01:28:28.100] } [01:28:28.100] else if (inherits(cond, "condition")) { [01:28:28.100] if (!is.null(pattern)) { [01:28:28.100] computeRestarts <- base::computeRestarts [01:28:28.100] grepl <- base::grepl [01:28:28.100] restarts <- computeRestarts(cond) [01:28:28.100] for (restart in restarts) { [01:28:28.100] name <- restart$name [01:28:28.100] if (is.null(name)) [01:28:28.100] next [01:28:28.100] if (!grepl(pattern, name)) [01:28:28.100] next [01:28:28.100] invokeRestart(restart) [01:28:28.100] muffled <- TRUE [01:28:28.100] break [01:28:28.100] } [01:28:28.100] } [01:28:28.100] } [01:28:28.100] invisible(muffled) [01:28:28.100] } [01:28:28.100] muffleCondition(cond, pattern = "^muffle") [01:28:28.100] } [01:28:28.100] } [01:28:28.100] else { [01:28:28.100] if (TRUE) { [01:28:28.100] muffleCondition <- function (cond, pattern = "^muffle") [01:28:28.100] { [01:28:28.100] inherits <- base::inherits [01:28:28.100] invokeRestart <- base::invokeRestart [01:28:28.100] is.null <- base::is.null [01:28:28.100] muffled <- FALSE [01:28:28.100] if (inherits(cond, "message")) { [01:28:28.100] muffled <- grepl(pattern, "muffleMessage") [01:28:28.100] if (muffled) [01:28:28.100] invokeRestart("muffleMessage") [01:28:28.100] } [01:28:28.100] else if (inherits(cond, "warning")) { [01:28:28.100] muffled <- grepl(pattern, "muffleWarning") [01:28:28.100] if (muffled) [01:28:28.100] invokeRestart("muffleWarning") [01:28:28.100] } [01:28:28.100] else if (inherits(cond, "condition")) { [01:28:28.100] if (!is.null(pattern)) { [01:28:28.100] computeRestarts <- base::computeRestarts [01:28:28.100] grepl <- base::grepl [01:28:28.100] restarts <- computeRestarts(cond) [01:28:28.100] for (restart in restarts) { [01:28:28.100] name <- restart$name [01:28:28.100] if (is.null(name)) [01:28:28.100] next [01:28:28.100] if (!grepl(pattern, name)) [01:28:28.100] next [01:28:28.100] invokeRestart(restart) [01:28:28.100] muffled <- TRUE [01:28:28.100] break [01:28:28.100] } [01:28:28.100] } [01:28:28.100] } [01:28:28.100] invisible(muffled) [01:28:28.100] } [01:28:28.100] muffleCondition(cond, pattern = "^muffle") [01:28:28.100] } [01:28:28.100] } [01:28:28.100] } [01:28:28.100] })) [01:28:28.100] }, error = function(ex) { [01:28:28.100] base::structure(base::list(value = NULL, visible = NULL, [01:28:28.100] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:28:28.100] ...future.rng), started = ...future.startTime, [01:28:28.100] finished = Sys.time(), session_uuid = NA_character_, [01:28:28.100] version = "1.8"), class = "FutureResult") [01:28:28.100] }, finally = { [01:28:28.100] if (!identical(...future.workdir, getwd())) [01:28:28.100] setwd(...future.workdir) [01:28:28.100] { [01:28:28.100] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:28:28.100] ...future.oldOptions$nwarnings <- NULL [01:28:28.100] } [01:28:28.100] base::options(...future.oldOptions) [01:28:28.100] if (.Platform$OS.type == "windows") { [01:28:28.100] old_names <- names(...future.oldEnvVars) [01:28:28.100] envs <- base::Sys.getenv() [01:28:28.100] names <- names(envs) [01:28:28.100] common <- intersect(names, old_names) [01:28:28.100] added <- setdiff(names, old_names) [01:28:28.100] removed <- setdiff(old_names, names) [01:28:28.100] changed <- common[...future.oldEnvVars[common] != [01:28:28.100] envs[common]] [01:28:28.100] NAMES <- toupper(changed) [01:28:28.100] args <- list() [01:28:28.100] for (kk in seq_along(NAMES)) { [01:28:28.100] name <- changed[[kk]] [01:28:28.100] NAME <- NAMES[[kk]] [01:28:28.100] if (name != NAME && is.element(NAME, old_names)) [01:28:28.100] next [01:28:28.100] args[[name]] <- ...future.oldEnvVars[[name]] [01:28:28.100] } [01:28:28.100] NAMES <- toupper(added) [01:28:28.100] for (kk in seq_along(NAMES)) { [01:28:28.100] name <- added[[kk]] [01:28:28.100] NAME <- NAMES[[kk]] [01:28:28.100] if (name != NAME && is.element(NAME, old_names)) [01:28:28.100] next [01:28:28.100] args[[name]] <- "" [01:28:28.100] } [01:28:28.100] NAMES <- toupper(removed) [01:28:28.100] for (kk in seq_along(NAMES)) { [01:28:28.100] name <- removed[[kk]] [01:28:28.100] NAME <- NAMES[[kk]] [01:28:28.100] if (name != NAME && is.element(NAME, old_names)) [01:28:28.100] next [01:28:28.100] args[[name]] <- ...future.oldEnvVars[[name]] [01:28:28.100] } [01:28:28.100] if (length(args) > 0) [01:28:28.100] base::do.call(base::Sys.setenv, args = args) [01:28:28.100] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:28:28.100] } [01:28:28.100] else { [01:28:28.100] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:28:28.100] } [01:28:28.100] { [01:28:28.100] if (base::length(...future.futureOptionsAdded) > [01:28:28.100] 0L) { [01:28:28.100] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:28:28.100] base::names(opts) <- ...future.futureOptionsAdded [01:28:28.100] base::options(opts) [01:28:28.100] } [01:28:28.100] { [01:28:28.100] NULL [01:28:28.100] options(future.plan = NULL) [01:28:28.100] if (is.na(NA_character_)) [01:28:28.100] Sys.unsetenv("R_FUTURE_PLAN") [01:28:28.100] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:28:28.100] future::plan(list(function (..., workers = list( [01:28:28.100] list(con = 5L, host = "localhost", rank = 0L, [01:28:28.100] session_info = list(r = list(platform = "x86_64-w64-mingw32", [01:28:28.100] arch = "x86_64", os = "mingw32", crt = "ucrt", [01:28:28.100] system = "x86_64, mingw32", status = "Under development (unstable)", [01:28:28.100] major = "4", minor = "4.0", year = "2023", [01:28:28.100] month = "12", day = "20", `svn rev` = "85713", [01:28:28.100] language = "R", version.string = "R Under development (unstable) (2023-12-20 r85713 ucrt)", [01:28:28.100] nickname = "Unsuffered Consequences", [01:28:28.100] os.type = "windows"), system = list(sysname = "Windows", [01:28:28.100] release = "Server x64", version = "build 20348", [01:28:28.100] nodename = "CRANWIN3", machine = "x86-64", [01:28:28.100] login = "CRAN", user = "CRAN", effective_user = "CRAN"), [01:28:28.100] libs = c("D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47", [01:28:28.100] "D:/RCompile/recent/R/library"), pkgs = NULL, [01:28:28.100] pwd = "d:/RCompile/CRANincoming/R-devel/future.Rcheck/tests", [01:28:28.100] process = list(pid = 14132L))), list( [01:28:28.100] con = 6L, host = "localhost", rank = 1L, [01:28:28.100] session_info = list(r = list(platform = "x86_64-w64-mingw32", [01:28:28.100] arch = "x86_64", os = "mingw32", crt = "ucrt", [01:28:28.100] system = "x86_64, mingw32", status = "Under development (unstable)", [01:28:28.100] major = "4", minor = "4.0", year = "2023", [01:28:28.100] month = "12", day = "20", `svn rev` = "85713", [01:28:28.100] language = "R", version.string = "R Under development (unstable) (2023-12-20 r85713 ucrt)", [01:28:28.100] nickname = "Unsuffered Consequences", [01:28:28.100] os.type = "windows"), system = list(sysname = "Windows", [01:28:28.100] release = "Server x64", version = "build 20348", [01:28:28.100] nodename = "CRANWIN3", machine = "x86-64", [01:28:28.100] login = "CRAN", user = "CRAN", effective_user = "CRAN"), [01:28:28.100] libs = c("D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47", [01:28:28.100] "D:/RCompile/recent/R/library"), pkgs = NULL, [01:28:28.100] pwd = "d:/RCompile/CRANincoming/R-devel/future.Rcheck/tests", [01:28:28.100] process = list(pid = 3648L)))), envir = parent.frame()) [01:28:28.100] strategy(..., workers = workers, envir = envir)), [01:28:28.100] .cleanup = FALSE, .init = FALSE) [01:28:28.100] } [01:28:28.100] } [01:28:28.100] } [01:28:28.100] }) [01:28:28.100] if (TRUE) { [01:28:28.100] base::sink(type = "output", split = FALSE) [01:28:28.100] if (TRUE) { [01:28:28.100] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:28:28.100] } [01:28:28.100] else { [01:28:28.100] ...future.result["stdout"] <- base::list(NULL) [01:28:28.100] } [01:28:28.100] base::close(...future.stdout) [01:28:28.100] ...future.stdout <- NULL [01:28:28.100] } [01:28:28.100] ...future.result$conditions <- ...future.conditions [01:28:28.100] ...future.result$finished <- base::Sys.time() [01:28:28.100] ...future.result [01:28:28.100] } [01:28:28.192] ClusterFuture started [01:28:28.192] result() for ClusterFuture ... [01:28:28.192] receiveMessageFromWorker() for ClusterFuture ... [01:28:28.193] - Validating connection of ClusterFuture [01:28:28.246] - received message: FutureResult [01:28:28.246] - Received FutureResult [01:28:28.247] - Erased future from FutureRegistry [01:28:28.247] result() for ClusterFuture ... [01:28:28.247] - result already collected: FutureResult [01:28:28.247] result() for ClusterFuture ... done [01:28:28.247] receiveMessageFromWorker() for ClusterFuture ... done [01:28:28.247] result() for ClusterFuture ... done [01:28:28.248] result() for ClusterFuture ... [01:28:28.248] - result already collected: FutureResult [01:28:28.248] result() for ClusterFuture ... done [01:28:28.248] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:28:28.249] 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") [01:28:28.250] plan(): Setting new future strategy stack: [01:28:28.250] List of future strategies: [01:28:28.250] 1. FutureStrategy: [01:28:28.250] - args: function (..., envir = parent.frame(), workers = "") [01:28:28.250] - tweaked: FALSE [01:28:28.250] - call: future::plan(oplan) [01:28:28.252] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=204] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS43_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUBDIRS_STRICT_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_INSTALL_TIME_PATCHES_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 0.81 0.18 2.65