R Under development (unstable) (2024-03-25 r86192 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [17:27:12.446] plan(): Setting new future strategy stack: [17:27:12.447] List of future strategies: [17:27:12.447] 1. sequential: [17:27:12.447] - args: function (..., envir = parent.frame(), workers = "") [17:27:12.447] - tweaked: FALSE [17:27:12.447] - call: future::plan("sequential") [17:27:12.463] plan(): nbrOfWorkers() = 1 > > ## Local functions > usedNodes <- function(future) { + ## Number of unresolved cluster futures + workers <- future$workers + reg <- sprintf("workers-%s", attr(workers, "name")) + c(used = length(future:::FutureRegistry(reg, action = "list")), total = length(workers)) + } > > ## This test requires at least two background processes > plan(multisession, workers = 2L) [17:27:12.472] plan(): Setting new future strategy stack: [17:27:12.472] List of future strategies: [17:27:12.472] 1. multisession: [17:27:12.472] - args: function (..., workers = 2L, envir = parent.frame()) [17:27:12.472] - tweaked: TRUE [17:27:12.472] - call: plan(multisession, workers = 2L) [17:27:12.486] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:27:12.487] multisession: [17:27:12.487] - args: function (..., workers = 2L, envir = parent.frame()) [17:27:12.487] - tweaked: TRUE [17:27:12.487] - call: plan(multisession, workers = 2L) [17:27:12.488] getGlobalsAndPackages() ... [17:27:12.488] Not searching for globals [17:27:12.489] - globals: [0] [17:27:12.489] getGlobalsAndPackages() ... DONE [17:27:12.489] [local output] makeClusterPSOCK() ... [17:27:12.518] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:27:12.524] [local output] Base port: 32418 [17:27:12.524] [local output] Getting setup options for 2 cluster nodes ... [17:27:12.524] [local output] - Node 1 of 2 ... [17:27:12.525] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:12.526] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpw50hfy/worker.rank=1.parallelly.parent=136844.2168c2e7e6d67.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/Rtmpw50hfy/worker.rank=1.parallelly.parent=136844.2168c2e7e6d67.pid\")"' [17:27:12.963] - Possible to infer worker's PID: TRUE [17:27:12.964] [local output] Rscript port: 32418 [17:27:12.964] [local output] - Node 2 of 2 ... [17:27:12.965] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:12.966] [local output] Rscript port: 32418 [17:27:12.966] [local output] Getting setup options for 2 cluster nodes ... done [17:27:12.966] [local output] - Parallel setup requested for some PSOCK nodes [17:27:12.967] [local output] Setting up PSOCK nodes in parallel [17:27:12.967] List of 36 [17:27:12.967] $ worker : chr "localhost" [17:27:12.967] ..- attr(*, "localhost")= logi TRUE [17:27:12.967] $ master : chr "localhost" [17:27:12.967] $ port : int 32418 [17:27:12.967] $ connectTimeout : num 120 [17:27:12.967] $ timeout : num 120 [17:27:12.967] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:27:12.967] $ homogeneous : logi TRUE [17:27:12.967] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=invalid-owner.R:136844:CRANWIN3:"| __truncated__ [17:27:12.967] $ rscript_envs : NULL [17:27:12.967] $ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:27:12.967] $ rscript_startup : NULL [17:27:12.967] $ rscript_sh : chr "cmd" [17:27:12.967] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:12.967] $ methods : logi TRUE [17:27:12.967] $ socketOptions : chr "no-delay" [17:27:12.967] $ useXDR : logi FALSE [17:27:12.967] $ outfile : chr "/dev/null" [17:27:12.967] $ renice : int NA [17:27:12.967] $ rshcmd : NULL [17:27:12.967] $ user : chr(0) [17:27:12.967] $ revtunnel : logi FALSE [17:27:12.967] $ rshlogfile : NULL [17:27:12.967] $ rshopts : chr(0) [17:27:12.967] $ rank : int 1 [17:27:12.967] $ manual : logi FALSE [17:27:12.967] $ dryrun : logi FALSE [17:27:12.967] $ quiet : logi FALSE [17:27:12.967] $ setup_strategy : chr "parallel" [17:27:12.967] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:12.967] $ pidfile : chr "D:/temp/Rtmpw50hfy/worker.rank=1.parallelly.parent=136844.2168c2e7e6d67.pid" [17:27:12.967] $ rshcmd_label : NULL [17:27:12.967] $ rsh_call : NULL [17:27:12.967] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:12.967] $ localMachine : logi TRUE [17:27:12.967] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:27:12.967] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:27:12.967] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:27:12.967] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:27:12.967] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:27:12.967] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:27:12.967] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:27:12.967] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:27:12.967] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:27:12.967] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:27:12.967] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:27:12.967] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:27:12.967] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:27:12.967] $ arguments :List of 28 [17:27:12.967] ..$ worker : chr "localhost" [17:27:12.967] ..$ master : NULL [17:27:12.967] ..$ port : int 32418 [17:27:12.967] ..$ connectTimeout : num 120 [17:27:12.967] ..$ timeout : num 120 [17:27:12.967] ..$ rscript : NULL [17:27:12.967] ..$ homogeneous : NULL [17:27:12.967] ..$ rscript_args : NULL [17:27:12.967] ..$ rscript_envs : NULL [17:27:12.967] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:27:12.967] ..$ rscript_startup : NULL [17:27:12.967] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:27:12.967] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:12.967] ..$ methods : logi TRUE [17:27:12.967] ..$ socketOptions : chr "no-delay" [17:27:12.967] ..$ useXDR : logi FALSE [17:27:12.967] ..$ outfile : chr "/dev/null" [17:27:12.967] ..$ renice : int NA [17:27:12.967] ..$ rshcmd : NULL [17:27:12.967] ..$ user : NULL [17:27:12.967] ..$ revtunnel : logi NA [17:27:12.967] ..$ rshlogfile : NULL [17:27:12.967] ..$ rshopts : NULL [17:27:12.967] ..$ rank : int 1 [17:27:12.967] ..$ manual : logi FALSE [17:27:12.967] ..$ dryrun : logi FALSE [17:27:12.967] ..$ quiet : logi FALSE [17:27:12.967] ..$ setup_strategy : chr "parallel" [17:27:12.967] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:27:12.991] [local output] System call to launch all workers: [17:27:12.991] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=invalid-owner.R:136844:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpw50hfy/worker.rank=1.parallelly.parent=136844.2168c2e7e6d67.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=32418 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:27:12.991] [local output] Starting PSOCK main server [17:27:12.997] [local output] Workers launched [17:27:12.997] [local output] Waiting for workers to connect back [17:27:12.998] - [local output] 0 workers out of 2 ready [17:27:13.179] - [local output] 0 workers out of 2 ready [17:27:13.180] - [local output] 1 workers out of 2 ready [17:27:13.180] - [local output] 2 workers out of 2 ready [17:27:13.180] [local output] Launching of workers completed [17:27:13.181] [local output] Collecting session information from workers [17:27:13.182] [local output] - Worker #1 of 2 [17:27:13.182] [local output] - Worker #2 of 2 [17:27:13.183] [local output] makeClusterPSOCK() ... done [17:27:13.196] Packages needed by the future expression (n = 0): [17:27:13.196] Packages needed by future strategies (n = 0): [17:27:13.197] { [17:27:13.197] { [17:27:13.197] { [17:27:13.197] ...future.startTime <- base::Sys.time() [17:27:13.197] { [17:27:13.197] { [17:27:13.197] { [17:27:13.197] { [17:27:13.197] base::local({ [17:27:13.197] has_future <- base::requireNamespace("future", [17:27:13.197] quietly = TRUE) [17:27:13.197] if (has_future) { [17:27:13.197] ns <- base::getNamespace("future") [17:27:13.197] version <- ns[[".package"]][["version"]] [17:27:13.197] if (is.null(version)) [17:27:13.197] version <- utils::packageVersion("future") [17:27:13.197] } [17:27:13.197] else { [17:27:13.197] version <- NULL [17:27:13.197] } [17:27:13.197] if (!has_future || version < "1.8.0") { [17:27:13.197] info <- base::c(r_version = base::gsub("R version ", [17:27:13.197] "", base::R.version$version.string), [17:27:13.197] platform = base::sprintf("%s (%s-bit)", [17:27:13.197] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:13.197] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:13.197] "release", "version")], collapse = " "), [17:27:13.197] hostname = base::Sys.info()[["nodename"]]) [17:27:13.197] info <- base::sprintf("%s: %s", base::names(info), [17:27:13.197] info) [17:27:13.197] info <- base::paste(info, collapse = "; ") [17:27:13.197] if (!has_future) { [17:27:13.197] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:13.197] info) [17:27:13.197] } [17:27:13.197] else { [17:27:13.197] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:13.197] info, version) [17:27:13.197] } [17:27:13.197] base::stop(msg) [17:27:13.197] } [17:27:13.197] }) [17:27:13.197] } [17:27:13.197] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:13.197] base::options(mc.cores = 1L) [17:27:13.197] } [17:27:13.197] ...future.strategy.old <- future::plan("list") [17:27:13.197] options(future.plan = NULL) [17:27:13.197] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.197] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:13.197] } [17:27:13.197] ...future.workdir <- getwd() [17:27:13.197] } [17:27:13.197] ...future.oldOptions <- base::as.list(base::.Options) [17:27:13.197] ...future.oldEnvVars <- base::Sys.getenv() [17:27:13.197] } [17:27:13.197] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:13.197] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:13.197] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:13.197] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:13.197] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:13.197] future.stdout.windows.reencode = NULL, width = 80L) [17:27:13.197] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:13.197] base::names(...future.oldOptions)) [17:27:13.197] } [17:27:13.197] if (FALSE) { [17:27:13.197] } [17:27:13.197] else { [17:27:13.197] if (TRUE) { [17:27:13.197] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:13.197] open = "w") [17:27:13.197] } [17:27:13.197] else { [17:27:13.197] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:13.197] windows = "NUL", "/dev/null"), open = "w") [17:27:13.197] } [17:27:13.197] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:13.197] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:13.197] base::sink(type = "output", split = FALSE) [17:27:13.197] base::close(...future.stdout) [17:27:13.197] }, add = TRUE) [17:27:13.197] } [17:27:13.197] ...future.frame <- base::sys.nframe() [17:27:13.197] ...future.conditions <- base::list() [17:27:13.197] ...future.rng <- base::globalenv()$.Random.seed [17:27:13.197] if (FALSE) { [17:27:13.197] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:13.197] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:13.197] } [17:27:13.197] ...future.result <- base::tryCatch({ [17:27:13.197] base::withCallingHandlers({ [17:27:13.197] ...future.value <- base::withVisible(base::local({ [17:27:13.197] ...future.makeSendCondition <- base::local({ [17:27:13.197] sendCondition <- NULL [17:27:13.197] function(frame = 1L) { [17:27:13.197] if (is.function(sendCondition)) [17:27:13.197] return(sendCondition) [17:27:13.197] ns <- getNamespace("parallel") [17:27:13.197] if (exists("sendData", mode = "function", [17:27:13.197] envir = ns)) { [17:27:13.197] parallel_sendData <- get("sendData", mode = "function", [17:27:13.197] envir = ns) [17:27:13.197] envir <- sys.frame(frame) [17:27:13.197] master <- NULL [17:27:13.197] while (!identical(envir, .GlobalEnv) && [17:27:13.197] !identical(envir, emptyenv())) { [17:27:13.197] if (exists("master", mode = "list", envir = envir, [17:27:13.197] inherits = FALSE)) { [17:27:13.197] master <- get("master", mode = "list", [17:27:13.197] envir = envir, inherits = FALSE) [17:27:13.197] if (inherits(master, c("SOCKnode", [17:27:13.197] "SOCK0node"))) { [17:27:13.197] sendCondition <<- function(cond) { [17:27:13.197] data <- list(type = "VALUE", value = cond, [17:27:13.197] success = TRUE) [17:27:13.197] parallel_sendData(master, data) [17:27:13.197] } [17:27:13.197] return(sendCondition) [17:27:13.197] } [17:27:13.197] } [17:27:13.197] frame <- frame + 1L [17:27:13.197] envir <- sys.frame(frame) [17:27:13.197] } [17:27:13.197] } [17:27:13.197] sendCondition <<- function(cond) NULL [17:27:13.197] } [17:27:13.197] }) [17:27:13.197] withCallingHandlers({ [17:27:13.197] NA [17:27:13.197] }, immediateCondition = function(cond) { [17:27:13.197] sendCondition <- ...future.makeSendCondition() [17:27:13.197] sendCondition(cond) [17:27:13.197] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.197] { [17:27:13.197] inherits <- base::inherits [17:27:13.197] invokeRestart <- base::invokeRestart [17:27:13.197] is.null <- base::is.null [17:27:13.197] muffled <- FALSE [17:27:13.197] if (inherits(cond, "message")) { [17:27:13.197] muffled <- grepl(pattern, "muffleMessage") [17:27:13.197] if (muffled) [17:27:13.197] invokeRestart("muffleMessage") [17:27:13.197] } [17:27:13.197] else if (inherits(cond, "warning")) { [17:27:13.197] muffled <- grepl(pattern, "muffleWarning") [17:27:13.197] if (muffled) [17:27:13.197] invokeRestart("muffleWarning") [17:27:13.197] } [17:27:13.197] else if (inherits(cond, "condition")) { [17:27:13.197] if (!is.null(pattern)) { [17:27:13.197] computeRestarts <- base::computeRestarts [17:27:13.197] grepl <- base::grepl [17:27:13.197] restarts <- computeRestarts(cond) [17:27:13.197] for (restart in restarts) { [17:27:13.197] name <- restart$name [17:27:13.197] if (is.null(name)) [17:27:13.197] next [17:27:13.197] if (!grepl(pattern, name)) [17:27:13.197] next [17:27:13.197] invokeRestart(restart) [17:27:13.197] muffled <- TRUE [17:27:13.197] break [17:27:13.197] } [17:27:13.197] } [17:27:13.197] } [17:27:13.197] invisible(muffled) [17:27:13.197] } [17:27:13.197] muffleCondition(cond) [17:27:13.197] }) [17:27:13.197] })) [17:27:13.197] future::FutureResult(value = ...future.value$value, [17:27:13.197] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.197] ...future.rng), globalenv = if (FALSE) [17:27:13.197] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:13.197] ...future.globalenv.names)) [17:27:13.197] else NULL, started = ...future.startTime, version = "1.8") [17:27:13.197] }, condition = base::local({ [17:27:13.197] c <- base::c [17:27:13.197] inherits <- base::inherits [17:27:13.197] invokeRestart <- base::invokeRestart [17:27:13.197] length <- base::length [17:27:13.197] list <- base::list [17:27:13.197] seq.int <- base::seq.int [17:27:13.197] signalCondition <- base::signalCondition [17:27:13.197] sys.calls <- base::sys.calls [17:27:13.197] `[[` <- base::`[[` [17:27:13.197] `+` <- base::`+` [17:27:13.197] `<<-` <- base::`<<-` [17:27:13.197] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:13.197] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:13.197] 3L)] [17:27:13.197] } [17:27:13.197] function(cond) { [17:27:13.197] is_error <- inherits(cond, "error") [17:27:13.197] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:13.197] NULL) [17:27:13.197] if (is_error) { [17:27:13.197] sessionInformation <- function() { [17:27:13.197] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:13.197] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:13.197] search = base::search(), system = base::Sys.info()) [17:27:13.197] } [17:27:13.197] ...future.conditions[[length(...future.conditions) + [17:27:13.197] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:13.197] cond$call), session = sessionInformation(), [17:27:13.197] timestamp = base::Sys.time(), signaled = 0L) [17:27:13.197] signalCondition(cond) [17:27:13.197] } [17:27:13.197] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:13.197] "immediateCondition"))) { [17:27:13.197] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:13.197] ...future.conditions[[length(...future.conditions) + [17:27:13.197] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:13.197] if (TRUE && !signal) { [17:27:13.197] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.197] { [17:27:13.197] inherits <- base::inherits [17:27:13.197] invokeRestart <- base::invokeRestart [17:27:13.197] is.null <- base::is.null [17:27:13.197] muffled <- FALSE [17:27:13.197] if (inherits(cond, "message")) { [17:27:13.197] muffled <- grepl(pattern, "muffleMessage") [17:27:13.197] if (muffled) [17:27:13.197] invokeRestart("muffleMessage") [17:27:13.197] } [17:27:13.197] else if (inherits(cond, "warning")) { [17:27:13.197] muffled <- grepl(pattern, "muffleWarning") [17:27:13.197] if (muffled) [17:27:13.197] invokeRestart("muffleWarning") [17:27:13.197] } [17:27:13.197] else if (inherits(cond, "condition")) { [17:27:13.197] if (!is.null(pattern)) { [17:27:13.197] computeRestarts <- base::computeRestarts [17:27:13.197] grepl <- base::grepl [17:27:13.197] restarts <- computeRestarts(cond) [17:27:13.197] for (restart in restarts) { [17:27:13.197] name <- restart$name [17:27:13.197] if (is.null(name)) [17:27:13.197] next [17:27:13.197] if (!grepl(pattern, name)) [17:27:13.197] next [17:27:13.197] invokeRestart(restart) [17:27:13.197] muffled <- TRUE [17:27:13.197] break [17:27:13.197] } [17:27:13.197] } [17:27:13.197] } [17:27:13.197] invisible(muffled) [17:27:13.197] } [17:27:13.197] muffleCondition(cond, pattern = "^muffle") [17:27:13.197] } [17:27:13.197] } [17:27:13.197] else { [17:27:13.197] if (TRUE) { [17:27:13.197] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.197] { [17:27:13.197] inherits <- base::inherits [17:27:13.197] invokeRestart <- base::invokeRestart [17:27:13.197] is.null <- base::is.null [17:27:13.197] muffled <- FALSE [17:27:13.197] if (inherits(cond, "message")) { [17:27:13.197] muffled <- grepl(pattern, "muffleMessage") [17:27:13.197] if (muffled) [17:27:13.197] invokeRestart("muffleMessage") [17:27:13.197] } [17:27:13.197] else if (inherits(cond, "warning")) { [17:27:13.197] muffled <- grepl(pattern, "muffleWarning") [17:27:13.197] if (muffled) [17:27:13.197] invokeRestart("muffleWarning") [17:27:13.197] } [17:27:13.197] else if (inherits(cond, "condition")) { [17:27:13.197] if (!is.null(pattern)) { [17:27:13.197] computeRestarts <- base::computeRestarts [17:27:13.197] grepl <- base::grepl [17:27:13.197] restarts <- computeRestarts(cond) [17:27:13.197] for (restart in restarts) { [17:27:13.197] name <- restart$name [17:27:13.197] if (is.null(name)) [17:27:13.197] next [17:27:13.197] if (!grepl(pattern, name)) [17:27:13.197] next [17:27:13.197] invokeRestart(restart) [17:27:13.197] muffled <- TRUE [17:27:13.197] break [17:27:13.197] } [17:27:13.197] } [17:27:13.197] } [17:27:13.197] invisible(muffled) [17:27:13.197] } [17:27:13.197] muffleCondition(cond, pattern = "^muffle") [17:27:13.197] } [17:27:13.197] } [17:27:13.197] } [17:27:13.197] })) [17:27:13.197] }, error = function(ex) { [17:27:13.197] base::structure(base::list(value = NULL, visible = NULL, [17:27:13.197] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.197] ...future.rng), started = ...future.startTime, [17:27:13.197] finished = Sys.time(), session_uuid = NA_character_, [17:27:13.197] version = "1.8"), class = "FutureResult") [17:27:13.197] }, finally = { [17:27:13.197] if (!identical(...future.workdir, getwd())) [17:27:13.197] setwd(...future.workdir) [17:27:13.197] { [17:27:13.197] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:13.197] ...future.oldOptions$nwarnings <- NULL [17:27:13.197] } [17:27:13.197] base::options(...future.oldOptions) [17:27:13.197] if (.Platform$OS.type == "windows") { [17:27:13.197] old_names <- names(...future.oldEnvVars) [17:27:13.197] envs <- base::Sys.getenv() [17:27:13.197] names <- names(envs) [17:27:13.197] common <- intersect(names, old_names) [17:27:13.197] added <- setdiff(names, old_names) [17:27:13.197] removed <- setdiff(old_names, names) [17:27:13.197] changed <- common[...future.oldEnvVars[common] != [17:27:13.197] envs[common]] [17:27:13.197] NAMES <- toupper(changed) [17:27:13.197] args <- list() [17:27:13.197] for (kk in seq_along(NAMES)) { [17:27:13.197] name <- changed[[kk]] [17:27:13.197] NAME <- NAMES[[kk]] [17:27:13.197] if (name != NAME && is.element(NAME, old_names)) [17:27:13.197] next [17:27:13.197] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.197] } [17:27:13.197] NAMES <- toupper(added) [17:27:13.197] for (kk in seq_along(NAMES)) { [17:27:13.197] name <- added[[kk]] [17:27:13.197] NAME <- NAMES[[kk]] [17:27:13.197] if (name != NAME && is.element(NAME, old_names)) [17:27:13.197] next [17:27:13.197] args[[name]] <- "" [17:27:13.197] } [17:27:13.197] NAMES <- toupper(removed) [17:27:13.197] for (kk in seq_along(NAMES)) { [17:27:13.197] name <- removed[[kk]] [17:27:13.197] NAME <- NAMES[[kk]] [17:27:13.197] if (name != NAME && is.element(NAME, old_names)) [17:27:13.197] next [17:27:13.197] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.197] } [17:27:13.197] if (length(args) > 0) [17:27:13.197] base::do.call(base::Sys.setenv, args = args) [17:27:13.197] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:13.197] } [17:27:13.197] else { [17:27:13.197] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:13.197] } [17:27:13.197] { [17:27:13.197] if (base::length(...future.futureOptionsAdded) > [17:27:13.197] 0L) { [17:27:13.197] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:13.197] base::names(opts) <- ...future.futureOptionsAdded [17:27:13.197] base::options(opts) [17:27:13.197] } [17:27:13.197] { [17:27:13.197] { [17:27:13.197] base::options(mc.cores = ...future.mc.cores.old) [17:27:13.197] NULL [17:27:13.197] } [17:27:13.197] options(future.plan = NULL) [17:27:13.197] if (is.na(NA_character_)) [17:27:13.197] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.197] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:13.197] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:13.197] .init = FALSE) [17:27:13.197] } [17:27:13.197] } [17:27:13.197] } [17:27:13.197] }) [17:27:13.197] if (TRUE) { [17:27:13.197] base::sink(type = "output", split = FALSE) [17:27:13.197] if (TRUE) { [17:27:13.197] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:13.197] } [17:27:13.197] else { [17:27:13.197] ...future.result["stdout"] <- base::list(NULL) [17:27:13.197] } [17:27:13.197] base::close(...future.stdout) [17:27:13.197] ...future.stdout <- NULL [17:27:13.197] } [17:27:13.197] ...future.result$conditions <- ...future.conditions [17:27:13.197] ...future.result$finished <- base::Sys.time() [17:27:13.197] ...future.result [17:27:13.197] } [17:27:13.286] MultisessionFuture started [17:27:13.287] result() for ClusterFuture ... [17:27:13.287] receiveMessageFromWorker() for ClusterFuture ... [17:27:13.287] - Validating connection of MultisessionFuture [17:27:13.340] - received message: FutureResult [17:27:13.340] - Received FutureResult [17:27:13.344] - Erased future from FutureRegistry [17:27:13.345] result() for ClusterFuture ... [17:27:13.345] - result already collected: FutureResult [17:27:13.345] result() for ClusterFuture ... done [17:27:13.345] receiveMessageFromWorker() for ClusterFuture ... done [17:27:13.345] result() for ClusterFuture ... done [17:27:13.346] result() for ClusterFuture ... [17:27:13.346] - result already collected: FutureResult [17:27:13.346] result() for ClusterFuture ... done [17:27:13.346] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:27:13.347] plan(): nbrOfWorkers() = 2 > > message("*** future() - invalid ownership ...") *** future() - invalid ownership ... > > ## This R process > session_uuid <- future:::session_uuid(attributes = TRUE) > cat(sprintf("Main R process: %s\n", session_uuid)) Main R process: 4477bd64-8237-d939-32d3-b7829e37759b > > message("- Asserting ownership ...") - Asserting ownership ... > > message("Creating future #1:") Creating future #1: > f1 <- future({ future:::session_uuid(attributes = TRUE) }) [17:27:13.347] getGlobalsAndPackages() ... [17:27:13.348] Searching for globals... [17:27:13.356] - globals found: [2] '{', ':::' [17:27:13.357] Searching for globals ... DONE [17:27:13.357] Resolving globals: FALSE [17:27:13.358] [17:27:13.358] [17:27:13.358] getGlobalsAndPackages() ... DONE [17:27:13.359] run() for 'Future' ... [17:27:13.359] - state: 'created' [17:27:13.359] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:13.372] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:13.372] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:13.372] - Field: 'node' [17:27:13.373] - Field: 'label' [17:27:13.373] - Field: 'local' [17:27:13.373] - Field: 'owner' [17:27:13.373] - Field: 'envir' [17:27:13.373] - Field: 'workers' [17:27:13.374] - Field: 'packages' [17:27:13.374] - Field: 'gc' [17:27:13.374] - Field: 'conditions' [17:27:13.374] - Field: 'persistent' [17:27:13.375] - Field: 'expr' [17:27:13.375] - Field: 'uuid' [17:27:13.375] - Field: 'seed' [17:27:13.375] - Field: 'version' [17:27:13.375] - Field: 'result' [17:27:13.376] - Field: 'asynchronous' [17:27:13.376] - Field: 'calls' [17:27:13.376] - Field: 'globals' [17:27:13.376] - Field: 'stdout' [17:27:13.376] - Field: 'earlySignal' [17:27:13.377] - Field: 'lazy' [17:27:13.377] - Field: 'state' [17:27:13.377] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:13.377] - Launch lazy future ... [17:27:13.378] Packages needed by the future expression (n = 0): [17:27:13.378] Packages needed by future strategies (n = 0): [17:27:13.379] { [17:27:13.379] { [17:27:13.379] { [17:27:13.379] ...future.startTime <- base::Sys.time() [17:27:13.379] { [17:27:13.379] { [17:27:13.379] { [17:27:13.379] { [17:27:13.379] base::local({ [17:27:13.379] has_future <- base::requireNamespace("future", [17:27:13.379] quietly = TRUE) [17:27:13.379] if (has_future) { [17:27:13.379] ns <- base::getNamespace("future") [17:27:13.379] version <- ns[[".package"]][["version"]] [17:27:13.379] if (is.null(version)) [17:27:13.379] version <- utils::packageVersion("future") [17:27:13.379] } [17:27:13.379] else { [17:27:13.379] version <- NULL [17:27:13.379] } [17:27:13.379] if (!has_future || version < "1.8.0") { [17:27:13.379] info <- base::c(r_version = base::gsub("R version ", [17:27:13.379] "", base::R.version$version.string), [17:27:13.379] platform = base::sprintf("%s (%s-bit)", [17:27:13.379] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:13.379] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:13.379] "release", "version")], collapse = " "), [17:27:13.379] hostname = base::Sys.info()[["nodename"]]) [17:27:13.379] info <- base::sprintf("%s: %s", base::names(info), [17:27:13.379] info) [17:27:13.379] info <- base::paste(info, collapse = "; ") [17:27:13.379] if (!has_future) { [17:27:13.379] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:13.379] info) [17:27:13.379] } [17:27:13.379] else { [17:27:13.379] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:13.379] info, version) [17:27:13.379] } [17:27:13.379] base::stop(msg) [17:27:13.379] } [17:27:13.379] }) [17:27:13.379] } [17:27:13.379] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:13.379] base::options(mc.cores = 1L) [17:27:13.379] } [17:27:13.379] ...future.strategy.old <- future::plan("list") [17:27:13.379] options(future.plan = NULL) [17:27:13.379] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.379] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:13.379] } [17:27:13.379] ...future.workdir <- getwd() [17:27:13.379] } [17:27:13.379] ...future.oldOptions <- base::as.list(base::.Options) [17:27:13.379] ...future.oldEnvVars <- base::Sys.getenv() [17:27:13.379] } [17:27:13.379] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:13.379] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:13.379] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:13.379] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:13.379] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:13.379] future.stdout.windows.reencode = NULL, width = 80L) [17:27:13.379] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:13.379] base::names(...future.oldOptions)) [17:27:13.379] } [17:27:13.379] if (FALSE) { [17:27:13.379] } [17:27:13.379] else { [17:27:13.379] if (TRUE) { [17:27:13.379] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:13.379] open = "w") [17:27:13.379] } [17:27:13.379] else { [17:27:13.379] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:13.379] windows = "NUL", "/dev/null"), open = "w") [17:27:13.379] } [17:27:13.379] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:13.379] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:13.379] base::sink(type = "output", split = FALSE) [17:27:13.379] base::close(...future.stdout) [17:27:13.379] }, add = TRUE) [17:27:13.379] } [17:27:13.379] ...future.frame <- base::sys.nframe() [17:27:13.379] ...future.conditions <- base::list() [17:27:13.379] ...future.rng <- base::globalenv()$.Random.seed [17:27:13.379] if (FALSE) { [17:27:13.379] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:13.379] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:13.379] } [17:27:13.379] ...future.result <- base::tryCatch({ [17:27:13.379] base::withCallingHandlers({ [17:27:13.379] ...future.value <- base::withVisible(base::local({ [17:27:13.379] ...future.makeSendCondition <- base::local({ [17:27:13.379] sendCondition <- NULL [17:27:13.379] function(frame = 1L) { [17:27:13.379] if (is.function(sendCondition)) [17:27:13.379] return(sendCondition) [17:27:13.379] ns <- getNamespace("parallel") [17:27:13.379] if (exists("sendData", mode = "function", [17:27:13.379] envir = ns)) { [17:27:13.379] parallel_sendData <- get("sendData", mode = "function", [17:27:13.379] envir = ns) [17:27:13.379] envir <- sys.frame(frame) [17:27:13.379] master <- NULL [17:27:13.379] while (!identical(envir, .GlobalEnv) && [17:27:13.379] !identical(envir, emptyenv())) { [17:27:13.379] if (exists("master", mode = "list", envir = envir, [17:27:13.379] inherits = FALSE)) { [17:27:13.379] master <- get("master", mode = "list", [17:27:13.379] envir = envir, inherits = FALSE) [17:27:13.379] if (inherits(master, c("SOCKnode", [17:27:13.379] "SOCK0node"))) { [17:27:13.379] sendCondition <<- function(cond) { [17:27:13.379] data <- list(type = "VALUE", value = cond, [17:27:13.379] success = TRUE) [17:27:13.379] parallel_sendData(master, data) [17:27:13.379] } [17:27:13.379] return(sendCondition) [17:27:13.379] } [17:27:13.379] } [17:27:13.379] frame <- frame + 1L [17:27:13.379] envir <- sys.frame(frame) [17:27:13.379] } [17:27:13.379] } [17:27:13.379] sendCondition <<- function(cond) NULL [17:27:13.379] } [17:27:13.379] }) [17:27:13.379] withCallingHandlers({ [17:27:13.379] { [17:27:13.379] future:::session_uuid(attributes = TRUE) [17:27:13.379] } [17:27:13.379] }, immediateCondition = function(cond) { [17:27:13.379] sendCondition <- ...future.makeSendCondition() [17:27:13.379] sendCondition(cond) [17:27:13.379] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.379] { [17:27:13.379] inherits <- base::inherits [17:27:13.379] invokeRestart <- base::invokeRestart [17:27:13.379] is.null <- base::is.null [17:27:13.379] muffled <- FALSE [17:27:13.379] if (inherits(cond, "message")) { [17:27:13.379] muffled <- grepl(pattern, "muffleMessage") [17:27:13.379] if (muffled) [17:27:13.379] invokeRestart("muffleMessage") [17:27:13.379] } [17:27:13.379] else if (inherits(cond, "warning")) { [17:27:13.379] muffled <- grepl(pattern, "muffleWarning") [17:27:13.379] if (muffled) [17:27:13.379] invokeRestart("muffleWarning") [17:27:13.379] } [17:27:13.379] else if (inherits(cond, "condition")) { [17:27:13.379] if (!is.null(pattern)) { [17:27:13.379] computeRestarts <- base::computeRestarts [17:27:13.379] grepl <- base::grepl [17:27:13.379] restarts <- computeRestarts(cond) [17:27:13.379] for (restart in restarts) { [17:27:13.379] name <- restart$name [17:27:13.379] if (is.null(name)) [17:27:13.379] next [17:27:13.379] if (!grepl(pattern, name)) [17:27:13.379] next [17:27:13.379] invokeRestart(restart) [17:27:13.379] muffled <- TRUE [17:27:13.379] break [17:27:13.379] } [17:27:13.379] } [17:27:13.379] } [17:27:13.379] invisible(muffled) [17:27:13.379] } [17:27:13.379] muffleCondition(cond) [17:27:13.379] }) [17:27:13.379] })) [17:27:13.379] future::FutureResult(value = ...future.value$value, [17:27:13.379] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.379] ...future.rng), globalenv = if (FALSE) [17:27:13.379] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:13.379] ...future.globalenv.names)) [17:27:13.379] else NULL, started = ...future.startTime, version = "1.8") [17:27:13.379] }, condition = base::local({ [17:27:13.379] c <- base::c [17:27:13.379] inherits <- base::inherits [17:27:13.379] invokeRestart <- base::invokeRestart [17:27:13.379] length <- base::length [17:27:13.379] list <- base::list [17:27:13.379] seq.int <- base::seq.int [17:27:13.379] signalCondition <- base::signalCondition [17:27:13.379] sys.calls <- base::sys.calls [17:27:13.379] `[[` <- base::`[[` [17:27:13.379] `+` <- base::`+` [17:27:13.379] `<<-` <- base::`<<-` [17:27:13.379] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:13.379] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:13.379] 3L)] [17:27:13.379] } [17:27:13.379] function(cond) { [17:27:13.379] is_error <- inherits(cond, "error") [17:27:13.379] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:13.379] NULL) [17:27:13.379] if (is_error) { [17:27:13.379] sessionInformation <- function() { [17:27:13.379] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:13.379] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:13.379] search = base::search(), system = base::Sys.info()) [17:27:13.379] } [17:27:13.379] ...future.conditions[[length(...future.conditions) + [17:27:13.379] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:13.379] cond$call), session = sessionInformation(), [17:27:13.379] timestamp = base::Sys.time(), signaled = 0L) [17:27:13.379] signalCondition(cond) [17:27:13.379] } [17:27:13.379] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:13.379] "immediateCondition"))) { [17:27:13.379] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:13.379] ...future.conditions[[length(...future.conditions) + [17:27:13.379] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:13.379] if (TRUE && !signal) { [17:27:13.379] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.379] { [17:27:13.379] inherits <- base::inherits [17:27:13.379] invokeRestart <- base::invokeRestart [17:27:13.379] is.null <- base::is.null [17:27:13.379] muffled <- FALSE [17:27:13.379] if (inherits(cond, "message")) { [17:27:13.379] muffled <- grepl(pattern, "muffleMessage") [17:27:13.379] if (muffled) [17:27:13.379] invokeRestart("muffleMessage") [17:27:13.379] } [17:27:13.379] else if (inherits(cond, "warning")) { [17:27:13.379] muffled <- grepl(pattern, "muffleWarning") [17:27:13.379] if (muffled) [17:27:13.379] invokeRestart("muffleWarning") [17:27:13.379] } [17:27:13.379] else if (inherits(cond, "condition")) { [17:27:13.379] if (!is.null(pattern)) { [17:27:13.379] computeRestarts <- base::computeRestarts [17:27:13.379] grepl <- base::grepl [17:27:13.379] restarts <- computeRestarts(cond) [17:27:13.379] for (restart in restarts) { [17:27:13.379] name <- restart$name [17:27:13.379] if (is.null(name)) [17:27:13.379] next [17:27:13.379] if (!grepl(pattern, name)) [17:27:13.379] next [17:27:13.379] invokeRestart(restart) [17:27:13.379] muffled <- TRUE [17:27:13.379] break [17:27:13.379] } [17:27:13.379] } [17:27:13.379] } [17:27:13.379] invisible(muffled) [17:27:13.379] } [17:27:13.379] muffleCondition(cond, pattern = "^muffle") [17:27:13.379] } [17:27:13.379] } [17:27:13.379] else { [17:27:13.379] if (TRUE) { [17:27:13.379] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.379] { [17:27:13.379] inherits <- base::inherits [17:27:13.379] invokeRestart <- base::invokeRestart [17:27:13.379] is.null <- base::is.null [17:27:13.379] muffled <- FALSE [17:27:13.379] if (inherits(cond, "message")) { [17:27:13.379] muffled <- grepl(pattern, "muffleMessage") [17:27:13.379] if (muffled) [17:27:13.379] invokeRestart("muffleMessage") [17:27:13.379] } [17:27:13.379] else if (inherits(cond, "warning")) { [17:27:13.379] muffled <- grepl(pattern, "muffleWarning") [17:27:13.379] if (muffled) [17:27:13.379] invokeRestart("muffleWarning") [17:27:13.379] } [17:27:13.379] else if (inherits(cond, "condition")) { [17:27:13.379] if (!is.null(pattern)) { [17:27:13.379] computeRestarts <- base::computeRestarts [17:27:13.379] grepl <- base::grepl [17:27:13.379] restarts <- computeRestarts(cond) [17:27:13.379] for (restart in restarts) { [17:27:13.379] name <- restart$name [17:27:13.379] if (is.null(name)) [17:27:13.379] next [17:27:13.379] if (!grepl(pattern, name)) [17:27:13.379] next [17:27:13.379] invokeRestart(restart) [17:27:13.379] muffled <- TRUE [17:27:13.379] break [17:27:13.379] } [17:27:13.379] } [17:27:13.379] } [17:27:13.379] invisible(muffled) [17:27:13.379] } [17:27:13.379] muffleCondition(cond, pattern = "^muffle") [17:27:13.379] } [17:27:13.379] } [17:27:13.379] } [17:27:13.379] })) [17:27:13.379] }, error = function(ex) { [17:27:13.379] base::structure(base::list(value = NULL, visible = NULL, [17:27:13.379] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.379] ...future.rng), started = ...future.startTime, [17:27:13.379] finished = Sys.time(), session_uuid = NA_character_, [17:27:13.379] version = "1.8"), class = "FutureResult") [17:27:13.379] }, finally = { [17:27:13.379] if (!identical(...future.workdir, getwd())) [17:27:13.379] setwd(...future.workdir) [17:27:13.379] { [17:27:13.379] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:13.379] ...future.oldOptions$nwarnings <- NULL [17:27:13.379] } [17:27:13.379] base::options(...future.oldOptions) [17:27:13.379] if (.Platform$OS.type == "windows") { [17:27:13.379] old_names <- names(...future.oldEnvVars) [17:27:13.379] envs <- base::Sys.getenv() [17:27:13.379] names <- names(envs) [17:27:13.379] common <- intersect(names, old_names) [17:27:13.379] added <- setdiff(names, old_names) [17:27:13.379] removed <- setdiff(old_names, names) [17:27:13.379] changed <- common[...future.oldEnvVars[common] != [17:27:13.379] envs[common]] [17:27:13.379] NAMES <- toupper(changed) [17:27:13.379] args <- list() [17:27:13.379] for (kk in seq_along(NAMES)) { [17:27:13.379] name <- changed[[kk]] [17:27:13.379] NAME <- NAMES[[kk]] [17:27:13.379] if (name != NAME && is.element(NAME, old_names)) [17:27:13.379] next [17:27:13.379] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.379] } [17:27:13.379] NAMES <- toupper(added) [17:27:13.379] for (kk in seq_along(NAMES)) { [17:27:13.379] name <- added[[kk]] [17:27:13.379] NAME <- NAMES[[kk]] [17:27:13.379] if (name != NAME && is.element(NAME, old_names)) [17:27:13.379] next [17:27:13.379] args[[name]] <- "" [17:27:13.379] } [17:27:13.379] NAMES <- toupper(removed) [17:27:13.379] for (kk in seq_along(NAMES)) { [17:27:13.379] name <- removed[[kk]] [17:27:13.379] NAME <- NAMES[[kk]] [17:27:13.379] if (name != NAME && is.element(NAME, old_names)) [17:27:13.379] next [17:27:13.379] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.379] } [17:27:13.379] if (length(args) > 0) [17:27:13.379] base::do.call(base::Sys.setenv, args = args) [17:27:13.379] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:13.379] } [17:27:13.379] else { [17:27:13.379] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:13.379] } [17:27:13.379] { [17:27:13.379] if (base::length(...future.futureOptionsAdded) > [17:27:13.379] 0L) { [17:27:13.379] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:13.379] base::names(opts) <- ...future.futureOptionsAdded [17:27:13.379] base::options(opts) [17:27:13.379] } [17:27:13.379] { [17:27:13.379] { [17:27:13.379] base::options(mc.cores = ...future.mc.cores.old) [17:27:13.379] NULL [17:27:13.379] } [17:27:13.379] options(future.plan = NULL) [17:27:13.379] if (is.na(NA_character_)) [17:27:13.379] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.379] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:13.379] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:13.379] .init = FALSE) [17:27:13.379] } [17:27:13.379] } [17:27:13.379] } [17:27:13.379] }) [17:27:13.379] if (TRUE) { [17:27:13.379] base::sink(type = "output", split = FALSE) [17:27:13.379] if (TRUE) { [17:27:13.379] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:13.379] } [17:27:13.379] else { [17:27:13.379] ...future.result["stdout"] <- base::list(NULL) [17:27:13.379] } [17:27:13.379] base::close(...future.stdout) [17:27:13.379] ...future.stdout <- NULL [17:27:13.379] } [17:27:13.379] ...future.result$conditions <- ...future.conditions [17:27:13.379] ...future.result$finished <- base::Sys.time() [17:27:13.379] ...future.result [17:27:13.379] } [17:27:13.384] MultisessionFuture started [17:27:13.385] - Launch lazy future ... done [17:27:13.385] run() for 'MultisessionFuture' ... done > stopifnot(inherits(f1, "MultisessionFuture")) > cat(sprintf("Future #1 session: %d\n", f1$node)) Future #1 session: 1 > v1 <- value(f1) [17:27:13.385] result() for ClusterFuture ... [17:27:13.385] receiveMessageFromWorker() for ClusterFuture ... [17:27:13.386] - Validating connection of MultisessionFuture [17:27:13.400] - received message: FutureResult [17:27:13.401] - Received FutureResult [17:27:13.401] - Erased future from FutureRegistry [17:27:13.401] result() for ClusterFuture ... [17:27:13.401] - result already collected: FutureResult [17:27:13.401] result() for ClusterFuture ... done [17:27:13.402] receiveMessageFromWorker() for ClusterFuture ... done [17:27:13.402] result() for ClusterFuture ... done [17:27:13.402] result() for ClusterFuture ... [17:27:13.402] - result already collected: FutureResult [17:27:13.402] result() for ClusterFuture ... done > cat(sprintf("Future #1 R process: %s\n", v1)) Future #1 R process: ac79e6a3-8350-2d2a-591e-3c62684565a9 > stopifnot(v1 != session_uuid) > > message("Creating future #2:") Creating future #2: > f2 <- future({ future:::session_uuid(attributes = TRUE) }) [17:27:13.403] getGlobalsAndPackages() ... [17:27:13.403] Searching for globals... [17:27:13.404] - globals found: [2] '{', ':::' [17:27:13.404] Searching for globals ... DONE [17:27:13.405] Resolving globals: FALSE [17:27:13.405] [17:27:13.405] [17:27:13.405] getGlobalsAndPackages() ... DONE [17:27:13.406] run() for 'Future' ... [17:27:13.406] - state: 'created' [17:27:13.406] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:13.418] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:13.418] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:13.419] - Field: 'node' [17:27:13.419] - Field: 'label' [17:27:13.419] - Field: 'local' [17:27:13.419] - Field: 'owner' [17:27:13.419] - Field: 'envir' [17:27:13.420] - Field: 'workers' [17:27:13.420] - Field: 'packages' [17:27:13.420] - Field: 'gc' [17:27:13.420] - Field: 'conditions' [17:27:13.420] - Field: 'persistent' [17:27:13.420] - Field: 'expr' [17:27:13.421] - Field: 'uuid' [17:27:13.421] - Field: 'seed' [17:27:13.421] - Field: 'version' [17:27:13.421] - Field: 'result' [17:27:13.421] - Field: 'asynchronous' [17:27:13.422] - Field: 'calls' [17:27:13.422] - Field: 'globals' [17:27:13.422] - Field: 'stdout' [17:27:13.422] - Field: 'earlySignal' [17:27:13.422] - Field: 'lazy' [17:27:13.423] - Field: 'state' [17:27:13.423] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:13.423] - Launch lazy future ... [17:27:13.423] Packages needed by the future expression (n = 0): [17:27:13.424] Packages needed by future strategies (n = 0): [17:27:13.424] { [17:27:13.424] { [17:27:13.424] { [17:27:13.424] ...future.startTime <- base::Sys.time() [17:27:13.424] { [17:27:13.424] { [17:27:13.424] { [17:27:13.424] { [17:27:13.424] base::local({ [17:27:13.424] has_future <- base::requireNamespace("future", [17:27:13.424] quietly = TRUE) [17:27:13.424] if (has_future) { [17:27:13.424] ns <- base::getNamespace("future") [17:27:13.424] version <- ns[[".package"]][["version"]] [17:27:13.424] if (is.null(version)) [17:27:13.424] version <- utils::packageVersion("future") [17:27:13.424] } [17:27:13.424] else { [17:27:13.424] version <- NULL [17:27:13.424] } [17:27:13.424] if (!has_future || version < "1.8.0") { [17:27:13.424] info <- base::c(r_version = base::gsub("R version ", [17:27:13.424] "", base::R.version$version.string), [17:27:13.424] platform = base::sprintf("%s (%s-bit)", [17:27:13.424] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:13.424] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:13.424] "release", "version")], collapse = " "), [17:27:13.424] hostname = base::Sys.info()[["nodename"]]) [17:27:13.424] info <- base::sprintf("%s: %s", base::names(info), [17:27:13.424] info) [17:27:13.424] info <- base::paste(info, collapse = "; ") [17:27:13.424] if (!has_future) { [17:27:13.424] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:13.424] info) [17:27:13.424] } [17:27:13.424] else { [17:27:13.424] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:13.424] info, version) [17:27:13.424] } [17:27:13.424] base::stop(msg) [17:27:13.424] } [17:27:13.424] }) [17:27:13.424] } [17:27:13.424] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:13.424] base::options(mc.cores = 1L) [17:27:13.424] } [17:27:13.424] ...future.strategy.old <- future::plan("list") [17:27:13.424] options(future.plan = NULL) [17:27:13.424] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.424] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:13.424] } [17:27:13.424] ...future.workdir <- getwd() [17:27:13.424] } [17:27:13.424] ...future.oldOptions <- base::as.list(base::.Options) [17:27:13.424] ...future.oldEnvVars <- base::Sys.getenv() [17:27:13.424] } [17:27:13.424] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:13.424] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:13.424] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:13.424] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:13.424] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:13.424] future.stdout.windows.reencode = NULL, width = 80L) [17:27:13.424] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:13.424] base::names(...future.oldOptions)) [17:27:13.424] } [17:27:13.424] if (FALSE) { [17:27:13.424] } [17:27:13.424] else { [17:27:13.424] if (TRUE) { [17:27:13.424] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:13.424] open = "w") [17:27:13.424] } [17:27:13.424] else { [17:27:13.424] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:13.424] windows = "NUL", "/dev/null"), open = "w") [17:27:13.424] } [17:27:13.424] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:13.424] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:13.424] base::sink(type = "output", split = FALSE) [17:27:13.424] base::close(...future.stdout) [17:27:13.424] }, add = TRUE) [17:27:13.424] } [17:27:13.424] ...future.frame <- base::sys.nframe() [17:27:13.424] ...future.conditions <- base::list() [17:27:13.424] ...future.rng <- base::globalenv()$.Random.seed [17:27:13.424] if (FALSE) { [17:27:13.424] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:13.424] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:13.424] } [17:27:13.424] ...future.result <- base::tryCatch({ [17:27:13.424] base::withCallingHandlers({ [17:27:13.424] ...future.value <- base::withVisible(base::local({ [17:27:13.424] ...future.makeSendCondition <- base::local({ [17:27:13.424] sendCondition <- NULL [17:27:13.424] function(frame = 1L) { [17:27:13.424] if (is.function(sendCondition)) [17:27:13.424] return(sendCondition) [17:27:13.424] ns <- getNamespace("parallel") [17:27:13.424] if (exists("sendData", mode = "function", [17:27:13.424] envir = ns)) { [17:27:13.424] parallel_sendData <- get("sendData", mode = "function", [17:27:13.424] envir = ns) [17:27:13.424] envir <- sys.frame(frame) [17:27:13.424] master <- NULL [17:27:13.424] while (!identical(envir, .GlobalEnv) && [17:27:13.424] !identical(envir, emptyenv())) { [17:27:13.424] if (exists("master", mode = "list", envir = envir, [17:27:13.424] inherits = FALSE)) { [17:27:13.424] master <- get("master", mode = "list", [17:27:13.424] envir = envir, inherits = FALSE) [17:27:13.424] if (inherits(master, c("SOCKnode", [17:27:13.424] "SOCK0node"))) { [17:27:13.424] sendCondition <<- function(cond) { [17:27:13.424] data <- list(type = "VALUE", value = cond, [17:27:13.424] success = TRUE) [17:27:13.424] parallel_sendData(master, data) [17:27:13.424] } [17:27:13.424] return(sendCondition) [17:27:13.424] } [17:27:13.424] } [17:27:13.424] frame <- frame + 1L [17:27:13.424] envir <- sys.frame(frame) [17:27:13.424] } [17:27:13.424] } [17:27:13.424] sendCondition <<- function(cond) NULL [17:27:13.424] } [17:27:13.424] }) [17:27:13.424] withCallingHandlers({ [17:27:13.424] { [17:27:13.424] future:::session_uuid(attributes = TRUE) [17:27:13.424] } [17:27:13.424] }, immediateCondition = function(cond) { [17:27:13.424] sendCondition <- ...future.makeSendCondition() [17:27:13.424] sendCondition(cond) [17:27:13.424] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.424] { [17:27:13.424] inherits <- base::inherits [17:27:13.424] invokeRestart <- base::invokeRestart [17:27:13.424] is.null <- base::is.null [17:27:13.424] muffled <- FALSE [17:27:13.424] if (inherits(cond, "message")) { [17:27:13.424] muffled <- grepl(pattern, "muffleMessage") [17:27:13.424] if (muffled) [17:27:13.424] invokeRestart("muffleMessage") [17:27:13.424] } [17:27:13.424] else if (inherits(cond, "warning")) { [17:27:13.424] muffled <- grepl(pattern, "muffleWarning") [17:27:13.424] if (muffled) [17:27:13.424] invokeRestart("muffleWarning") [17:27:13.424] } [17:27:13.424] else if (inherits(cond, "condition")) { [17:27:13.424] if (!is.null(pattern)) { [17:27:13.424] computeRestarts <- base::computeRestarts [17:27:13.424] grepl <- base::grepl [17:27:13.424] restarts <- computeRestarts(cond) [17:27:13.424] for (restart in restarts) { [17:27:13.424] name <- restart$name [17:27:13.424] if (is.null(name)) [17:27:13.424] next [17:27:13.424] if (!grepl(pattern, name)) [17:27:13.424] next [17:27:13.424] invokeRestart(restart) [17:27:13.424] muffled <- TRUE [17:27:13.424] break [17:27:13.424] } [17:27:13.424] } [17:27:13.424] } [17:27:13.424] invisible(muffled) [17:27:13.424] } [17:27:13.424] muffleCondition(cond) [17:27:13.424] }) [17:27:13.424] })) [17:27:13.424] future::FutureResult(value = ...future.value$value, [17:27:13.424] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.424] ...future.rng), globalenv = if (FALSE) [17:27:13.424] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:13.424] ...future.globalenv.names)) [17:27:13.424] else NULL, started = ...future.startTime, version = "1.8") [17:27:13.424] }, condition = base::local({ [17:27:13.424] c <- base::c [17:27:13.424] inherits <- base::inherits [17:27:13.424] invokeRestart <- base::invokeRestart [17:27:13.424] length <- base::length [17:27:13.424] list <- base::list [17:27:13.424] seq.int <- base::seq.int [17:27:13.424] signalCondition <- base::signalCondition [17:27:13.424] sys.calls <- base::sys.calls [17:27:13.424] `[[` <- base::`[[` [17:27:13.424] `+` <- base::`+` [17:27:13.424] `<<-` <- base::`<<-` [17:27:13.424] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:13.424] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:13.424] 3L)] [17:27:13.424] } [17:27:13.424] function(cond) { [17:27:13.424] is_error <- inherits(cond, "error") [17:27:13.424] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:13.424] NULL) [17:27:13.424] if (is_error) { [17:27:13.424] sessionInformation <- function() { [17:27:13.424] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:13.424] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:13.424] search = base::search(), system = base::Sys.info()) [17:27:13.424] } [17:27:13.424] ...future.conditions[[length(...future.conditions) + [17:27:13.424] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:13.424] cond$call), session = sessionInformation(), [17:27:13.424] timestamp = base::Sys.time(), signaled = 0L) [17:27:13.424] signalCondition(cond) [17:27:13.424] } [17:27:13.424] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:13.424] "immediateCondition"))) { [17:27:13.424] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:13.424] ...future.conditions[[length(...future.conditions) + [17:27:13.424] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:13.424] if (TRUE && !signal) { [17:27:13.424] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.424] { [17:27:13.424] inherits <- base::inherits [17:27:13.424] invokeRestart <- base::invokeRestart [17:27:13.424] is.null <- base::is.null [17:27:13.424] muffled <- FALSE [17:27:13.424] if (inherits(cond, "message")) { [17:27:13.424] muffled <- grepl(pattern, "muffleMessage") [17:27:13.424] if (muffled) [17:27:13.424] invokeRestart("muffleMessage") [17:27:13.424] } [17:27:13.424] else if (inherits(cond, "warning")) { [17:27:13.424] muffled <- grepl(pattern, "muffleWarning") [17:27:13.424] if (muffled) [17:27:13.424] invokeRestart("muffleWarning") [17:27:13.424] } [17:27:13.424] else if (inherits(cond, "condition")) { [17:27:13.424] if (!is.null(pattern)) { [17:27:13.424] computeRestarts <- base::computeRestarts [17:27:13.424] grepl <- base::grepl [17:27:13.424] restarts <- computeRestarts(cond) [17:27:13.424] for (restart in restarts) { [17:27:13.424] name <- restart$name [17:27:13.424] if (is.null(name)) [17:27:13.424] next [17:27:13.424] if (!grepl(pattern, name)) [17:27:13.424] next [17:27:13.424] invokeRestart(restart) [17:27:13.424] muffled <- TRUE [17:27:13.424] break [17:27:13.424] } [17:27:13.424] } [17:27:13.424] } [17:27:13.424] invisible(muffled) [17:27:13.424] } [17:27:13.424] muffleCondition(cond, pattern = "^muffle") [17:27:13.424] } [17:27:13.424] } [17:27:13.424] else { [17:27:13.424] if (TRUE) { [17:27:13.424] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.424] { [17:27:13.424] inherits <- base::inherits [17:27:13.424] invokeRestart <- base::invokeRestart [17:27:13.424] is.null <- base::is.null [17:27:13.424] muffled <- FALSE [17:27:13.424] if (inherits(cond, "message")) { [17:27:13.424] muffled <- grepl(pattern, "muffleMessage") [17:27:13.424] if (muffled) [17:27:13.424] invokeRestart("muffleMessage") [17:27:13.424] } [17:27:13.424] else if (inherits(cond, "warning")) { [17:27:13.424] muffled <- grepl(pattern, "muffleWarning") [17:27:13.424] if (muffled) [17:27:13.424] invokeRestart("muffleWarning") [17:27:13.424] } [17:27:13.424] else if (inherits(cond, "condition")) { [17:27:13.424] if (!is.null(pattern)) { [17:27:13.424] computeRestarts <- base::computeRestarts [17:27:13.424] grepl <- base::grepl [17:27:13.424] restarts <- computeRestarts(cond) [17:27:13.424] for (restart in restarts) { [17:27:13.424] name <- restart$name [17:27:13.424] if (is.null(name)) [17:27:13.424] next [17:27:13.424] if (!grepl(pattern, name)) [17:27:13.424] next [17:27:13.424] invokeRestart(restart) [17:27:13.424] muffled <- TRUE [17:27:13.424] break [17:27:13.424] } [17:27:13.424] } [17:27:13.424] } [17:27:13.424] invisible(muffled) [17:27:13.424] } [17:27:13.424] muffleCondition(cond, pattern = "^muffle") [17:27:13.424] } [17:27:13.424] } [17:27:13.424] } [17:27:13.424] })) [17:27:13.424] }, error = function(ex) { [17:27:13.424] base::structure(base::list(value = NULL, visible = NULL, [17:27:13.424] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.424] ...future.rng), started = ...future.startTime, [17:27:13.424] finished = Sys.time(), session_uuid = NA_character_, [17:27:13.424] version = "1.8"), class = "FutureResult") [17:27:13.424] }, finally = { [17:27:13.424] if (!identical(...future.workdir, getwd())) [17:27:13.424] setwd(...future.workdir) [17:27:13.424] { [17:27:13.424] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:13.424] ...future.oldOptions$nwarnings <- NULL [17:27:13.424] } [17:27:13.424] base::options(...future.oldOptions) [17:27:13.424] if (.Platform$OS.type == "windows") { [17:27:13.424] old_names <- names(...future.oldEnvVars) [17:27:13.424] envs <- base::Sys.getenv() [17:27:13.424] names <- names(envs) [17:27:13.424] common <- intersect(names, old_names) [17:27:13.424] added <- setdiff(names, old_names) [17:27:13.424] removed <- setdiff(old_names, names) [17:27:13.424] changed <- common[...future.oldEnvVars[common] != [17:27:13.424] envs[common]] [17:27:13.424] NAMES <- toupper(changed) [17:27:13.424] args <- list() [17:27:13.424] for (kk in seq_along(NAMES)) { [17:27:13.424] name <- changed[[kk]] [17:27:13.424] NAME <- NAMES[[kk]] [17:27:13.424] if (name != NAME && is.element(NAME, old_names)) [17:27:13.424] next [17:27:13.424] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.424] } [17:27:13.424] NAMES <- toupper(added) [17:27:13.424] for (kk in seq_along(NAMES)) { [17:27:13.424] name <- added[[kk]] [17:27:13.424] NAME <- NAMES[[kk]] [17:27:13.424] if (name != NAME && is.element(NAME, old_names)) [17:27:13.424] next [17:27:13.424] args[[name]] <- "" [17:27:13.424] } [17:27:13.424] NAMES <- toupper(removed) [17:27:13.424] for (kk in seq_along(NAMES)) { [17:27:13.424] name <- removed[[kk]] [17:27:13.424] NAME <- NAMES[[kk]] [17:27:13.424] if (name != NAME && is.element(NAME, old_names)) [17:27:13.424] next [17:27:13.424] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.424] } [17:27:13.424] if (length(args) > 0) [17:27:13.424] base::do.call(base::Sys.setenv, args = args) [17:27:13.424] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:13.424] } [17:27:13.424] else { [17:27:13.424] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:13.424] } [17:27:13.424] { [17:27:13.424] if (base::length(...future.futureOptionsAdded) > [17:27:13.424] 0L) { [17:27:13.424] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:13.424] base::names(opts) <- ...future.futureOptionsAdded [17:27:13.424] base::options(opts) [17:27:13.424] } [17:27:13.424] { [17:27:13.424] { [17:27:13.424] base::options(mc.cores = ...future.mc.cores.old) [17:27:13.424] NULL [17:27:13.424] } [17:27:13.424] options(future.plan = NULL) [17:27:13.424] if (is.na(NA_character_)) [17:27:13.424] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.424] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:13.424] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:13.424] .init = FALSE) [17:27:13.424] } [17:27:13.424] } [17:27:13.424] } [17:27:13.424] }) [17:27:13.424] if (TRUE) { [17:27:13.424] base::sink(type = "output", split = FALSE) [17:27:13.424] if (TRUE) { [17:27:13.424] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:13.424] } [17:27:13.424] else { [17:27:13.424] ...future.result["stdout"] <- base::list(NULL) [17:27:13.424] } [17:27:13.424] base::close(...future.stdout) [17:27:13.424] ...future.stdout <- NULL [17:27:13.424] } [17:27:13.424] ...future.result$conditions <- ...future.conditions [17:27:13.424] ...future.result$finished <- base::Sys.time() [17:27:13.424] ...future.result [17:27:13.424] } [17:27:13.430] MultisessionFuture started [17:27:13.430] - Launch lazy future ... done [17:27:13.433] run() for 'MultisessionFuture' ... done > stopifnot(inherits(f2, "MultisessionFuture")) > cat(sprintf("Future #2 session: %d\n", f2$node)) Future #2 session: 1 > v2 <- value(f2) [17:27:13.434] result() for ClusterFuture ... [17:27:13.434] receiveMessageFromWorker() for ClusterFuture ... [17:27:13.434] - Validating connection of MultisessionFuture [17:27:13.444] - received message: FutureResult [17:27:13.444] - Received FutureResult [17:27:13.444] - Erased future from FutureRegistry [17:27:13.444] result() for ClusterFuture ... [17:27:13.444] - result already collected: FutureResult [17:27:13.445] result() for ClusterFuture ... done [17:27:13.445] receiveMessageFromWorker() for ClusterFuture ... done [17:27:13.445] result() for ClusterFuture ... done [17:27:13.445] result() for ClusterFuture ... [17:27:13.445] - result already collected: FutureResult [17:27:13.445] result() for ClusterFuture ... done > cat(sprintf("Future #2 R process: %s\n", v2)) Future #2 R process: ac79e6a3-8350-2d2a-591e-3c62684565a9 > stopifnot(v2 != session_uuid) > > message("Creating future #3:") Creating future #3: > f3 <- future({ f1$owner }) [17:27:13.446] getGlobalsAndPackages() ... [17:27:13.446] Searching for globals... [17:27:13.447] - globals found: [3] '{', '$', 'f1' [17:27:13.447] Searching for globals ... DONE [17:27:13.447] Resolving globals: FALSE [17:27:13.451] The total size of the 1 globals is 1.58 MiB (1659472 bytes) [17:27:13.451] The total size of the 1 globals exported for future expression ('{; f1$owner; }') is 1.58 MiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'f1' (1.58 MiB of class 'environment') [17:27:13.451] - globals: [1] 'f1' [17:27:13.452] [17:27:13.452] getGlobalsAndPackages() ... DONE [17:27:13.452] run() for 'Future' ... [17:27:13.452] - state: 'created' [17:27:13.452] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:13.464] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:13.464] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:13.465] - Field: 'node' [17:27:13.465] - Field: 'label' [17:27:13.465] - Field: 'local' [17:27:13.465] - Field: 'owner' [17:27:13.465] - Field: 'envir' [17:27:13.466] - Field: 'workers' [17:27:13.466] - Field: 'packages' [17:27:13.466] - Field: 'gc' [17:27:13.466] - Field: 'conditions' [17:27:13.466] - Field: 'persistent' [17:27:13.466] - Field: 'expr' [17:27:13.467] - Field: 'uuid' [17:27:13.467] - Field: 'seed' [17:27:13.467] - Field: 'version' [17:27:13.467] - Field: 'result' [17:27:13.467] - Field: 'asynchronous' [17:27:13.467] - Field: 'calls' [17:27:13.468] - Field: 'globals' [17:27:13.468] - Field: 'stdout' [17:27:13.468] - Field: 'earlySignal' [17:27:13.468] - Field: 'lazy' [17:27:13.468] - Field: 'state' [17:27:13.469] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:13.469] - Launch lazy future ... [17:27:13.469] Packages needed by the future expression (n = 0): [17:27:13.469] Packages needed by future strategies (n = 0): [17:27:13.470] { [17:27:13.470] { [17:27:13.470] { [17:27:13.470] ...future.startTime <- base::Sys.time() [17:27:13.470] { [17:27:13.470] { [17:27:13.470] { [17:27:13.470] { [17:27:13.470] base::local({ [17:27:13.470] has_future <- base::requireNamespace("future", [17:27:13.470] quietly = TRUE) [17:27:13.470] if (has_future) { [17:27:13.470] ns <- base::getNamespace("future") [17:27:13.470] version <- ns[[".package"]][["version"]] [17:27:13.470] if (is.null(version)) [17:27:13.470] version <- utils::packageVersion("future") [17:27:13.470] } [17:27:13.470] else { [17:27:13.470] version <- NULL [17:27:13.470] } [17:27:13.470] if (!has_future || version < "1.8.0") { [17:27:13.470] info <- base::c(r_version = base::gsub("R version ", [17:27:13.470] "", base::R.version$version.string), [17:27:13.470] platform = base::sprintf("%s (%s-bit)", [17:27:13.470] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:13.470] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:13.470] "release", "version")], collapse = " "), [17:27:13.470] hostname = base::Sys.info()[["nodename"]]) [17:27:13.470] info <- base::sprintf("%s: %s", base::names(info), [17:27:13.470] info) [17:27:13.470] info <- base::paste(info, collapse = "; ") [17:27:13.470] if (!has_future) { [17:27:13.470] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:13.470] info) [17:27:13.470] } [17:27:13.470] else { [17:27:13.470] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:13.470] info, version) [17:27:13.470] } [17:27:13.470] base::stop(msg) [17:27:13.470] } [17:27:13.470] }) [17:27:13.470] } [17:27:13.470] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:13.470] base::options(mc.cores = 1L) [17:27:13.470] } [17:27:13.470] ...future.strategy.old <- future::plan("list") [17:27:13.470] options(future.plan = NULL) [17:27:13.470] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.470] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:13.470] } [17:27:13.470] ...future.workdir <- getwd() [17:27:13.470] } [17:27:13.470] ...future.oldOptions <- base::as.list(base::.Options) [17:27:13.470] ...future.oldEnvVars <- base::Sys.getenv() [17:27:13.470] } [17:27:13.470] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:13.470] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:13.470] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:13.470] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:13.470] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:13.470] future.stdout.windows.reencode = NULL, width = 80L) [17:27:13.470] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:13.470] base::names(...future.oldOptions)) [17:27:13.470] } [17:27:13.470] if (FALSE) { [17:27:13.470] } [17:27:13.470] else { [17:27:13.470] if (TRUE) { [17:27:13.470] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:13.470] open = "w") [17:27:13.470] } [17:27:13.470] else { [17:27:13.470] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:13.470] windows = "NUL", "/dev/null"), open = "w") [17:27:13.470] } [17:27:13.470] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:13.470] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:13.470] base::sink(type = "output", split = FALSE) [17:27:13.470] base::close(...future.stdout) [17:27:13.470] }, add = TRUE) [17:27:13.470] } [17:27:13.470] ...future.frame <- base::sys.nframe() [17:27:13.470] ...future.conditions <- base::list() [17:27:13.470] ...future.rng <- base::globalenv()$.Random.seed [17:27:13.470] if (FALSE) { [17:27:13.470] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:13.470] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:13.470] } [17:27:13.470] ...future.result <- base::tryCatch({ [17:27:13.470] base::withCallingHandlers({ [17:27:13.470] ...future.value <- base::withVisible(base::local({ [17:27:13.470] ...future.makeSendCondition <- base::local({ [17:27:13.470] sendCondition <- NULL [17:27:13.470] function(frame = 1L) { [17:27:13.470] if (is.function(sendCondition)) [17:27:13.470] return(sendCondition) [17:27:13.470] ns <- getNamespace("parallel") [17:27:13.470] if (exists("sendData", mode = "function", [17:27:13.470] envir = ns)) { [17:27:13.470] parallel_sendData <- get("sendData", mode = "function", [17:27:13.470] envir = ns) [17:27:13.470] envir <- sys.frame(frame) [17:27:13.470] master <- NULL [17:27:13.470] while (!identical(envir, .GlobalEnv) && [17:27:13.470] !identical(envir, emptyenv())) { [17:27:13.470] if (exists("master", mode = "list", envir = envir, [17:27:13.470] inherits = FALSE)) { [17:27:13.470] master <- get("master", mode = "list", [17:27:13.470] envir = envir, inherits = FALSE) [17:27:13.470] if (inherits(master, c("SOCKnode", [17:27:13.470] "SOCK0node"))) { [17:27:13.470] sendCondition <<- function(cond) { [17:27:13.470] data <- list(type = "VALUE", value = cond, [17:27:13.470] success = TRUE) [17:27:13.470] parallel_sendData(master, data) [17:27:13.470] } [17:27:13.470] return(sendCondition) [17:27:13.470] } [17:27:13.470] } [17:27:13.470] frame <- frame + 1L [17:27:13.470] envir <- sys.frame(frame) [17:27:13.470] } [17:27:13.470] } [17:27:13.470] sendCondition <<- function(cond) NULL [17:27:13.470] } [17:27:13.470] }) [17:27:13.470] withCallingHandlers({ [17:27:13.470] { [17:27:13.470] f1$owner [17:27:13.470] } [17:27:13.470] }, immediateCondition = function(cond) { [17:27:13.470] sendCondition <- ...future.makeSendCondition() [17:27:13.470] sendCondition(cond) [17:27:13.470] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.470] { [17:27:13.470] inherits <- base::inherits [17:27:13.470] invokeRestart <- base::invokeRestart [17:27:13.470] is.null <- base::is.null [17:27:13.470] muffled <- FALSE [17:27:13.470] if (inherits(cond, "message")) { [17:27:13.470] muffled <- grepl(pattern, "muffleMessage") [17:27:13.470] if (muffled) [17:27:13.470] invokeRestart("muffleMessage") [17:27:13.470] } [17:27:13.470] else if (inherits(cond, "warning")) { [17:27:13.470] muffled <- grepl(pattern, "muffleWarning") [17:27:13.470] if (muffled) [17:27:13.470] invokeRestart("muffleWarning") [17:27:13.470] } [17:27:13.470] else if (inherits(cond, "condition")) { [17:27:13.470] if (!is.null(pattern)) { [17:27:13.470] computeRestarts <- base::computeRestarts [17:27:13.470] grepl <- base::grepl [17:27:13.470] restarts <- computeRestarts(cond) [17:27:13.470] for (restart in restarts) { [17:27:13.470] name <- restart$name [17:27:13.470] if (is.null(name)) [17:27:13.470] next [17:27:13.470] if (!grepl(pattern, name)) [17:27:13.470] next [17:27:13.470] invokeRestart(restart) [17:27:13.470] muffled <- TRUE [17:27:13.470] break [17:27:13.470] } [17:27:13.470] } [17:27:13.470] } [17:27:13.470] invisible(muffled) [17:27:13.470] } [17:27:13.470] muffleCondition(cond) [17:27:13.470] }) [17:27:13.470] })) [17:27:13.470] future::FutureResult(value = ...future.value$value, [17:27:13.470] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.470] ...future.rng), globalenv = if (FALSE) [17:27:13.470] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:13.470] ...future.globalenv.names)) [17:27:13.470] else NULL, started = ...future.startTime, version = "1.8") [17:27:13.470] }, condition = base::local({ [17:27:13.470] c <- base::c [17:27:13.470] inherits <- base::inherits [17:27:13.470] invokeRestart <- base::invokeRestart [17:27:13.470] length <- base::length [17:27:13.470] list <- base::list [17:27:13.470] seq.int <- base::seq.int [17:27:13.470] signalCondition <- base::signalCondition [17:27:13.470] sys.calls <- base::sys.calls [17:27:13.470] `[[` <- base::`[[` [17:27:13.470] `+` <- base::`+` [17:27:13.470] `<<-` <- base::`<<-` [17:27:13.470] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:13.470] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:13.470] 3L)] [17:27:13.470] } [17:27:13.470] function(cond) { [17:27:13.470] is_error <- inherits(cond, "error") [17:27:13.470] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:13.470] NULL) [17:27:13.470] if (is_error) { [17:27:13.470] sessionInformation <- function() { [17:27:13.470] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:13.470] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:13.470] search = base::search(), system = base::Sys.info()) [17:27:13.470] } [17:27:13.470] ...future.conditions[[length(...future.conditions) + [17:27:13.470] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:13.470] cond$call), session = sessionInformation(), [17:27:13.470] timestamp = base::Sys.time(), signaled = 0L) [17:27:13.470] signalCondition(cond) [17:27:13.470] } [17:27:13.470] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:13.470] "immediateCondition"))) { [17:27:13.470] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:13.470] ...future.conditions[[length(...future.conditions) + [17:27:13.470] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:13.470] if (TRUE && !signal) { [17:27:13.470] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.470] { [17:27:13.470] inherits <- base::inherits [17:27:13.470] invokeRestart <- base::invokeRestart [17:27:13.470] is.null <- base::is.null [17:27:13.470] muffled <- FALSE [17:27:13.470] if (inherits(cond, "message")) { [17:27:13.470] muffled <- grepl(pattern, "muffleMessage") [17:27:13.470] if (muffled) [17:27:13.470] invokeRestart("muffleMessage") [17:27:13.470] } [17:27:13.470] else if (inherits(cond, "warning")) { [17:27:13.470] muffled <- grepl(pattern, "muffleWarning") [17:27:13.470] if (muffled) [17:27:13.470] invokeRestart("muffleWarning") [17:27:13.470] } [17:27:13.470] else if (inherits(cond, "condition")) { [17:27:13.470] if (!is.null(pattern)) { [17:27:13.470] computeRestarts <- base::computeRestarts [17:27:13.470] grepl <- base::grepl [17:27:13.470] restarts <- computeRestarts(cond) [17:27:13.470] for (restart in restarts) { [17:27:13.470] name <- restart$name [17:27:13.470] if (is.null(name)) [17:27:13.470] next [17:27:13.470] if (!grepl(pattern, name)) [17:27:13.470] next [17:27:13.470] invokeRestart(restart) [17:27:13.470] muffled <- TRUE [17:27:13.470] break [17:27:13.470] } [17:27:13.470] } [17:27:13.470] } [17:27:13.470] invisible(muffled) [17:27:13.470] } [17:27:13.470] muffleCondition(cond, pattern = "^muffle") [17:27:13.470] } [17:27:13.470] } [17:27:13.470] else { [17:27:13.470] if (TRUE) { [17:27:13.470] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.470] { [17:27:13.470] inherits <- base::inherits [17:27:13.470] invokeRestart <- base::invokeRestart [17:27:13.470] is.null <- base::is.null [17:27:13.470] muffled <- FALSE [17:27:13.470] if (inherits(cond, "message")) { [17:27:13.470] muffled <- grepl(pattern, "muffleMessage") [17:27:13.470] if (muffled) [17:27:13.470] invokeRestart("muffleMessage") [17:27:13.470] } [17:27:13.470] else if (inherits(cond, "warning")) { [17:27:13.470] muffled <- grepl(pattern, "muffleWarning") [17:27:13.470] if (muffled) [17:27:13.470] invokeRestart("muffleWarning") [17:27:13.470] } [17:27:13.470] else if (inherits(cond, "condition")) { [17:27:13.470] if (!is.null(pattern)) { [17:27:13.470] computeRestarts <- base::computeRestarts [17:27:13.470] grepl <- base::grepl [17:27:13.470] restarts <- computeRestarts(cond) [17:27:13.470] for (restart in restarts) { [17:27:13.470] name <- restart$name [17:27:13.470] if (is.null(name)) [17:27:13.470] next [17:27:13.470] if (!grepl(pattern, name)) [17:27:13.470] next [17:27:13.470] invokeRestart(restart) [17:27:13.470] muffled <- TRUE [17:27:13.470] break [17:27:13.470] } [17:27:13.470] } [17:27:13.470] } [17:27:13.470] invisible(muffled) [17:27:13.470] } [17:27:13.470] muffleCondition(cond, pattern = "^muffle") [17:27:13.470] } [17:27:13.470] } [17:27:13.470] } [17:27:13.470] })) [17:27:13.470] }, error = function(ex) { [17:27:13.470] base::structure(base::list(value = NULL, visible = NULL, [17:27:13.470] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.470] ...future.rng), started = ...future.startTime, [17:27:13.470] finished = Sys.time(), session_uuid = NA_character_, [17:27:13.470] version = "1.8"), class = "FutureResult") [17:27:13.470] }, finally = { [17:27:13.470] if (!identical(...future.workdir, getwd())) [17:27:13.470] setwd(...future.workdir) [17:27:13.470] { [17:27:13.470] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:13.470] ...future.oldOptions$nwarnings <- NULL [17:27:13.470] } [17:27:13.470] base::options(...future.oldOptions) [17:27:13.470] if (.Platform$OS.type == "windows") { [17:27:13.470] old_names <- names(...future.oldEnvVars) [17:27:13.470] envs <- base::Sys.getenv() [17:27:13.470] names <- names(envs) [17:27:13.470] common <- intersect(names, old_names) [17:27:13.470] added <- setdiff(names, old_names) [17:27:13.470] removed <- setdiff(old_names, names) [17:27:13.470] changed <- common[...future.oldEnvVars[common] != [17:27:13.470] envs[common]] [17:27:13.470] NAMES <- toupper(changed) [17:27:13.470] args <- list() [17:27:13.470] for (kk in seq_along(NAMES)) { [17:27:13.470] name <- changed[[kk]] [17:27:13.470] NAME <- NAMES[[kk]] [17:27:13.470] if (name != NAME && is.element(NAME, old_names)) [17:27:13.470] next [17:27:13.470] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.470] } [17:27:13.470] NAMES <- toupper(added) [17:27:13.470] for (kk in seq_along(NAMES)) { [17:27:13.470] name <- added[[kk]] [17:27:13.470] NAME <- NAMES[[kk]] [17:27:13.470] if (name != NAME && is.element(NAME, old_names)) [17:27:13.470] next [17:27:13.470] args[[name]] <- "" [17:27:13.470] } [17:27:13.470] NAMES <- toupper(removed) [17:27:13.470] for (kk in seq_along(NAMES)) { [17:27:13.470] name <- removed[[kk]] [17:27:13.470] NAME <- NAMES[[kk]] [17:27:13.470] if (name != NAME && is.element(NAME, old_names)) [17:27:13.470] next [17:27:13.470] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.470] } [17:27:13.470] if (length(args) > 0) [17:27:13.470] base::do.call(base::Sys.setenv, args = args) [17:27:13.470] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:13.470] } [17:27:13.470] else { [17:27:13.470] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:13.470] } [17:27:13.470] { [17:27:13.470] if (base::length(...future.futureOptionsAdded) > [17:27:13.470] 0L) { [17:27:13.470] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:13.470] base::names(opts) <- ...future.futureOptionsAdded [17:27:13.470] base::options(opts) [17:27:13.470] } [17:27:13.470] { [17:27:13.470] { [17:27:13.470] base::options(mc.cores = ...future.mc.cores.old) [17:27:13.470] NULL [17:27:13.470] } [17:27:13.470] options(future.plan = NULL) [17:27:13.470] if (is.na(NA_character_)) [17:27:13.470] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.470] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:13.470] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:13.470] .init = FALSE) [17:27:13.470] } [17:27:13.470] } [17:27:13.470] } [17:27:13.470] }) [17:27:13.470] if (TRUE) { [17:27:13.470] base::sink(type = "output", split = FALSE) [17:27:13.470] if (TRUE) { [17:27:13.470] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:13.470] } [17:27:13.470] else { [17:27:13.470] ...future.result["stdout"] <- base::list(NULL) [17:27:13.470] } [17:27:13.470] base::close(...future.stdout) [17:27:13.470] ...future.stdout <- NULL [17:27:13.470] } [17:27:13.470] ...future.result$conditions <- ...future.conditions [17:27:13.470] ...future.result$finished <- base::Sys.time() [17:27:13.470] ...future.result [17:27:13.470] } [17:27:13.475] Exporting 1 global objects (1.58 MiB) to cluster node #1 ... [17:27:13.477] Exporting 'f1' (1.58 MiB) to cluster node #1 ... [17:27:13.489] Exporting 'f1' (1.58 MiB) to cluster node #1 ... DONE [17:27:13.489] Exporting 1 global objects (1.58 MiB) to cluster node #1 ... DONE [17:27:13.490] MultisessionFuture started [17:27:13.490] - Launch lazy future ... done [17:27:13.490] run() for 'MultisessionFuture' ... done > stopifnot(inherits(f3, "MultisessionFuture")) > cat(sprintf("Future #3 session: %d\n", f3$node)) Future #3 session: 1 > v3 <- value(f3) [17:27:13.490] result() for ClusterFuture ... [17:27:13.490] receiveMessageFromWorker() for ClusterFuture ... [17:27:13.491] - Validating connection of MultisessionFuture [17:27:13.504] - received message: FutureResult [17:27:13.504] - Received FutureResult [17:27:13.504] - Erased future from FutureRegistry [17:27:13.504] result() for ClusterFuture ... [17:27:13.504] - result already collected: FutureResult [17:27:13.505] result() for ClusterFuture ... done [17:27:13.505] receiveMessageFromWorker() for ClusterFuture ... done [17:27:13.505] result() for ClusterFuture ... done [17:27:13.505] result() for ClusterFuture ... [17:27:13.505] - result already collected: FutureResult [17:27:13.505] result() for ClusterFuture ... done > cat(sprintf("Future #3 owner: %s\n", v3)) Future #3 owner: 4477bd64-8237-d939-32d3-b7829e37759b > stopifnot(v3 == session_uuid) > > message("Creating future #4:") Creating future #4: > f4 <- future({ f1$owner }) [17:27:13.506] getGlobalsAndPackages() ... [17:27:13.506] Searching for globals... [17:27:13.507] - globals found: [3] '{', '$', 'f1' [17:27:13.507] Searching for globals ... DONE [17:27:13.507] Resolving globals: FALSE [17:27:13.510] The total size of the 1 globals is 1.59 MiB (1662288 bytes) [17:27:13.510] The total size of the 1 globals exported for future expression ('{; f1$owner; }') is 1.59 MiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'f1' (1.59 MiB of class 'environment') [17:27:13.511] - globals: [1] 'f1' [17:27:13.511] [17:27:13.511] getGlobalsAndPackages() ... DONE [17:27:13.511] run() for 'Future' ... [17:27:13.512] - state: 'created' [17:27:13.512] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:13.524] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:13.524] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:13.524] - Field: 'node' [17:27:13.525] - Field: 'label' [17:27:13.525] - Field: 'local' [17:27:13.525] - Field: 'owner' [17:27:13.525] - Field: 'envir' [17:27:13.525] - Field: 'workers' [17:27:13.525] - Field: 'packages' [17:27:13.526] - Field: 'gc' [17:27:13.526] - Field: 'conditions' [17:27:13.526] - Field: 'persistent' [17:27:13.526] - Field: 'expr' [17:27:13.526] - Field: 'uuid' [17:27:13.526] - Field: 'seed' [17:27:13.527] - Field: 'version' [17:27:13.527] - Field: 'result' [17:27:13.527] - Field: 'asynchronous' [17:27:13.527] - Field: 'calls' [17:27:13.527] - Field: 'globals' [17:27:13.528] - Field: 'stdout' [17:27:13.528] - Field: 'earlySignal' [17:27:13.528] - Field: 'lazy' [17:27:13.528] - Field: 'state' [17:27:13.528] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:13.528] - Launch lazy future ... [17:27:13.529] Packages needed by the future expression (n = 0): [17:27:13.529] Packages needed by future strategies (n = 0): [17:27:13.530] { [17:27:13.530] { [17:27:13.530] { [17:27:13.530] ...future.startTime <- base::Sys.time() [17:27:13.530] { [17:27:13.530] { [17:27:13.530] { [17:27:13.530] { [17:27:13.530] base::local({ [17:27:13.530] has_future <- base::requireNamespace("future", [17:27:13.530] quietly = TRUE) [17:27:13.530] if (has_future) { [17:27:13.530] ns <- base::getNamespace("future") [17:27:13.530] version <- ns[[".package"]][["version"]] [17:27:13.530] if (is.null(version)) [17:27:13.530] version <- utils::packageVersion("future") [17:27:13.530] } [17:27:13.530] else { [17:27:13.530] version <- NULL [17:27:13.530] } [17:27:13.530] if (!has_future || version < "1.8.0") { [17:27:13.530] info <- base::c(r_version = base::gsub("R version ", [17:27:13.530] "", base::R.version$version.string), [17:27:13.530] platform = base::sprintf("%s (%s-bit)", [17:27:13.530] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:13.530] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:13.530] "release", "version")], collapse = " "), [17:27:13.530] hostname = base::Sys.info()[["nodename"]]) [17:27:13.530] info <- base::sprintf("%s: %s", base::names(info), [17:27:13.530] info) [17:27:13.530] info <- base::paste(info, collapse = "; ") [17:27:13.530] if (!has_future) { [17:27:13.530] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:13.530] info) [17:27:13.530] } [17:27:13.530] else { [17:27:13.530] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:13.530] info, version) [17:27:13.530] } [17:27:13.530] base::stop(msg) [17:27:13.530] } [17:27:13.530] }) [17:27:13.530] } [17:27:13.530] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:13.530] base::options(mc.cores = 1L) [17:27:13.530] } [17:27:13.530] ...future.strategy.old <- future::plan("list") [17:27:13.530] options(future.plan = NULL) [17:27:13.530] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.530] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:13.530] } [17:27:13.530] ...future.workdir <- getwd() [17:27:13.530] } [17:27:13.530] ...future.oldOptions <- base::as.list(base::.Options) [17:27:13.530] ...future.oldEnvVars <- base::Sys.getenv() [17:27:13.530] } [17:27:13.530] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:13.530] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:13.530] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:13.530] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:13.530] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:13.530] future.stdout.windows.reencode = NULL, width = 80L) [17:27:13.530] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:13.530] base::names(...future.oldOptions)) [17:27:13.530] } [17:27:13.530] if (FALSE) { [17:27:13.530] } [17:27:13.530] else { [17:27:13.530] if (TRUE) { [17:27:13.530] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:13.530] open = "w") [17:27:13.530] } [17:27:13.530] else { [17:27:13.530] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:13.530] windows = "NUL", "/dev/null"), open = "w") [17:27:13.530] } [17:27:13.530] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:13.530] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:13.530] base::sink(type = "output", split = FALSE) [17:27:13.530] base::close(...future.stdout) [17:27:13.530] }, add = TRUE) [17:27:13.530] } [17:27:13.530] ...future.frame <- base::sys.nframe() [17:27:13.530] ...future.conditions <- base::list() [17:27:13.530] ...future.rng <- base::globalenv()$.Random.seed [17:27:13.530] if (FALSE) { [17:27:13.530] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:13.530] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:13.530] } [17:27:13.530] ...future.result <- base::tryCatch({ [17:27:13.530] base::withCallingHandlers({ [17:27:13.530] ...future.value <- base::withVisible(base::local({ [17:27:13.530] ...future.makeSendCondition <- base::local({ [17:27:13.530] sendCondition <- NULL [17:27:13.530] function(frame = 1L) { [17:27:13.530] if (is.function(sendCondition)) [17:27:13.530] return(sendCondition) [17:27:13.530] ns <- getNamespace("parallel") [17:27:13.530] if (exists("sendData", mode = "function", [17:27:13.530] envir = ns)) { [17:27:13.530] parallel_sendData <- get("sendData", mode = "function", [17:27:13.530] envir = ns) [17:27:13.530] envir <- sys.frame(frame) [17:27:13.530] master <- NULL [17:27:13.530] while (!identical(envir, .GlobalEnv) && [17:27:13.530] !identical(envir, emptyenv())) { [17:27:13.530] if (exists("master", mode = "list", envir = envir, [17:27:13.530] inherits = FALSE)) { [17:27:13.530] master <- get("master", mode = "list", [17:27:13.530] envir = envir, inherits = FALSE) [17:27:13.530] if (inherits(master, c("SOCKnode", [17:27:13.530] "SOCK0node"))) { [17:27:13.530] sendCondition <<- function(cond) { [17:27:13.530] data <- list(type = "VALUE", value = cond, [17:27:13.530] success = TRUE) [17:27:13.530] parallel_sendData(master, data) [17:27:13.530] } [17:27:13.530] return(sendCondition) [17:27:13.530] } [17:27:13.530] } [17:27:13.530] frame <- frame + 1L [17:27:13.530] envir <- sys.frame(frame) [17:27:13.530] } [17:27:13.530] } [17:27:13.530] sendCondition <<- function(cond) NULL [17:27:13.530] } [17:27:13.530] }) [17:27:13.530] withCallingHandlers({ [17:27:13.530] { [17:27:13.530] f1$owner [17:27:13.530] } [17:27:13.530] }, immediateCondition = function(cond) { [17:27:13.530] sendCondition <- ...future.makeSendCondition() [17:27:13.530] sendCondition(cond) [17:27:13.530] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.530] { [17:27:13.530] inherits <- base::inherits [17:27:13.530] invokeRestart <- base::invokeRestart [17:27:13.530] is.null <- base::is.null [17:27:13.530] muffled <- FALSE [17:27:13.530] if (inherits(cond, "message")) { [17:27:13.530] muffled <- grepl(pattern, "muffleMessage") [17:27:13.530] if (muffled) [17:27:13.530] invokeRestart("muffleMessage") [17:27:13.530] } [17:27:13.530] else if (inherits(cond, "warning")) { [17:27:13.530] muffled <- grepl(pattern, "muffleWarning") [17:27:13.530] if (muffled) [17:27:13.530] invokeRestart("muffleWarning") [17:27:13.530] } [17:27:13.530] else if (inherits(cond, "condition")) { [17:27:13.530] if (!is.null(pattern)) { [17:27:13.530] computeRestarts <- base::computeRestarts [17:27:13.530] grepl <- base::grepl [17:27:13.530] restarts <- computeRestarts(cond) [17:27:13.530] for (restart in restarts) { [17:27:13.530] name <- restart$name [17:27:13.530] if (is.null(name)) [17:27:13.530] next [17:27:13.530] if (!grepl(pattern, name)) [17:27:13.530] next [17:27:13.530] invokeRestart(restart) [17:27:13.530] muffled <- TRUE [17:27:13.530] break [17:27:13.530] } [17:27:13.530] } [17:27:13.530] } [17:27:13.530] invisible(muffled) [17:27:13.530] } [17:27:13.530] muffleCondition(cond) [17:27:13.530] }) [17:27:13.530] })) [17:27:13.530] future::FutureResult(value = ...future.value$value, [17:27:13.530] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.530] ...future.rng), globalenv = if (FALSE) [17:27:13.530] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:13.530] ...future.globalenv.names)) [17:27:13.530] else NULL, started = ...future.startTime, version = "1.8") [17:27:13.530] }, condition = base::local({ [17:27:13.530] c <- base::c [17:27:13.530] inherits <- base::inherits [17:27:13.530] invokeRestart <- base::invokeRestart [17:27:13.530] length <- base::length [17:27:13.530] list <- base::list [17:27:13.530] seq.int <- base::seq.int [17:27:13.530] signalCondition <- base::signalCondition [17:27:13.530] sys.calls <- base::sys.calls [17:27:13.530] `[[` <- base::`[[` [17:27:13.530] `+` <- base::`+` [17:27:13.530] `<<-` <- base::`<<-` [17:27:13.530] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:13.530] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:13.530] 3L)] [17:27:13.530] } [17:27:13.530] function(cond) { [17:27:13.530] is_error <- inherits(cond, "error") [17:27:13.530] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:13.530] NULL) [17:27:13.530] if (is_error) { [17:27:13.530] sessionInformation <- function() { [17:27:13.530] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:13.530] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:13.530] search = base::search(), system = base::Sys.info()) [17:27:13.530] } [17:27:13.530] ...future.conditions[[length(...future.conditions) + [17:27:13.530] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:13.530] cond$call), session = sessionInformation(), [17:27:13.530] timestamp = base::Sys.time(), signaled = 0L) [17:27:13.530] signalCondition(cond) [17:27:13.530] } [17:27:13.530] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:13.530] "immediateCondition"))) { [17:27:13.530] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:13.530] ...future.conditions[[length(...future.conditions) + [17:27:13.530] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:13.530] if (TRUE && !signal) { [17:27:13.530] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.530] { [17:27:13.530] inherits <- base::inherits [17:27:13.530] invokeRestart <- base::invokeRestart [17:27:13.530] is.null <- base::is.null [17:27:13.530] muffled <- FALSE [17:27:13.530] if (inherits(cond, "message")) { [17:27:13.530] muffled <- grepl(pattern, "muffleMessage") [17:27:13.530] if (muffled) [17:27:13.530] invokeRestart("muffleMessage") [17:27:13.530] } [17:27:13.530] else if (inherits(cond, "warning")) { [17:27:13.530] muffled <- grepl(pattern, "muffleWarning") [17:27:13.530] if (muffled) [17:27:13.530] invokeRestart("muffleWarning") [17:27:13.530] } [17:27:13.530] else if (inherits(cond, "condition")) { [17:27:13.530] if (!is.null(pattern)) { [17:27:13.530] computeRestarts <- base::computeRestarts [17:27:13.530] grepl <- base::grepl [17:27:13.530] restarts <- computeRestarts(cond) [17:27:13.530] for (restart in restarts) { [17:27:13.530] name <- restart$name [17:27:13.530] if (is.null(name)) [17:27:13.530] next [17:27:13.530] if (!grepl(pattern, name)) [17:27:13.530] next [17:27:13.530] invokeRestart(restart) [17:27:13.530] muffled <- TRUE [17:27:13.530] break [17:27:13.530] } [17:27:13.530] } [17:27:13.530] } [17:27:13.530] invisible(muffled) [17:27:13.530] } [17:27:13.530] muffleCondition(cond, pattern = "^muffle") [17:27:13.530] } [17:27:13.530] } [17:27:13.530] else { [17:27:13.530] if (TRUE) { [17:27:13.530] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.530] { [17:27:13.530] inherits <- base::inherits [17:27:13.530] invokeRestart <- base::invokeRestart [17:27:13.530] is.null <- base::is.null [17:27:13.530] muffled <- FALSE [17:27:13.530] if (inherits(cond, "message")) { [17:27:13.530] muffled <- grepl(pattern, "muffleMessage") [17:27:13.530] if (muffled) [17:27:13.530] invokeRestart("muffleMessage") [17:27:13.530] } [17:27:13.530] else if (inherits(cond, "warning")) { [17:27:13.530] muffled <- grepl(pattern, "muffleWarning") [17:27:13.530] if (muffled) [17:27:13.530] invokeRestart("muffleWarning") [17:27:13.530] } [17:27:13.530] else if (inherits(cond, "condition")) { [17:27:13.530] if (!is.null(pattern)) { [17:27:13.530] computeRestarts <- base::computeRestarts [17:27:13.530] grepl <- base::grepl [17:27:13.530] restarts <- computeRestarts(cond) [17:27:13.530] for (restart in restarts) { [17:27:13.530] name <- restart$name [17:27:13.530] if (is.null(name)) [17:27:13.530] next [17:27:13.530] if (!grepl(pattern, name)) [17:27:13.530] next [17:27:13.530] invokeRestart(restart) [17:27:13.530] muffled <- TRUE [17:27:13.530] break [17:27:13.530] } [17:27:13.530] } [17:27:13.530] } [17:27:13.530] invisible(muffled) [17:27:13.530] } [17:27:13.530] muffleCondition(cond, pattern = "^muffle") [17:27:13.530] } [17:27:13.530] } [17:27:13.530] } [17:27:13.530] })) [17:27:13.530] }, error = function(ex) { [17:27:13.530] base::structure(base::list(value = NULL, visible = NULL, [17:27:13.530] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.530] ...future.rng), started = ...future.startTime, [17:27:13.530] finished = Sys.time(), session_uuid = NA_character_, [17:27:13.530] version = "1.8"), class = "FutureResult") [17:27:13.530] }, finally = { [17:27:13.530] if (!identical(...future.workdir, getwd())) [17:27:13.530] setwd(...future.workdir) [17:27:13.530] { [17:27:13.530] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:13.530] ...future.oldOptions$nwarnings <- NULL [17:27:13.530] } [17:27:13.530] base::options(...future.oldOptions) [17:27:13.530] if (.Platform$OS.type == "windows") { [17:27:13.530] old_names <- names(...future.oldEnvVars) [17:27:13.530] envs <- base::Sys.getenv() [17:27:13.530] names <- names(envs) [17:27:13.530] common <- intersect(names, old_names) [17:27:13.530] added <- setdiff(names, old_names) [17:27:13.530] removed <- setdiff(old_names, names) [17:27:13.530] changed <- common[...future.oldEnvVars[common] != [17:27:13.530] envs[common]] [17:27:13.530] NAMES <- toupper(changed) [17:27:13.530] args <- list() [17:27:13.530] for (kk in seq_along(NAMES)) { [17:27:13.530] name <- changed[[kk]] [17:27:13.530] NAME <- NAMES[[kk]] [17:27:13.530] if (name != NAME && is.element(NAME, old_names)) [17:27:13.530] next [17:27:13.530] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.530] } [17:27:13.530] NAMES <- toupper(added) [17:27:13.530] for (kk in seq_along(NAMES)) { [17:27:13.530] name <- added[[kk]] [17:27:13.530] NAME <- NAMES[[kk]] [17:27:13.530] if (name != NAME && is.element(NAME, old_names)) [17:27:13.530] next [17:27:13.530] args[[name]] <- "" [17:27:13.530] } [17:27:13.530] NAMES <- toupper(removed) [17:27:13.530] for (kk in seq_along(NAMES)) { [17:27:13.530] name <- removed[[kk]] [17:27:13.530] NAME <- NAMES[[kk]] [17:27:13.530] if (name != NAME && is.element(NAME, old_names)) [17:27:13.530] next [17:27:13.530] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.530] } [17:27:13.530] if (length(args) > 0) [17:27:13.530] base::do.call(base::Sys.setenv, args = args) [17:27:13.530] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:13.530] } [17:27:13.530] else { [17:27:13.530] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:13.530] } [17:27:13.530] { [17:27:13.530] if (base::length(...future.futureOptionsAdded) > [17:27:13.530] 0L) { [17:27:13.530] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:13.530] base::names(opts) <- ...future.futureOptionsAdded [17:27:13.530] base::options(opts) [17:27:13.530] } [17:27:13.530] { [17:27:13.530] { [17:27:13.530] base::options(mc.cores = ...future.mc.cores.old) [17:27:13.530] NULL [17:27:13.530] } [17:27:13.530] options(future.plan = NULL) [17:27:13.530] if (is.na(NA_character_)) [17:27:13.530] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.530] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:13.530] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:13.530] .init = FALSE) [17:27:13.530] } [17:27:13.530] } [17:27:13.530] } [17:27:13.530] }) [17:27:13.530] if (TRUE) { [17:27:13.530] base::sink(type = "output", split = FALSE) [17:27:13.530] if (TRUE) { [17:27:13.530] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:13.530] } [17:27:13.530] else { [17:27:13.530] ...future.result["stdout"] <- base::list(NULL) [17:27:13.530] } [17:27:13.530] base::close(...future.stdout) [17:27:13.530] ...future.stdout <- NULL [17:27:13.530] } [17:27:13.530] ...future.result$conditions <- ...future.conditions [17:27:13.530] ...future.result$finished <- base::Sys.time() [17:27:13.530] ...future.result [17:27:13.530] } [17:27:13.535] Exporting 1 global objects (1.59 MiB) to cluster node #1 ... [17:27:13.537] Exporting 'f1' (1.59 MiB) to cluster node #1 ... [17:27:13.548] Exporting 'f1' (1.59 MiB) to cluster node #1 ... DONE [17:27:13.548] Exporting 1 global objects (1.59 MiB) to cluster node #1 ... DONE [17:27:13.549] MultisessionFuture started [17:27:13.549] - Launch lazy future ... done [17:27:13.549] run() for 'MultisessionFuture' ... done > stopifnot(inherits(f4, "MultisessionFuture")) > cat(sprintf("Future #4 session: %d\n", f4$node)) Future #4 session: 1 > v4 <- value(f4) [17:27:13.549] result() for ClusterFuture ... [17:27:13.549] receiveMessageFromWorker() for ClusterFuture ... [17:27:13.550] - Validating connection of MultisessionFuture [17:27:13.565] - received message: FutureResult [17:27:13.565] - Received FutureResult [17:27:13.565] - Erased future from FutureRegistry [17:27:13.565] result() for ClusterFuture ... [17:27:13.565] - result already collected: FutureResult [17:27:13.566] result() for ClusterFuture ... done [17:27:13.566] receiveMessageFromWorker() for ClusterFuture ... done [17:27:13.566] result() for ClusterFuture ... done [17:27:13.566] result() for ClusterFuture ... [17:27:13.566] - result already collected: FutureResult [17:27:13.566] result() for ClusterFuture ... done > cat(sprintf("Future #4 owner: %s\n", v4)) Future #4 owner: 4477bd64-8237-d939-32d3-b7829e37759b > stopifnot(v4 == session_uuid) > > message("Creating future #5:") Creating future #5: > f5 <- future({ stopifnot(f1$owner != future:::session_uuid(attributes = TRUE)); "not-owner" }) [17:27:13.567] getGlobalsAndPackages() ... [17:27:13.567] Searching for globals... [17:27:13.569] - globals found: [6] '{', 'stopifnot', '!=', '$', 'f1', ':::' [17:27:13.569] Searching for globals ... DONE [17:27:13.569] Resolving globals: FALSE [17:27:13.572] The total size of the 1 globals is 1.59 MiB (1665104 bytes) [17:27:13.573] The total size of the 1 globals exported for future expression ('{; stopifnot(f1$owner != future:::session_uuid(attributes = TRUE)); "not-owner"; }') is 1.59 MiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'f1' (1.59 MiB of class 'environment') [17:27:13.573] - globals: [1] 'f1' [17:27:13.573] [17:27:13.573] getGlobalsAndPackages() ... DONE [17:27:13.573] run() for 'Future' ... [17:27:13.574] - state: 'created' [17:27:13.574] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:13.586] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:13.586] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:13.586] - Field: 'node' [17:27:13.586] - Field: 'label' [17:27:13.587] - Field: 'local' [17:27:13.587] - Field: 'owner' [17:27:13.587] - Field: 'envir' [17:27:13.587] - Field: 'workers' [17:27:13.587] - Field: 'packages' [17:27:13.588] - Field: 'gc' [17:27:13.588] - Field: 'conditions' [17:27:13.588] - Field: 'persistent' [17:27:13.588] - Field: 'expr' [17:27:13.588] - Field: 'uuid' [17:27:13.588] - Field: 'seed' [17:27:13.589] - Field: 'version' [17:27:13.589] - Field: 'result' [17:27:13.589] - Field: 'asynchronous' [17:27:13.589] - Field: 'calls' [17:27:13.589] - Field: 'globals' [17:27:13.590] - Field: 'stdout' [17:27:13.590] - Field: 'earlySignal' [17:27:13.590] - Field: 'lazy' [17:27:13.590] - Field: 'state' [17:27:13.590] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:13.590] - Launch lazy future ... [17:27:13.591] Packages needed by the future expression (n = 0): [17:27:13.591] Packages needed by future strategies (n = 0): [17:27:13.592] { [17:27:13.592] { [17:27:13.592] { [17:27:13.592] ...future.startTime <- base::Sys.time() [17:27:13.592] { [17:27:13.592] { [17:27:13.592] { [17:27:13.592] { [17:27:13.592] base::local({ [17:27:13.592] has_future <- base::requireNamespace("future", [17:27:13.592] quietly = TRUE) [17:27:13.592] if (has_future) { [17:27:13.592] ns <- base::getNamespace("future") [17:27:13.592] version <- ns[[".package"]][["version"]] [17:27:13.592] if (is.null(version)) [17:27:13.592] version <- utils::packageVersion("future") [17:27:13.592] } [17:27:13.592] else { [17:27:13.592] version <- NULL [17:27:13.592] } [17:27:13.592] if (!has_future || version < "1.8.0") { [17:27:13.592] info <- base::c(r_version = base::gsub("R version ", [17:27:13.592] "", base::R.version$version.string), [17:27:13.592] platform = base::sprintf("%s (%s-bit)", [17:27:13.592] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:13.592] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:13.592] "release", "version")], collapse = " "), [17:27:13.592] hostname = base::Sys.info()[["nodename"]]) [17:27:13.592] info <- base::sprintf("%s: %s", base::names(info), [17:27:13.592] info) [17:27:13.592] info <- base::paste(info, collapse = "; ") [17:27:13.592] if (!has_future) { [17:27:13.592] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:13.592] info) [17:27:13.592] } [17:27:13.592] else { [17:27:13.592] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:13.592] info, version) [17:27:13.592] } [17:27:13.592] base::stop(msg) [17:27:13.592] } [17:27:13.592] }) [17:27:13.592] } [17:27:13.592] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:13.592] base::options(mc.cores = 1L) [17:27:13.592] } [17:27:13.592] ...future.strategy.old <- future::plan("list") [17:27:13.592] options(future.plan = NULL) [17:27:13.592] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.592] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:13.592] } [17:27:13.592] ...future.workdir <- getwd() [17:27:13.592] } [17:27:13.592] ...future.oldOptions <- base::as.list(base::.Options) [17:27:13.592] ...future.oldEnvVars <- base::Sys.getenv() [17:27:13.592] } [17:27:13.592] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:13.592] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:13.592] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:13.592] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:13.592] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:13.592] future.stdout.windows.reencode = NULL, width = 80L) [17:27:13.592] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:13.592] base::names(...future.oldOptions)) [17:27:13.592] } [17:27:13.592] if (FALSE) { [17:27:13.592] } [17:27:13.592] else { [17:27:13.592] if (TRUE) { [17:27:13.592] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:13.592] open = "w") [17:27:13.592] } [17:27:13.592] else { [17:27:13.592] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:13.592] windows = "NUL", "/dev/null"), open = "w") [17:27:13.592] } [17:27:13.592] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:13.592] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:13.592] base::sink(type = "output", split = FALSE) [17:27:13.592] base::close(...future.stdout) [17:27:13.592] }, add = TRUE) [17:27:13.592] } [17:27:13.592] ...future.frame <- base::sys.nframe() [17:27:13.592] ...future.conditions <- base::list() [17:27:13.592] ...future.rng <- base::globalenv()$.Random.seed [17:27:13.592] if (FALSE) { [17:27:13.592] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:13.592] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:13.592] } [17:27:13.592] ...future.result <- base::tryCatch({ [17:27:13.592] base::withCallingHandlers({ [17:27:13.592] ...future.value <- base::withVisible(base::local({ [17:27:13.592] ...future.makeSendCondition <- base::local({ [17:27:13.592] sendCondition <- NULL [17:27:13.592] function(frame = 1L) { [17:27:13.592] if (is.function(sendCondition)) [17:27:13.592] return(sendCondition) [17:27:13.592] ns <- getNamespace("parallel") [17:27:13.592] if (exists("sendData", mode = "function", [17:27:13.592] envir = ns)) { [17:27:13.592] parallel_sendData <- get("sendData", mode = "function", [17:27:13.592] envir = ns) [17:27:13.592] envir <- sys.frame(frame) [17:27:13.592] master <- NULL [17:27:13.592] while (!identical(envir, .GlobalEnv) && [17:27:13.592] !identical(envir, emptyenv())) { [17:27:13.592] if (exists("master", mode = "list", envir = envir, [17:27:13.592] inherits = FALSE)) { [17:27:13.592] master <- get("master", mode = "list", [17:27:13.592] envir = envir, inherits = FALSE) [17:27:13.592] if (inherits(master, c("SOCKnode", [17:27:13.592] "SOCK0node"))) { [17:27:13.592] sendCondition <<- function(cond) { [17:27:13.592] data <- list(type = "VALUE", value = cond, [17:27:13.592] success = TRUE) [17:27:13.592] parallel_sendData(master, data) [17:27:13.592] } [17:27:13.592] return(sendCondition) [17:27:13.592] } [17:27:13.592] } [17:27:13.592] frame <- frame + 1L [17:27:13.592] envir <- sys.frame(frame) [17:27:13.592] } [17:27:13.592] } [17:27:13.592] sendCondition <<- function(cond) NULL [17:27:13.592] } [17:27:13.592] }) [17:27:13.592] withCallingHandlers({ [17:27:13.592] { [17:27:13.592] stopifnot(f1$owner != future:::session_uuid(attributes = TRUE)) [17:27:13.592] "not-owner" [17:27:13.592] } [17:27:13.592] }, immediateCondition = function(cond) { [17:27:13.592] sendCondition <- ...future.makeSendCondition() [17:27:13.592] sendCondition(cond) [17:27:13.592] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.592] { [17:27:13.592] inherits <- base::inherits [17:27:13.592] invokeRestart <- base::invokeRestart [17:27:13.592] is.null <- base::is.null [17:27:13.592] muffled <- FALSE [17:27:13.592] if (inherits(cond, "message")) { [17:27:13.592] muffled <- grepl(pattern, "muffleMessage") [17:27:13.592] if (muffled) [17:27:13.592] invokeRestart("muffleMessage") [17:27:13.592] } [17:27:13.592] else if (inherits(cond, "warning")) { [17:27:13.592] muffled <- grepl(pattern, "muffleWarning") [17:27:13.592] if (muffled) [17:27:13.592] invokeRestart("muffleWarning") [17:27:13.592] } [17:27:13.592] else if (inherits(cond, "condition")) { [17:27:13.592] if (!is.null(pattern)) { [17:27:13.592] computeRestarts <- base::computeRestarts [17:27:13.592] grepl <- base::grepl [17:27:13.592] restarts <- computeRestarts(cond) [17:27:13.592] for (restart in restarts) { [17:27:13.592] name <- restart$name [17:27:13.592] if (is.null(name)) [17:27:13.592] next [17:27:13.592] if (!grepl(pattern, name)) [17:27:13.592] next [17:27:13.592] invokeRestart(restart) [17:27:13.592] muffled <- TRUE [17:27:13.592] break [17:27:13.592] } [17:27:13.592] } [17:27:13.592] } [17:27:13.592] invisible(muffled) [17:27:13.592] } [17:27:13.592] muffleCondition(cond) [17:27:13.592] }) [17:27:13.592] })) [17:27:13.592] future::FutureResult(value = ...future.value$value, [17:27:13.592] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.592] ...future.rng), globalenv = if (FALSE) [17:27:13.592] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:13.592] ...future.globalenv.names)) [17:27:13.592] else NULL, started = ...future.startTime, version = "1.8") [17:27:13.592] }, condition = base::local({ [17:27:13.592] c <- base::c [17:27:13.592] inherits <- base::inherits [17:27:13.592] invokeRestart <- base::invokeRestart [17:27:13.592] length <- base::length [17:27:13.592] list <- base::list [17:27:13.592] seq.int <- base::seq.int [17:27:13.592] signalCondition <- base::signalCondition [17:27:13.592] sys.calls <- base::sys.calls [17:27:13.592] `[[` <- base::`[[` [17:27:13.592] `+` <- base::`+` [17:27:13.592] `<<-` <- base::`<<-` [17:27:13.592] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:13.592] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:13.592] 3L)] [17:27:13.592] } [17:27:13.592] function(cond) { [17:27:13.592] is_error <- inherits(cond, "error") [17:27:13.592] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:13.592] NULL) [17:27:13.592] if (is_error) { [17:27:13.592] sessionInformation <- function() { [17:27:13.592] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:13.592] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:13.592] search = base::search(), system = base::Sys.info()) [17:27:13.592] } [17:27:13.592] ...future.conditions[[length(...future.conditions) + [17:27:13.592] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:13.592] cond$call), session = sessionInformation(), [17:27:13.592] timestamp = base::Sys.time(), signaled = 0L) [17:27:13.592] signalCondition(cond) [17:27:13.592] } [17:27:13.592] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:13.592] "immediateCondition"))) { [17:27:13.592] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:13.592] ...future.conditions[[length(...future.conditions) + [17:27:13.592] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:13.592] if (TRUE && !signal) { [17:27:13.592] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.592] { [17:27:13.592] inherits <- base::inherits [17:27:13.592] invokeRestart <- base::invokeRestart [17:27:13.592] is.null <- base::is.null [17:27:13.592] muffled <- FALSE [17:27:13.592] if (inherits(cond, "message")) { [17:27:13.592] muffled <- grepl(pattern, "muffleMessage") [17:27:13.592] if (muffled) [17:27:13.592] invokeRestart("muffleMessage") [17:27:13.592] } [17:27:13.592] else if (inherits(cond, "warning")) { [17:27:13.592] muffled <- grepl(pattern, "muffleWarning") [17:27:13.592] if (muffled) [17:27:13.592] invokeRestart("muffleWarning") [17:27:13.592] } [17:27:13.592] else if (inherits(cond, "condition")) { [17:27:13.592] if (!is.null(pattern)) { [17:27:13.592] computeRestarts <- base::computeRestarts [17:27:13.592] grepl <- base::grepl [17:27:13.592] restarts <- computeRestarts(cond) [17:27:13.592] for (restart in restarts) { [17:27:13.592] name <- restart$name [17:27:13.592] if (is.null(name)) [17:27:13.592] next [17:27:13.592] if (!grepl(pattern, name)) [17:27:13.592] next [17:27:13.592] invokeRestart(restart) [17:27:13.592] muffled <- TRUE [17:27:13.592] break [17:27:13.592] } [17:27:13.592] } [17:27:13.592] } [17:27:13.592] invisible(muffled) [17:27:13.592] } [17:27:13.592] muffleCondition(cond, pattern = "^muffle") [17:27:13.592] } [17:27:13.592] } [17:27:13.592] else { [17:27:13.592] if (TRUE) { [17:27:13.592] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.592] { [17:27:13.592] inherits <- base::inherits [17:27:13.592] invokeRestart <- base::invokeRestart [17:27:13.592] is.null <- base::is.null [17:27:13.592] muffled <- FALSE [17:27:13.592] if (inherits(cond, "message")) { [17:27:13.592] muffled <- grepl(pattern, "muffleMessage") [17:27:13.592] if (muffled) [17:27:13.592] invokeRestart("muffleMessage") [17:27:13.592] } [17:27:13.592] else if (inherits(cond, "warning")) { [17:27:13.592] muffled <- grepl(pattern, "muffleWarning") [17:27:13.592] if (muffled) [17:27:13.592] invokeRestart("muffleWarning") [17:27:13.592] } [17:27:13.592] else if (inherits(cond, "condition")) { [17:27:13.592] if (!is.null(pattern)) { [17:27:13.592] computeRestarts <- base::computeRestarts [17:27:13.592] grepl <- base::grepl [17:27:13.592] restarts <- computeRestarts(cond) [17:27:13.592] for (restart in restarts) { [17:27:13.592] name <- restart$name [17:27:13.592] if (is.null(name)) [17:27:13.592] next [17:27:13.592] if (!grepl(pattern, name)) [17:27:13.592] next [17:27:13.592] invokeRestart(restart) [17:27:13.592] muffled <- TRUE [17:27:13.592] break [17:27:13.592] } [17:27:13.592] } [17:27:13.592] } [17:27:13.592] invisible(muffled) [17:27:13.592] } [17:27:13.592] muffleCondition(cond, pattern = "^muffle") [17:27:13.592] } [17:27:13.592] } [17:27:13.592] } [17:27:13.592] })) [17:27:13.592] }, error = function(ex) { [17:27:13.592] base::structure(base::list(value = NULL, visible = NULL, [17:27:13.592] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.592] ...future.rng), started = ...future.startTime, [17:27:13.592] finished = Sys.time(), session_uuid = NA_character_, [17:27:13.592] version = "1.8"), class = "FutureResult") [17:27:13.592] }, finally = { [17:27:13.592] if (!identical(...future.workdir, getwd())) [17:27:13.592] setwd(...future.workdir) [17:27:13.592] { [17:27:13.592] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:13.592] ...future.oldOptions$nwarnings <- NULL [17:27:13.592] } [17:27:13.592] base::options(...future.oldOptions) [17:27:13.592] if (.Platform$OS.type == "windows") { [17:27:13.592] old_names <- names(...future.oldEnvVars) [17:27:13.592] envs <- base::Sys.getenv() [17:27:13.592] names <- names(envs) [17:27:13.592] common <- intersect(names, old_names) [17:27:13.592] added <- setdiff(names, old_names) [17:27:13.592] removed <- setdiff(old_names, names) [17:27:13.592] changed <- common[...future.oldEnvVars[common] != [17:27:13.592] envs[common]] [17:27:13.592] NAMES <- toupper(changed) [17:27:13.592] args <- list() [17:27:13.592] for (kk in seq_along(NAMES)) { [17:27:13.592] name <- changed[[kk]] [17:27:13.592] NAME <- NAMES[[kk]] [17:27:13.592] if (name != NAME && is.element(NAME, old_names)) [17:27:13.592] next [17:27:13.592] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.592] } [17:27:13.592] NAMES <- toupper(added) [17:27:13.592] for (kk in seq_along(NAMES)) { [17:27:13.592] name <- added[[kk]] [17:27:13.592] NAME <- NAMES[[kk]] [17:27:13.592] if (name != NAME && is.element(NAME, old_names)) [17:27:13.592] next [17:27:13.592] args[[name]] <- "" [17:27:13.592] } [17:27:13.592] NAMES <- toupper(removed) [17:27:13.592] for (kk in seq_along(NAMES)) { [17:27:13.592] name <- removed[[kk]] [17:27:13.592] NAME <- NAMES[[kk]] [17:27:13.592] if (name != NAME && is.element(NAME, old_names)) [17:27:13.592] next [17:27:13.592] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.592] } [17:27:13.592] if (length(args) > 0) [17:27:13.592] base::do.call(base::Sys.setenv, args = args) [17:27:13.592] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:13.592] } [17:27:13.592] else { [17:27:13.592] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:13.592] } [17:27:13.592] { [17:27:13.592] if (base::length(...future.futureOptionsAdded) > [17:27:13.592] 0L) { [17:27:13.592] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:13.592] base::names(opts) <- ...future.futureOptionsAdded [17:27:13.592] base::options(opts) [17:27:13.592] } [17:27:13.592] { [17:27:13.592] { [17:27:13.592] base::options(mc.cores = ...future.mc.cores.old) [17:27:13.592] NULL [17:27:13.592] } [17:27:13.592] options(future.plan = NULL) [17:27:13.592] if (is.na(NA_character_)) [17:27:13.592] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.592] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:13.592] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:13.592] .init = FALSE) [17:27:13.592] } [17:27:13.592] } [17:27:13.592] } [17:27:13.592] }) [17:27:13.592] if (TRUE) { [17:27:13.592] base::sink(type = "output", split = FALSE) [17:27:13.592] if (TRUE) { [17:27:13.592] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:13.592] } [17:27:13.592] else { [17:27:13.592] ...future.result["stdout"] <- base::list(NULL) [17:27:13.592] } [17:27:13.592] base::close(...future.stdout) [17:27:13.592] ...future.stdout <- NULL [17:27:13.592] } [17:27:13.592] ...future.result$conditions <- ...future.conditions [17:27:13.592] ...future.result$finished <- base::Sys.time() [17:27:13.592] ...future.result [17:27:13.592] } [17:27:13.597] Exporting 1 global objects (1.59 MiB) to cluster node #1 ... [17:27:13.599] Exporting 'f1' (1.59 MiB) to cluster node #1 ... [17:27:13.610] Exporting 'f1' (1.59 MiB) to cluster node #1 ... DONE [17:27:13.610] Exporting 1 global objects (1.59 MiB) to cluster node #1 ... DONE [17:27:13.611] MultisessionFuture started [17:27:13.611] - Launch lazy future ... done [17:27:13.611] run() for 'MultisessionFuture' ... done > stopifnot(inherits(f5, "MultisessionFuture")) > v5 <- value(f5) [17:27:13.611] result() for ClusterFuture ... [17:27:13.611] receiveMessageFromWorker() for ClusterFuture ... [17:27:13.612] - Validating connection of MultisessionFuture [17:27:13.624] - received message: FutureResult [17:27:13.625] - Received FutureResult [17:27:13.625] - Erased future from FutureRegistry [17:27:13.625] result() for ClusterFuture ... [17:27:13.625] - result already collected: FutureResult [17:27:13.625] result() for ClusterFuture ... done [17:27:13.625] receiveMessageFromWorker() for ClusterFuture ... done [17:27:13.626] result() for ClusterFuture ... done [17:27:13.626] result() for ClusterFuture ... [17:27:13.626] - result already collected: FutureResult [17:27:13.626] result() for ClusterFuture ... done > stopifnot(v5 == "not-owner") > > message("- Asserting ownership ... DONE") - Asserting ownership ... DONE > > > message("- Trying with invalid ownership ...") - Trying with invalid ownership ... > > message("Creating future #1:") Creating future #1: > f1 <- future({ 42L }) [17:27:13.627] getGlobalsAndPackages() ... [17:27:13.627] Searching for globals... [17:27:13.627] - globals found: [1] '{' [17:27:13.628] Searching for globals ... DONE [17:27:13.628] Resolving globals: FALSE [17:27:13.628] [17:27:13.628] [17:27:13.629] getGlobalsAndPackages() ... DONE [17:27:13.629] run() for 'Future' ... [17:27:13.629] - state: 'created' [17:27:13.629] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:13.643] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:13.643] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:13.643] - Field: 'node' [17:27:13.644] - Field: 'label' [17:27:13.644] - Field: 'local' [17:27:13.644] - Field: 'owner' [17:27:13.644] - Field: 'envir' [17:27:13.644] - Field: 'workers' [17:27:13.645] - Field: 'packages' [17:27:13.645] - Field: 'gc' [17:27:13.645] - Field: 'conditions' [17:27:13.645] - Field: 'persistent' [17:27:13.645] - Field: 'expr' [17:27:13.645] - Field: 'uuid' [17:27:13.646] - Field: 'seed' [17:27:13.646] - Field: 'version' [17:27:13.646] - Field: 'result' [17:27:13.646] - Field: 'asynchronous' [17:27:13.646] - Field: 'calls' [17:27:13.646] - Field: 'globals' [17:27:13.647] - Field: 'stdout' [17:27:13.647] - Field: 'earlySignal' [17:27:13.647] - Field: 'lazy' [17:27:13.647] - Field: 'state' [17:27:13.647] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:13.647] - Launch lazy future ... [17:27:13.648] Packages needed by the future expression (n = 0): [17:27:13.648] Packages needed by future strategies (n = 0): [17:27:13.649] { [17:27:13.649] { [17:27:13.649] { [17:27:13.649] ...future.startTime <- base::Sys.time() [17:27:13.649] { [17:27:13.649] { [17:27:13.649] { [17:27:13.649] { [17:27:13.649] base::local({ [17:27:13.649] has_future <- base::requireNamespace("future", [17:27:13.649] quietly = TRUE) [17:27:13.649] if (has_future) { [17:27:13.649] ns <- base::getNamespace("future") [17:27:13.649] version <- ns[[".package"]][["version"]] [17:27:13.649] if (is.null(version)) [17:27:13.649] version <- utils::packageVersion("future") [17:27:13.649] } [17:27:13.649] else { [17:27:13.649] version <- NULL [17:27:13.649] } [17:27:13.649] if (!has_future || version < "1.8.0") { [17:27:13.649] info <- base::c(r_version = base::gsub("R version ", [17:27:13.649] "", base::R.version$version.string), [17:27:13.649] platform = base::sprintf("%s (%s-bit)", [17:27:13.649] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:13.649] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:13.649] "release", "version")], collapse = " "), [17:27:13.649] hostname = base::Sys.info()[["nodename"]]) [17:27:13.649] info <- base::sprintf("%s: %s", base::names(info), [17:27:13.649] info) [17:27:13.649] info <- base::paste(info, collapse = "; ") [17:27:13.649] if (!has_future) { [17:27:13.649] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:13.649] info) [17:27:13.649] } [17:27:13.649] else { [17:27:13.649] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:13.649] info, version) [17:27:13.649] } [17:27:13.649] base::stop(msg) [17:27:13.649] } [17:27:13.649] }) [17:27:13.649] } [17:27:13.649] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:13.649] base::options(mc.cores = 1L) [17:27:13.649] } [17:27:13.649] ...future.strategy.old <- future::plan("list") [17:27:13.649] options(future.plan = NULL) [17:27:13.649] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.649] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:13.649] } [17:27:13.649] ...future.workdir <- getwd() [17:27:13.649] } [17:27:13.649] ...future.oldOptions <- base::as.list(base::.Options) [17:27:13.649] ...future.oldEnvVars <- base::Sys.getenv() [17:27:13.649] } [17:27:13.649] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:13.649] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:13.649] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:13.649] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:13.649] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:13.649] future.stdout.windows.reencode = NULL, width = 80L) [17:27:13.649] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:13.649] base::names(...future.oldOptions)) [17:27:13.649] } [17:27:13.649] if (FALSE) { [17:27:13.649] } [17:27:13.649] else { [17:27:13.649] if (TRUE) { [17:27:13.649] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:13.649] open = "w") [17:27:13.649] } [17:27:13.649] else { [17:27:13.649] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:13.649] windows = "NUL", "/dev/null"), open = "w") [17:27:13.649] } [17:27:13.649] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:13.649] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:13.649] base::sink(type = "output", split = FALSE) [17:27:13.649] base::close(...future.stdout) [17:27:13.649] }, add = TRUE) [17:27:13.649] } [17:27:13.649] ...future.frame <- base::sys.nframe() [17:27:13.649] ...future.conditions <- base::list() [17:27:13.649] ...future.rng <- base::globalenv()$.Random.seed [17:27:13.649] if (FALSE) { [17:27:13.649] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:13.649] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:13.649] } [17:27:13.649] ...future.result <- base::tryCatch({ [17:27:13.649] base::withCallingHandlers({ [17:27:13.649] ...future.value <- base::withVisible(base::local({ [17:27:13.649] ...future.makeSendCondition <- base::local({ [17:27:13.649] sendCondition <- NULL [17:27:13.649] function(frame = 1L) { [17:27:13.649] if (is.function(sendCondition)) [17:27:13.649] return(sendCondition) [17:27:13.649] ns <- getNamespace("parallel") [17:27:13.649] if (exists("sendData", mode = "function", [17:27:13.649] envir = ns)) { [17:27:13.649] parallel_sendData <- get("sendData", mode = "function", [17:27:13.649] envir = ns) [17:27:13.649] envir <- sys.frame(frame) [17:27:13.649] master <- NULL [17:27:13.649] while (!identical(envir, .GlobalEnv) && [17:27:13.649] !identical(envir, emptyenv())) { [17:27:13.649] if (exists("master", mode = "list", envir = envir, [17:27:13.649] inherits = FALSE)) { [17:27:13.649] master <- get("master", mode = "list", [17:27:13.649] envir = envir, inherits = FALSE) [17:27:13.649] if (inherits(master, c("SOCKnode", [17:27:13.649] "SOCK0node"))) { [17:27:13.649] sendCondition <<- function(cond) { [17:27:13.649] data <- list(type = "VALUE", value = cond, [17:27:13.649] success = TRUE) [17:27:13.649] parallel_sendData(master, data) [17:27:13.649] } [17:27:13.649] return(sendCondition) [17:27:13.649] } [17:27:13.649] } [17:27:13.649] frame <- frame + 1L [17:27:13.649] envir <- sys.frame(frame) [17:27:13.649] } [17:27:13.649] } [17:27:13.649] sendCondition <<- function(cond) NULL [17:27:13.649] } [17:27:13.649] }) [17:27:13.649] withCallingHandlers({ [17:27:13.649] { [17:27:13.649] 42L [17:27:13.649] } [17:27:13.649] }, immediateCondition = function(cond) { [17:27:13.649] sendCondition <- ...future.makeSendCondition() [17:27:13.649] sendCondition(cond) [17:27:13.649] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.649] { [17:27:13.649] inherits <- base::inherits [17:27:13.649] invokeRestart <- base::invokeRestart [17:27:13.649] is.null <- base::is.null [17:27:13.649] muffled <- FALSE [17:27:13.649] if (inherits(cond, "message")) { [17:27:13.649] muffled <- grepl(pattern, "muffleMessage") [17:27:13.649] if (muffled) [17:27:13.649] invokeRestart("muffleMessage") [17:27:13.649] } [17:27:13.649] else if (inherits(cond, "warning")) { [17:27:13.649] muffled <- grepl(pattern, "muffleWarning") [17:27:13.649] if (muffled) [17:27:13.649] invokeRestart("muffleWarning") [17:27:13.649] } [17:27:13.649] else if (inherits(cond, "condition")) { [17:27:13.649] if (!is.null(pattern)) { [17:27:13.649] computeRestarts <- base::computeRestarts [17:27:13.649] grepl <- base::grepl [17:27:13.649] restarts <- computeRestarts(cond) [17:27:13.649] for (restart in restarts) { [17:27:13.649] name <- restart$name [17:27:13.649] if (is.null(name)) [17:27:13.649] next [17:27:13.649] if (!grepl(pattern, name)) [17:27:13.649] next [17:27:13.649] invokeRestart(restart) [17:27:13.649] muffled <- TRUE [17:27:13.649] break [17:27:13.649] } [17:27:13.649] } [17:27:13.649] } [17:27:13.649] invisible(muffled) [17:27:13.649] } [17:27:13.649] muffleCondition(cond) [17:27:13.649] }) [17:27:13.649] })) [17:27:13.649] future::FutureResult(value = ...future.value$value, [17:27:13.649] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.649] ...future.rng), globalenv = if (FALSE) [17:27:13.649] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:13.649] ...future.globalenv.names)) [17:27:13.649] else NULL, started = ...future.startTime, version = "1.8") [17:27:13.649] }, condition = base::local({ [17:27:13.649] c <- base::c [17:27:13.649] inherits <- base::inherits [17:27:13.649] invokeRestart <- base::invokeRestart [17:27:13.649] length <- base::length [17:27:13.649] list <- base::list [17:27:13.649] seq.int <- base::seq.int [17:27:13.649] signalCondition <- base::signalCondition [17:27:13.649] sys.calls <- base::sys.calls [17:27:13.649] `[[` <- base::`[[` [17:27:13.649] `+` <- base::`+` [17:27:13.649] `<<-` <- base::`<<-` [17:27:13.649] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:13.649] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:13.649] 3L)] [17:27:13.649] } [17:27:13.649] function(cond) { [17:27:13.649] is_error <- inherits(cond, "error") [17:27:13.649] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:13.649] NULL) [17:27:13.649] if (is_error) { [17:27:13.649] sessionInformation <- function() { [17:27:13.649] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:13.649] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:13.649] search = base::search(), system = base::Sys.info()) [17:27:13.649] } [17:27:13.649] ...future.conditions[[length(...future.conditions) + [17:27:13.649] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:13.649] cond$call), session = sessionInformation(), [17:27:13.649] timestamp = base::Sys.time(), signaled = 0L) [17:27:13.649] signalCondition(cond) [17:27:13.649] } [17:27:13.649] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:13.649] "immediateCondition"))) { [17:27:13.649] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:13.649] ...future.conditions[[length(...future.conditions) + [17:27:13.649] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:13.649] if (TRUE && !signal) { [17:27:13.649] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.649] { [17:27:13.649] inherits <- base::inherits [17:27:13.649] invokeRestart <- base::invokeRestart [17:27:13.649] is.null <- base::is.null [17:27:13.649] muffled <- FALSE [17:27:13.649] if (inherits(cond, "message")) { [17:27:13.649] muffled <- grepl(pattern, "muffleMessage") [17:27:13.649] if (muffled) [17:27:13.649] invokeRestart("muffleMessage") [17:27:13.649] } [17:27:13.649] else if (inherits(cond, "warning")) { [17:27:13.649] muffled <- grepl(pattern, "muffleWarning") [17:27:13.649] if (muffled) [17:27:13.649] invokeRestart("muffleWarning") [17:27:13.649] } [17:27:13.649] else if (inherits(cond, "condition")) { [17:27:13.649] if (!is.null(pattern)) { [17:27:13.649] computeRestarts <- base::computeRestarts [17:27:13.649] grepl <- base::grepl [17:27:13.649] restarts <- computeRestarts(cond) [17:27:13.649] for (restart in restarts) { [17:27:13.649] name <- restart$name [17:27:13.649] if (is.null(name)) [17:27:13.649] next [17:27:13.649] if (!grepl(pattern, name)) [17:27:13.649] next [17:27:13.649] invokeRestart(restart) [17:27:13.649] muffled <- TRUE [17:27:13.649] break [17:27:13.649] } [17:27:13.649] } [17:27:13.649] } [17:27:13.649] invisible(muffled) [17:27:13.649] } [17:27:13.649] muffleCondition(cond, pattern = "^muffle") [17:27:13.649] } [17:27:13.649] } [17:27:13.649] else { [17:27:13.649] if (TRUE) { [17:27:13.649] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.649] { [17:27:13.649] inherits <- base::inherits [17:27:13.649] invokeRestart <- base::invokeRestart [17:27:13.649] is.null <- base::is.null [17:27:13.649] muffled <- FALSE [17:27:13.649] if (inherits(cond, "message")) { [17:27:13.649] muffled <- grepl(pattern, "muffleMessage") [17:27:13.649] if (muffled) [17:27:13.649] invokeRestart("muffleMessage") [17:27:13.649] } [17:27:13.649] else if (inherits(cond, "warning")) { [17:27:13.649] muffled <- grepl(pattern, "muffleWarning") [17:27:13.649] if (muffled) [17:27:13.649] invokeRestart("muffleWarning") [17:27:13.649] } [17:27:13.649] else if (inherits(cond, "condition")) { [17:27:13.649] if (!is.null(pattern)) { [17:27:13.649] computeRestarts <- base::computeRestarts [17:27:13.649] grepl <- base::grepl [17:27:13.649] restarts <- computeRestarts(cond) [17:27:13.649] for (restart in restarts) { [17:27:13.649] name <- restart$name [17:27:13.649] if (is.null(name)) [17:27:13.649] next [17:27:13.649] if (!grepl(pattern, name)) [17:27:13.649] next [17:27:13.649] invokeRestart(restart) [17:27:13.649] muffled <- TRUE [17:27:13.649] break [17:27:13.649] } [17:27:13.649] } [17:27:13.649] } [17:27:13.649] invisible(muffled) [17:27:13.649] } [17:27:13.649] muffleCondition(cond, pattern = "^muffle") [17:27:13.649] } [17:27:13.649] } [17:27:13.649] } [17:27:13.649] })) [17:27:13.649] }, error = function(ex) { [17:27:13.649] base::structure(base::list(value = NULL, visible = NULL, [17:27:13.649] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.649] ...future.rng), started = ...future.startTime, [17:27:13.649] finished = Sys.time(), session_uuid = NA_character_, [17:27:13.649] version = "1.8"), class = "FutureResult") [17:27:13.649] }, finally = { [17:27:13.649] if (!identical(...future.workdir, getwd())) [17:27:13.649] setwd(...future.workdir) [17:27:13.649] { [17:27:13.649] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:13.649] ...future.oldOptions$nwarnings <- NULL [17:27:13.649] } [17:27:13.649] base::options(...future.oldOptions) [17:27:13.649] if (.Platform$OS.type == "windows") { [17:27:13.649] old_names <- names(...future.oldEnvVars) [17:27:13.649] envs <- base::Sys.getenv() [17:27:13.649] names <- names(envs) [17:27:13.649] common <- intersect(names, old_names) [17:27:13.649] added <- setdiff(names, old_names) [17:27:13.649] removed <- setdiff(old_names, names) [17:27:13.649] changed <- common[...future.oldEnvVars[common] != [17:27:13.649] envs[common]] [17:27:13.649] NAMES <- toupper(changed) [17:27:13.649] args <- list() [17:27:13.649] for (kk in seq_along(NAMES)) { [17:27:13.649] name <- changed[[kk]] [17:27:13.649] NAME <- NAMES[[kk]] [17:27:13.649] if (name != NAME && is.element(NAME, old_names)) [17:27:13.649] next [17:27:13.649] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.649] } [17:27:13.649] NAMES <- toupper(added) [17:27:13.649] for (kk in seq_along(NAMES)) { [17:27:13.649] name <- added[[kk]] [17:27:13.649] NAME <- NAMES[[kk]] [17:27:13.649] if (name != NAME && is.element(NAME, old_names)) [17:27:13.649] next [17:27:13.649] args[[name]] <- "" [17:27:13.649] } [17:27:13.649] NAMES <- toupper(removed) [17:27:13.649] for (kk in seq_along(NAMES)) { [17:27:13.649] name <- removed[[kk]] [17:27:13.649] NAME <- NAMES[[kk]] [17:27:13.649] if (name != NAME && is.element(NAME, old_names)) [17:27:13.649] next [17:27:13.649] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.649] } [17:27:13.649] if (length(args) > 0) [17:27:13.649] base::do.call(base::Sys.setenv, args = args) [17:27:13.649] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:13.649] } [17:27:13.649] else { [17:27:13.649] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:13.649] } [17:27:13.649] { [17:27:13.649] if (base::length(...future.futureOptionsAdded) > [17:27:13.649] 0L) { [17:27:13.649] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:13.649] base::names(opts) <- ...future.futureOptionsAdded [17:27:13.649] base::options(opts) [17:27:13.649] } [17:27:13.649] { [17:27:13.649] { [17:27:13.649] base::options(mc.cores = ...future.mc.cores.old) [17:27:13.649] NULL [17:27:13.649] } [17:27:13.649] options(future.plan = NULL) [17:27:13.649] if (is.na(NA_character_)) [17:27:13.649] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.649] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:13.649] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:13.649] .init = FALSE) [17:27:13.649] } [17:27:13.649] } [17:27:13.649] } [17:27:13.649] }) [17:27:13.649] if (TRUE) { [17:27:13.649] base::sink(type = "output", split = FALSE) [17:27:13.649] if (TRUE) { [17:27:13.649] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:13.649] } [17:27:13.649] else { [17:27:13.649] ...future.result["stdout"] <- base::list(NULL) [17:27:13.649] } [17:27:13.649] base::close(...future.stdout) [17:27:13.649] ...future.stdout <- NULL [17:27:13.649] } [17:27:13.649] ...future.result$conditions <- ...future.conditions [17:27:13.649] ...future.result$finished <- base::Sys.time() [17:27:13.649] ...future.result [17:27:13.649] } [17:27:13.654] MultisessionFuture started [17:27:13.654] - Launch lazy future ... done [17:27:13.654] run() for 'MultisessionFuture' ... done > ## FIXME: print() calls resolved(), which triggers a result() collection, > ## and future 'f1' to become resolved. This means future 'f2' below > ## may launch on the same worker as 'f1'. So, don't resolve(). > # print(f1) > cat(sprintf("Future #1 session: %d\n", f1$node)) Future #1 session: 1 > stopifnot(identical(f1$owner, session_uuid)) > print(usedNodes(f1)) used total 1 2 > > message("Creating future #2:") Creating future #2: > f2 <- future({ value(f1) }) [17:27:13.655] getGlobalsAndPackages() ... [17:27:13.655] Searching for globals... [17:27:13.656] - globals found: [3] '{', 'value', 'f1' [17:27:13.656] Searching for globals ... DONE [17:27:13.656] Resolving globals: FALSE [17:27:13.659] The total size of the 1 globals is 1.58 MiB (1657496 bytes) [17:27:13.660] The total size of the 1 globals exported for future expression ('{; value(f1); }') is 1.58 MiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'f1' (1.58 MiB of class 'environment') [17:27:13.660] - globals: [1] 'f1' [17:27:13.660] - packages: [1] 'future' [17:27:13.660] getGlobalsAndPackages() ... DONE [17:27:13.660] run() for 'Future' ... [17:27:13.661] - state: 'created' [17:27:13.661] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:13.672] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:13.672] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:13.673] - Field: 'node' [17:27:13.673] - Field: 'label' [17:27:13.673] - Field: 'local' [17:27:13.673] - Field: 'owner' [17:27:13.673] - Field: 'envir' [17:27:13.674] - Field: 'workers' [17:27:13.674] - Field: 'packages' [17:27:13.674] - Field: 'gc' [17:27:13.674] - Field: 'conditions' [17:27:13.674] - Field: 'persistent' [17:27:13.674] - Field: 'expr' [17:27:13.675] - Field: 'uuid' [17:27:13.675] - Field: 'seed' [17:27:13.675] - Field: 'version' [17:27:13.675] - Field: 'result' [17:27:13.675] - Field: 'asynchronous' [17:27:13.675] - Field: 'calls' [17:27:13.676] - Field: 'globals' [17:27:13.676] - Field: 'stdout' [17:27:13.676] - Field: 'earlySignal' [17:27:13.676] - Field: 'lazy' [17:27:13.676] - Field: 'state' [17:27:13.677] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:13.677] - Launch lazy future ... [17:27:13.677] Packages needed by the future expression (n = 1): 'future' [17:27:13.677] Packages needed by future strategies (n = 0): [17:27:13.678] { [17:27:13.678] { [17:27:13.678] { [17:27:13.678] ...future.startTime <- base::Sys.time() [17:27:13.678] { [17:27:13.678] { [17:27:13.678] { [17:27:13.678] { [17:27:13.678] { [17:27:13.678] base::local({ [17:27:13.678] has_future <- base::requireNamespace("future", [17:27:13.678] quietly = TRUE) [17:27:13.678] if (has_future) { [17:27:13.678] ns <- base::getNamespace("future") [17:27:13.678] version <- ns[[".package"]][["version"]] [17:27:13.678] if (is.null(version)) [17:27:13.678] version <- utils::packageVersion("future") [17:27:13.678] } [17:27:13.678] else { [17:27:13.678] version <- NULL [17:27:13.678] } [17:27:13.678] if (!has_future || version < "1.8.0") { [17:27:13.678] info <- base::c(r_version = base::gsub("R version ", [17:27:13.678] "", base::R.version$version.string), [17:27:13.678] platform = base::sprintf("%s (%s-bit)", [17:27:13.678] base::R.version$platform, 8 * [17:27:13.678] base::.Machine$sizeof.pointer), [17:27:13.678] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:13.678] "release", "version")], collapse = " "), [17:27:13.678] hostname = base::Sys.info()[["nodename"]]) [17:27:13.678] info <- base::sprintf("%s: %s", base::names(info), [17:27:13.678] info) [17:27:13.678] info <- base::paste(info, collapse = "; ") [17:27:13.678] if (!has_future) { [17:27:13.678] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:13.678] info) [17:27:13.678] } [17:27:13.678] else { [17:27:13.678] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:13.678] info, version) [17:27:13.678] } [17:27:13.678] base::stop(msg) [17:27:13.678] } [17:27:13.678] }) [17:27:13.678] } [17:27:13.678] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:13.678] base::options(mc.cores = 1L) [17:27:13.678] } [17:27:13.678] base::local({ [17:27:13.678] for (pkg in "future") { [17:27:13.678] base::loadNamespace(pkg) [17:27:13.678] base::library(pkg, character.only = TRUE) [17:27:13.678] } [17:27:13.678] }) [17:27:13.678] } [17:27:13.678] ...future.strategy.old <- future::plan("list") [17:27:13.678] options(future.plan = NULL) [17:27:13.678] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.678] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:13.678] } [17:27:13.678] ...future.workdir <- getwd() [17:27:13.678] } [17:27:13.678] ...future.oldOptions <- base::as.list(base::.Options) [17:27:13.678] ...future.oldEnvVars <- base::Sys.getenv() [17:27:13.678] } [17:27:13.678] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:13.678] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:13.678] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:13.678] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:13.678] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:13.678] future.stdout.windows.reencode = NULL, width = 80L) [17:27:13.678] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:13.678] base::names(...future.oldOptions)) [17:27:13.678] } [17:27:13.678] if (FALSE) { [17:27:13.678] } [17:27:13.678] else { [17:27:13.678] if (TRUE) { [17:27:13.678] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:13.678] open = "w") [17:27:13.678] } [17:27:13.678] else { [17:27:13.678] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:13.678] windows = "NUL", "/dev/null"), open = "w") [17:27:13.678] } [17:27:13.678] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:13.678] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:13.678] base::sink(type = "output", split = FALSE) [17:27:13.678] base::close(...future.stdout) [17:27:13.678] }, add = TRUE) [17:27:13.678] } [17:27:13.678] ...future.frame <- base::sys.nframe() [17:27:13.678] ...future.conditions <- base::list() [17:27:13.678] ...future.rng <- base::globalenv()$.Random.seed [17:27:13.678] if (FALSE) { [17:27:13.678] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:13.678] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:13.678] } [17:27:13.678] ...future.result <- base::tryCatch({ [17:27:13.678] base::withCallingHandlers({ [17:27:13.678] ...future.value <- base::withVisible(base::local({ [17:27:13.678] ...future.makeSendCondition <- base::local({ [17:27:13.678] sendCondition <- NULL [17:27:13.678] function(frame = 1L) { [17:27:13.678] if (is.function(sendCondition)) [17:27:13.678] return(sendCondition) [17:27:13.678] ns <- getNamespace("parallel") [17:27:13.678] if (exists("sendData", mode = "function", [17:27:13.678] envir = ns)) { [17:27:13.678] parallel_sendData <- get("sendData", mode = "function", [17:27:13.678] envir = ns) [17:27:13.678] envir <- sys.frame(frame) [17:27:13.678] master <- NULL [17:27:13.678] while (!identical(envir, .GlobalEnv) && [17:27:13.678] !identical(envir, emptyenv())) { [17:27:13.678] if (exists("master", mode = "list", envir = envir, [17:27:13.678] inherits = FALSE)) { [17:27:13.678] master <- get("master", mode = "list", [17:27:13.678] envir = envir, inherits = FALSE) [17:27:13.678] if (inherits(master, c("SOCKnode", [17:27:13.678] "SOCK0node"))) { [17:27:13.678] sendCondition <<- function(cond) { [17:27:13.678] data <- list(type = "VALUE", value = cond, [17:27:13.678] success = TRUE) [17:27:13.678] parallel_sendData(master, data) [17:27:13.678] } [17:27:13.678] return(sendCondition) [17:27:13.678] } [17:27:13.678] } [17:27:13.678] frame <- frame + 1L [17:27:13.678] envir <- sys.frame(frame) [17:27:13.678] } [17:27:13.678] } [17:27:13.678] sendCondition <<- function(cond) NULL [17:27:13.678] } [17:27:13.678] }) [17:27:13.678] withCallingHandlers({ [17:27:13.678] { [17:27:13.678] value(f1) [17:27:13.678] } [17:27:13.678] }, immediateCondition = function(cond) { [17:27:13.678] sendCondition <- ...future.makeSendCondition() [17:27:13.678] sendCondition(cond) [17:27:13.678] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.678] { [17:27:13.678] inherits <- base::inherits [17:27:13.678] invokeRestart <- base::invokeRestart [17:27:13.678] is.null <- base::is.null [17:27:13.678] muffled <- FALSE [17:27:13.678] if (inherits(cond, "message")) { [17:27:13.678] muffled <- grepl(pattern, "muffleMessage") [17:27:13.678] if (muffled) [17:27:13.678] invokeRestart("muffleMessage") [17:27:13.678] } [17:27:13.678] else if (inherits(cond, "warning")) { [17:27:13.678] muffled <- grepl(pattern, "muffleWarning") [17:27:13.678] if (muffled) [17:27:13.678] invokeRestart("muffleWarning") [17:27:13.678] } [17:27:13.678] else if (inherits(cond, "condition")) { [17:27:13.678] if (!is.null(pattern)) { [17:27:13.678] computeRestarts <- base::computeRestarts [17:27:13.678] grepl <- base::grepl [17:27:13.678] restarts <- computeRestarts(cond) [17:27:13.678] for (restart in restarts) { [17:27:13.678] name <- restart$name [17:27:13.678] if (is.null(name)) [17:27:13.678] next [17:27:13.678] if (!grepl(pattern, name)) [17:27:13.678] next [17:27:13.678] invokeRestart(restart) [17:27:13.678] muffled <- TRUE [17:27:13.678] break [17:27:13.678] } [17:27:13.678] } [17:27:13.678] } [17:27:13.678] invisible(muffled) [17:27:13.678] } [17:27:13.678] muffleCondition(cond) [17:27:13.678] }) [17:27:13.678] })) [17:27:13.678] future::FutureResult(value = ...future.value$value, [17:27:13.678] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.678] ...future.rng), globalenv = if (FALSE) [17:27:13.678] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:13.678] ...future.globalenv.names)) [17:27:13.678] else NULL, started = ...future.startTime, version = "1.8") [17:27:13.678] }, condition = base::local({ [17:27:13.678] c <- base::c [17:27:13.678] inherits <- base::inherits [17:27:13.678] invokeRestart <- base::invokeRestart [17:27:13.678] length <- base::length [17:27:13.678] list <- base::list [17:27:13.678] seq.int <- base::seq.int [17:27:13.678] signalCondition <- base::signalCondition [17:27:13.678] sys.calls <- base::sys.calls [17:27:13.678] `[[` <- base::`[[` [17:27:13.678] `+` <- base::`+` [17:27:13.678] `<<-` <- base::`<<-` [17:27:13.678] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:13.678] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:13.678] 3L)] [17:27:13.678] } [17:27:13.678] function(cond) { [17:27:13.678] is_error <- inherits(cond, "error") [17:27:13.678] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:13.678] NULL) [17:27:13.678] if (is_error) { [17:27:13.678] sessionInformation <- function() { [17:27:13.678] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:13.678] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:13.678] search = base::search(), system = base::Sys.info()) [17:27:13.678] } [17:27:13.678] ...future.conditions[[length(...future.conditions) + [17:27:13.678] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:13.678] cond$call), session = sessionInformation(), [17:27:13.678] timestamp = base::Sys.time(), signaled = 0L) [17:27:13.678] signalCondition(cond) [17:27:13.678] } [17:27:13.678] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:13.678] "immediateCondition"))) { [17:27:13.678] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:13.678] ...future.conditions[[length(...future.conditions) + [17:27:13.678] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:13.678] if (TRUE && !signal) { [17:27:13.678] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.678] { [17:27:13.678] inherits <- base::inherits [17:27:13.678] invokeRestart <- base::invokeRestart [17:27:13.678] is.null <- base::is.null [17:27:13.678] muffled <- FALSE [17:27:13.678] if (inherits(cond, "message")) { [17:27:13.678] muffled <- grepl(pattern, "muffleMessage") [17:27:13.678] if (muffled) [17:27:13.678] invokeRestart("muffleMessage") [17:27:13.678] } [17:27:13.678] else if (inherits(cond, "warning")) { [17:27:13.678] muffled <- grepl(pattern, "muffleWarning") [17:27:13.678] if (muffled) [17:27:13.678] invokeRestart("muffleWarning") [17:27:13.678] } [17:27:13.678] else if (inherits(cond, "condition")) { [17:27:13.678] if (!is.null(pattern)) { [17:27:13.678] computeRestarts <- base::computeRestarts [17:27:13.678] grepl <- base::grepl [17:27:13.678] restarts <- computeRestarts(cond) [17:27:13.678] for (restart in restarts) { [17:27:13.678] name <- restart$name [17:27:13.678] if (is.null(name)) [17:27:13.678] next [17:27:13.678] if (!grepl(pattern, name)) [17:27:13.678] next [17:27:13.678] invokeRestart(restart) [17:27:13.678] muffled <- TRUE [17:27:13.678] break [17:27:13.678] } [17:27:13.678] } [17:27:13.678] } [17:27:13.678] invisible(muffled) [17:27:13.678] } [17:27:13.678] muffleCondition(cond, pattern = "^muffle") [17:27:13.678] } [17:27:13.678] } [17:27:13.678] else { [17:27:13.678] if (TRUE) { [17:27:13.678] muffleCondition <- function (cond, pattern = "^muffle") [17:27:13.678] { [17:27:13.678] inherits <- base::inherits [17:27:13.678] invokeRestart <- base::invokeRestart [17:27:13.678] is.null <- base::is.null [17:27:13.678] muffled <- FALSE [17:27:13.678] if (inherits(cond, "message")) { [17:27:13.678] muffled <- grepl(pattern, "muffleMessage") [17:27:13.678] if (muffled) [17:27:13.678] invokeRestart("muffleMessage") [17:27:13.678] } [17:27:13.678] else if (inherits(cond, "warning")) { [17:27:13.678] muffled <- grepl(pattern, "muffleWarning") [17:27:13.678] if (muffled) [17:27:13.678] invokeRestart("muffleWarning") [17:27:13.678] } [17:27:13.678] else if (inherits(cond, "condition")) { [17:27:13.678] if (!is.null(pattern)) { [17:27:13.678] computeRestarts <- base::computeRestarts [17:27:13.678] grepl <- base::grepl [17:27:13.678] restarts <- computeRestarts(cond) [17:27:13.678] for (restart in restarts) { [17:27:13.678] name <- restart$name [17:27:13.678] if (is.null(name)) [17:27:13.678] next [17:27:13.678] if (!grepl(pattern, name)) [17:27:13.678] next [17:27:13.678] invokeRestart(restart) [17:27:13.678] muffled <- TRUE [17:27:13.678] break [17:27:13.678] } [17:27:13.678] } [17:27:13.678] } [17:27:13.678] invisible(muffled) [17:27:13.678] } [17:27:13.678] muffleCondition(cond, pattern = "^muffle") [17:27:13.678] } [17:27:13.678] } [17:27:13.678] } [17:27:13.678] })) [17:27:13.678] }, error = function(ex) { [17:27:13.678] base::structure(base::list(value = NULL, visible = NULL, [17:27:13.678] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:13.678] ...future.rng), started = ...future.startTime, [17:27:13.678] finished = Sys.time(), session_uuid = NA_character_, [17:27:13.678] version = "1.8"), class = "FutureResult") [17:27:13.678] }, finally = { [17:27:13.678] if (!identical(...future.workdir, getwd())) [17:27:13.678] setwd(...future.workdir) [17:27:13.678] { [17:27:13.678] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:13.678] ...future.oldOptions$nwarnings <- NULL [17:27:13.678] } [17:27:13.678] base::options(...future.oldOptions) [17:27:13.678] if (.Platform$OS.type == "windows") { [17:27:13.678] old_names <- names(...future.oldEnvVars) [17:27:13.678] envs <- base::Sys.getenv() [17:27:13.678] names <- names(envs) [17:27:13.678] common <- intersect(names, old_names) [17:27:13.678] added <- setdiff(names, old_names) [17:27:13.678] removed <- setdiff(old_names, names) [17:27:13.678] changed <- common[...future.oldEnvVars[common] != [17:27:13.678] envs[common]] [17:27:13.678] NAMES <- toupper(changed) [17:27:13.678] args <- list() [17:27:13.678] for (kk in seq_along(NAMES)) { [17:27:13.678] name <- changed[[kk]] [17:27:13.678] NAME <- NAMES[[kk]] [17:27:13.678] if (name != NAME && is.element(NAME, old_names)) [17:27:13.678] next [17:27:13.678] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.678] } [17:27:13.678] NAMES <- toupper(added) [17:27:13.678] for (kk in seq_along(NAMES)) { [17:27:13.678] name <- added[[kk]] [17:27:13.678] NAME <- NAMES[[kk]] [17:27:13.678] if (name != NAME && is.element(NAME, old_names)) [17:27:13.678] next [17:27:13.678] args[[name]] <- "" [17:27:13.678] } [17:27:13.678] NAMES <- toupper(removed) [17:27:13.678] for (kk in seq_along(NAMES)) { [17:27:13.678] name <- removed[[kk]] [17:27:13.678] NAME <- NAMES[[kk]] [17:27:13.678] if (name != NAME && is.element(NAME, old_names)) [17:27:13.678] next [17:27:13.678] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:13.678] } [17:27:13.678] if (length(args) > 0) [17:27:13.678] base::do.call(base::Sys.setenv, args = args) [17:27:13.678] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:13.678] } [17:27:13.678] else { [17:27:13.678] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:13.678] } [17:27:13.678] { [17:27:13.678] if (base::length(...future.futureOptionsAdded) > [17:27:13.678] 0L) { [17:27:13.678] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:13.678] base::names(opts) <- ...future.futureOptionsAdded [17:27:13.678] base::options(opts) [17:27:13.678] } [17:27:13.678] { [17:27:13.678] { [17:27:13.678] base::options(mc.cores = ...future.mc.cores.old) [17:27:13.678] NULL [17:27:13.678] } [17:27:13.678] options(future.plan = NULL) [17:27:13.678] if (is.na(NA_character_)) [17:27:13.678] Sys.unsetenv("R_FUTURE_PLAN") [17:27:13.678] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:13.678] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:13.678] .init = FALSE) [17:27:13.678] } [17:27:13.678] } [17:27:13.678] } [17:27:13.678] }) [17:27:13.678] if (TRUE) { [17:27:13.678] base::sink(type = "output", split = FALSE) [17:27:13.678] if (TRUE) { [17:27:13.678] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:13.678] } [17:27:13.678] else { [17:27:13.678] ...future.result["stdout"] <- base::list(NULL) [17:27:13.678] } [17:27:13.678] base::close(...future.stdout) [17:27:13.678] ...future.stdout <- NULL [17:27:13.678] } [17:27:13.678] ...future.result$conditions <- ...future.conditions [17:27:13.678] ...future.result$finished <- base::Sys.time() [17:27:13.678] ...future.result [17:27:13.678] } [17:27:13.769] Exporting 1 global objects (1.58 MiB) to cluster node #2 ... [17:27:13.772] Exporting 'f1' (1.58 MiB) to cluster node #2 ... [17:27:13.783] Exporting 'f1' (1.58 MiB) to cluster node #2 ... DONE [17:27:13.783] Exporting 1 global objects (1.58 MiB) to cluster node #2 ... DONE [17:27:13.784] MultisessionFuture started [17:27:13.784] - Launch lazy future ... done [17:27:13.784] run() for 'MultisessionFuture' ... done > print(f2) MultisessionFuture: Label: '' Expression: { value(f1) } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: 1 objects totaling 1.58 MiB (MultisessionFuture 'f1' of 1.58 MiB) Packages: 1 packages ('future') L'Ecuyer-CMRG RNG seed: (seed = FALSE) [17:27:13.842] receiveMessageFromWorker() for ClusterFuture ... [17:27:13.843] - Validating connection of MultisessionFuture [17:27:13.855] - received message: FutureResult [17:27:13.856] - Received FutureResult [17:27:13.856] - Erased future from FutureRegistry [17:27:13.856] result() for ClusterFuture ... [17:27:13.856] - result already collected: FutureResult [17:27:13.856] result() for ClusterFuture ... done [17:27:13.857] signalConditions() ... [17:27:13.857] - include = 'immediateCondition' [17:27:13.857] - exclude = [17:27:13.857] - resignal = FALSE [17:27:13.857] - Number of conditions: 1 [17:27:13.857] signalConditions() ... done [17:27:13.858] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: 4477bd64-8237-d939-32d3-b7829e37759b Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' > cat(sprintf("Future #2 session: %d\n", f2$node)) Future #2 session: 2 > stopifnot(identical(f2$owner, session_uuid)) > print(usedNodes(f2)) used total 1 2 > > message("Getting value of future #2:") Getting value of future #2: > res <- tryCatch(value(f2), error = identity) [17:27:13.862] result() for ClusterFuture ... [17:27:13.862] - result already collected: FutureResult [17:27:13.862] result() for ClusterFuture ... done [17:27:13.862] result() for ClusterFuture ... [17:27:13.862] - result already collected: FutureResult [17:27:13.862] result() for ClusterFuture ... done [17:27:13.863] signalConditions() ... [17:27:13.863] - include = 'immediateCondition' [17:27:13.863] - exclude = [17:27:13.863] - resignal = FALSE [17:27:13.863] - Number of conditions: 1 [17:27:13.863] signalConditions() ... done [17:27:13.864] Future state: 'finished' [17:27:13.864] result() for ClusterFuture ... [17:27:13.864] - result already collected: FutureResult [17:27:13.864] result() for ClusterFuture ... done [17:27:13.864] signalConditions() ... [17:27:13.865] - include = 'condition' [17:27:13.865] - exclude = 'immediateCondition' [17:27:13.865] - resignal = TRUE [17:27:13.865] - Number of conditions: 1 [17:27:13.865] - Condition #1: 'FutureError', 'error', 'FutureCondition', 'condition' [17:27:13.865] signalConditions() ... done > print(res) Future UUID: 21d81508-a524-6dd3-99f9-b0cf1eed99ee DEBUG: BEGIN TROUBLESHOOTING HELP Future involved: MultisessionFuture: Label: '' Expression: { 42L } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: FALSE Value: Conditions captured: Early signaling: FALSE Owner process: 4477bd64-8237-d939-32d3-b7829e37759b Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' DEBUG: END TROUBLESHOOTING HELP > stopifnot(inherits(res, "error")) > > v1 <- value(f1) [17:27:13.867] result() for ClusterFuture ... [17:27:13.867] receiveMessageFromWorker() for ClusterFuture ... [17:27:13.867] - Validating connection of MultisessionFuture [17:27:13.867] - received message: FutureResult [17:27:13.867] - Received FutureResult [17:27:13.868] - Erased future from FutureRegistry [17:27:13.868] result() for ClusterFuture ... [17:27:13.868] - result already collected: FutureResult [17:27:13.868] result() for ClusterFuture ... done [17:27:13.868] receiveMessageFromWorker() for ClusterFuture ... done [17:27:13.868] result() for ClusterFuture ... done [17:27:13.869] result() for ClusterFuture ... [17:27:13.869] - result already collected: FutureResult [17:27:13.869] result() for ClusterFuture ... done > print(v1) [1] 42 > stopifnot(v1 == 42L) > > message("- Trying with invalid ownership ... DONE") - Trying with invalid ownership ... DONE > > message("*** future() - invalid ownership ... DONE") *** future() - invalid ownership ... DONE > > source("incl/end.R") [17:27:13.870] plan(): Setting new future strategy stack: [17:27:13.870] List of future strategies: [17:27:13.870] 1. FutureStrategy: [17:27:13.870] - args: function (..., envir = parent.frame(), workers = "") [17:27:13.870] - tweaked: FALSE [17:27:13.870] - call: future::plan(oplan) [17:27:13.871] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=204] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', 'RTOOLS44_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS44_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 0.65 0.06 1.68