R Under development (unstable) (2024-07-28 r86931 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:28:19.183] plan(): Setting new future strategy stack: [17:28:19.185] List of future strategies: [17:28:19.185] 1. sequential: [17:28:19.185] - args: function (..., envir = parent.frame(), workers = "") [17:28:19.185] - tweaked: FALSE [17:28:19.185] - call: future::plan("sequential") [17:28:19.211] 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:28:19.222] plan(): Setting new future strategy stack: [17:28:19.223] List of future strategies: [17:28:19.223] 1. multisession: [17:28:19.223] - args: function (..., workers = 2L, envir = parent.frame()) [17:28:19.223] - tweaked: TRUE [17:28:19.223] - call: plan(multisession, workers = 2L) [17:28:19.247] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:28:19.247] multisession: [17:28:19.247] - args: function (..., workers = 2L, envir = parent.frame()) [17:28:19.247] - tweaked: TRUE [17:28:19.247] - call: plan(multisession, workers = 2L) [17:28:19.249] getGlobalsAndPackages() ... [17:28:19.250] Not searching for globals [17:28:19.250] - globals: [0] [17:28:19.250] getGlobalsAndPackages() ... DONE [17:28:19.251] [local output] makeClusterPSOCK() ... [17:28:19.295] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:28:19.302] [local output] Base port: 35386 [17:28:19.302] [local output] Getting setup options for 2 cluster nodes ... [17:28:19.302] [local output] - Node #1 of 2 ... [17:28:19.303] [local output] localMachine=TRUE => revtunnel=FALSE [17:28:19.305] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpi49ebE/worker.rank=1.parallelly.parent=69180.10e3c60d24d02.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/Rtmpi49ebE/worker.rank=1.parallelly.parent=69180.10e3c60d24d02.pid\")"' [17:28:19.862] - Possible to infer worker's PID: TRUE [17:28:19.863] [local output] Rscript port: 35386 [17:28:19.864] [local output] - Node #2 of 2 ... [17:28:19.865] [local output] localMachine=TRUE => revtunnel=FALSE [17:28:19.867] [local output] Rscript port: 35386 [17:28:19.868] [local output] Getting setup options for 2 cluster nodes ... done [17:28:19.868] [local output] - Parallel setup requested for some PSOCK nodes [17:28:19.870] [local output] Setting up PSOCK nodes in parallel [17:28:19.870] List of 36 [17:28:19.870] $ worker : chr "localhost" [17:28:19.870] ..- attr(*, "localhost")= logi TRUE [17:28:19.870] $ master : chr "localhost" [17:28:19.870] $ port : int 35386 [17:28:19.870] $ connectTimeout : num 120 [17:28:19.870] $ timeout : num 120 [17:28:19.870] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:28:19.870] $ homogeneous : logi TRUE [17:28:19.870] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=invalid-owner.R:69180:CRANWIN3:C"| __truncated__ [17:28:19.870] $ rscript_envs : NULL [17:28:19.870] $ rscript_libs : chr [1:2] "D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda" "D:/RCompile/recent/R/library" [17:28:19.870] $ rscript_startup : NULL [17:28:19.870] $ rscript_sh : chr [1:2] "cmd" "cmd" [17:28:19.870] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:28:19.870] $ methods : logi TRUE [17:28:19.870] $ socketOptions : chr "no-delay" [17:28:19.870] $ useXDR : logi FALSE [17:28:19.870] $ outfile : chr "/dev/null" [17:28:19.870] $ renice : int NA [17:28:19.870] $ rshcmd : NULL [17:28:19.870] $ user : chr(0) [17:28:19.870] $ revtunnel : logi FALSE [17:28:19.870] $ rshlogfile : NULL [17:28:19.870] $ rshopts : chr(0) [17:28:19.870] $ rank : int 1 [17:28:19.870] $ manual : logi FALSE [17:28:19.870] $ dryrun : logi FALSE [17:28:19.870] $ quiet : logi FALSE [17:28:19.870] $ setup_strategy : chr "parallel" [17:28:19.870] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:28:19.870] $ pidfile : chr "D:/temp/Rtmpi49ebE/worker.rank=1.parallelly.parent=69180.10e3c60d24d02.pid" [17:28:19.870] $ rshcmd_label : NULL [17:28:19.870] $ rsh_call : NULL [17:28:19.870] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:28:19.870] $ localMachine : logi TRUE [17:28:19.870] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:28:19.870] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:28:19.870] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:28:19.870] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:28:19.870] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:28:19.870] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [17:28:19.870] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [17:28:19.870] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:28:19.870] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:28:19.870] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:28:19.870] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:28:19.870] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:28:19.870] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:28:19.870] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:28:19.870] $ arguments :List of 28 [17:28:19.870] ..$ worker : chr "localhost" [17:28:19.870] ..$ master : NULL [17:28:19.870] ..$ port : int 35386 [17:28:19.870] ..$ connectTimeout : num 120 [17:28:19.870] ..$ timeout : num 120 [17:28:19.870] ..$ rscript : NULL [17:28:19.870] ..$ homogeneous : NULL [17:28:19.870] ..$ rscript_args : NULL [17:28:19.870] ..$ rscript_envs : NULL [17:28:19.870] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda" "D:/RCompile/recent/R/library" [17:28:19.870] ..$ rscript_startup : NULL [17:28:19.870] ..$ rscript_sh : chr "auto" [17:28:19.870] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:28:19.870] ..$ methods : logi TRUE [17:28:19.870] ..$ socketOptions : chr "no-delay" [17:28:19.870] ..$ useXDR : logi FALSE [17:28:19.870] ..$ outfile : chr "/dev/null" [17:28:19.870] ..$ renice : int NA [17:28:19.870] ..$ rshcmd : NULL [17:28:19.870] ..$ user : NULL [17:28:19.870] ..$ revtunnel : logi NA [17:28:19.870] ..$ rshlogfile : NULL [17:28:19.870] ..$ rshopts : NULL [17:28:19.870] ..$ rank : int 1 [17:28:19.870] ..$ manual : logi FALSE [17:28:19.870] ..$ dryrun : logi FALSE [17:28:19.870] ..$ quiet : logi FALSE [17:28:19.870] ..$ setup_strategy : chr "parallel" [17:28:19.870] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:28:19.909] [local output] System call to launch all workers: [17:28:19.909] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=invalid-owner.R:69180:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpi49ebE/worker.rank=1.parallelly.parent=69180.10e3c60d24d02.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=35386 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:28:19.909] [local output] Starting PSOCK main server [17:28:19.919] [local output] Workers launched [17:28:19.920] [local output] Waiting for workers to connect back [17:28:19.920] - [local output] 0 workers out of 2 ready [17:28:20.191] - [local output] 0 workers out of 2 ready [17:28:20.192] - [local output] 1 workers out of 2 ready [17:28:20.194] - [local output] 1 workers out of 2 ready [17:28:20.195] - [local output] 2 workers out of 2 ready [17:28:20.195] [local output] Launching of 2 workers completed [17:28:20.195] [local output] Number of nodes in cluster: 2 [17:28:20.196] [local output] Collecting session information from 2 workers [17:28:20.197] [local output] - Worker #1 of 2 [17:28:20.198] [local output] - Worker #2 of 2 [17:28:20.198] [local output] makeClusterPSOCK() ... done [17:28:20.213] Packages needed by the future expression (n = 0): [17:28:20.214] Packages needed by future strategies (n = 0): [17:28:20.215] { [17:28:20.215] { [17:28:20.215] { [17:28:20.215] ...future.startTime <- base::Sys.time() [17:28:20.215] { [17:28:20.215] { [17:28:20.215] { [17:28:20.215] { [17:28:20.215] base::local({ [17:28:20.215] has_future <- base::requireNamespace("future", [17:28:20.215] quietly = TRUE) [17:28:20.215] if (has_future) { [17:28:20.215] ns <- base::getNamespace("future") [17:28:20.215] version <- ns[[".package"]][["version"]] [17:28:20.215] if (is.null(version)) [17:28:20.215] version <- utils::packageVersion("future") [17:28:20.215] } [17:28:20.215] else { [17:28:20.215] version <- NULL [17:28:20.215] } [17:28:20.215] if (!has_future || version < "1.8.0") { [17:28:20.215] info <- base::c(r_version = base::gsub("R version ", [17:28:20.215] "", base::R.version$version.string), [17:28:20.215] platform = base::sprintf("%s (%s-bit)", [17:28:20.215] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:20.215] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:20.215] "release", "version")], collapse = " "), [17:28:20.215] hostname = base::Sys.info()[["nodename"]]) [17:28:20.215] info <- base::sprintf("%s: %s", base::names(info), [17:28:20.215] info) [17:28:20.215] info <- base::paste(info, collapse = "; ") [17:28:20.215] if (!has_future) { [17:28:20.215] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:20.215] info) [17:28:20.215] } [17:28:20.215] else { [17:28:20.215] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:20.215] info, version) [17:28:20.215] } [17:28:20.215] base::stop(msg) [17:28:20.215] } [17:28:20.215] }) [17:28:20.215] } [17:28:20.215] ...future.mc.cores.old <- base::getOption("mc.cores") [17:28:20.215] base::options(mc.cores = 1L) [17:28:20.215] } [17:28:20.215] ...future.strategy.old <- future::plan("list") [17:28:20.215] options(future.plan = NULL) [17:28:20.215] Sys.unsetenv("R_FUTURE_PLAN") [17:28:20.215] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:20.215] } [17:28:20.215] ...future.workdir <- getwd() [17:28:20.215] } [17:28:20.215] ...future.oldOptions <- base::as.list(base::.Options) [17:28:20.215] ...future.oldEnvVars <- base::Sys.getenv() [17:28:20.215] } [17:28:20.215] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:20.215] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:20.215] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:20.215] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:20.215] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:20.215] future.stdout.windows.reencode = NULL, width = 80L) [17:28:20.215] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:20.215] base::names(...future.oldOptions)) [17:28:20.215] } [17:28:20.215] if (FALSE) { [17:28:20.215] } [17:28:20.215] else { [17:28:20.215] if (TRUE) { [17:28:20.215] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:20.215] open = "w") [17:28:20.215] } [17:28:20.215] else { [17:28:20.215] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:20.215] windows = "NUL", "/dev/null"), open = "w") [17:28:20.215] } [17:28:20.215] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:20.215] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:20.215] base::sink(type = "output", split = FALSE) [17:28:20.215] base::close(...future.stdout) [17:28:20.215] }, add = TRUE) [17:28:20.215] } [17:28:20.215] ...future.frame <- base::sys.nframe() [17:28:20.215] ...future.conditions <- base::list() [17:28:20.215] ...future.rng <- base::globalenv()$.Random.seed [17:28:20.215] if (FALSE) { [17:28:20.215] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:20.215] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:20.215] } [17:28:20.215] ...future.result <- base::tryCatch({ [17:28:20.215] base::withCallingHandlers({ [17:28:20.215] ...future.value <- base::withVisible(base::local({ [17:28:20.215] ...future.makeSendCondition <- base::local({ [17:28:20.215] sendCondition <- NULL [17:28:20.215] function(frame = 1L) { [17:28:20.215] if (is.function(sendCondition)) [17:28:20.215] return(sendCondition) [17:28:20.215] ns <- getNamespace("parallel") [17:28:20.215] if (exists("sendData", mode = "function", [17:28:20.215] envir = ns)) { [17:28:20.215] parallel_sendData <- get("sendData", mode = "function", [17:28:20.215] envir = ns) [17:28:20.215] envir <- sys.frame(frame) [17:28:20.215] master <- NULL [17:28:20.215] while (!identical(envir, .GlobalEnv) && [17:28:20.215] !identical(envir, emptyenv())) { [17:28:20.215] if (exists("master", mode = "list", envir = envir, [17:28:20.215] inherits = FALSE)) { [17:28:20.215] master <- get("master", mode = "list", [17:28:20.215] envir = envir, inherits = FALSE) [17:28:20.215] if (inherits(master, c("SOCKnode", [17:28:20.215] "SOCK0node"))) { [17:28:20.215] sendCondition <<- function(cond) { [17:28:20.215] data <- list(type = "VALUE", value = cond, [17:28:20.215] success = TRUE) [17:28:20.215] parallel_sendData(master, data) [17:28:20.215] } [17:28:20.215] return(sendCondition) [17:28:20.215] } [17:28:20.215] } [17:28:20.215] frame <- frame + 1L [17:28:20.215] envir <- sys.frame(frame) [17:28:20.215] } [17:28:20.215] } [17:28:20.215] sendCondition <<- function(cond) NULL [17:28:20.215] } [17:28:20.215] }) [17:28:20.215] withCallingHandlers({ [17:28:20.215] NA [17:28:20.215] }, immediateCondition = function(cond) { [17:28:20.215] sendCondition <- ...future.makeSendCondition() [17:28:20.215] sendCondition(cond) [17:28:20.215] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.215] { [17:28:20.215] inherits <- base::inherits [17:28:20.215] invokeRestart <- base::invokeRestart [17:28:20.215] is.null <- base::is.null [17:28:20.215] muffled <- FALSE [17:28:20.215] if (inherits(cond, "message")) { [17:28:20.215] muffled <- grepl(pattern, "muffleMessage") [17:28:20.215] if (muffled) [17:28:20.215] invokeRestart("muffleMessage") [17:28:20.215] } [17:28:20.215] else if (inherits(cond, "warning")) { [17:28:20.215] muffled <- grepl(pattern, "muffleWarning") [17:28:20.215] if (muffled) [17:28:20.215] invokeRestart("muffleWarning") [17:28:20.215] } [17:28:20.215] else if (inherits(cond, "condition")) { [17:28:20.215] if (!is.null(pattern)) { [17:28:20.215] computeRestarts <- base::computeRestarts [17:28:20.215] grepl <- base::grepl [17:28:20.215] restarts <- computeRestarts(cond) [17:28:20.215] for (restart in restarts) { [17:28:20.215] name <- restart$name [17:28:20.215] if (is.null(name)) [17:28:20.215] next [17:28:20.215] if (!grepl(pattern, name)) [17:28:20.215] next [17:28:20.215] invokeRestart(restart) [17:28:20.215] muffled <- TRUE [17:28:20.215] break [17:28:20.215] } [17:28:20.215] } [17:28:20.215] } [17:28:20.215] invisible(muffled) [17:28:20.215] } [17:28:20.215] muffleCondition(cond) [17:28:20.215] }) [17:28:20.215] })) [17:28:20.215] future::FutureResult(value = ...future.value$value, [17:28:20.215] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:20.215] ...future.rng), globalenv = if (FALSE) [17:28:20.215] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:20.215] ...future.globalenv.names)) [17:28:20.215] else NULL, started = ...future.startTime, version = "1.8") [17:28:20.215] }, condition = base::local({ [17:28:20.215] c <- base::c [17:28:20.215] inherits <- base::inherits [17:28:20.215] invokeRestart <- base::invokeRestart [17:28:20.215] length <- base::length [17:28:20.215] list <- base::list [17:28:20.215] seq.int <- base::seq.int [17:28:20.215] signalCondition <- base::signalCondition [17:28:20.215] sys.calls <- base::sys.calls [17:28:20.215] `[[` <- base::`[[` [17:28:20.215] `+` <- base::`+` [17:28:20.215] `<<-` <- base::`<<-` [17:28:20.215] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:20.215] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:20.215] 3L)] [17:28:20.215] } [17:28:20.215] function(cond) { [17:28:20.215] is_error <- inherits(cond, "error") [17:28:20.215] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:20.215] NULL) [17:28:20.215] if (is_error) { [17:28:20.215] sessionInformation <- function() { [17:28:20.215] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:20.215] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:20.215] search = base::search(), system = base::Sys.info()) [17:28:20.215] } [17:28:20.215] ...future.conditions[[length(...future.conditions) + [17:28:20.215] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:20.215] cond$call), session = sessionInformation(), [17:28:20.215] timestamp = base::Sys.time(), signaled = 0L) [17:28:20.215] signalCondition(cond) [17:28:20.215] } [17:28:20.215] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:20.215] "immediateCondition"))) { [17:28:20.215] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:20.215] ...future.conditions[[length(...future.conditions) + [17:28:20.215] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:20.215] if (TRUE && !signal) { [17:28:20.215] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.215] { [17:28:20.215] inherits <- base::inherits [17:28:20.215] invokeRestart <- base::invokeRestart [17:28:20.215] is.null <- base::is.null [17:28:20.215] muffled <- FALSE [17:28:20.215] if (inherits(cond, "message")) { [17:28:20.215] muffled <- grepl(pattern, "muffleMessage") [17:28:20.215] if (muffled) [17:28:20.215] invokeRestart("muffleMessage") [17:28:20.215] } [17:28:20.215] else if (inherits(cond, "warning")) { [17:28:20.215] muffled <- grepl(pattern, "muffleWarning") [17:28:20.215] if (muffled) [17:28:20.215] invokeRestart("muffleWarning") [17:28:20.215] } [17:28:20.215] else if (inherits(cond, "condition")) { [17:28:20.215] if (!is.null(pattern)) { [17:28:20.215] computeRestarts <- base::computeRestarts [17:28:20.215] grepl <- base::grepl [17:28:20.215] restarts <- computeRestarts(cond) [17:28:20.215] for (restart in restarts) { [17:28:20.215] name <- restart$name [17:28:20.215] if (is.null(name)) [17:28:20.215] next [17:28:20.215] if (!grepl(pattern, name)) [17:28:20.215] next [17:28:20.215] invokeRestart(restart) [17:28:20.215] muffled <- TRUE [17:28:20.215] break [17:28:20.215] } [17:28:20.215] } [17:28:20.215] } [17:28:20.215] invisible(muffled) [17:28:20.215] } [17:28:20.215] muffleCondition(cond, pattern = "^muffle") [17:28:20.215] } [17:28:20.215] } [17:28:20.215] else { [17:28:20.215] if (TRUE) { [17:28:20.215] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.215] { [17:28:20.215] inherits <- base::inherits [17:28:20.215] invokeRestart <- base::invokeRestart [17:28:20.215] is.null <- base::is.null [17:28:20.215] muffled <- FALSE [17:28:20.215] if (inherits(cond, "message")) { [17:28:20.215] muffled <- grepl(pattern, "muffleMessage") [17:28:20.215] if (muffled) [17:28:20.215] invokeRestart("muffleMessage") [17:28:20.215] } [17:28:20.215] else if (inherits(cond, "warning")) { [17:28:20.215] muffled <- grepl(pattern, "muffleWarning") [17:28:20.215] if (muffled) [17:28:20.215] invokeRestart("muffleWarning") [17:28:20.215] } [17:28:20.215] else if (inherits(cond, "condition")) { [17:28:20.215] if (!is.null(pattern)) { [17:28:20.215] computeRestarts <- base::computeRestarts [17:28:20.215] grepl <- base::grepl [17:28:20.215] restarts <- computeRestarts(cond) [17:28:20.215] for (restart in restarts) { [17:28:20.215] name <- restart$name [17:28:20.215] if (is.null(name)) [17:28:20.215] next [17:28:20.215] if (!grepl(pattern, name)) [17:28:20.215] next [17:28:20.215] invokeRestart(restart) [17:28:20.215] muffled <- TRUE [17:28:20.215] break [17:28:20.215] } [17:28:20.215] } [17:28:20.215] } [17:28:20.215] invisible(muffled) [17:28:20.215] } [17:28:20.215] muffleCondition(cond, pattern = "^muffle") [17:28:20.215] } [17:28:20.215] } [17:28:20.215] } [17:28:20.215] })) [17:28:20.215] }, error = function(ex) { [17:28:20.215] base::structure(base::list(value = NULL, visible = NULL, [17:28:20.215] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:20.215] ...future.rng), started = ...future.startTime, [17:28:20.215] finished = Sys.time(), session_uuid = NA_character_, [17:28:20.215] version = "1.8"), class = "FutureResult") [17:28:20.215] }, finally = { [17:28:20.215] if (!identical(...future.workdir, getwd())) [17:28:20.215] setwd(...future.workdir) [17:28:20.215] { [17:28:20.215] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:20.215] ...future.oldOptions$nwarnings <- NULL [17:28:20.215] } [17:28:20.215] base::options(...future.oldOptions) [17:28:20.215] if (.Platform$OS.type == "windows") { [17:28:20.215] old_names <- names(...future.oldEnvVars) [17:28:20.215] envs <- base::Sys.getenv() [17:28:20.215] names <- names(envs) [17:28:20.215] common <- intersect(names, old_names) [17:28:20.215] added <- setdiff(names, old_names) [17:28:20.215] removed <- setdiff(old_names, names) [17:28:20.215] changed <- common[...future.oldEnvVars[common] != [17:28:20.215] envs[common]] [17:28:20.215] NAMES <- toupper(changed) [17:28:20.215] args <- list() [17:28:20.215] for (kk in seq_along(NAMES)) { [17:28:20.215] name <- changed[[kk]] [17:28:20.215] NAME <- NAMES[[kk]] [17:28:20.215] if (name != NAME && is.element(NAME, old_names)) [17:28:20.215] next [17:28:20.215] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:20.215] } [17:28:20.215] NAMES <- toupper(added) [17:28:20.215] for (kk in seq_along(NAMES)) { [17:28:20.215] name <- added[[kk]] [17:28:20.215] NAME <- NAMES[[kk]] [17:28:20.215] if (name != NAME && is.element(NAME, old_names)) [17:28:20.215] next [17:28:20.215] args[[name]] <- "" [17:28:20.215] } [17:28:20.215] NAMES <- toupper(removed) [17:28:20.215] for (kk in seq_along(NAMES)) { [17:28:20.215] name <- removed[[kk]] [17:28:20.215] NAME <- NAMES[[kk]] [17:28:20.215] if (name != NAME && is.element(NAME, old_names)) [17:28:20.215] next [17:28:20.215] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:20.215] } [17:28:20.215] if (length(args) > 0) [17:28:20.215] base::do.call(base::Sys.setenv, args = args) [17:28:20.215] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:20.215] } [17:28:20.215] else { [17:28:20.215] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:20.215] } [17:28:20.215] { [17:28:20.215] if (base::length(...future.futureOptionsAdded) > [17:28:20.215] 0L) { [17:28:20.215] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:20.215] base::names(opts) <- ...future.futureOptionsAdded [17:28:20.215] base::options(opts) [17:28:20.215] } [17:28:20.215] { [17:28:20.215] { [17:28:20.215] base::options(mc.cores = ...future.mc.cores.old) [17:28:20.215] NULL [17:28:20.215] } [17:28:20.215] options(future.plan = NULL) [17:28:20.215] if (is.na(NA_character_)) [17:28:20.215] Sys.unsetenv("R_FUTURE_PLAN") [17:28:20.215] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:20.215] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:20.215] .init = FALSE) [17:28:20.215] } [17:28:20.215] } [17:28:20.215] } [17:28:20.215] }) [17:28:20.215] if (TRUE) { [17:28:20.215] base::sink(type = "output", split = FALSE) [17:28:20.215] if (TRUE) { [17:28:20.215] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:20.215] } [17:28:20.215] else { [17:28:20.215] ...future.result["stdout"] <- base::list(NULL) [17:28:20.215] } [17:28:20.215] base::close(...future.stdout) [17:28:20.215] ...future.stdout <- NULL [17:28:20.215] } [17:28:20.215] ...future.result$conditions <- ...future.conditions [17:28:20.215] ...future.result$finished <- base::Sys.time() [17:28:20.215] ...future.result [17:28:20.215] } [17:28:20.332] MultisessionFuture started [17:28:20.333] result() for ClusterFuture ... [17:28:20.334] receiveMessageFromWorker() for ClusterFuture ... [17:28:20.334] - Validating connection of MultisessionFuture [17:28:20.419] - received message: FutureResult [17:28:20.420] - Received FutureResult [17:28:20.426] - Erased future from FutureRegistry [17:28:20.426] result() for ClusterFuture ... [17:28:20.427] - result already collected: FutureResult [17:28:20.427] result() for ClusterFuture ... done [17:28:20.427] receiveMessageFromWorker() for ClusterFuture ... done [17:28:20.427] result() for ClusterFuture ... done [17:28:20.428] result() for ClusterFuture ... [17:28:20.428] - result already collected: FutureResult [17:28:20.428] result() for ClusterFuture ... done [17:28:20.429] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:28:20.429] 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: aeae44ba-ffaa-03d1-9ad0-d264b027a198 > > message("- Asserting ownership ...") - Asserting ownership ... > > message("Creating future #1:") Creating future #1: > f1 <- future({ future:::session_uuid(attributes = TRUE) }) [17:28:20.430] getGlobalsAndPackages() ... [17:28:20.431] Searching for globals... [17:28:20.444] - globals found: [2] '{', ':::' [17:28:20.444] Searching for globals ... DONE [17:28:20.444] Resolving globals: FALSE [17:28:20.445] [17:28:20.446] [17:28:20.446] getGlobalsAndPackages() ... DONE [17:28:20.447] run() for 'Future' ... [17:28:20.447] - state: 'created' [17:28:20.448] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:28:20.465] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:28:20.465] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:28:20.466] - Field: 'node' [17:28:20.466] - Field: 'label' [17:28:20.466] - Field: 'local' [17:28:20.467] - Field: 'owner' [17:28:20.467] - Field: 'envir' [17:28:20.467] - Field: 'workers' [17:28:20.468] - Field: 'packages' [17:28:20.468] - Field: 'gc' [17:28:20.468] - Field: 'conditions' [17:28:20.469] - Field: 'persistent' [17:28:20.469] - Field: 'expr' [17:28:20.469] - Field: 'uuid' [17:28:20.470] - Field: 'seed' [17:28:20.470] - Field: 'version' [17:28:20.470] - Field: 'result' [17:28:20.471] - Field: 'asynchronous' [17:28:20.471] - Field: 'calls' [17:28:20.471] - Field: 'globals' [17:28:20.472] - Field: 'stdout' [17:28:20.472] - Field: 'earlySignal' [17:28:20.472] - Field: 'lazy' [17:28:20.472] - Field: 'state' [17:28:20.473] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:28:20.473] - Launch lazy future ... [17:28:20.474] Packages needed by the future expression (n = 0): [17:28:20.474] Packages needed by future strategies (n = 0): [17:28:20.475] { [17:28:20.475] { [17:28:20.475] { [17:28:20.475] ...future.startTime <- base::Sys.time() [17:28:20.475] { [17:28:20.475] { [17:28:20.475] { [17:28:20.475] { [17:28:20.475] base::local({ [17:28:20.475] has_future <- base::requireNamespace("future", [17:28:20.475] quietly = TRUE) [17:28:20.475] if (has_future) { [17:28:20.475] ns <- base::getNamespace("future") [17:28:20.475] version <- ns[[".package"]][["version"]] [17:28:20.475] if (is.null(version)) [17:28:20.475] version <- utils::packageVersion("future") [17:28:20.475] } [17:28:20.475] else { [17:28:20.475] version <- NULL [17:28:20.475] } [17:28:20.475] if (!has_future || version < "1.8.0") { [17:28:20.475] info <- base::c(r_version = base::gsub("R version ", [17:28:20.475] "", base::R.version$version.string), [17:28:20.475] platform = base::sprintf("%s (%s-bit)", [17:28:20.475] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:20.475] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:20.475] "release", "version")], collapse = " "), [17:28:20.475] hostname = base::Sys.info()[["nodename"]]) [17:28:20.475] info <- base::sprintf("%s: %s", base::names(info), [17:28:20.475] info) [17:28:20.475] info <- base::paste(info, collapse = "; ") [17:28:20.475] if (!has_future) { [17:28:20.475] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:20.475] info) [17:28:20.475] } [17:28:20.475] else { [17:28:20.475] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:20.475] info, version) [17:28:20.475] } [17:28:20.475] base::stop(msg) [17:28:20.475] } [17:28:20.475] }) [17:28:20.475] } [17:28:20.475] ...future.mc.cores.old <- base::getOption("mc.cores") [17:28:20.475] base::options(mc.cores = 1L) [17:28:20.475] } [17:28:20.475] ...future.strategy.old <- future::plan("list") [17:28:20.475] options(future.plan = NULL) [17:28:20.475] Sys.unsetenv("R_FUTURE_PLAN") [17:28:20.475] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:20.475] } [17:28:20.475] ...future.workdir <- getwd() [17:28:20.475] } [17:28:20.475] ...future.oldOptions <- base::as.list(base::.Options) [17:28:20.475] ...future.oldEnvVars <- base::Sys.getenv() [17:28:20.475] } [17:28:20.475] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:20.475] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:20.475] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:20.475] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:20.475] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:20.475] future.stdout.windows.reencode = NULL, width = 80L) [17:28:20.475] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:20.475] base::names(...future.oldOptions)) [17:28:20.475] } [17:28:20.475] if (FALSE) { [17:28:20.475] } [17:28:20.475] else { [17:28:20.475] if (TRUE) { [17:28:20.475] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:20.475] open = "w") [17:28:20.475] } [17:28:20.475] else { [17:28:20.475] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:20.475] windows = "NUL", "/dev/null"), open = "w") [17:28:20.475] } [17:28:20.475] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:20.475] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:20.475] base::sink(type = "output", split = FALSE) [17:28:20.475] base::close(...future.stdout) [17:28:20.475] }, add = TRUE) [17:28:20.475] } [17:28:20.475] ...future.frame <- base::sys.nframe() [17:28:20.475] ...future.conditions <- base::list() [17:28:20.475] ...future.rng <- base::globalenv()$.Random.seed [17:28:20.475] if (FALSE) { [17:28:20.475] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:20.475] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:20.475] } [17:28:20.475] ...future.result <- base::tryCatch({ [17:28:20.475] base::withCallingHandlers({ [17:28:20.475] ...future.value <- base::withVisible(base::local({ [17:28:20.475] ...future.makeSendCondition <- base::local({ [17:28:20.475] sendCondition <- NULL [17:28:20.475] function(frame = 1L) { [17:28:20.475] if (is.function(sendCondition)) [17:28:20.475] return(sendCondition) [17:28:20.475] ns <- getNamespace("parallel") [17:28:20.475] if (exists("sendData", mode = "function", [17:28:20.475] envir = ns)) { [17:28:20.475] parallel_sendData <- get("sendData", mode = "function", [17:28:20.475] envir = ns) [17:28:20.475] envir <- sys.frame(frame) [17:28:20.475] master <- NULL [17:28:20.475] while (!identical(envir, .GlobalEnv) && [17:28:20.475] !identical(envir, emptyenv())) { [17:28:20.475] if (exists("master", mode = "list", envir = envir, [17:28:20.475] inherits = FALSE)) { [17:28:20.475] master <- get("master", mode = "list", [17:28:20.475] envir = envir, inherits = FALSE) [17:28:20.475] if (inherits(master, c("SOCKnode", [17:28:20.475] "SOCK0node"))) { [17:28:20.475] sendCondition <<- function(cond) { [17:28:20.475] data <- list(type = "VALUE", value = cond, [17:28:20.475] success = TRUE) [17:28:20.475] parallel_sendData(master, data) [17:28:20.475] } [17:28:20.475] return(sendCondition) [17:28:20.475] } [17:28:20.475] } [17:28:20.475] frame <- frame + 1L [17:28:20.475] envir <- sys.frame(frame) [17:28:20.475] } [17:28:20.475] } [17:28:20.475] sendCondition <<- function(cond) NULL [17:28:20.475] } [17:28:20.475] }) [17:28:20.475] withCallingHandlers({ [17:28:20.475] { [17:28:20.475] future:::session_uuid(attributes = TRUE) [17:28:20.475] } [17:28:20.475] }, immediateCondition = function(cond) { [17:28:20.475] sendCondition <- ...future.makeSendCondition() [17:28:20.475] sendCondition(cond) [17:28:20.475] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.475] { [17:28:20.475] inherits <- base::inherits [17:28:20.475] invokeRestart <- base::invokeRestart [17:28:20.475] is.null <- base::is.null [17:28:20.475] muffled <- FALSE [17:28:20.475] if (inherits(cond, "message")) { [17:28:20.475] muffled <- grepl(pattern, "muffleMessage") [17:28:20.475] if (muffled) [17:28:20.475] invokeRestart("muffleMessage") [17:28:20.475] } [17:28:20.475] else if (inherits(cond, "warning")) { [17:28:20.475] muffled <- grepl(pattern, "muffleWarning") [17:28:20.475] if (muffled) [17:28:20.475] invokeRestart("muffleWarning") [17:28:20.475] } [17:28:20.475] else if (inherits(cond, "condition")) { [17:28:20.475] if (!is.null(pattern)) { [17:28:20.475] computeRestarts <- base::computeRestarts [17:28:20.475] grepl <- base::grepl [17:28:20.475] restarts <- computeRestarts(cond) [17:28:20.475] for (restart in restarts) { [17:28:20.475] name <- restart$name [17:28:20.475] if (is.null(name)) [17:28:20.475] next [17:28:20.475] if (!grepl(pattern, name)) [17:28:20.475] next [17:28:20.475] invokeRestart(restart) [17:28:20.475] muffled <- TRUE [17:28:20.475] break [17:28:20.475] } [17:28:20.475] } [17:28:20.475] } [17:28:20.475] invisible(muffled) [17:28:20.475] } [17:28:20.475] muffleCondition(cond) [17:28:20.475] }) [17:28:20.475] })) [17:28:20.475] future::FutureResult(value = ...future.value$value, [17:28:20.475] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:20.475] ...future.rng), globalenv = if (FALSE) [17:28:20.475] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:20.475] ...future.globalenv.names)) [17:28:20.475] else NULL, started = ...future.startTime, version = "1.8") [17:28:20.475] }, condition = base::local({ [17:28:20.475] c <- base::c [17:28:20.475] inherits <- base::inherits [17:28:20.475] invokeRestart <- base::invokeRestart [17:28:20.475] length <- base::length [17:28:20.475] list <- base::list [17:28:20.475] seq.int <- base::seq.int [17:28:20.475] signalCondition <- base::signalCondition [17:28:20.475] sys.calls <- base::sys.calls [17:28:20.475] `[[` <- base::`[[` [17:28:20.475] `+` <- base::`+` [17:28:20.475] `<<-` <- base::`<<-` [17:28:20.475] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:20.475] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:20.475] 3L)] [17:28:20.475] } [17:28:20.475] function(cond) { [17:28:20.475] is_error <- inherits(cond, "error") [17:28:20.475] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:20.475] NULL) [17:28:20.475] if (is_error) { [17:28:20.475] sessionInformation <- function() { [17:28:20.475] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:20.475] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:20.475] search = base::search(), system = base::Sys.info()) [17:28:20.475] } [17:28:20.475] ...future.conditions[[length(...future.conditions) + [17:28:20.475] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:20.475] cond$call), session = sessionInformation(), [17:28:20.475] timestamp = base::Sys.time(), signaled = 0L) [17:28:20.475] signalCondition(cond) [17:28:20.475] } [17:28:20.475] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:20.475] "immediateCondition"))) { [17:28:20.475] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:20.475] ...future.conditions[[length(...future.conditions) + [17:28:20.475] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:20.475] if (TRUE && !signal) { [17:28:20.475] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.475] { [17:28:20.475] inherits <- base::inherits [17:28:20.475] invokeRestart <- base::invokeRestart [17:28:20.475] is.null <- base::is.null [17:28:20.475] muffled <- FALSE [17:28:20.475] if (inherits(cond, "message")) { [17:28:20.475] muffled <- grepl(pattern, "muffleMessage") [17:28:20.475] if (muffled) [17:28:20.475] invokeRestart("muffleMessage") [17:28:20.475] } [17:28:20.475] else if (inherits(cond, "warning")) { [17:28:20.475] muffled <- grepl(pattern, "muffleWarning") [17:28:20.475] if (muffled) [17:28:20.475] invokeRestart("muffleWarning") [17:28:20.475] } [17:28:20.475] else if (inherits(cond, "condition")) { [17:28:20.475] if (!is.null(pattern)) { [17:28:20.475] computeRestarts <- base::computeRestarts [17:28:20.475] grepl <- base::grepl [17:28:20.475] restarts <- computeRestarts(cond) [17:28:20.475] for (restart in restarts) { [17:28:20.475] name <- restart$name [17:28:20.475] if (is.null(name)) [17:28:20.475] next [17:28:20.475] if (!grepl(pattern, name)) [17:28:20.475] next [17:28:20.475] invokeRestart(restart) [17:28:20.475] muffled <- TRUE [17:28:20.475] break [17:28:20.475] } [17:28:20.475] } [17:28:20.475] } [17:28:20.475] invisible(muffled) [17:28:20.475] } [17:28:20.475] muffleCondition(cond, pattern = "^muffle") [17:28:20.475] } [17:28:20.475] } [17:28:20.475] else { [17:28:20.475] if (TRUE) { [17:28:20.475] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.475] { [17:28:20.475] inherits <- base::inherits [17:28:20.475] invokeRestart <- base::invokeRestart [17:28:20.475] is.null <- base::is.null [17:28:20.475] muffled <- FALSE [17:28:20.475] if (inherits(cond, "message")) { [17:28:20.475] muffled <- grepl(pattern, "muffleMessage") [17:28:20.475] if (muffled) [17:28:20.475] invokeRestart("muffleMessage") [17:28:20.475] } [17:28:20.475] else if (inherits(cond, "warning")) { [17:28:20.475] muffled <- grepl(pattern, "muffleWarning") [17:28:20.475] if (muffled) [17:28:20.475] invokeRestart("muffleWarning") [17:28:20.475] } [17:28:20.475] else if (inherits(cond, "condition")) { [17:28:20.475] if (!is.null(pattern)) { [17:28:20.475] computeRestarts <- base::computeRestarts [17:28:20.475] grepl <- base::grepl [17:28:20.475] restarts <- computeRestarts(cond) [17:28:20.475] for (restart in restarts) { [17:28:20.475] name <- restart$name [17:28:20.475] if (is.null(name)) [17:28:20.475] next [17:28:20.475] if (!grepl(pattern, name)) [17:28:20.475] next [17:28:20.475] invokeRestart(restart) [17:28:20.475] muffled <- TRUE [17:28:20.475] break [17:28:20.475] } [17:28:20.475] } [17:28:20.475] } [17:28:20.475] invisible(muffled) [17:28:20.475] } [17:28:20.475] muffleCondition(cond, pattern = "^muffle") [17:28:20.475] } [17:28:20.475] } [17:28:20.475] } [17:28:20.475] })) [17:28:20.475] }, error = function(ex) { [17:28:20.475] base::structure(base::list(value = NULL, visible = NULL, [17:28:20.475] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:20.475] ...future.rng), started = ...future.startTime, [17:28:20.475] finished = Sys.time(), session_uuid = NA_character_, [17:28:20.475] version = "1.8"), class = "FutureResult") [17:28:20.475] }, finally = { [17:28:20.475] if (!identical(...future.workdir, getwd())) [17:28:20.475] setwd(...future.workdir) [17:28:20.475] { [17:28:20.475] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:20.475] ...future.oldOptions$nwarnings <- NULL [17:28:20.475] } [17:28:20.475] base::options(...future.oldOptions) [17:28:20.475] if (.Platform$OS.type == "windows") { [17:28:20.475] old_names <- names(...future.oldEnvVars) [17:28:20.475] envs <- base::Sys.getenv() [17:28:20.475] names <- names(envs) [17:28:20.475] common <- intersect(names, old_names) [17:28:20.475] added <- setdiff(names, old_names) [17:28:20.475] removed <- setdiff(old_names, names) [17:28:20.475] changed <- common[...future.oldEnvVars[common] != [17:28:20.475] envs[common]] [17:28:20.475] NAMES <- toupper(changed) [17:28:20.475] args <- list() [17:28:20.475] for (kk in seq_along(NAMES)) { [17:28:20.475] name <- changed[[kk]] [17:28:20.475] NAME <- NAMES[[kk]] [17:28:20.475] if (name != NAME && is.element(NAME, old_names)) [17:28:20.475] next [17:28:20.475] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:20.475] } [17:28:20.475] NAMES <- toupper(added) [17:28:20.475] for (kk in seq_along(NAMES)) { [17:28:20.475] name <- added[[kk]] [17:28:20.475] NAME <- NAMES[[kk]] [17:28:20.475] if (name != NAME && is.element(NAME, old_names)) [17:28:20.475] next [17:28:20.475] args[[name]] <- "" [17:28:20.475] } [17:28:20.475] NAMES <- toupper(removed) [17:28:20.475] for (kk in seq_along(NAMES)) { [17:28:20.475] name <- removed[[kk]] [17:28:20.475] NAME <- NAMES[[kk]] [17:28:20.475] if (name != NAME && is.element(NAME, old_names)) [17:28:20.475] next [17:28:20.475] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:20.475] } [17:28:20.475] if (length(args) > 0) [17:28:20.475] base::do.call(base::Sys.setenv, args = args) [17:28:20.475] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:20.475] } [17:28:20.475] else { [17:28:20.475] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:20.475] } [17:28:20.475] { [17:28:20.475] if (base::length(...future.futureOptionsAdded) > [17:28:20.475] 0L) { [17:28:20.475] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:20.475] base::names(opts) <- ...future.futureOptionsAdded [17:28:20.475] base::options(opts) [17:28:20.475] } [17:28:20.475] { [17:28:20.475] { [17:28:20.475] base::options(mc.cores = ...future.mc.cores.old) [17:28:20.475] NULL [17:28:20.475] } [17:28:20.475] options(future.plan = NULL) [17:28:20.475] if (is.na(NA_character_)) [17:28:20.475] Sys.unsetenv("R_FUTURE_PLAN") [17:28:20.475] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:20.475] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:20.475] .init = FALSE) [17:28:20.475] } [17:28:20.475] } [17:28:20.475] } [17:28:20.475] }) [17:28:20.475] if (TRUE) { [17:28:20.475] base::sink(type = "output", split = FALSE) [17:28:20.475] if (TRUE) { [17:28:20.475] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:20.475] } [17:28:20.475] else { [17:28:20.475] ...future.result["stdout"] <- base::list(NULL) [17:28:20.475] } [17:28:20.475] base::close(...future.stdout) [17:28:20.475] ...future.stdout <- NULL [17:28:20.475] } [17:28:20.475] ...future.result$conditions <- ...future.conditions [17:28:20.475] ...future.result$finished <- base::Sys.time() [17:28:20.475] ...future.result [17:28:20.475] } [17:28:20.485] MultisessionFuture started [17:28:20.485] - Launch lazy future ... done [17:28:20.485] 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:28:20.486] result() for ClusterFuture ... [17:28:20.486] receiveMessageFromWorker() for ClusterFuture ... [17:28:20.486] - Validating connection of MultisessionFuture [17:28:20.506] - received message: FutureResult [17:28:20.506] - Received FutureResult [17:28:20.506] - Erased future from FutureRegistry [17:28:20.507] result() for ClusterFuture ... [17:28:20.507] - result already collected: FutureResult [17:28:20.507] result() for ClusterFuture ... done [17:28:20.507] receiveMessageFromWorker() for ClusterFuture ... done [17:28:20.507] result() for ClusterFuture ... done [17:28:20.508] result() for ClusterFuture ... [17:28:20.508] - result already collected: FutureResult [17:28:20.508] result() for ClusterFuture ... done > cat(sprintf("Future #1 R process: %s\n", v1)) Future #1 R process: dbee2a29-f6d8-4e4b-7815-20bcb4b25a6d > stopifnot(v1 != session_uuid) > > message("Creating future #2:") Creating future #2: > f2 <- future({ future:::session_uuid(attributes = TRUE) }) [17:28:20.509] getGlobalsAndPackages() ... [17:28:20.509] Searching for globals... [17:28:20.510] - globals found: [2] '{', ':::' [17:28:20.511] Searching for globals ... DONE [17:28:20.511] Resolving globals: FALSE [17:28:20.511] [17:28:20.512] [17:28:20.512] getGlobalsAndPackages() ... DONE [17:28:20.512] run() for 'Future' ... [17:28:20.512] - state: 'created' [17:28:20.513] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:28:20.528] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:28:20.528] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:28:20.528] - Field: 'node' [17:28:20.529] - Field: 'label' [17:28:20.529] - Field: 'local' [17:28:20.529] - Field: 'owner' [17:28:20.529] - Field: 'envir' [17:28:20.529] - Field: 'workers' [17:28:20.530] - Field: 'packages' [17:28:20.530] - Field: 'gc' [17:28:20.530] - Field: 'conditions' [17:28:20.530] - Field: 'persistent' [17:28:20.530] - Field: 'expr' [17:28:20.531] - Field: 'uuid' [17:28:20.531] - Field: 'seed' [17:28:20.531] - Field: 'version' [17:28:20.531] - Field: 'result' [17:28:20.531] - Field: 'asynchronous' [17:28:20.532] - Field: 'calls' [17:28:20.532] - Field: 'globals' [17:28:20.532] - Field: 'stdout' [17:28:20.532] - Field: 'earlySignal' [17:28:20.532] - Field: 'lazy' [17:28:20.533] - Field: 'state' [17:28:20.533] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:28:20.533] - Launch lazy future ... [17:28:20.534] Packages needed by the future expression (n = 0): [17:28:20.534] Packages needed by future strategies (n = 0): [17:28:20.535] { [17:28:20.535] { [17:28:20.535] { [17:28:20.535] ...future.startTime <- base::Sys.time() [17:28:20.535] { [17:28:20.535] { [17:28:20.535] { [17:28:20.535] { [17:28:20.535] base::local({ [17:28:20.535] has_future <- base::requireNamespace("future", [17:28:20.535] quietly = TRUE) [17:28:20.535] if (has_future) { [17:28:20.535] ns <- base::getNamespace("future") [17:28:20.535] version <- ns[[".package"]][["version"]] [17:28:20.535] if (is.null(version)) [17:28:20.535] version <- utils::packageVersion("future") [17:28:20.535] } [17:28:20.535] else { [17:28:20.535] version <- NULL [17:28:20.535] } [17:28:20.535] if (!has_future || version < "1.8.0") { [17:28:20.535] info <- base::c(r_version = base::gsub("R version ", [17:28:20.535] "", base::R.version$version.string), [17:28:20.535] platform = base::sprintf("%s (%s-bit)", [17:28:20.535] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:20.535] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:20.535] "release", "version")], collapse = " "), [17:28:20.535] hostname = base::Sys.info()[["nodename"]]) [17:28:20.535] info <- base::sprintf("%s: %s", base::names(info), [17:28:20.535] info) [17:28:20.535] info <- base::paste(info, collapse = "; ") [17:28:20.535] if (!has_future) { [17:28:20.535] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:20.535] info) [17:28:20.535] } [17:28:20.535] else { [17:28:20.535] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:20.535] info, version) [17:28:20.535] } [17:28:20.535] base::stop(msg) [17:28:20.535] } [17:28:20.535] }) [17:28:20.535] } [17:28:20.535] ...future.mc.cores.old <- base::getOption("mc.cores") [17:28:20.535] base::options(mc.cores = 1L) [17:28:20.535] } [17:28:20.535] ...future.strategy.old <- future::plan("list") [17:28:20.535] options(future.plan = NULL) [17:28:20.535] Sys.unsetenv("R_FUTURE_PLAN") [17:28:20.535] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:20.535] } [17:28:20.535] ...future.workdir <- getwd() [17:28:20.535] } [17:28:20.535] ...future.oldOptions <- base::as.list(base::.Options) [17:28:20.535] ...future.oldEnvVars <- base::Sys.getenv() [17:28:20.535] } [17:28:20.535] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:20.535] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:20.535] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:20.535] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:20.535] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:20.535] future.stdout.windows.reencode = NULL, width = 80L) [17:28:20.535] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:20.535] base::names(...future.oldOptions)) [17:28:20.535] } [17:28:20.535] if (FALSE) { [17:28:20.535] } [17:28:20.535] else { [17:28:20.535] if (TRUE) { [17:28:20.535] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:20.535] open = "w") [17:28:20.535] } [17:28:20.535] else { [17:28:20.535] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:20.535] windows = "NUL", "/dev/null"), open = "w") [17:28:20.535] } [17:28:20.535] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:20.535] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:20.535] base::sink(type = "output", split = FALSE) [17:28:20.535] base::close(...future.stdout) [17:28:20.535] }, add = TRUE) [17:28:20.535] } [17:28:20.535] ...future.frame <- base::sys.nframe() [17:28:20.535] ...future.conditions <- base::list() [17:28:20.535] ...future.rng <- base::globalenv()$.Random.seed [17:28:20.535] if (FALSE) { [17:28:20.535] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:20.535] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:20.535] } [17:28:20.535] ...future.result <- base::tryCatch({ [17:28:20.535] base::withCallingHandlers({ [17:28:20.535] ...future.value <- base::withVisible(base::local({ [17:28:20.535] ...future.makeSendCondition <- base::local({ [17:28:20.535] sendCondition <- NULL [17:28:20.535] function(frame = 1L) { [17:28:20.535] if (is.function(sendCondition)) [17:28:20.535] return(sendCondition) [17:28:20.535] ns <- getNamespace("parallel") [17:28:20.535] if (exists("sendData", mode = "function", [17:28:20.535] envir = ns)) { [17:28:20.535] parallel_sendData <- get("sendData", mode = "function", [17:28:20.535] envir = ns) [17:28:20.535] envir <- sys.frame(frame) [17:28:20.535] master <- NULL [17:28:20.535] while (!identical(envir, .GlobalEnv) && [17:28:20.535] !identical(envir, emptyenv())) { [17:28:20.535] if (exists("master", mode = "list", envir = envir, [17:28:20.535] inherits = FALSE)) { [17:28:20.535] master <- get("master", mode = "list", [17:28:20.535] envir = envir, inherits = FALSE) [17:28:20.535] if (inherits(master, c("SOCKnode", [17:28:20.535] "SOCK0node"))) { [17:28:20.535] sendCondition <<- function(cond) { [17:28:20.535] data <- list(type = "VALUE", value = cond, [17:28:20.535] success = TRUE) [17:28:20.535] parallel_sendData(master, data) [17:28:20.535] } [17:28:20.535] return(sendCondition) [17:28:20.535] } [17:28:20.535] } [17:28:20.535] frame <- frame + 1L [17:28:20.535] envir <- sys.frame(frame) [17:28:20.535] } [17:28:20.535] } [17:28:20.535] sendCondition <<- function(cond) NULL [17:28:20.535] } [17:28:20.535] }) [17:28:20.535] withCallingHandlers({ [17:28:20.535] { [17:28:20.535] future:::session_uuid(attributes = TRUE) [17:28:20.535] } [17:28:20.535] }, immediateCondition = function(cond) { [17:28:20.535] sendCondition <- ...future.makeSendCondition() [17:28:20.535] sendCondition(cond) [17:28:20.535] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.535] { [17:28:20.535] inherits <- base::inherits [17:28:20.535] invokeRestart <- base::invokeRestart [17:28:20.535] is.null <- base::is.null [17:28:20.535] muffled <- FALSE [17:28:20.535] if (inherits(cond, "message")) { [17:28:20.535] muffled <- grepl(pattern, "muffleMessage") [17:28:20.535] if (muffled) [17:28:20.535] invokeRestart("muffleMessage") [17:28:20.535] } [17:28:20.535] else if (inherits(cond, "warning")) { [17:28:20.535] muffled <- grepl(pattern, "muffleWarning") [17:28:20.535] if (muffled) [17:28:20.535] invokeRestart("muffleWarning") [17:28:20.535] } [17:28:20.535] else if (inherits(cond, "condition")) { [17:28:20.535] if (!is.null(pattern)) { [17:28:20.535] computeRestarts <- base::computeRestarts [17:28:20.535] grepl <- base::grepl [17:28:20.535] restarts <- computeRestarts(cond) [17:28:20.535] for (restart in restarts) { [17:28:20.535] name <- restart$name [17:28:20.535] if (is.null(name)) [17:28:20.535] next [17:28:20.535] if (!grepl(pattern, name)) [17:28:20.535] next [17:28:20.535] invokeRestart(restart) [17:28:20.535] muffled <- TRUE [17:28:20.535] break [17:28:20.535] } [17:28:20.535] } [17:28:20.535] } [17:28:20.535] invisible(muffled) [17:28:20.535] } [17:28:20.535] muffleCondition(cond) [17:28:20.535] }) [17:28:20.535] })) [17:28:20.535] future::FutureResult(value = ...future.value$value, [17:28:20.535] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:20.535] ...future.rng), globalenv = if (FALSE) [17:28:20.535] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:20.535] ...future.globalenv.names)) [17:28:20.535] else NULL, started = ...future.startTime, version = "1.8") [17:28:20.535] }, condition = base::local({ [17:28:20.535] c <- base::c [17:28:20.535] inherits <- base::inherits [17:28:20.535] invokeRestart <- base::invokeRestart [17:28:20.535] length <- base::length [17:28:20.535] list <- base::list [17:28:20.535] seq.int <- base::seq.int [17:28:20.535] signalCondition <- base::signalCondition [17:28:20.535] sys.calls <- base::sys.calls [17:28:20.535] `[[` <- base::`[[` [17:28:20.535] `+` <- base::`+` [17:28:20.535] `<<-` <- base::`<<-` [17:28:20.535] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:20.535] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:20.535] 3L)] [17:28:20.535] } [17:28:20.535] function(cond) { [17:28:20.535] is_error <- inherits(cond, "error") [17:28:20.535] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:20.535] NULL) [17:28:20.535] if (is_error) { [17:28:20.535] sessionInformation <- function() { [17:28:20.535] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:20.535] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:20.535] search = base::search(), system = base::Sys.info()) [17:28:20.535] } [17:28:20.535] ...future.conditions[[length(...future.conditions) + [17:28:20.535] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:20.535] cond$call), session = sessionInformation(), [17:28:20.535] timestamp = base::Sys.time(), signaled = 0L) [17:28:20.535] signalCondition(cond) [17:28:20.535] } [17:28:20.535] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:20.535] "immediateCondition"))) { [17:28:20.535] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:20.535] ...future.conditions[[length(...future.conditions) + [17:28:20.535] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:20.535] if (TRUE && !signal) { [17:28:20.535] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.535] { [17:28:20.535] inherits <- base::inherits [17:28:20.535] invokeRestart <- base::invokeRestart [17:28:20.535] is.null <- base::is.null [17:28:20.535] muffled <- FALSE [17:28:20.535] if (inherits(cond, "message")) { [17:28:20.535] muffled <- grepl(pattern, "muffleMessage") [17:28:20.535] if (muffled) [17:28:20.535] invokeRestart("muffleMessage") [17:28:20.535] } [17:28:20.535] else if (inherits(cond, "warning")) { [17:28:20.535] muffled <- grepl(pattern, "muffleWarning") [17:28:20.535] if (muffled) [17:28:20.535] invokeRestart("muffleWarning") [17:28:20.535] } [17:28:20.535] else if (inherits(cond, "condition")) { [17:28:20.535] if (!is.null(pattern)) { [17:28:20.535] computeRestarts <- base::computeRestarts [17:28:20.535] grepl <- base::grepl [17:28:20.535] restarts <- computeRestarts(cond) [17:28:20.535] for (restart in restarts) { [17:28:20.535] name <- restart$name [17:28:20.535] if (is.null(name)) [17:28:20.535] next [17:28:20.535] if (!grepl(pattern, name)) [17:28:20.535] next [17:28:20.535] invokeRestart(restart) [17:28:20.535] muffled <- TRUE [17:28:20.535] break [17:28:20.535] } [17:28:20.535] } [17:28:20.535] } [17:28:20.535] invisible(muffled) [17:28:20.535] } [17:28:20.535] muffleCondition(cond, pattern = "^muffle") [17:28:20.535] } [17:28:20.535] } [17:28:20.535] else { [17:28:20.535] if (TRUE) { [17:28:20.535] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.535] { [17:28:20.535] inherits <- base::inherits [17:28:20.535] invokeRestart <- base::invokeRestart [17:28:20.535] is.null <- base::is.null [17:28:20.535] muffled <- FALSE [17:28:20.535] if (inherits(cond, "message")) { [17:28:20.535] muffled <- grepl(pattern, "muffleMessage") [17:28:20.535] if (muffled) [17:28:20.535] invokeRestart("muffleMessage") [17:28:20.535] } [17:28:20.535] else if (inherits(cond, "warning")) { [17:28:20.535] muffled <- grepl(pattern, "muffleWarning") [17:28:20.535] if (muffled) [17:28:20.535] invokeRestart("muffleWarning") [17:28:20.535] } [17:28:20.535] else if (inherits(cond, "condition")) { [17:28:20.535] if (!is.null(pattern)) { [17:28:20.535] computeRestarts <- base::computeRestarts [17:28:20.535] grepl <- base::grepl [17:28:20.535] restarts <- computeRestarts(cond) [17:28:20.535] for (restart in restarts) { [17:28:20.535] name <- restart$name [17:28:20.535] if (is.null(name)) [17:28:20.535] next [17:28:20.535] if (!grepl(pattern, name)) [17:28:20.535] next [17:28:20.535] invokeRestart(restart) [17:28:20.535] muffled <- TRUE [17:28:20.535] break [17:28:20.535] } [17:28:20.535] } [17:28:20.535] } [17:28:20.535] invisible(muffled) [17:28:20.535] } [17:28:20.535] muffleCondition(cond, pattern = "^muffle") [17:28:20.535] } [17:28:20.535] } [17:28:20.535] } [17:28:20.535] })) [17:28:20.535] }, error = function(ex) { [17:28:20.535] base::structure(base::list(value = NULL, visible = NULL, [17:28:20.535] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:20.535] ...future.rng), started = ...future.startTime, [17:28:20.535] finished = Sys.time(), session_uuid = NA_character_, [17:28:20.535] version = "1.8"), class = "FutureResult") [17:28:20.535] }, finally = { [17:28:20.535] if (!identical(...future.workdir, getwd())) [17:28:20.535] setwd(...future.workdir) [17:28:20.535] { [17:28:20.535] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:20.535] ...future.oldOptions$nwarnings <- NULL [17:28:20.535] } [17:28:20.535] base::options(...future.oldOptions) [17:28:20.535] if (.Platform$OS.type == "windows") { [17:28:20.535] old_names <- names(...future.oldEnvVars) [17:28:20.535] envs <- base::Sys.getenv() [17:28:20.535] names <- names(envs) [17:28:20.535] common <- intersect(names, old_names) [17:28:20.535] added <- setdiff(names, old_names) [17:28:20.535] removed <- setdiff(old_names, names) [17:28:20.535] changed <- common[...future.oldEnvVars[common] != [17:28:20.535] envs[common]] [17:28:20.535] NAMES <- toupper(changed) [17:28:20.535] args <- list() [17:28:20.535] for (kk in seq_along(NAMES)) { [17:28:20.535] name <- changed[[kk]] [17:28:20.535] NAME <- NAMES[[kk]] [17:28:20.535] if (name != NAME && is.element(NAME, old_names)) [17:28:20.535] next [17:28:20.535] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:20.535] } [17:28:20.535] NAMES <- toupper(added) [17:28:20.535] for (kk in seq_along(NAMES)) { [17:28:20.535] name <- added[[kk]] [17:28:20.535] NAME <- NAMES[[kk]] [17:28:20.535] if (name != NAME && is.element(NAME, old_names)) [17:28:20.535] next [17:28:20.535] args[[name]] <- "" [17:28:20.535] } [17:28:20.535] NAMES <- toupper(removed) [17:28:20.535] for (kk in seq_along(NAMES)) { [17:28:20.535] name <- removed[[kk]] [17:28:20.535] NAME <- NAMES[[kk]] [17:28:20.535] if (name != NAME && is.element(NAME, old_names)) [17:28:20.535] next [17:28:20.535] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:20.535] } [17:28:20.535] if (length(args) > 0) [17:28:20.535] base::do.call(base::Sys.setenv, args = args) [17:28:20.535] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:20.535] } [17:28:20.535] else { [17:28:20.535] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:20.535] } [17:28:20.535] { [17:28:20.535] if (base::length(...future.futureOptionsAdded) > [17:28:20.535] 0L) { [17:28:20.535] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:20.535] base::names(opts) <- ...future.futureOptionsAdded [17:28:20.535] base::options(opts) [17:28:20.535] } [17:28:20.535] { [17:28:20.535] { [17:28:20.535] base::options(mc.cores = ...future.mc.cores.old) [17:28:20.535] NULL [17:28:20.535] } [17:28:20.535] options(future.plan = NULL) [17:28:20.535] if (is.na(NA_character_)) [17:28:20.535] Sys.unsetenv("R_FUTURE_PLAN") [17:28:20.535] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:20.535] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:20.535] .init = FALSE) [17:28:20.535] } [17:28:20.535] } [17:28:20.535] } [17:28:20.535] }) [17:28:20.535] if (TRUE) { [17:28:20.535] base::sink(type = "output", split = FALSE) [17:28:20.535] if (TRUE) { [17:28:20.535] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:20.535] } [17:28:20.535] else { [17:28:20.535] ...future.result["stdout"] <- base::list(NULL) [17:28:20.535] } [17:28:20.535] base::close(...future.stdout) [17:28:20.535] ...future.stdout <- NULL [17:28:20.535] } [17:28:20.535] ...future.result$conditions <- ...future.conditions [17:28:20.535] ...future.result$finished <- base::Sys.time() [17:28:20.535] ...future.result [17:28:20.535] } [17:28:20.541] MultisessionFuture started [17:28:20.542] - Launch lazy future ... done [17:28:20.542] 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:28:20.542] result() for ClusterFuture ... [17:28:20.543] receiveMessageFromWorker() for ClusterFuture ... [17:28:20.543] - Validating connection of MultisessionFuture [17:28:20.559] - received message: FutureResult [17:28:20.559] - Received FutureResult [17:28:20.560] - Erased future from FutureRegistry [17:28:20.560] result() for ClusterFuture ... [17:28:20.564] - result already collected: FutureResult [17:28:20.564] result() for ClusterFuture ... done [17:28:20.564] receiveMessageFromWorker() for ClusterFuture ... done [17:28:20.565] result() for ClusterFuture ... done [17:28:20.565] result() for ClusterFuture ... [17:28:20.565] - result already collected: FutureResult [17:28:20.565] result() for ClusterFuture ... done > cat(sprintf("Future #2 R process: %s\n", v2)) Future #2 R process: dbee2a29-f6d8-4e4b-7815-20bcb4b25a6d > stopifnot(v2 != session_uuid) > > message("Creating future #3:") Creating future #3: > f3 <- future({ f1$owner }) [17:28:20.566] getGlobalsAndPackages() ... [17:28:20.567] Searching for globals... [17:28:20.569] - globals found: [3] '{', '$', 'f1' [17:28:20.569] Searching for globals ... DONE [17:28:20.569] Resolving globals: FALSE [17:28:20.583] The total size of the 1 globals is 314.32 KiB (321866 bytes) [17:28:20.584] The total size of the 1 globals exported for future expression ('{; f1$owner; }') is 314.32 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'f1' (314.32 KiB of class 'environment') [17:28:20.584] - globals: [1] 'f1' [17:28:20.584] [17:28:20.584] getGlobalsAndPackages() ... DONE [17:28:20.585] run() for 'Future' ... [17:28:20.585] - state: 'created' [17:28:20.585] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:28:20.600] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:28:20.600] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:28:20.600] - Field: 'node' [17:28:20.601] - Field: 'label' [17:28:20.601] - Field: 'local' [17:28:20.601] - Field: 'owner' [17:28:20.602] - Field: 'envir' [17:28:20.602] - Field: 'workers' [17:28:20.602] - Field: 'packages' [17:28:20.603] - Field: 'gc' [17:28:20.603] - Field: 'conditions' [17:28:20.603] - Field: 'persistent' [17:28:20.604] - Field: 'expr' [17:28:20.604] - Field: 'uuid' [17:28:20.604] - Field: 'seed' [17:28:20.605] - Field: 'version' [17:28:20.605] - Field: 'result' [17:28:20.605] - Field: 'asynchronous' [17:28:20.605] - Field: 'calls' [17:28:20.606] - Field: 'globals' [17:28:20.606] - Field: 'stdout' [17:28:20.606] - Field: 'earlySignal' [17:28:20.607] - Field: 'lazy' [17:28:20.607] - Field: 'state' [17:28:20.607] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:28:20.608] - Launch lazy future ... [17:28:20.608] Packages needed by the future expression (n = 0): [17:28:20.608] Packages needed by future strategies (n = 0): [17:28:20.609] { [17:28:20.609] { [17:28:20.609] { [17:28:20.609] ...future.startTime <- base::Sys.time() [17:28:20.609] { [17:28:20.609] { [17:28:20.609] { [17:28:20.609] { [17:28:20.609] base::local({ [17:28:20.609] has_future <- base::requireNamespace("future", [17:28:20.609] quietly = TRUE) [17:28:20.609] if (has_future) { [17:28:20.609] ns <- base::getNamespace("future") [17:28:20.609] version <- ns[[".package"]][["version"]] [17:28:20.609] if (is.null(version)) [17:28:20.609] version <- utils::packageVersion("future") [17:28:20.609] } [17:28:20.609] else { [17:28:20.609] version <- NULL [17:28:20.609] } [17:28:20.609] if (!has_future || version < "1.8.0") { [17:28:20.609] info <- base::c(r_version = base::gsub("R version ", [17:28:20.609] "", base::R.version$version.string), [17:28:20.609] platform = base::sprintf("%s (%s-bit)", [17:28:20.609] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:20.609] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:20.609] "release", "version")], collapse = " "), [17:28:20.609] hostname = base::Sys.info()[["nodename"]]) [17:28:20.609] info <- base::sprintf("%s: %s", base::names(info), [17:28:20.609] info) [17:28:20.609] info <- base::paste(info, collapse = "; ") [17:28:20.609] if (!has_future) { [17:28:20.609] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:20.609] info) [17:28:20.609] } [17:28:20.609] else { [17:28:20.609] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:20.609] info, version) [17:28:20.609] } [17:28:20.609] base::stop(msg) [17:28:20.609] } [17:28:20.609] }) [17:28:20.609] } [17:28:20.609] ...future.mc.cores.old <- base::getOption("mc.cores") [17:28:20.609] base::options(mc.cores = 1L) [17:28:20.609] } [17:28:20.609] ...future.strategy.old <- future::plan("list") [17:28:20.609] options(future.plan = NULL) [17:28:20.609] Sys.unsetenv("R_FUTURE_PLAN") [17:28:20.609] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:20.609] } [17:28:20.609] ...future.workdir <- getwd() [17:28:20.609] } [17:28:20.609] ...future.oldOptions <- base::as.list(base::.Options) [17:28:20.609] ...future.oldEnvVars <- base::Sys.getenv() [17:28:20.609] } [17:28:20.609] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:20.609] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:20.609] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:20.609] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:20.609] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:20.609] future.stdout.windows.reencode = NULL, width = 80L) [17:28:20.609] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:20.609] base::names(...future.oldOptions)) [17:28:20.609] } [17:28:20.609] if (FALSE) { [17:28:20.609] } [17:28:20.609] else { [17:28:20.609] if (TRUE) { [17:28:20.609] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:20.609] open = "w") [17:28:20.609] } [17:28:20.609] else { [17:28:20.609] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:20.609] windows = "NUL", "/dev/null"), open = "w") [17:28:20.609] } [17:28:20.609] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:20.609] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:20.609] base::sink(type = "output", split = FALSE) [17:28:20.609] base::close(...future.stdout) [17:28:20.609] }, add = TRUE) [17:28:20.609] } [17:28:20.609] ...future.frame <- base::sys.nframe() [17:28:20.609] ...future.conditions <- base::list() [17:28:20.609] ...future.rng <- base::globalenv()$.Random.seed [17:28:20.609] if (FALSE) { [17:28:20.609] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:20.609] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:20.609] } [17:28:20.609] ...future.result <- base::tryCatch({ [17:28:20.609] base::withCallingHandlers({ [17:28:20.609] ...future.value <- base::withVisible(base::local({ [17:28:20.609] ...future.makeSendCondition <- base::local({ [17:28:20.609] sendCondition <- NULL [17:28:20.609] function(frame = 1L) { [17:28:20.609] if (is.function(sendCondition)) [17:28:20.609] return(sendCondition) [17:28:20.609] ns <- getNamespace("parallel") [17:28:20.609] if (exists("sendData", mode = "function", [17:28:20.609] envir = ns)) { [17:28:20.609] parallel_sendData <- get("sendData", mode = "function", [17:28:20.609] envir = ns) [17:28:20.609] envir <- sys.frame(frame) [17:28:20.609] master <- NULL [17:28:20.609] while (!identical(envir, .GlobalEnv) && [17:28:20.609] !identical(envir, emptyenv())) { [17:28:20.609] if (exists("master", mode = "list", envir = envir, [17:28:20.609] inherits = FALSE)) { [17:28:20.609] master <- get("master", mode = "list", [17:28:20.609] envir = envir, inherits = FALSE) [17:28:20.609] if (inherits(master, c("SOCKnode", [17:28:20.609] "SOCK0node"))) { [17:28:20.609] sendCondition <<- function(cond) { [17:28:20.609] data <- list(type = "VALUE", value = cond, [17:28:20.609] success = TRUE) [17:28:20.609] parallel_sendData(master, data) [17:28:20.609] } [17:28:20.609] return(sendCondition) [17:28:20.609] } [17:28:20.609] } [17:28:20.609] frame <- frame + 1L [17:28:20.609] envir <- sys.frame(frame) [17:28:20.609] } [17:28:20.609] } [17:28:20.609] sendCondition <<- function(cond) NULL [17:28:20.609] } [17:28:20.609] }) [17:28:20.609] withCallingHandlers({ [17:28:20.609] { [17:28:20.609] f1$owner [17:28:20.609] } [17:28:20.609] }, immediateCondition = function(cond) { [17:28:20.609] sendCondition <- ...future.makeSendCondition() [17:28:20.609] sendCondition(cond) [17:28:20.609] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.609] { [17:28:20.609] inherits <- base::inherits [17:28:20.609] invokeRestart <- base::invokeRestart [17:28:20.609] is.null <- base::is.null [17:28:20.609] muffled <- FALSE [17:28:20.609] if (inherits(cond, "message")) { [17:28:20.609] muffled <- grepl(pattern, "muffleMessage") [17:28:20.609] if (muffled) [17:28:20.609] invokeRestart("muffleMessage") [17:28:20.609] } [17:28:20.609] else if (inherits(cond, "warning")) { [17:28:20.609] muffled <- grepl(pattern, "muffleWarning") [17:28:20.609] if (muffled) [17:28:20.609] invokeRestart("muffleWarning") [17:28:20.609] } [17:28:20.609] else if (inherits(cond, "condition")) { [17:28:20.609] if (!is.null(pattern)) { [17:28:20.609] computeRestarts <- base::computeRestarts [17:28:20.609] grepl <- base::grepl [17:28:20.609] restarts <- computeRestarts(cond) [17:28:20.609] for (restart in restarts) { [17:28:20.609] name <- restart$name [17:28:20.609] if (is.null(name)) [17:28:20.609] next [17:28:20.609] if (!grepl(pattern, name)) [17:28:20.609] next [17:28:20.609] invokeRestart(restart) [17:28:20.609] muffled <- TRUE [17:28:20.609] break [17:28:20.609] } [17:28:20.609] } [17:28:20.609] } [17:28:20.609] invisible(muffled) [17:28:20.609] } [17:28:20.609] muffleCondition(cond) [17:28:20.609] }) [17:28:20.609] })) [17:28:20.609] future::FutureResult(value = ...future.value$value, [17:28:20.609] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:20.609] ...future.rng), globalenv = if (FALSE) [17:28:20.609] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:20.609] ...future.globalenv.names)) [17:28:20.609] else NULL, started = ...future.startTime, version = "1.8") [17:28:20.609] }, condition = base::local({ [17:28:20.609] c <- base::c [17:28:20.609] inherits <- base::inherits [17:28:20.609] invokeRestart <- base::invokeRestart [17:28:20.609] length <- base::length [17:28:20.609] list <- base::list [17:28:20.609] seq.int <- base::seq.int [17:28:20.609] signalCondition <- base::signalCondition [17:28:20.609] sys.calls <- base::sys.calls [17:28:20.609] `[[` <- base::`[[` [17:28:20.609] `+` <- base::`+` [17:28:20.609] `<<-` <- base::`<<-` [17:28:20.609] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:20.609] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:20.609] 3L)] [17:28:20.609] } [17:28:20.609] function(cond) { [17:28:20.609] is_error <- inherits(cond, "error") [17:28:20.609] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:20.609] NULL) [17:28:20.609] if (is_error) { [17:28:20.609] sessionInformation <- function() { [17:28:20.609] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:20.609] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:20.609] search = base::search(), system = base::Sys.info()) [17:28:20.609] } [17:28:20.609] ...future.conditions[[length(...future.conditions) + [17:28:20.609] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:20.609] cond$call), session = sessionInformation(), [17:28:20.609] timestamp = base::Sys.time(), signaled = 0L) [17:28:20.609] signalCondition(cond) [17:28:20.609] } [17:28:20.609] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:20.609] "immediateCondition"))) { [17:28:20.609] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:20.609] ...future.conditions[[length(...future.conditions) + [17:28:20.609] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:20.609] if (TRUE && !signal) { [17:28:20.609] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.609] { [17:28:20.609] inherits <- base::inherits [17:28:20.609] invokeRestart <- base::invokeRestart [17:28:20.609] is.null <- base::is.null [17:28:20.609] muffled <- FALSE [17:28:20.609] if (inherits(cond, "message")) { [17:28:20.609] muffled <- grepl(pattern, "muffleMessage") [17:28:20.609] if (muffled) [17:28:20.609] invokeRestart("muffleMessage") [17:28:20.609] } [17:28:20.609] else if (inherits(cond, "warning")) { [17:28:20.609] muffled <- grepl(pattern, "muffleWarning") [17:28:20.609] if (muffled) [17:28:20.609] invokeRestart("muffleWarning") [17:28:20.609] } [17:28:20.609] else if (inherits(cond, "condition")) { [17:28:20.609] if (!is.null(pattern)) { [17:28:20.609] computeRestarts <- base::computeRestarts [17:28:20.609] grepl <- base::grepl [17:28:20.609] restarts <- computeRestarts(cond) [17:28:20.609] for (restart in restarts) { [17:28:20.609] name <- restart$name [17:28:20.609] if (is.null(name)) [17:28:20.609] next [17:28:20.609] if (!grepl(pattern, name)) [17:28:20.609] next [17:28:20.609] invokeRestart(restart) [17:28:20.609] muffled <- TRUE [17:28:20.609] break [17:28:20.609] } [17:28:20.609] } [17:28:20.609] } [17:28:20.609] invisible(muffled) [17:28:20.609] } [17:28:20.609] muffleCondition(cond, pattern = "^muffle") [17:28:20.609] } [17:28:20.609] } [17:28:20.609] else { [17:28:20.609] if (TRUE) { [17:28:20.609] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.609] { [17:28:20.609] inherits <- base::inherits [17:28:20.609] invokeRestart <- base::invokeRestart [17:28:20.609] is.null <- base::is.null [17:28:20.609] muffled <- FALSE [17:28:20.609] if (inherits(cond, "message")) { [17:28:20.609] muffled <- grepl(pattern, "muffleMessage") [17:28:20.609] if (muffled) [17:28:20.609] invokeRestart("muffleMessage") [17:28:20.609] } [17:28:20.609] else if (inherits(cond, "warning")) { [17:28:20.609] muffled <- grepl(pattern, "muffleWarning") [17:28:20.609] if (muffled) [17:28:20.609] invokeRestart("muffleWarning") [17:28:20.609] } [17:28:20.609] else if (inherits(cond, "condition")) { [17:28:20.609] if (!is.null(pattern)) { [17:28:20.609] computeRestarts <- base::computeRestarts [17:28:20.609] grepl <- base::grepl [17:28:20.609] restarts <- computeRestarts(cond) [17:28:20.609] for (restart in restarts) { [17:28:20.609] name <- restart$name [17:28:20.609] if (is.null(name)) [17:28:20.609] next [17:28:20.609] if (!grepl(pattern, name)) [17:28:20.609] next [17:28:20.609] invokeRestart(restart) [17:28:20.609] muffled <- TRUE [17:28:20.609] break [17:28:20.609] } [17:28:20.609] } [17:28:20.609] } [17:28:20.609] invisible(muffled) [17:28:20.609] } [17:28:20.609] muffleCondition(cond, pattern = "^muffle") [17:28:20.609] } [17:28:20.609] } [17:28:20.609] } [17:28:20.609] })) [17:28:20.609] }, error = function(ex) { [17:28:20.609] base::structure(base::list(value = NULL, visible = NULL, [17:28:20.609] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:20.609] ...future.rng), started = ...future.startTime, [17:28:20.609] finished = Sys.time(), session_uuid = NA_character_, [17:28:20.609] version = "1.8"), class = "FutureResult") [17:28:20.609] }, finally = { [17:28:20.609] if (!identical(...future.workdir, getwd())) [17:28:20.609] setwd(...future.workdir) [17:28:20.609] { [17:28:20.609] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:20.609] ...future.oldOptions$nwarnings <- NULL [17:28:20.609] } [17:28:20.609] base::options(...future.oldOptions) [17:28:20.609] if (.Platform$OS.type == "windows") { [17:28:20.609] old_names <- names(...future.oldEnvVars) [17:28:20.609] envs <- base::Sys.getenv() [17:28:20.609] names <- names(envs) [17:28:20.609] common <- intersect(names, old_names) [17:28:20.609] added <- setdiff(names, old_names) [17:28:20.609] removed <- setdiff(old_names, names) [17:28:20.609] changed <- common[...future.oldEnvVars[common] != [17:28:20.609] envs[common]] [17:28:20.609] NAMES <- toupper(changed) [17:28:20.609] args <- list() [17:28:20.609] for (kk in seq_along(NAMES)) { [17:28:20.609] name <- changed[[kk]] [17:28:20.609] NAME <- NAMES[[kk]] [17:28:20.609] if (name != NAME && is.element(NAME, old_names)) [17:28:20.609] next [17:28:20.609] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:20.609] } [17:28:20.609] NAMES <- toupper(added) [17:28:20.609] for (kk in seq_along(NAMES)) { [17:28:20.609] name <- added[[kk]] [17:28:20.609] NAME <- NAMES[[kk]] [17:28:20.609] if (name != NAME && is.element(NAME, old_names)) [17:28:20.609] next [17:28:20.609] args[[name]] <- "" [17:28:20.609] } [17:28:20.609] NAMES <- toupper(removed) [17:28:20.609] for (kk in seq_along(NAMES)) { [17:28:20.609] name <- removed[[kk]] [17:28:20.609] NAME <- NAMES[[kk]] [17:28:20.609] if (name != NAME && is.element(NAME, old_names)) [17:28:20.609] next [17:28:20.609] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:20.609] } [17:28:20.609] if (length(args) > 0) [17:28:20.609] base::do.call(base::Sys.setenv, args = args) [17:28:20.609] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:20.609] } [17:28:20.609] else { [17:28:20.609] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:20.609] } [17:28:20.609] { [17:28:20.609] if (base::length(...future.futureOptionsAdded) > [17:28:20.609] 0L) { [17:28:20.609] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:20.609] base::names(opts) <- ...future.futureOptionsAdded [17:28:20.609] base::options(opts) [17:28:20.609] } [17:28:20.609] { [17:28:20.609] { [17:28:20.609] base::options(mc.cores = ...future.mc.cores.old) [17:28:20.609] NULL [17:28:20.609] } [17:28:20.609] options(future.plan = NULL) [17:28:20.609] if (is.na(NA_character_)) [17:28:20.609] Sys.unsetenv("R_FUTURE_PLAN") [17:28:20.609] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:20.609] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:20.609] .init = FALSE) [17:28:20.609] } [17:28:20.609] } [17:28:20.609] } [17:28:20.609] }) [17:28:20.609] if (TRUE) { [17:28:20.609] base::sink(type = "output", split = FALSE) [17:28:20.609] if (TRUE) { [17:28:20.609] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:20.609] } [17:28:20.609] else { [17:28:20.609] ...future.result["stdout"] <- base::list(NULL) [17:28:20.609] } [17:28:20.609] base::close(...future.stdout) [17:28:20.609] ...future.stdout <- NULL [17:28:20.609] } [17:28:20.609] ...future.result$conditions <- ...future.conditions [17:28:20.609] ...future.result$finished <- base::Sys.time() [17:28:20.609] ...future.result [17:28:20.609] } [17:28:20.632] Exporting 1 global objects (314.53 KiB) to cluster node #1 ... [17:28:20.648] Exporting 'f1' (314.32 KiB) to cluster node #1 ... [17:28:20.665] Exporting 'f1' (314.32 KiB) to cluster node #1 ... DONE [17:28:20.666] Exporting 1 global objects (314.53 KiB) to cluster node #1 ... DONE [17:28:20.667] MultisessionFuture started [17:28:20.667] - Launch lazy future ... done [17:28:20.667] 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:28:20.668] result() for ClusterFuture ... [17:28:20.668] receiveMessageFromWorker() for ClusterFuture ... [17:28:20.669] - Validating connection of MultisessionFuture [17:28:20.693] - received message: FutureResult [17:28:20.694] - Received FutureResult [17:28:20.694] - Erased future from FutureRegistry [17:28:20.695] result() for ClusterFuture ... [17:28:20.695] - result already collected: FutureResult [17:28:20.695] result() for ClusterFuture ... done [17:28:20.695] receiveMessageFromWorker() for ClusterFuture ... done [17:28:20.696] result() for ClusterFuture ... done [17:28:20.696] result() for ClusterFuture ... [17:28:20.696] - result already collected: FutureResult [17:28:20.697] result() for ClusterFuture ... done > cat(sprintf("Future #3 owner: %s\n", v3)) Future #3 owner: aeae44ba-ffaa-03d1-9ad0-d264b027a198 > stopifnot(v3 == session_uuid) > > message("Creating future #4:") Creating future #4: > f4 <- future({ f1$owner }) [17:28:20.697] getGlobalsAndPackages() ... [17:28:20.698] Searching for globals... [17:28:20.700] - globals found: [3] '{', '$', 'f1' [17:28:20.700] Searching for globals ... DONE [17:28:20.700] Resolving globals: FALSE [17:28:20.715] The total size of the 1 globals is 314.32 KiB (321866 bytes) [17:28:20.716] The total size of the 1 globals exported for future expression ('{; f1$owner; }') is 314.32 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'f1' (314.32 KiB of class 'environment') [17:28:20.716] - globals: [1] 'f1' [17:28:20.716] [17:28:20.716] getGlobalsAndPackages() ... DONE [17:28:20.717] run() for 'Future' ... [17:28:20.717] - state: 'created' [17:28:20.718] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:28:20.734] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:28:20.734] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:28:20.734] - Field: 'node' [17:28:20.735] - Field: 'label' [17:28:20.735] - Field: 'local' [17:28:20.735] - Field: 'owner' [17:28:20.735] - Field: 'envir' [17:28:20.735] - Field: 'workers' [17:28:20.736] - Field: 'packages' [17:28:20.736] - Field: 'gc' [17:28:20.736] - Field: 'conditions' [17:28:20.736] - Field: 'persistent' [17:28:20.736] - Field: 'expr' [17:28:20.737] - Field: 'uuid' [17:28:20.737] - Field: 'seed' [17:28:20.737] - Field: 'version' [17:28:20.738] - Field: 'result' [17:28:20.738] - Field: 'asynchronous' [17:28:20.738] - Field: 'calls' [17:28:20.739] - Field: 'globals' [17:28:20.739] - Field: 'stdout' [17:28:20.739] - Field: 'earlySignal' [17:28:20.740] - Field: 'lazy' [17:28:20.740] - Field: 'state' [17:28:20.740] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:28:20.741] - Launch lazy future ... [17:28:20.741] Packages needed by the future expression (n = 0): [17:28:20.742] Packages needed by future strategies (n = 0): [17:28:20.743] { [17:28:20.743] { [17:28:20.743] { [17:28:20.743] ...future.startTime <- base::Sys.time() [17:28:20.743] { [17:28:20.743] { [17:28:20.743] { [17:28:20.743] { [17:28:20.743] base::local({ [17:28:20.743] has_future <- base::requireNamespace("future", [17:28:20.743] quietly = TRUE) [17:28:20.743] if (has_future) { [17:28:20.743] ns <- base::getNamespace("future") [17:28:20.743] version <- ns[[".package"]][["version"]] [17:28:20.743] if (is.null(version)) [17:28:20.743] version <- utils::packageVersion("future") [17:28:20.743] } [17:28:20.743] else { [17:28:20.743] version <- NULL [17:28:20.743] } [17:28:20.743] if (!has_future || version < "1.8.0") { [17:28:20.743] info <- base::c(r_version = base::gsub("R version ", [17:28:20.743] "", base::R.version$version.string), [17:28:20.743] platform = base::sprintf("%s (%s-bit)", [17:28:20.743] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:20.743] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:20.743] "release", "version")], collapse = " "), [17:28:20.743] hostname = base::Sys.info()[["nodename"]]) [17:28:20.743] info <- base::sprintf("%s: %s", base::names(info), [17:28:20.743] info) [17:28:20.743] info <- base::paste(info, collapse = "; ") [17:28:20.743] if (!has_future) { [17:28:20.743] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:20.743] info) [17:28:20.743] } [17:28:20.743] else { [17:28:20.743] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:20.743] info, version) [17:28:20.743] } [17:28:20.743] base::stop(msg) [17:28:20.743] } [17:28:20.743] }) [17:28:20.743] } [17:28:20.743] ...future.mc.cores.old <- base::getOption("mc.cores") [17:28:20.743] base::options(mc.cores = 1L) [17:28:20.743] } [17:28:20.743] ...future.strategy.old <- future::plan("list") [17:28:20.743] options(future.plan = NULL) [17:28:20.743] Sys.unsetenv("R_FUTURE_PLAN") [17:28:20.743] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:20.743] } [17:28:20.743] ...future.workdir <- getwd() [17:28:20.743] } [17:28:20.743] ...future.oldOptions <- base::as.list(base::.Options) [17:28:20.743] ...future.oldEnvVars <- base::Sys.getenv() [17:28:20.743] } [17:28:20.743] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:20.743] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:20.743] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:20.743] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:20.743] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:20.743] future.stdout.windows.reencode = NULL, width = 80L) [17:28:20.743] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:20.743] base::names(...future.oldOptions)) [17:28:20.743] } [17:28:20.743] if (FALSE) { [17:28:20.743] } [17:28:20.743] else { [17:28:20.743] if (TRUE) { [17:28:20.743] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:20.743] open = "w") [17:28:20.743] } [17:28:20.743] else { [17:28:20.743] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:20.743] windows = "NUL", "/dev/null"), open = "w") [17:28:20.743] } [17:28:20.743] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:20.743] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:20.743] base::sink(type = "output", split = FALSE) [17:28:20.743] base::close(...future.stdout) [17:28:20.743] }, add = TRUE) [17:28:20.743] } [17:28:20.743] ...future.frame <- base::sys.nframe() [17:28:20.743] ...future.conditions <- base::list() [17:28:20.743] ...future.rng <- base::globalenv()$.Random.seed [17:28:20.743] if (FALSE) { [17:28:20.743] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:20.743] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:20.743] } [17:28:20.743] ...future.result <- base::tryCatch({ [17:28:20.743] base::withCallingHandlers({ [17:28:20.743] ...future.value <- base::withVisible(base::local({ [17:28:20.743] ...future.makeSendCondition <- base::local({ [17:28:20.743] sendCondition <- NULL [17:28:20.743] function(frame = 1L) { [17:28:20.743] if (is.function(sendCondition)) [17:28:20.743] return(sendCondition) [17:28:20.743] ns <- getNamespace("parallel") [17:28:20.743] if (exists("sendData", mode = "function", [17:28:20.743] envir = ns)) { [17:28:20.743] parallel_sendData <- get("sendData", mode = "function", [17:28:20.743] envir = ns) [17:28:20.743] envir <- sys.frame(frame) [17:28:20.743] master <- NULL [17:28:20.743] while (!identical(envir, .GlobalEnv) && [17:28:20.743] !identical(envir, emptyenv())) { [17:28:20.743] if (exists("master", mode = "list", envir = envir, [17:28:20.743] inherits = FALSE)) { [17:28:20.743] master <- get("master", mode = "list", [17:28:20.743] envir = envir, inherits = FALSE) [17:28:20.743] if (inherits(master, c("SOCKnode", [17:28:20.743] "SOCK0node"))) { [17:28:20.743] sendCondition <<- function(cond) { [17:28:20.743] data <- list(type = "VALUE", value = cond, [17:28:20.743] success = TRUE) [17:28:20.743] parallel_sendData(master, data) [17:28:20.743] } [17:28:20.743] return(sendCondition) [17:28:20.743] } [17:28:20.743] } [17:28:20.743] frame <- frame + 1L [17:28:20.743] envir <- sys.frame(frame) [17:28:20.743] } [17:28:20.743] } [17:28:20.743] sendCondition <<- function(cond) NULL [17:28:20.743] } [17:28:20.743] }) [17:28:20.743] withCallingHandlers({ [17:28:20.743] { [17:28:20.743] f1$owner [17:28:20.743] } [17:28:20.743] }, immediateCondition = function(cond) { [17:28:20.743] sendCondition <- ...future.makeSendCondition() [17:28:20.743] sendCondition(cond) [17:28:20.743] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.743] { [17:28:20.743] inherits <- base::inherits [17:28:20.743] invokeRestart <- base::invokeRestart [17:28:20.743] is.null <- base::is.null [17:28:20.743] muffled <- FALSE [17:28:20.743] if (inherits(cond, "message")) { [17:28:20.743] muffled <- grepl(pattern, "muffleMessage") [17:28:20.743] if (muffled) [17:28:20.743] invokeRestart("muffleMessage") [17:28:20.743] } [17:28:20.743] else if (inherits(cond, "warning")) { [17:28:20.743] muffled <- grepl(pattern, "muffleWarning") [17:28:20.743] if (muffled) [17:28:20.743] invokeRestart("muffleWarning") [17:28:20.743] } [17:28:20.743] else if (inherits(cond, "condition")) { [17:28:20.743] if (!is.null(pattern)) { [17:28:20.743] computeRestarts <- base::computeRestarts [17:28:20.743] grepl <- base::grepl [17:28:20.743] restarts <- computeRestarts(cond) [17:28:20.743] for (restart in restarts) { [17:28:20.743] name <- restart$name [17:28:20.743] if (is.null(name)) [17:28:20.743] next [17:28:20.743] if (!grepl(pattern, name)) [17:28:20.743] next [17:28:20.743] invokeRestart(restart) [17:28:20.743] muffled <- TRUE [17:28:20.743] break [17:28:20.743] } [17:28:20.743] } [17:28:20.743] } [17:28:20.743] invisible(muffled) [17:28:20.743] } [17:28:20.743] muffleCondition(cond) [17:28:20.743] }) [17:28:20.743] })) [17:28:20.743] future::FutureResult(value = ...future.value$value, [17:28:20.743] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:20.743] ...future.rng), globalenv = if (FALSE) [17:28:20.743] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:20.743] ...future.globalenv.names)) [17:28:20.743] else NULL, started = ...future.startTime, version = "1.8") [17:28:20.743] }, condition = base::local({ [17:28:20.743] c <- base::c [17:28:20.743] inherits <- base::inherits [17:28:20.743] invokeRestart <- base::invokeRestart [17:28:20.743] length <- base::length [17:28:20.743] list <- base::list [17:28:20.743] seq.int <- base::seq.int [17:28:20.743] signalCondition <- base::signalCondition [17:28:20.743] sys.calls <- base::sys.calls [17:28:20.743] `[[` <- base::`[[` [17:28:20.743] `+` <- base::`+` [17:28:20.743] `<<-` <- base::`<<-` [17:28:20.743] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:20.743] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:20.743] 3L)] [17:28:20.743] } [17:28:20.743] function(cond) { [17:28:20.743] is_error <- inherits(cond, "error") [17:28:20.743] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:20.743] NULL) [17:28:20.743] if (is_error) { [17:28:20.743] sessionInformation <- function() { [17:28:20.743] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:20.743] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:20.743] search = base::search(), system = base::Sys.info()) [17:28:20.743] } [17:28:20.743] ...future.conditions[[length(...future.conditions) + [17:28:20.743] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:20.743] cond$call), session = sessionInformation(), [17:28:20.743] timestamp = base::Sys.time(), signaled = 0L) [17:28:20.743] signalCondition(cond) [17:28:20.743] } [17:28:20.743] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:20.743] "immediateCondition"))) { [17:28:20.743] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:20.743] ...future.conditions[[length(...future.conditions) + [17:28:20.743] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:20.743] if (TRUE && !signal) { [17:28:20.743] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.743] { [17:28:20.743] inherits <- base::inherits [17:28:20.743] invokeRestart <- base::invokeRestart [17:28:20.743] is.null <- base::is.null [17:28:20.743] muffled <- FALSE [17:28:20.743] if (inherits(cond, "message")) { [17:28:20.743] muffled <- grepl(pattern, "muffleMessage") [17:28:20.743] if (muffled) [17:28:20.743] invokeRestart("muffleMessage") [17:28:20.743] } [17:28:20.743] else if (inherits(cond, "warning")) { [17:28:20.743] muffled <- grepl(pattern, "muffleWarning") [17:28:20.743] if (muffled) [17:28:20.743] invokeRestart("muffleWarning") [17:28:20.743] } [17:28:20.743] else if (inherits(cond, "condition")) { [17:28:20.743] if (!is.null(pattern)) { [17:28:20.743] computeRestarts <- base::computeRestarts [17:28:20.743] grepl <- base::grepl [17:28:20.743] restarts <- computeRestarts(cond) [17:28:20.743] for (restart in restarts) { [17:28:20.743] name <- restart$name [17:28:20.743] if (is.null(name)) [17:28:20.743] next [17:28:20.743] if (!grepl(pattern, name)) [17:28:20.743] next [17:28:20.743] invokeRestart(restart) [17:28:20.743] muffled <- TRUE [17:28:20.743] break [17:28:20.743] } [17:28:20.743] } [17:28:20.743] } [17:28:20.743] invisible(muffled) [17:28:20.743] } [17:28:20.743] muffleCondition(cond, pattern = "^muffle") [17:28:20.743] } [17:28:20.743] } [17:28:20.743] else { [17:28:20.743] if (TRUE) { [17:28:20.743] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.743] { [17:28:20.743] inherits <- base::inherits [17:28:20.743] invokeRestart <- base::invokeRestart [17:28:20.743] is.null <- base::is.null [17:28:20.743] muffled <- FALSE [17:28:20.743] if (inherits(cond, "message")) { [17:28:20.743] muffled <- grepl(pattern, "muffleMessage") [17:28:20.743] if (muffled) [17:28:20.743] invokeRestart("muffleMessage") [17:28:20.743] } [17:28:20.743] else if (inherits(cond, "warning")) { [17:28:20.743] muffled <- grepl(pattern, "muffleWarning") [17:28:20.743] if (muffled) [17:28:20.743] invokeRestart("muffleWarning") [17:28:20.743] } [17:28:20.743] else if (inherits(cond, "condition")) { [17:28:20.743] if (!is.null(pattern)) { [17:28:20.743] computeRestarts <- base::computeRestarts [17:28:20.743] grepl <- base::grepl [17:28:20.743] restarts <- computeRestarts(cond) [17:28:20.743] for (restart in restarts) { [17:28:20.743] name <- restart$name [17:28:20.743] if (is.null(name)) [17:28:20.743] next [17:28:20.743] if (!grepl(pattern, name)) [17:28:20.743] next [17:28:20.743] invokeRestart(restart) [17:28:20.743] muffled <- TRUE [17:28:20.743] break [17:28:20.743] } [17:28:20.743] } [17:28:20.743] } [17:28:20.743] invisible(muffled) [17:28:20.743] } [17:28:20.743] muffleCondition(cond, pattern = "^muffle") [17:28:20.743] } [17:28:20.743] } [17:28:20.743] } [17:28:20.743] })) [17:28:20.743] }, error = function(ex) { [17:28:20.743] base::structure(base::list(value = NULL, visible = NULL, [17:28:20.743] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:20.743] ...future.rng), started = ...future.startTime, [17:28:20.743] finished = Sys.time(), session_uuid = NA_character_, [17:28:20.743] version = "1.8"), class = "FutureResult") [17:28:20.743] }, finally = { [17:28:20.743] if (!identical(...future.workdir, getwd())) [17:28:20.743] setwd(...future.workdir) [17:28:20.743] { [17:28:20.743] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:20.743] ...future.oldOptions$nwarnings <- NULL [17:28:20.743] } [17:28:20.743] base::options(...future.oldOptions) [17:28:20.743] if (.Platform$OS.type == "windows") { [17:28:20.743] old_names <- names(...future.oldEnvVars) [17:28:20.743] envs <- base::Sys.getenv() [17:28:20.743] names <- names(envs) [17:28:20.743] common <- intersect(names, old_names) [17:28:20.743] added <- setdiff(names, old_names) [17:28:20.743] removed <- setdiff(old_names, names) [17:28:20.743] changed <- common[...future.oldEnvVars[common] != [17:28:20.743] envs[common]] [17:28:20.743] NAMES <- toupper(changed) [17:28:20.743] args <- list() [17:28:20.743] for (kk in seq_along(NAMES)) { [17:28:20.743] name <- changed[[kk]] [17:28:20.743] NAME <- NAMES[[kk]] [17:28:20.743] if (name != NAME && is.element(NAME, old_names)) [17:28:20.743] next [17:28:20.743] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:20.743] } [17:28:20.743] NAMES <- toupper(added) [17:28:20.743] for (kk in seq_along(NAMES)) { [17:28:20.743] name <- added[[kk]] [17:28:20.743] NAME <- NAMES[[kk]] [17:28:20.743] if (name != NAME && is.element(NAME, old_names)) [17:28:20.743] next [17:28:20.743] args[[name]] <- "" [17:28:20.743] } [17:28:20.743] NAMES <- toupper(removed) [17:28:20.743] for (kk in seq_along(NAMES)) { [17:28:20.743] name <- removed[[kk]] [17:28:20.743] NAME <- NAMES[[kk]] [17:28:20.743] if (name != NAME && is.element(NAME, old_names)) [17:28:20.743] next [17:28:20.743] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:20.743] } [17:28:20.743] if (length(args) > 0) [17:28:20.743] base::do.call(base::Sys.setenv, args = args) [17:28:20.743] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:20.743] } [17:28:20.743] else { [17:28:20.743] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:20.743] } [17:28:20.743] { [17:28:20.743] if (base::length(...future.futureOptionsAdded) > [17:28:20.743] 0L) { [17:28:20.743] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:20.743] base::names(opts) <- ...future.futureOptionsAdded [17:28:20.743] base::options(opts) [17:28:20.743] } [17:28:20.743] { [17:28:20.743] { [17:28:20.743] base::options(mc.cores = ...future.mc.cores.old) [17:28:20.743] NULL [17:28:20.743] } [17:28:20.743] options(future.plan = NULL) [17:28:20.743] if (is.na(NA_character_)) [17:28:20.743] Sys.unsetenv("R_FUTURE_PLAN") [17:28:20.743] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:20.743] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:20.743] .init = FALSE) [17:28:20.743] } [17:28:20.743] } [17:28:20.743] } [17:28:20.743] }) [17:28:20.743] if (TRUE) { [17:28:20.743] base::sink(type = "output", split = FALSE) [17:28:20.743] if (TRUE) { [17:28:20.743] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:20.743] } [17:28:20.743] else { [17:28:20.743] ...future.result["stdout"] <- base::list(NULL) [17:28:20.743] } [17:28:20.743] base::close(...future.stdout) [17:28:20.743] ...future.stdout <- NULL [17:28:20.743] } [17:28:20.743] ...future.result$conditions <- ...future.conditions [17:28:20.743] ...future.result$finished <- base::Sys.time() [17:28:20.743] ...future.result [17:28:20.743] } [17:28:20.765] Exporting 1 global objects (314.53 KiB) to cluster node #1 ... [17:28:20.779] Exporting 'f1' (314.32 KiB) to cluster node #1 ... [17:28:20.796] Exporting 'f1' (314.32 KiB) to cluster node #1 ... DONE [17:28:20.796] Exporting 1 global objects (314.53 KiB) to cluster node #1 ... DONE [17:28:20.797] MultisessionFuture started [17:28:20.798] - Launch lazy future ... done [17:28:20.798] 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:28:20.798] result() for ClusterFuture ... [17:28:20.799] receiveMessageFromWorker() for ClusterFuture ... [17:28:20.799] - Validating connection of MultisessionFuture [17:28:20.824] - received message: FutureResult [17:28:20.824] - Received FutureResult [17:28:20.825] - Erased future from FutureRegistry [17:28:20.825] result() for ClusterFuture ... [17:28:20.825] - result already collected: FutureResult [17:28:20.826] result() for ClusterFuture ... done [17:28:20.826] receiveMessageFromWorker() for ClusterFuture ... done [17:28:20.826] result() for ClusterFuture ... done [17:28:20.826] result() for ClusterFuture ... [17:28:20.827] - result already collected: FutureResult [17:28:20.827] result() for ClusterFuture ... done > cat(sprintf("Future #4 owner: %s\n", v4)) Future #4 owner: aeae44ba-ffaa-03d1-9ad0-d264b027a198 > stopifnot(v4 == session_uuid) > > message("Creating future #5:") Creating future #5: > f5 <- future({ stopifnot(f1$owner != future:::session_uuid(attributes = TRUE)); "not-owner" }) [17:28:20.828] getGlobalsAndPackages() ... [17:28:20.828] Searching for globals... [17:28:20.831] - globals found: [6] '{', 'stopifnot', '!=', '$', 'f1', ':::' [17:28:20.832] Searching for globals ... DONE [17:28:20.832] Resolving globals: FALSE [17:28:20.850] The total size of the 1 globals is 314.32 KiB (321866 bytes) [17:28:20.851] The total size of the 1 globals exported for future expression ('{; stopifnot(f1$owner != future:::session_uuid(attributes = TRUE)); "not-owner"; }') is 314.32 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'f1' (314.32 KiB of class 'environment') [17:28:20.851] - globals: [1] 'f1' [17:28:20.852] [17:28:20.852] getGlobalsAndPackages() ... DONE [17:28:20.852] run() for 'Future' ... [17:28:20.853] - state: 'created' [17:28:20.853] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:28:20.874] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:28:20.874] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:28:20.875] - Field: 'node' [17:28:20.875] - Field: 'label' [17:28:20.875] - Field: 'local' [17:28:20.876] - Field: 'owner' [17:28:20.876] - Field: 'envir' [17:28:20.877] - Field: 'workers' [17:28:20.877] - Field: 'packages' [17:28:20.877] - Field: 'gc' [17:28:20.878] - Field: 'conditions' [17:28:20.878] - Field: 'persistent' [17:28:20.879] - Field: 'expr' [17:28:20.879] - Field: 'uuid' [17:28:20.879] - Field: 'seed' [17:28:20.880] - Field: 'version' [17:28:20.880] - Field: 'result' [17:28:20.880] - Field: 'asynchronous' [17:28:20.881] - Field: 'calls' [17:28:20.881] - Field: 'globals' [17:28:20.882] - Field: 'stdout' [17:28:20.882] - Field: 'earlySignal' [17:28:20.882] - Field: 'lazy' [17:28:20.883] - Field: 'state' [17:28:20.883] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:28:20.883] - Launch lazy future ... [17:28:20.884] Packages needed by the future expression (n = 0): [17:28:20.884] Packages needed by future strategies (n = 0): [17:28:20.885] { [17:28:20.885] { [17:28:20.885] { [17:28:20.885] ...future.startTime <- base::Sys.time() [17:28:20.885] { [17:28:20.885] { [17:28:20.885] { [17:28:20.885] { [17:28:20.885] base::local({ [17:28:20.885] has_future <- base::requireNamespace("future", [17:28:20.885] quietly = TRUE) [17:28:20.885] if (has_future) { [17:28:20.885] ns <- base::getNamespace("future") [17:28:20.885] version <- ns[[".package"]][["version"]] [17:28:20.885] if (is.null(version)) [17:28:20.885] version <- utils::packageVersion("future") [17:28:20.885] } [17:28:20.885] else { [17:28:20.885] version <- NULL [17:28:20.885] } [17:28:20.885] if (!has_future || version < "1.8.0") { [17:28:20.885] info <- base::c(r_version = base::gsub("R version ", [17:28:20.885] "", base::R.version$version.string), [17:28:20.885] platform = base::sprintf("%s (%s-bit)", [17:28:20.885] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:20.885] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:20.885] "release", "version")], collapse = " "), [17:28:20.885] hostname = base::Sys.info()[["nodename"]]) [17:28:20.885] info <- base::sprintf("%s: %s", base::names(info), [17:28:20.885] info) [17:28:20.885] info <- base::paste(info, collapse = "; ") [17:28:20.885] if (!has_future) { [17:28:20.885] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:20.885] info) [17:28:20.885] } [17:28:20.885] else { [17:28:20.885] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:20.885] info, version) [17:28:20.885] } [17:28:20.885] base::stop(msg) [17:28:20.885] } [17:28:20.885] }) [17:28:20.885] } [17:28:20.885] ...future.mc.cores.old <- base::getOption("mc.cores") [17:28:20.885] base::options(mc.cores = 1L) [17:28:20.885] } [17:28:20.885] ...future.strategy.old <- future::plan("list") [17:28:20.885] options(future.plan = NULL) [17:28:20.885] Sys.unsetenv("R_FUTURE_PLAN") [17:28:20.885] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:20.885] } [17:28:20.885] ...future.workdir <- getwd() [17:28:20.885] } [17:28:20.885] ...future.oldOptions <- base::as.list(base::.Options) [17:28:20.885] ...future.oldEnvVars <- base::Sys.getenv() [17:28:20.885] } [17:28:20.885] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:20.885] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:20.885] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:20.885] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:20.885] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:20.885] future.stdout.windows.reencode = NULL, width = 80L) [17:28:20.885] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:20.885] base::names(...future.oldOptions)) [17:28:20.885] } [17:28:20.885] if (FALSE) { [17:28:20.885] } [17:28:20.885] else { [17:28:20.885] if (TRUE) { [17:28:20.885] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:20.885] open = "w") [17:28:20.885] } [17:28:20.885] else { [17:28:20.885] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:20.885] windows = "NUL", "/dev/null"), open = "w") [17:28:20.885] } [17:28:20.885] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:20.885] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:20.885] base::sink(type = "output", split = FALSE) [17:28:20.885] base::close(...future.stdout) [17:28:20.885] }, add = TRUE) [17:28:20.885] } [17:28:20.885] ...future.frame <- base::sys.nframe() [17:28:20.885] ...future.conditions <- base::list() [17:28:20.885] ...future.rng <- base::globalenv()$.Random.seed [17:28:20.885] if (FALSE) { [17:28:20.885] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:20.885] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:20.885] } [17:28:20.885] ...future.result <- base::tryCatch({ [17:28:20.885] base::withCallingHandlers({ [17:28:20.885] ...future.value <- base::withVisible(base::local({ [17:28:20.885] ...future.makeSendCondition <- base::local({ [17:28:20.885] sendCondition <- NULL [17:28:20.885] function(frame = 1L) { [17:28:20.885] if (is.function(sendCondition)) [17:28:20.885] return(sendCondition) [17:28:20.885] ns <- getNamespace("parallel") [17:28:20.885] if (exists("sendData", mode = "function", [17:28:20.885] envir = ns)) { [17:28:20.885] parallel_sendData <- get("sendData", mode = "function", [17:28:20.885] envir = ns) [17:28:20.885] envir <- sys.frame(frame) [17:28:20.885] master <- NULL [17:28:20.885] while (!identical(envir, .GlobalEnv) && [17:28:20.885] !identical(envir, emptyenv())) { [17:28:20.885] if (exists("master", mode = "list", envir = envir, [17:28:20.885] inherits = FALSE)) { [17:28:20.885] master <- get("master", mode = "list", [17:28:20.885] envir = envir, inherits = FALSE) [17:28:20.885] if (inherits(master, c("SOCKnode", [17:28:20.885] "SOCK0node"))) { [17:28:20.885] sendCondition <<- function(cond) { [17:28:20.885] data <- list(type = "VALUE", value = cond, [17:28:20.885] success = TRUE) [17:28:20.885] parallel_sendData(master, data) [17:28:20.885] } [17:28:20.885] return(sendCondition) [17:28:20.885] } [17:28:20.885] } [17:28:20.885] frame <- frame + 1L [17:28:20.885] envir <- sys.frame(frame) [17:28:20.885] } [17:28:20.885] } [17:28:20.885] sendCondition <<- function(cond) NULL [17:28:20.885] } [17:28:20.885] }) [17:28:20.885] withCallingHandlers({ [17:28:20.885] { [17:28:20.885] stopifnot(f1$owner != future:::session_uuid(attributes = TRUE)) [17:28:20.885] "not-owner" [17:28:20.885] } [17:28:20.885] }, immediateCondition = function(cond) { [17:28:20.885] sendCondition <- ...future.makeSendCondition() [17:28:20.885] sendCondition(cond) [17:28:20.885] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.885] { [17:28:20.885] inherits <- base::inherits [17:28:20.885] invokeRestart <- base::invokeRestart [17:28:20.885] is.null <- base::is.null [17:28:20.885] muffled <- FALSE [17:28:20.885] if (inherits(cond, "message")) { [17:28:20.885] muffled <- grepl(pattern, "muffleMessage") [17:28:20.885] if (muffled) [17:28:20.885] invokeRestart("muffleMessage") [17:28:20.885] } [17:28:20.885] else if (inherits(cond, "warning")) { [17:28:20.885] muffled <- grepl(pattern, "muffleWarning") [17:28:20.885] if (muffled) [17:28:20.885] invokeRestart("muffleWarning") [17:28:20.885] } [17:28:20.885] else if (inherits(cond, "condition")) { [17:28:20.885] if (!is.null(pattern)) { [17:28:20.885] computeRestarts <- base::computeRestarts [17:28:20.885] grepl <- base::grepl [17:28:20.885] restarts <- computeRestarts(cond) [17:28:20.885] for (restart in restarts) { [17:28:20.885] name <- restart$name [17:28:20.885] if (is.null(name)) [17:28:20.885] next [17:28:20.885] if (!grepl(pattern, name)) [17:28:20.885] next [17:28:20.885] invokeRestart(restart) [17:28:20.885] muffled <- TRUE [17:28:20.885] break [17:28:20.885] } [17:28:20.885] } [17:28:20.885] } [17:28:20.885] invisible(muffled) [17:28:20.885] } [17:28:20.885] muffleCondition(cond) [17:28:20.885] }) [17:28:20.885] })) [17:28:20.885] future::FutureResult(value = ...future.value$value, [17:28:20.885] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:20.885] ...future.rng), globalenv = if (FALSE) [17:28:20.885] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:20.885] ...future.globalenv.names)) [17:28:20.885] else NULL, started = ...future.startTime, version = "1.8") [17:28:20.885] }, condition = base::local({ [17:28:20.885] c <- base::c [17:28:20.885] inherits <- base::inherits [17:28:20.885] invokeRestart <- base::invokeRestart [17:28:20.885] length <- base::length [17:28:20.885] list <- base::list [17:28:20.885] seq.int <- base::seq.int [17:28:20.885] signalCondition <- base::signalCondition [17:28:20.885] sys.calls <- base::sys.calls [17:28:20.885] `[[` <- base::`[[` [17:28:20.885] `+` <- base::`+` [17:28:20.885] `<<-` <- base::`<<-` [17:28:20.885] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:20.885] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:20.885] 3L)] [17:28:20.885] } [17:28:20.885] function(cond) { [17:28:20.885] is_error <- inherits(cond, "error") [17:28:20.885] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:20.885] NULL) [17:28:20.885] if (is_error) { [17:28:20.885] sessionInformation <- function() { [17:28:20.885] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:20.885] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:20.885] search = base::search(), system = base::Sys.info()) [17:28:20.885] } [17:28:20.885] ...future.conditions[[length(...future.conditions) + [17:28:20.885] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:20.885] cond$call), session = sessionInformation(), [17:28:20.885] timestamp = base::Sys.time(), signaled = 0L) [17:28:20.885] signalCondition(cond) [17:28:20.885] } [17:28:20.885] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:20.885] "immediateCondition"))) { [17:28:20.885] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:20.885] ...future.conditions[[length(...future.conditions) + [17:28:20.885] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:20.885] if (TRUE && !signal) { [17:28:20.885] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.885] { [17:28:20.885] inherits <- base::inherits [17:28:20.885] invokeRestart <- base::invokeRestart [17:28:20.885] is.null <- base::is.null [17:28:20.885] muffled <- FALSE [17:28:20.885] if (inherits(cond, "message")) { [17:28:20.885] muffled <- grepl(pattern, "muffleMessage") [17:28:20.885] if (muffled) [17:28:20.885] invokeRestart("muffleMessage") [17:28:20.885] } [17:28:20.885] else if (inherits(cond, "warning")) { [17:28:20.885] muffled <- grepl(pattern, "muffleWarning") [17:28:20.885] if (muffled) [17:28:20.885] invokeRestart("muffleWarning") [17:28:20.885] } [17:28:20.885] else if (inherits(cond, "condition")) { [17:28:20.885] if (!is.null(pattern)) { [17:28:20.885] computeRestarts <- base::computeRestarts [17:28:20.885] grepl <- base::grepl [17:28:20.885] restarts <- computeRestarts(cond) [17:28:20.885] for (restart in restarts) { [17:28:20.885] name <- restart$name [17:28:20.885] if (is.null(name)) [17:28:20.885] next [17:28:20.885] if (!grepl(pattern, name)) [17:28:20.885] next [17:28:20.885] invokeRestart(restart) [17:28:20.885] muffled <- TRUE [17:28:20.885] break [17:28:20.885] } [17:28:20.885] } [17:28:20.885] } [17:28:20.885] invisible(muffled) [17:28:20.885] } [17:28:20.885] muffleCondition(cond, pattern = "^muffle") [17:28:20.885] } [17:28:20.885] } [17:28:20.885] else { [17:28:20.885] if (TRUE) { [17:28:20.885] muffleCondition <- function (cond, pattern = "^muffle") [17:28:20.885] { [17:28:20.885] inherits <- base::inherits [17:28:20.885] invokeRestart <- base::invokeRestart [17:28:20.885] is.null <- base::is.null [17:28:20.885] muffled <- FALSE [17:28:20.885] if (inherits(cond, "message")) { [17:28:20.885] muffled <- grepl(pattern, "muffleMessage") [17:28:20.885] if (muffled) [17:28:20.885] invokeRestart("muffleMessage") [17:28:20.885] } [17:28:20.885] else if (inherits(cond, "warning")) { [17:28:20.885] muffled <- grepl(pattern, "muffleWarning") [17:28:20.885] if (muffled) [17:28:20.885] invokeRestart("muffleWarning") [17:28:20.885] } [17:28:20.885] else if (inherits(cond, "condition")) { [17:28:20.885] if (!is.null(pattern)) { [17:28:20.885] computeRestarts <- base::computeRestarts [17:28:20.885] grepl <- base::grepl [17:28:20.885] restarts <- computeRestarts(cond) [17:28:20.885] for (restart in restarts) { [17:28:20.885] name <- restart$name [17:28:20.885] if (is.null(name)) [17:28:20.885] next [17:28:20.885] if (!grepl(pattern, name)) [17:28:20.885] next [17:28:20.885] invokeRestart(restart) [17:28:20.885] muffled <- TRUE [17:28:20.885] break [17:28:20.885] } [17:28:20.885] } [17:28:20.885] } [17:28:20.885] invisible(muffled) [17:28:20.885] } [17:28:20.885] muffleCondition(cond, pattern = "^muffle") [17:28:20.885] } [17:28:20.885] } [17:28:20.885] } [17:28:20.885] })) [17:28:20.885] }, error = function(ex) { [17:28:20.885] base::structure(base::list(value = NULL, visible = NULL, [17:28:20.885] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:20.885] ...future.rng), started = ...future.startTime, [17:28:20.885] finished = Sys.time(), session_uuid = NA_character_, [17:28:20.885] version = "1.8"), class = "FutureResult") [17:28:20.885] }, finally = { [17:28:20.885] if (!identical(...future.workdir, getwd())) [17:28:20.885] setwd(...future.workdir) [17:28:20.885] { [17:28:20.885] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:20.885] ...future.oldOptions$nwarnings <- NULL [17:28:20.885] } [17:28:20.885] base::options(...future.oldOptions) [17:28:20.885] if (.Platform$OS.type == "windows") { [17:28:20.885] old_names <- names(...future.oldEnvVars) [17:28:20.885] envs <- base::Sys.getenv() [17:28:20.885] names <- names(envs) [17:28:20.885] common <- intersect(names, old_names) [17:28:20.885] added <- setdiff(names, old_names) [17:28:20.885] removed <- setdiff(old_names, names) [17:28:20.885] changed <- common[...future.oldEnvVars[common] != [17:28:20.885] envs[common]] [17:28:20.885] NAMES <- toupper(changed) [17:28:20.885] args <- list() [17:28:20.885] for (kk in seq_along(NAMES)) { [17:28:20.885] name <- changed[[kk]] [17:28:20.885] NAME <- NAMES[[kk]] [17:28:20.885] if (name != NAME && is.element(NAME, old_names)) [17:28:20.885] next [17:28:20.885] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:20.885] } [17:28:20.885] NAMES <- toupper(added) [17:28:20.885] for (kk in seq_along(NAMES)) { [17:28:20.885] name <- added[[kk]] [17:28:20.885] NAME <- NAMES[[kk]] [17:28:20.885] if (name != NAME && is.element(NAME, old_names)) [17:28:20.885] next [17:28:20.885] args[[name]] <- "" [17:28:20.885] } [17:28:20.885] NAMES <- toupper(removed) [17:28:20.885] for (kk in seq_along(NAMES)) { [17:28:20.885] name <- removed[[kk]] [17:28:20.885] NAME <- NAMES[[kk]] [17:28:20.885] if (name != NAME && is.element(NAME, old_names)) [17:28:20.885] next [17:28:20.885] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:20.885] } [17:28:20.885] if (length(args) > 0) [17:28:20.885] base::do.call(base::Sys.setenv, args = args) [17:28:20.885] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:20.885] } [17:28:20.885] else { [17:28:20.885] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:20.885] } [17:28:20.885] { [17:28:20.885] if (base::length(...future.futureOptionsAdded) > [17:28:20.885] 0L) { [17:28:20.885] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:20.885] base::names(opts) <- ...future.futureOptionsAdded [17:28:20.885] base::options(opts) [17:28:20.885] } [17:28:20.885] { [17:28:20.885] { [17:28:20.885] base::options(mc.cores = ...future.mc.cores.old) [17:28:20.885] NULL [17:28:20.885] } [17:28:20.885] options(future.plan = NULL) [17:28:20.885] if (is.na(NA_character_)) [17:28:20.885] Sys.unsetenv("R_FUTURE_PLAN") [17:28:20.885] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:20.885] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:20.885] .init = FALSE) [17:28:20.885] } [17:28:20.885] } [17:28:20.885] } [17:28:20.885] }) [17:28:20.885] if (TRUE) { [17:28:20.885] base::sink(type = "output", split = FALSE) [17:28:20.885] if (TRUE) { [17:28:20.885] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:20.885] } [17:28:20.885] else { [17:28:20.885] ...future.result["stdout"] <- base::list(NULL) [17:28:20.885] } [17:28:20.885] base::close(...future.stdout) [17:28:20.885] ...future.stdout <- NULL [17:28:20.885] } [17:28:20.885] ...future.result$conditions <- ...future.conditions [17:28:20.885] ...future.result$finished <- base::Sys.time() [17:28:20.885] ...future.result [17:28:20.885] } [17:28:20.910] Exporting 1 global objects (314.53 KiB) to cluster node #1 ... [17:28:20.925] Exporting 'f1' (314.32 KiB) to cluster node #1 ... [17:28:20.941] Exporting 'f1' (314.32 KiB) to cluster node #1 ... DONE [17:28:20.941] Exporting 1 global objects (314.53 KiB) to cluster node #1 ... DONE [17:28:20.943] MultisessionFuture started [17:28:20.943] - Launch lazy future ... done [17:28:20.943] run() for 'MultisessionFuture' ... done > stopifnot(inherits(f5, "MultisessionFuture")) > v5 <- value(f5) [17:28:20.944] result() for ClusterFuture ... [17:28:20.944] receiveMessageFromWorker() for ClusterFuture ... [17:28:20.945] - Validating connection of MultisessionFuture [17:28:20.969] - received message: FutureResult [17:28:20.969] - Received FutureResult [17:28:20.969] - Erased future from FutureRegistry [17:28:20.970] result() for ClusterFuture ... [17:28:20.970] - result already collected: FutureResult [17:28:20.970] result() for ClusterFuture ... done [17:28:20.971] receiveMessageFromWorker() for ClusterFuture ... done [17:28:20.971] result() for ClusterFuture ... done [17:28:20.971] result() for ClusterFuture ... [17:28:20.971] - result already collected: FutureResult [17:28:20.972] 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:28:20.973] getGlobalsAndPackages() ... [17:28:20.973] Searching for globals... [17:28:20.974] - globals found: [1] '{' [17:28:20.975] Searching for globals ... DONE [17:28:20.975] Resolving globals: FALSE [17:28:20.975] [17:28:20.976] [17:28:20.976] getGlobalsAndPackages() ... DONE [17:28:20.976] run() for 'Future' ... [17:28:20.977] - state: 'created' [17:28:20.977] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:28:20.995] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:28:20.996] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:28:20.996] - Field: 'node' [17:28:20.997] - Field: 'label' [17:28:20.997] - Field: 'local' [17:28:20.997] - Field: 'owner' [17:28:20.997] - Field: 'envir' [17:28:20.998] - Field: 'workers' [17:28:20.998] - Field: 'packages' [17:28:20.998] - Field: 'gc' [17:28:20.998] - Field: 'conditions' [17:28:20.999] - Field: 'persistent' [17:28:20.999] - Field: 'expr' [17:28:20.999] - Field: 'uuid' [17:28:20.999] - Field: 'seed' [17:28:20.999] - Field: 'version' [17:28:21.000] - Field: 'result' [17:28:21.000] - Field: 'asynchronous' [17:28:21.000] - Field: 'calls' [17:28:21.000] - Field: 'globals' [17:28:21.001] - Field: 'stdout' [17:28:21.001] - Field: 'earlySignal' [17:28:21.001] - Field: 'lazy' [17:28:21.001] - Field: 'state' [17:28:21.001] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:28:21.006] - Launch lazy future ... [17:28:21.006] Packages needed by the future expression (n = 0): [17:28:21.007] Packages needed by future strategies (n = 0): [17:28:21.008] { [17:28:21.008] { [17:28:21.008] { [17:28:21.008] ...future.startTime <- base::Sys.time() [17:28:21.008] { [17:28:21.008] { [17:28:21.008] { [17:28:21.008] { [17:28:21.008] base::local({ [17:28:21.008] has_future <- base::requireNamespace("future", [17:28:21.008] quietly = TRUE) [17:28:21.008] if (has_future) { [17:28:21.008] ns <- base::getNamespace("future") [17:28:21.008] version <- ns[[".package"]][["version"]] [17:28:21.008] if (is.null(version)) [17:28:21.008] version <- utils::packageVersion("future") [17:28:21.008] } [17:28:21.008] else { [17:28:21.008] version <- NULL [17:28:21.008] } [17:28:21.008] if (!has_future || version < "1.8.0") { [17:28:21.008] info <- base::c(r_version = base::gsub("R version ", [17:28:21.008] "", base::R.version$version.string), [17:28:21.008] platform = base::sprintf("%s (%s-bit)", [17:28:21.008] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:21.008] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:21.008] "release", "version")], collapse = " "), [17:28:21.008] hostname = base::Sys.info()[["nodename"]]) [17:28:21.008] info <- base::sprintf("%s: %s", base::names(info), [17:28:21.008] info) [17:28:21.008] info <- base::paste(info, collapse = "; ") [17:28:21.008] if (!has_future) { [17:28:21.008] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:21.008] info) [17:28:21.008] } [17:28:21.008] else { [17:28:21.008] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:21.008] info, version) [17:28:21.008] } [17:28:21.008] base::stop(msg) [17:28:21.008] } [17:28:21.008] }) [17:28:21.008] } [17:28:21.008] ...future.mc.cores.old <- base::getOption("mc.cores") [17:28:21.008] base::options(mc.cores = 1L) [17:28:21.008] } [17:28:21.008] ...future.strategy.old <- future::plan("list") [17:28:21.008] options(future.plan = NULL) [17:28:21.008] Sys.unsetenv("R_FUTURE_PLAN") [17:28:21.008] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:21.008] } [17:28:21.008] ...future.workdir <- getwd() [17:28:21.008] } [17:28:21.008] ...future.oldOptions <- base::as.list(base::.Options) [17:28:21.008] ...future.oldEnvVars <- base::Sys.getenv() [17:28:21.008] } [17:28:21.008] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:21.008] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:21.008] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:21.008] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:21.008] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:21.008] future.stdout.windows.reencode = NULL, width = 80L) [17:28:21.008] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:21.008] base::names(...future.oldOptions)) [17:28:21.008] } [17:28:21.008] if (FALSE) { [17:28:21.008] } [17:28:21.008] else { [17:28:21.008] if (TRUE) { [17:28:21.008] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:21.008] open = "w") [17:28:21.008] } [17:28:21.008] else { [17:28:21.008] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:21.008] windows = "NUL", "/dev/null"), open = "w") [17:28:21.008] } [17:28:21.008] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:21.008] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:21.008] base::sink(type = "output", split = FALSE) [17:28:21.008] base::close(...future.stdout) [17:28:21.008] }, add = TRUE) [17:28:21.008] } [17:28:21.008] ...future.frame <- base::sys.nframe() [17:28:21.008] ...future.conditions <- base::list() [17:28:21.008] ...future.rng <- base::globalenv()$.Random.seed [17:28:21.008] if (FALSE) { [17:28:21.008] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:21.008] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:21.008] } [17:28:21.008] ...future.result <- base::tryCatch({ [17:28:21.008] base::withCallingHandlers({ [17:28:21.008] ...future.value <- base::withVisible(base::local({ [17:28:21.008] ...future.makeSendCondition <- base::local({ [17:28:21.008] sendCondition <- NULL [17:28:21.008] function(frame = 1L) { [17:28:21.008] if (is.function(sendCondition)) [17:28:21.008] return(sendCondition) [17:28:21.008] ns <- getNamespace("parallel") [17:28:21.008] if (exists("sendData", mode = "function", [17:28:21.008] envir = ns)) { [17:28:21.008] parallel_sendData <- get("sendData", mode = "function", [17:28:21.008] envir = ns) [17:28:21.008] envir <- sys.frame(frame) [17:28:21.008] master <- NULL [17:28:21.008] while (!identical(envir, .GlobalEnv) && [17:28:21.008] !identical(envir, emptyenv())) { [17:28:21.008] if (exists("master", mode = "list", envir = envir, [17:28:21.008] inherits = FALSE)) { [17:28:21.008] master <- get("master", mode = "list", [17:28:21.008] envir = envir, inherits = FALSE) [17:28:21.008] if (inherits(master, c("SOCKnode", [17:28:21.008] "SOCK0node"))) { [17:28:21.008] sendCondition <<- function(cond) { [17:28:21.008] data <- list(type = "VALUE", value = cond, [17:28:21.008] success = TRUE) [17:28:21.008] parallel_sendData(master, data) [17:28:21.008] } [17:28:21.008] return(sendCondition) [17:28:21.008] } [17:28:21.008] } [17:28:21.008] frame <- frame + 1L [17:28:21.008] envir <- sys.frame(frame) [17:28:21.008] } [17:28:21.008] } [17:28:21.008] sendCondition <<- function(cond) NULL [17:28:21.008] } [17:28:21.008] }) [17:28:21.008] withCallingHandlers({ [17:28:21.008] { [17:28:21.008] 42L [17:28:21.008] } [17:28:21.008] }, immediateCondition = function(cond) { [17:28:21.008] sendCondition <- ...future.makeSendCondition() [17:28:21.008] sendCondition(cond) [17:28:21.008] muffleCondition <- function (cond, pattern = "^muffle") [17:28:21.008] { [17:28:21.008] inherits <- base::inherits [17:28:21.008] invokeRestart <- base::invokeRestart [17:28:21.008] is.null <- base::is.null [17:28:21.008] muffled <- FALSE [17:28:21.008] if (inherits(cond, "message")) { [17:28:21.008] muffled <- grepl(pattern, "muffleMessage") [17:28:21.008] if (muffled) [17:28:21.008] invokeRestart("muffleMessage") [17:28:21.008] } [17:28:21.008] else if (inherits(cond, "warning")) { [17:28:21.008] muffled <- grepl(pattern, "muffleWarning") [17:28:21.008] if (muffled) [17:28:21.008] invokeRestart("muffleWarning") [17:28:21.008] } [17:28:21.008] else if (inherits(cond, "condition")) { [17:28:21.008] if (!is.null(pattern)) { [17:28:21.008] computeRestarts <- base::computeRestarts [17:28:21.008] grepl <- base::grepl [17:28:21.008] restarts <- computeRestarts(cond) [17:28:21.008] for (restart in restarts) { [17:28:21.008] name <- restart$name [17:28:21.008] if (is.null(name)) [17:28:21.008] next [17:28:21.008] if (!grepl(pattern, name)) [17:28:21.008] next [17:28:21.008] invokeRestart(restart) [17:28:21.008] muffled <- TRUE [17:28:21.008] break [17:28:21.008] } [17:28:21.008] } [17:28:21.008] } [17:28:21.008] invisible(muffled) [17:28:21.008] } [17:28:21.008] muffleCondition(cond) [17:28:21.008] }) [17:28:21.008] })) [17:28:21.008] future::FutureResult(value = ...future.value$value, [17:28:21.008] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:21.008] ...future.rng), globalenv = if (FALSE) [17:28:21.008] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:21.008] ...future.globalenv.names)) [17:28:21.008] else NULL, started = ...future.startTime, version = "1.8") [17:28:21.008] }, condition = base::local({ [17:28:21.008] c <- base::c [17:28:21.008] inherits <- base::inherits [17:28:21.008] invokeRestart <- base::invokeRestart [17:28:21.008] length <- base::length [17:28:21.008] list <- base::list [17:28:21.008] seq.int <- base::seq.int [17:28:21.008] signalCondition <- base::signalCondition [17:28:21.008] sys.calls <- base::sys.calls [17:28:21.008] `[[` <- base::`[[` [17:28:21.008] `+` <- base::`+` [17:28:21.008] `<<-` <- base::`<<-` [17:28:21.008] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:21.008] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:21.008] 3L)] [17:28:21.008] } [17:28:21.008] function(cond) { [17:28:21.008] is_error <- inherits(cond, "error") [17:28:21.008] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:21.008] NULL) [17:28:21.008] if (is_error) { [17:28:21.008] sessionInformation <- function() { [17:28:21.008] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:21.008] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:21.008] search = base::search(), system = base::Sys.info()) [17:28:21.008] } [17:28:21.008] ...future.conditions[[length(...future.conditions) + [17:28:21.008] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:21.008] cond$call), session = sessionInformation(), [17:28:21.008] timestamp = base::Sys.time(), signaled = 0L) [17:28:21.008] signalCondition(cond) [17:28:21.008] } [17:28:21.008] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:21.008] "immediateCondition"))) { [17:28:21.008] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:21.008] ...future.conditions[[length(...future.conditions) + [17:28:21.008] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:21.008] if (TRUE && !signal) { [17:28:21.008] muffleCondition <- function (cond, pattern = "^muffle") [17:28:21.008] { [17:28:21.008] inherits <- base::inherits [17:28:21.008] invokeRestart <- base::invokeRestart [17:28:21.008] is.null <- base::is.null [17:28:21.008] muffled <- FALSE [17:28:21.008] if (inherits(cond, "message")) { [17:28:21.008] muffled <- grepl(pattern, "muffleMessage") [17:28:21.008] if (muffled) [17:28:21.008] invokeRestart("muffleMessage") [17:28:21.008] } [17:28:21.008] else if (inherits(cond, "warning")) { [17:28:21.008] muffled <- grepl(pattern, "muffleWarning") [17:28:21.008] if (muffled) [17:28:21.008] invokeRestart("muffleWarning") [17:28:21.008] } [17:28:21.008] else if (inherits(cond, "condition")) { [17:28:21.008] if (!is.null(pattern)) { [17:28:21.008] computeRestarts <- base::computeRestarts [17:28:21.008] grepl <- base::grepl [17:28:21.008] restarts <- computeRestarts(cond) [17:28:21.008] for (restart in restarts) { [17:28:21.008] name <- restart$name [17:28:21.008] if (is.null(name)) [17:28:21.008] next [17:28:21.008] if (!grepl(pattern, name)) [17:28:21.008] next [17:28:21.008] invokeRestart(restart) [17:28:21.008] muffled <- TRUE [17:28:21.008] break [17:28:21.008] } [17:28:21.008] } [17:28:21.008] } [17:28:21.008] invisible(muffled) [17:28:21.008] } [17:28:21.008] muffleCondition(cond, pattern = "^muffle") [17:28:21.008] } [17:28:21.008] } [17:28:21.008] else { [17:28:21.008] if (TRUE) { [17:28:21.008] muffleCondition <- function (cond, pattern = "^muffle") [17:28:21.008] { [17:28:21.008] inherits <- base::inherits [17:28:21.008] invokeRestart <- base::invokeRestart [17:28:21.008] is.null <- base::is.null [17:28:21.008] muffled <- FALSE [17:28:21.008] if (inherits(cond, "message")) { [17:28:21.008] muffled <- grepl(pattern, "muffleMessage") [17:28:21.008] if (muffled) [17:28:21.008] invokeRestart("muffleMessage") [17:28:21.008] } [17:28:21.008] else if (inherits(cond, "warning")) { [17:28:21.008] muffled <- grepl(pattern, "muffleWarning") [17:28:21.008] if (muffled) [17:28:21.008] invokeRestart("muffleWarning") [17:28:21.008] } [17:28:21.008] else if (inherits(cond, "condition")) { [17:28:21.008] if (!is.null(pattern)) { [17:28:21.008] computeRestarts <- base::computeRestarts [17:28:21.008] grepl <- base::grepl [17:28:21.008] restarts <- computeRestarts(cond) [17:28:21.008] for (restart in restarts) { [17:28:21.008] name <- restart$name [17:28:21.008] if (is.null(name)) [17:28:21.008] next [17:28:21.008] if (!grepl(pattern, name)) [17:28:21.008] next [17:28:21.008] invokeRestart(restart) [17:28:21.008] muffled <- TRUE [17:28:21.008] break [17:28:21.008] } [17:28:21.008] } [17:28:21.008] } [17:28:21.008] invisible(muffled) [17:28:21.008] } [17:28:21.008] muffleCondition(cond, pattern = "^muffle") [17:28:21.008] } [17:28:21.008] } [17:28:21.008] } [17:28:21.008] })) [17:28:21.008] }, error = function(ex) { [17:28:21.008] base::structure(base::list(value = NULL, visible = NULL, [17:28:21.008] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:21.008] ...future.rng), started = ...future.startTime, [17:28:21.008] finished = Sys.time(), session_uuid = NA_character_, [17:28:21.008] version = "1.8"), class = "FutureResult") [17:28:21.008] }, finally = { [17:28:21.008] if (!identical(...future.workdir, getwd())) [17:28:21.008] setwd(...future.workdir) [17:28:21.008] { [17:28:21.008] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:21.008] ...future.oldOptions$nwarnings <- NULL [17:28:21.008] } [17:28:21.008] base::options(...future.oldOptions) [17:28:21.008] if (.Platform$OS.type == "windows") { [17:28:21.008] old_names <- names(...future.oldEnvVars) [17:28:21.008] envs <- base::Sys.getenv() [17:28:21.008] names <- names(envs) [17:28:21.008] common <- intersect(names, old_names) [17:28:21.008] added <- setdiff(names, old_names) [17:28:21.008] removed <- setdiff(old_names, names) [17:28:21.008] changed <- common[...future.oldEnvVars[common] != [17:28:21.008] envs[common]] [17:28:21.008] NAMES <- toupper(changed) [17:28:21.008] args <- list() [17:28:21.008] for (kk in seq_along(NAMES)) { [17:28:21.008] name <- changed[[kk]] [17:28:21.008] NAME <- NAMES[[kk]] [17:28:21.008] if (name != NAME && is.element(NAME, old_names)) [17:28:21.008] next [17:28:21.008] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:21.008] } [17:28:21.008] NAMES <- toupper(added) [17:28:21.008] for (kk in seq_along(NAMES)) { [17:28:21.008] name <- added[[kk]] [17:28:21.008] NAME <- NAMES[[kk]] [17:28:21.008] if (name != NAME && is.element(NAME, old_names)) [17:28:21.008] next [17:28:21.008] args[[name]] <- "" [17:28:21.008] } [17:28:21.008] NAMES <- toupper(removed) [17:28:21.008] for (kk in seq_along(NAMES)) { [17:28:21.008] name <- removed[[kk]] [17:28:21.008] NAME <- NAMES[[kk]] [17:28:21.008] if (name != NAME && is.element(NAME, old_names)) [17:28:21.008] next [17:28:21.008] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:21.008] } [17:28:21.008] if (length(args) > 0) [17:28:21.008] base::do.call(base::Sys.setenv, args = args) [17:28:21.008] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:21.008] } [17:28:21.008] else { [17:28:21.008] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:21.008] } [17:28:21.008] { [17:28:21.008] if (base::length(...future.futureOptionsAdded) > [17:28:21.008] 0L) { [17:28:21.008] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:21.008] base::names(opts) <- ...future.futureOptionsAdded [17:28:21.008] base::options(opts) [17:28:21.008] } [17:28:21.008] { [17:28:21.008] { [17:28:21.008] base::options(mc.cores = ...future.mc.cores.old) [17:28:21.008] NULL [17:28:21.008] } [17:28:21.008] options(future.plan = NULL) [17:28:21.008] if (is.na(NA_character_)) [17:28:21.008] Sys.unsetenv("R_FUTURE_PLAN") [17:28:21.008] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:21.008] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:21.008] .init = FALSE) [17:28:21.008] } [17:28:21.008] } [17:28:21.008] } [17:28:21.008] }) [17:28:21.008] if (TRUE) { [17:28:21.008] base::sink(type = "output", split = FALSE) [17:28:21.008] if (TRUE) { [17:28:21.008] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:21.008] } [17:28:21.008] else { [17:28:21.008] ...future.result["stdout"] <- base::list(NULL) [17:28:21.008] } [17:28:21.008] base::close(...future.stdout) [17:28:21.008] ...future.stdout <- NULL [17:28:21.008] } [17:28:21.008] ...future.result$conditions <- ...future.conditions [17:28:21.008] ...future.result$finished <- base::Sys.time() [17:28:21.008] ...future.result [17:28:21.008] } [17:28:21.019] MultisessionFuture started [17:28:21.019] - Launch lazy future ... done [17:28:21.019] 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:28:21.020] getGlobalsAndPackages() ... [17:28:21.020] Searching for globals... [17:28:21.022] - globals found: [3] '{', 'value', 'f1' [17:28:21.022] Searching for globals ... DONE [17:28:21.022] Resolving globals: FALSE [17:28:21.036] The total size of the 1 globals is 312.35 KiB (319844 bytes) [17:28:21.037] The total size of the 1 globals exported for future expression ('{; value(f1); }') is 312.35 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'f1' (312.35 KiB of class 'environment') [17:28:21.038] - globals: [1] 'f1' [17:28:21.038] - packages: [1] 'future' [17:28:21.038] getGlobalsAndPackages() ... DONE [17:28:21.039] run() for 'Future' ... [17:28:21.039] - state: 'created' [17:28:21.039] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:28:21.056] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:28:21.057] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:28:21.057] - Field: 'node' [17:28:21.057] - Field: 'label' [17:28:21.058] - Field: 'local' [17:28:21.058] - Field: 'owner' [17:28:21.058] - Field: 'envir' [17:28:21.059] - Field: 'workers' [17:28:21.059] - Field: 'packages' [17:28:21.059] - Field: 'gc' [17:28:21.060] - Field: 'conditions' [17:28:21.060] - Field: 'persistent' [17:28:21.060] - Field: 'expr' [17:28:21.061] - Field: 'uuid' [17:28:21.061] - Field: 'seed' [17:28:21.061] - Field: 'version' [17:28:21.062] - Field: 'result' [17:28:21.062] - Field: 'asynchronous' [17:28:21.062] - Field: 'calls' [17:28:21.063] - Field: 'globals' [17:28:21.063] - Field: 'stdout' [17:28:21.063] - Field: 'earlySignal' [17:28:21.064] - Field: 'lazy' [17:28:21.064] - Field: 'state' [17:28:21.064] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:28:21.065] - Launch lazy future ... [17:28:21.065] Packages needed by the future expression (n = 1): 'future' [17:28:21.065] Packages needed by future strategies (n = 0): [17:28:21.066] { [17:28:21.066] { [17:28:21.066] { [17:28:21.066] ...future.startTime <- base::Sys.time() [17:28:21.066] { [17:28:21.066] { [17:28:21.066] { [17:28:21.066] { [17:28:21.066] { [17:28:21.066] base::local({ [17:28:21.066] has_future <- base::requireNamespace("future", [17:28:21.066] quietly = TRUE) [17:28:21.066] if (has_future) { [17:28:21.066] ns <- base::getNamespace("future") [17:28:21.066] version <- ns[[".package"]][["version"]] [17:28:21.066] if (is.null(version)) [17:28:21.066] version <- utils::packageVersion("future") [17:28:21.066] } [17:28:21.066] else { [17:28:21.066] version <- NULL [17:28:21.066] } [17:28:21.066] if (!has_future || version < "1.8.0") { [17:28:21.066] info <- base::c(r_version = base::gsub("R version ", [17:28:21.066] "", base::R.version$version.string), [17:28:21.066] platform = base::sprintf("%s (%s-bit)", [17:28:21.066] base::R.version$platform, 8 * [17:28:21.066] base::.Machine$sizeof.pointer), [17:28:21.066] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:21.066] "release", "version")], collapse = " "), [17:28:21.066] hostname = base::Sys.info()[["nodename"]]) [17:28:21.066] info <- base::sprintf("%s: %s", base::names(info), [17:28:21.066] info) [17:28:21.066] info <- base::paste(info, collapse = "; ") [17:28:21.066] if (!has_future) { [17:28:21.066] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:21.066] info) [17:28:21.066] } [17:28:21.066] else { [17:28:21.066] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:21.066] info, version) [17:28:21.066] } [17:28:21.066] base::stop(msg) [17:28:21.066] } [17:28:21.066] }) [17:28:21.066] } [17:28:21.066] ...future.mc.cores.old <- base::getOption("mc.cores") [17:28:21.066] base::options(mc.cores = 1L) [17:28:21.066] } [17:28:21.066] base::local({ [17:28:21.066] for (pkg in "future") { [17:28:21.066] base::loadNamespace(pkg) [17:28:21.066] base::library(pkg, character.only = TRUE) [17:28:21.066] } [17:28:21.066] }) [17:28:21.066] } [17:28:21.066] ...future.strategy.old <- future::plan("list") [17:28:21.066] options(future.plan = NULL) [17:28:21.066] Sys.unsetenv("R_FUTURE_PLAN") [17:28:21.066] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:21.066] } [17:28:21.066] ...future.workdir <- getwd() [17:28:21.066] } [17:28:21.066] ...future.oldOptions <- base::as.list(base::.Options) [17:28:21.066] ...future.oldEnvVars <- base::Sys.getenv() [17:28:21.066] } [17:28:21.066] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:21.066] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:21.066] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:21.066] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:21.066] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:21.066] future.stdout.windows.reencode = NULL, width = 80L) [17:28:21.066] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:21.066] base::names(...future.oldOptions)) [17:28:21.066] } [17:28:21.066] if (FALSE) { [17:28:21.066] } [17:28:21.066] else { [17:28:21.066] if (TRUE) { [17:28:21.066] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:21.066] open = "w") [17:28:21.066] } [17:28:21.066] else { [17:28:21.066] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:21.066] windows = "NUL", "/dev/null"), open = "w") [17:28:21.066] } [17:28:21.066] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:21.066] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:21.066] base::sink(type = "output", split = FALSE) [17:28:21.066] base::close(...future.stdout) [17:28:21.066] }, add = TRUE) [17:28:21.066] } [17:28:21.066] ...future.frame <- base::sys.nframe() [17:28:21.066] ...future.conditions <- base::list() [17:28:21.066] ...future.rng <- base::globalenv()$.Random.seed [17:28:21.066] if (FALSE) { [17:28:21.066] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:21.066] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:21.066] } [17:28:21.066] ...future.result <- base::tryCatch({ [17:28:21.066] base::withCallingHandlers({ [17:28:21.066] ...future.value <- base::withVisible(base::local({ [17:28:21.066] ...future.makeSendCondition <- base::local({ [17:28:21.066] sendCondition <- NULL [17:28:21.066] function(frame = 1L) { [17:28:21.066] if (is.function(sendCondition)) [17:28:21.066] return(sendCondition) [17:28:21.066] ns <- getNamespace("parallel") [17:28:21.066] if (exists("sendData", mode = "function", [17:28:21.066] envir = ns)) { [17:28:21.066] parallel_sendData <- get("sendData", mode = "function", [17:28:21.066] envir = ns) [17:28:21.066] envir <- sys.frame(frame) [17:28:21.066] master <- NULL [17:28:21.066] while (!identical(envir, .GlobalEnv) && [17:28:21.066] !identical(envir, emptyenv())) { [17:28:21.066] if (exists("master", mode = "list", envir = envir, [17:28:21.066] inherits = FALSE)) { [17:28:21.066] master <- get("master", mode = "list", [17:28:21.066] envir = envir, inherits = FALSE) [17:28:21.066] if (inherits(master, c("SOCKnode", [17:28:21.066] "SOCK0node"))) { [17:28:21.066] sendCondition <<- function(cond) { [17:28:21.066] data <- list(type = "VALUE", value = cond, [17:28:21.066] success = TRUE) [17:28:21.066] parallel_sendData(master, data) [17:28:21.066] } [17:28:21.066] return(sendCondition) [17:28:21.066] } [17:28:21.066] } [17:28:21.066] frame <- frame + 1L [17:28:21.066] envir <- sys.frame(frame) [17:28:21.066] } [17:28:21.066] } [17:28:21.066] sendCondition <<- function(cond) NULL [17:28:21.066] } [17:28:21.066] }) [17:28:21.066] withCallingHandlers({ [17:28:21.066] { [17:28:21.066] value(f1) [17:28:21.066] } [17:28:21.066] }, immediateCondition = function(cond) { [17:28:21.066] sendCondition <- ...future.makeSendCondition() [17:28:21.066] sendCondition(cond) [17:28:21.066] muffleCondition <- function (cond, pattern = "^muffle") [17:28:21.066] { [17:28:21.066] inherits <- base::inherits [17:28:21.066] invokeRestart <- base::invokeRestart [17:28:21.066] is.null <- base::is.null [17:28:21.066] muffled <- FALSE [17:28:21.066] if (inherits(cond, "message")) { [17:28:21.066] muffled <- grepl(pattern, "muffleMessage") [17:28:21.066] if (muffled) [17:28:21.066] invokeRestart("muffleMessage") [17:28:21.066] } [17:28:21.066] else if (inherits(cond, "warning")) { [17:28:21.066] muffled <- grepl(pattern, "muffleWarning") [17:28:21.066] if (muffled) [17:28:21.066] invokeRestart("muffleWarning") [17:28:21.066] } [17:28:21.066] else if (inherits(cond, "condition")) { [17:28:21.066] if (!is.null(pattern)) { [17:28:21.066] computeRestarts <- base::computeRestarts [17:28:21.066] grepl <- base::grepl [17:28:21.066] restarts <- computeRestarts(cond) [17:28:21.066] for (restart in restarts) { [17:28:21.066] name <- restart$name [17:28:21.066] if (is.null(name)) [17:28:21.066] next [17:28:21.066] if (!grepl(pattern, name)) [17:28:21.066] next [17:28:21.066] invokeRestart(restart) [17:28:21.066] muffled <- TRUE [17:28:21.066] break [17:28:21.066] } [17:28:21.066] } [17:28:21.066] } [17:28:21.066] invisible(muffled) [17:28:21.066] } [17:28:21.066] muffleCondition(cond) [17:28:21.066] }) [17:28:21.066] })) [17:28:21.066] future::FutureResult(value = ...future.value$value, [17:28:21.066] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:21.066] ...future.rng), globalenv = if (FALSE) [17:28:21.066] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:21.066] ...future.globalenv.names)) [17:28:21.066] else NULL, started = ...future.startTime, version = "1.8") [17:28:21.066] }, condition = base::local({ [17:28:21.066] c <- base::c [17:28:21.066] inherits <- base::inherits [17:28:21.066] invokeRestart <- base::invokeRestart [17:28:21.066] length <- base::length [17:28:21.066] list <- base::list [17:28:21.066] seq.int <- base::seq.int [17:28:21.066] signalCondition <- base::signalCondition [17:28:21.066] sys.calls <- base::sys.calls [17:28:21.066] `[[` <- base::`[[` [17:28:21.066] `+` <- base::`+` [17:28:21.066] `<<-` <- base::`<<-` [17:28:21.066] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:21.066] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:21.066] 3L)] [17:28:21.066] } [17:28:21.066] function(cond) { [17:28:21.066] is_error <- inherits(cond, "error") [17:28:21.066] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:21.066] NULL) [17:28:21.066] if (is_error) { [17:28:21.066] sessionInformation <- function() { [17:28:21.066] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:21.066] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:21.066] search = base::search(), system = base::Sys.info()) [17:28:21.066] } [17:28:21.066] ...future.conditions[[length(...future.conditions) + [17:28:21.066] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:21.066] cond$call), session = sessionInformation(), [17:28:21.066] timestamp = base::Sys.time(), signaled = 0L) [17:28:21.066] signalCondition(cond) [17:28:21.066] } [17:28:21.066] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:21.066] "immediateCondition"))) { [17:28:21.066] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:21.066] ...future.conditions[[length(...future.conditions) + [17:28:21.066] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:21.066] if (TRUE && !signal) { [17:28:21.066] muffleCondition <- function (cond, pattern = "^muffle") [17:28:21.066] { [17:28:21.066] inherits <- base::inherits [17:28:21.066] invokeRestart <- base::invokeRestart [17:28:21.066] is.null <- base::is.null [17:28:21.066] muffled <- FALSE [17:28:21.066] if (inherits(cond, "message")) { [17:28:21.066] muffled <- grepl(pattern, "muffleMessage") [17:28:21.066] if (muffled) [17:28:21.066] invokeRestart("muffleMessage") [17:28:21.066] } [17:28:21.066] else if (inherits(cond, "warning")) { [17:28:21.066] muffled <- grepl(pattern, "muffleWarning") [17:28:21.066] if (muffled) [17:28:21.066] invokeRestart("muffleWarning") [17:28:21.066] } [17:28:21.066] else if (inherits(cond, "condition")) { [17:28:21.066] if (!is.null(pattern)) { [17:28:21.066] computeRestarts <- base::computeRestarts [17:28:21.066] grepl <- base::grepl [17:28:21.066] restarts <- computeRestarts(cond) [17:28:21.066] for (restart in restarts) { [17:28:21.066] name <- restart$name [17:28:21.066] if (is.null(name)) [17:28:21.066] next [17:28:21.066] if (!grepl(pattern, name)) [17:28:21.066] next [17:28:21.066] invokeRestart(restart) [17:28:21.066] muffled <- TRUE [17:28:21.066] break [17:28:21.066] } [17:28:21.066] } [17:28:21.066] } [17:28:21.066] invisible(muffled) [17:28:21.066] } [17:28:21.066] muffleCondition(cond, pattern = "^muffle") [17:28:21.066] } [17:28:21.066] } [17:28:21.066] else { [17:28:21.066] if (TRUE) { [17:28:21.066] muffleCondition <- function (cond, pattern = "^muffle") [17:28:21.066] { [17:28:21.066] inherits <- base::inherits [17:28:21.066] invokeRestart <- base::invokeRestart [17:28:21.066] is.null <- base::is.null [17:28:21.066] muffled <- FALSE [17:28:21.066] if (inherits(cond, "message")) { [17:28:21.066] muffled <- grepl(pattern, "muffleMessage") [17:28:21.066] if (muffled) [17:28:21.066] invokeRestart("muffleMessage") [17:28:21.066] } [17:28:21.066] else if (inherits(cond, "warning")) { [17:28:21.066] muffled <- grepl(pattern, "muffleWarning") [17:28:21.066] if (muffled) [17:28:21.066] invokeRestart("muffleWarning") [17:28:21.066] } [17:28:21.066] else if (inherits(cond, "condition")) { [17:28:21.066] if (!is.null(pattern)) { [17:28:21.066] computeRestarts <- base::computeRestarts [17:28:21.066] grepl <- base::grepl [17:28:21.066] restarts <- computeRestarts(cond) [17:28:21.066] for (restart in restarts) { [17:28:21.066] name <- restart$name [17:28:21.066] if (is.null(name)) [17:28:21.066] next [17:28:21.066] if (!grepl(pattern, name)) [17:28:21.066] next [17:28:21.066] invokeRestart(restart) [17:28:21.066] muffled <- TRUE [17:28:21.066] break [17:28:21.066] } [17:28:21.066] } [17:28:21.066] } [17:28:21.066] invisible(muffled) [17:28:21.066] } [17:28:21.066] muffleCondition(cond, pattern = "^muffle") [17:28:21.066] } [17:28:21.066] } [17:28:21.066] } [17:28:21.066] })) [17:28:21.066] }, error = function(ex) { [17:28:21.066] base::structure(base::list(value = NULL, visible = NULL, [17:28:21.066] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:21.066] ...future.rng), started = ...future.startTime, [17:28:21.066] finished = Sys.time(), session_uuid = NA_character_, [17:28:21.066] version = "1.8"), class = "FutureResult") [17:28:21.066] }, finally = { [17:28:21.066] if (!identical(...future.workdir, getwd())) [17:28:21.066] setwd(...future.workdir) [17:28:21.066] { [17:28:21.066] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:21.066] ...future.oldOptions$nwarnings <- NULL [17:28:21.066] } [17:28:21.066] base::options(...future.oldOptions) [17:28:21.066] if (.Platform$OS.type == "windows") { [17:28:21.066] old_names <- names(...future.oldEnvVars) [17:28:21.066] envs <- base::Sys.getenv() [17:28:21.066] names <- names(envs) [17:28:21.066] common <- intersect(names, old_names) [17:28:21.066] added <- setdiff(names, old_names) [17:28:21.066] removed <- setdiff(old_names, names) [17:28:21.066] changed <- common[...future.oldEnvVars[common] != [17:28:21.066] envs[common]] [17:28:21.066] NAMES <- toupper(changed) [17:28:21.066] args <- list() [17:28:21.066] for (kk in seq_along(NAMES)) { [17:28:21.066] name <- changed[[kk]] [17:28:21.066] NAME <- NAMES[[kk]] [17:28:21.066] if (name != NAME && is.element(NAME, old_names)) [17:28:21.066] next [17:28:21.066] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:21.066] } [17:28:21.066] NAMES <- toupper(added) [17:28:21.066] for (kk in seq_along(NAMES)) { [17:28:21.066] name <- added[[kk]] [17:28:21.066] NAME <- NAMES[[kk]] [17:28:21.066] if (name != NAME && is.element(NAME, old_names)) [17:28:21.066] next [17:28:21.066] args[[name]] <- "" [17:28:21.066] } [17:28:21.066] NAMES <- toupper(removed) [17:28:21.066] for (kk in seq_along(NAMES)) { [17:28:21.066] name <- removed[[kk]] [17:28:21.066] NAME <- NAMES[[kk]] [17:28:21.066] if (name != NAME && is.element(NAME, old_names)) [17:28:21.066] next [17:28:21.066] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:21.066] } [17:28:21.066] if (length(args) > 0) [17:28:21.066] base::do.call(base::Sys.setenv, args = args) [17:28:21.066] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:21.066] } [17:28:21.066] else { [17:28:21.066] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:21.066] } [17:28:21.066] { [17:28:21.066] if (base::length(...future.futureOptionsAdded) > [17:28:21.066] 0L) { [17:28:21.066] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:21.066] base::names(opts) <- ...future.futureOptionsAdded [17:28:21.066] base::options(opts) [17:28:21.066] } [17:28:21.066] { [17:28:21.066] { [17:28:21.066] base::options(mc.cores = ...future.mc.cores.old) [17:28:21.066] NULL [17:28:21.066] } [17:28:21.066] options(future.plan = NULL) [17:28:21.066] if (is.na(NA_character_)) [17:28:21.066] Sys.unsetenv("R_FUTURE_PLAN") [17:28:21.066] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:21.066] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:21.066] .init = FALSE) [17:28:21.066] } [17:28:21.066] } [17:28:21.066] } [17:28:21.066] }) [17:28:21.066] if (TRUE) { [17:28:21.066] base::sink(type = "output", split = FALSE) [17:28:21.066] if (TRUE) { [17:28:21.066] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:21.066] } [17:28:21.066] else { [17:28:21.066] ...future.result["stdout"] <- base::list(NULL) [17:28:21.066] } [17:28:21.066] base::close(...future.stdout) [17:28:21.066] ...future.stdout <- NULL [17:28:21.066] } [17:28:21.066] ...future.result$conditions <- ...future.conditions [17:28:21.066] ...future.result$finished <- base::Sys.time() [17:28:21.066] ...future.result [17:28:21.066] } [17:28:21.221] Exporting 1 global objects (312.55 KiB) to cluster node #2 ... [17:28:21.237] Exporting 'f1' (312.35 KiB) to cluster node #2 ... [17:28:21.255] Exporting 'f1' (312.35 KiB) to cluster node #2 ... DONE [17:28:21.255] Exporting 1 global objects (312.55 KiB) to cluster node #2 ... DONE [17:28:21.256] MultisessionFuture started [17:28:21.257] - Launch lazy future ... done [17:28:21.257] 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 312.35 KiB (MultisessionFuture 'f1' of 312.35 KiB) Packages: 1 packages ('future') L'Ecuyer-CMRG RNG seed: (seed = FALSE) [17:28:21.347] receiveMessageFromWorker() for ClusterFuture ... [17:28:21.347] - Validating connection of MultisessionFuture [17:28:21.364] - received message: FutureResult [17:28:21.365] - Received FutureResult [17:28:21.365] - Erased future from FutureRegistry [17:28:21.365] result() for ClusterFuture ... [17:28:21.365] - result already collected: FutureResult [17:28:21.365] result() for ClusterFuture ... done [17:28:21.365] signalConditions() ... [17:28:21.366] - include = 'immediateCondition' [17:28:21.366] - exclude = [17:28:21.366] - resignal = FALSE [17:28:21.366] - Number of conditions: 1 [17:28:21.366] signalConditions() ... done [17:28:21.367] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: aeae44ba-ffaa-03d1-9ad0-d264b027a198 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:28:21.371] result() for ClusterFuture ... [17:28:21.371] - result already collected: FutureResult [17:28:21.372] result() for ClusterFuture ... done [17:28:21.372] result() for ClusterFuture ... [17:28:21.372] - result already collected: FutureResult [17:28:21.372] result() for ClusterFuture ... done [17:28:21.372] signalConditions() ... [17:28:21.372] - include = 'immediateCondition' [17:28:21.373] - exclude = [17:28:21.373] - resignal = FALSE [17:28:21.373] - Number of conditions: 1 [17:28:21.373] signalConditions() ... done [17:28:21.373] Future state: 'finished' [17:28:21.374] result() for ClusterFuture ... [17:28:21.374] - result already collected: FutureResult [17:28:21.374] result() for ClusterFuture ... done [17:28:21.374] signalConditions() ... [17:28:21.374] - include = 'condition' [17:28:21.375] - exclude = 'immediateCondition' [17:28:21.375] - resignal = TRUE [17:28:21.375] - Number of conditions: 1 [17:28:21.375] - Condition #1: 'FutureError', 'error', 'FutureCondition', 'condition' [17:28:21.375] signalConditions() ... done > print(res) Future UUID: 41c4bd08-afb5-276b-3458-d5d856551a2f 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: aeae44ba-ffaa-03d1-9ad0-d264b027a198 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' DEBUG: END TROUBLESHOOTING HELP > stopifnot(inherits(res, "error")) > > v1 <- value(f1) [17:28:21.377] result() for ClusterFuture ... [17:28:21.377] receiveMessageFromWorker() for ClusterFuture ... [17:28:21.377] - Validating connection of MultisessionFuture [17:28:21.377] - received message: FutureResult [17:28:21.378] - Received FutureResult [17:28:21.378] - Erased future from FutureRegistry [17:28:21.378] result() for ClusterFuture ... [17:28:21.378] - result already collected: FutureResult [17:28:21.378] result() for ClusterFuture ... done [17:28:21.379] receiveMessageFromWorker() for ClusterFuture ... done [17:28:21.379] result() for ClusterFuture ... done [17:28:21.379] result() for ClusterFuture ... [17:28:21.379] - result already collected: FutureResult [17:28:21.379] 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:28:21.381] plan(): Setting new future strategy stack: [17:28:21.381] List of future strategies: [17:28:21.381] 1. FutureStrategy: [17:28:21.381] - args: function (..., envir = parent.frame(), workers = "") [17:28:21.381] - tweaked: FALSE [17:28:21.381] - call: future::plan(oplan) [17:28:21.390] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=205] '!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_NOTE_MISSING_PACKAGE_ANCHORS_', '_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 1.09 0.14 2.57