R Under development (unstable) (2024-03-25 r86192 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [17:26:59.064] plan(): Setting new future strategy stack: [17:26:59.065] List of future strategies: [17:26:59.065] 1. sequential: [17:26:59.065] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.065] - tweaked: FALSE [17:26:59.065] - call: future::plan("sequential") [17:26:59.080] plan(): nbrOfWorkers() = 1 > > oopts <- c(oopts, options( + future.globals.resolve = TRUE, + future.globals.onMissing = "error" + )) > > message("*** Globals - subassignments ...") *** Globals - subassignments ... > > message("*** Globals - subassignments w/ x$a <- value ...") *** Globals - subassignments w/ x$a <- value ... > > ## Truth: > x <- x0 <- list() > y0 <- list(a = 1) > str(list(x = x, y0 = y0)) List of 2 $ x : list() $ y0:List of 1 ..$ a: num 1 > > y <- local({ + x$a <- 1 + x + }) > stopifnot(identical(y, y0)) > > y <- local({ + x[["a"]] <- 1 + x + }) > stopifnot(identical(y, y0)) > > y <- local({ + x["a"] <- list(1) + x + }) > stopifnot(identical(y, y0)) > > stopifnot(identical(x, list())) > > for (cores in 1:availCores) { + ## Speed up CRAN checks: Skip on CRAN Windows 32-bit + if (!fullTest && isWin32) next + + message(sprintf("Testing with %d cores ...", cores)) + options(mc.cores = cores) + + message("availableCores(): ", availableCores()) + + for (strategy in supportedStrategies(cores)) { + message(sprintf("- plan('%s') ...", strategy)) + plan(strategy) + + ## Explicit future + x <- list() + f <- future({ + x$a <- 1 + x + }) + rm(list = "x") + y <- value(f) + print(y) + stopifnot(identical(y, y0)) + + ## Explicit future (lazy) + x <- list() + f <- future({ + x$a <- 1 + x + }, lazy = TRUE) + rm(list = "x") + y <- value(f) + print(y) + stopifnot(identical(y, y0)) + + ## Future assignment + x <- list() + y %<-% { + x$a <- 1 + x + } + rm(list = "x") + print(y) + stopifnot(identical(y, y0)) + + ## Same with forced lazy evaluation + x <- list() + y %<-% { + x$a <- 1 + x + } %lazy% TRUE + rm(list = "x") + print(y) + stopifnot(identical(y, y0)) + + ## 'x' is _not_ a global variable here + x <- list() + y %<-% { + x <- list(b = 2) + x$a <- 1 + x + } + rm(list = "x") + print(y) + stopifnot(identical(y, list(b = 2, a = 1))) + + ## Explicit future + x <- list() + f <- future({ + x[["a"]] <- 1 + x + }) + rm(list = "x") + y <- value(f) + print(y) + stopifnot(identical(y, y0)) + + ## Explicit future (lazy) + x <- list() + f <- future({ + x[["a"]] <- 1 + x + }, lazy = TRUE) + rm(list = "x") + y <- value(f) + print(y) + stopifnot(identical(y, y0)) + + ## Future assignment + x <- list() + y %<-% { + x[["a"]] <- 1 + x + } + rm(list = "x") + print(y) + stopifnot(identical(y, y0)) + + ## Explicit future + x <- list() + f <- future({ + x["a"] <- list(1) + x + }) + rm(list = "x") + y <- value(f) + print(y) + stopifnot(identical(y, y0)) + + ## Explicit future (lazy) + x <- list() + f <- future({ + x["a"] <- list(1) + x + }, lazy = TRUE) + rm(list = "x") + y <- value(f) + print(y) + stopifnot(identical(y, y0)) + + ## Future assignment + x <- list() + y %<-% { + x["a"] <- list(1) + x + } + rm(list = "x") + print(y) + stopifnot(identical(y, y0)) + + ## Future assignment + x <- list() + name <- "a" + y %<-% { + x[name] <- list(1) + x + } + rm(list = c("x", "name")) + print(y) + stopifnot(identical(y, y0)) + } ## for (strategy ...) + + message(sprintf("Testing with %d cores ... DONE", cores)) + } ## for (cores ...) Testing with 1 cores ... availableCores(): 1 - plan('sequential') ... [17:26:59.159] plan(): Setting new future strategy stack: [17:26:59.160] List of future strategies: [17:26:59.160] 1. sequential: [17:26:59.160] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.160] - tweaked: FALSE [17:26:59.160] - call: plan(strategy) [17:26:59.173] plan(): nbrOfWorkers() = 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.174] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.174] Searching for globals... [17:26:59.183] - globals found: [5] '{', 'x', '<-', '$', '$<-' [17:26:59.183] Searching for globals ... DONE [17:26:59.183] Resolving globals: TRUE [17:26:59.183] Resolving any globals that are futures ... [17:26:59.183] - globals: [5] '{', 'x', '<-', '$', '$<-' [17:26:59.183] Resolving any globals that are futures ... DONE [17:26:59.184] Resolving futures part of globals (recursively) ... [17:26:59.185] resolve() on list ... [17:26:59.185] recursive: 99 [17:26:59.186] length: 1 [17:26:59.186] elements: 'x' [17:26:59.186] length: 0 (resolved future 1) [17:26:59.186] resolve() on list ... DONE [17:26:59.186] - globals: [1] 'x' [17:26:59.186] Resolving futures part of globals (recursively) ... DONE [17:26:59.187] The total size of the 1 globals is 0 bytes (0 bytes) [17:26:59.187] The total size of the 1 globals exported for future expression ('{; x$a <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:26:59.188] - globals: [1] 'x' [17:26:59.188] [17:26:59.188] getGlobalsAndPackages() ... DONE [17:26:59.189] run() for 'Future' ... [17:26:59.189] - state: 'created' [17:26:59.189] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:59.190] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:59.190] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:59.190] - Field: 'label' [17:26:59.190] - Field: 'local' [17:26:59.190] - Field: 'owner' [17:26:59.191] - Field: 'envir' [17:26:59.191] - Field: 'packages' [17:26:59.191] - Field: 'gc' [17:26:59.191] - Field: 'conditions' [17:26:59.191] - Field: 'expr' [17:26:59.192] - Field: 'uuid' [17:26:59.192] - Field: 'seed' [17:26:59.192] - Field: 'version' [17:26:59.192] - Field: 'result' [17:26:59.192] - Field: 'asynchronous' [17:26:59.192] - Field: 'calls' [17:26:59.193] - Field: 'globals' [17:26:59.193] - Field: 'stdout' [17:26:59.193] - Field: 'earlySignal' [17:26:59.193] - Field: 'lazy' [17:26:59.193] - Field: 'state' [17:26:59.193] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:59.194] - Launch lazy future ... [17:26:59.195] Packages needed by the future expression (n = 0): [17:26:59.195] Packages needed by future strategies (n = 0): [17:26:59.197] { [17:26:59.197] { [17:26:59.197] { [17:26:59.197] ...future.startTime <- base::Sys.time() [17:26:59.197] { [17:26:59.197] { [17:26:59.197] { [17:26:59.197] base::local({ [17:26:59.197] has_future <- base::requireNamespace("future", [17:26:59.197] quietly = TRUE) [17:26:59.197] if (has_future) { [17:26:59.197] ns <- base::getNamespace("future") [17:26:59.197] version <- ns[[".package"]][["version"]] [17:26:59.197] if (is.null(version)) [17:26:59.197] version <- utils::packageVersion("future") [17:26:59.197] } [17:26:59.197] else { [17:26:59.197] version <- NULL [17:26:59.197] } [17:26:59.197] if (!has_future || version < "1.8.0") { [17:26:59.197] info <- base::c(r_version = base::gsub("R version ", [17:26:59.197] "", base::R.version$version.string), [17:26:59.197] platform = base::sprintf("%s (%s-bit)", [17:26:59.197] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:59.197] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:59.197] "release", "version")], collapse = " "), [17:26:59.197] hostname = base::Sys.info()[["nodename"]]) [17:26:59.197] info <- base::sprintf("%s: %s", base::names(info), [17:26:59.197] info) [17:26:59.197] info <- base::paste(info, collapse = "; ") [17:26:59.197] if (!has_future) { [17:26:59.197] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:59.197] info) [17:26:59.197] } [17:26:59.197] else { [17:26:59.197] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:59.197] info, version) [17:26:59.197] } [17:26:59.197] base::stop(msg) [17:26:59.197] } [17:26:59.197] }) [17:26:59.197] } [17:26:59.197] ...future.strategy.old <- future::plan("list") [17:26:59.197] options(future.plan = NULL) [17:26:59.197] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.197] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:59.197] } [17:26:59.197] ...future.workdir <- getwd() [17:26:59.197] } [17:26:59.197] ...future.oldOptions <- base::as.list(base::.Options) [17:26:59.197] ...future.oldEnvVars <- base::Sys.getenv() [17:26:59.197] } [17:26:59.197] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:26:59.197] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:59.197] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:26:59.197] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:26:59.197] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:59.197] future.stdout.windows.reencode = NULL, width = 80L) [17:26:59.197] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:59.197] base::names(...future.oldOptions)) [17:26:59.197] } [17:26:59.197] if (FALSE) { [17:26:59.197] } [17:26:59.197] else { [17:26:59.197] if (TRUE) { [17:26:59.197] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:59.197] open = "w") [17:26:59.197] } [17:26:59.197] else { [17:26:59.197] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:59.197] windows = "NUL", "/dev/null"), open = "w") [17:26:59.197] } [17:26:59.197] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:59.197] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:59.197] base::sink(type = "output", split = FALSE) [17:26:59.197] base::close(...future.stdout) [17:26:59.197] }, add = TRUE) [17:26:59.197] } [17:26:59.197] ...future.frame <- base::sys.nframe() [17:26:59.197] ...future.conditions <- base::list() [17:26:59.197] ...future.rng <- base::globalenv()$.Random.seed [17:26:59.197] if (FALSE) { [17:26:59.197] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:59.197] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:59.197] } [17:26:59.197] ...future.result <- base::tryCatch({ [17:26:59.197] base::withCallingHandlers({ [17:26:59.197] ...future.value <- base::withVisible(base::local({ [17:26:59.197] x$a <- 1 [17:26:59.197] x [17:26:59.197] })) [17:26:59.197] future::FutureResult(value = ...future.value$value, [17:26:59.197] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.197] ...future.rng), globalenv = if (FALSE) [17:26:59.197] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:59.197] ...future.globalenv.names)) [17:26:59.197] else NULL, started = ...future.startTime, version = "1.8") [17:26:59.197] }, condition = base::local({ [17:26:59.197] c <- base::c [17:26:59.197] inherits <- base::inherits [17:26:59.197] invokeRestart <- base::invokeRestart [17:26:59.197] length <- base::length [17:26:59.197] list <- base::list [17:26:59.197] seq.int <- base::seq.int [17:26:59.197] signalCondition <- base::signalCondition [17:26:59.197] sys.calls <- base::sys.calls [17:26:59.197] `[[` <- base::`[[` [17:26:59.197] `+` <- base::`+` [17:26:59.197] `<<-` <- base::`<<-` [17:26:59.197] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:59.197] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:59.197] 3L)] [17:26:59.197] } [17:26:59.197] function(cond) { [17:26:59.197] is_error <- inherits(cond, "error") [17:26:59.197] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:59.197] NULL) [17:26:59.197] if (is_error) { [17:26:59.197] sessionInformation <- function() { [17:26:59.197] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:59.197] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:59.197] search = base::search(), system = base::Sys.info()) [17:26:59.197] } [17:26:59.197] ...future.conditions[[length(...future.conditions) + [17:26:59.197] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:59.197] cond$call), session = sessionInformation(), [17:26:59.197] timestamp = base::Sys.time(), signaled = 0L) [17:26:59.197] signalCondition(cond) [17:26:59.197] } [17:26:59.197] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:59.197] "immediateCondition"))) { [17:26:59.197] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:59.197] ...future.conditions[[length(...future.conditions) + [17:26:59.197] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:59.197] if (TRUE && !signal) { [17:26:59.197] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.197] { [17:26:59.197] inherits <- base::inherits [17:26:59.197] invokeRestart <- base::invokeRestart [17:26:59.197] is.null <- base::is.null [17:26:59.197] muffled <- FALSE [17:26:59.197] if (inherits(cond, "message")) { [17:26:59.197] muffled <- grepl(pattern, "muffleMessage") [17:26:59.197] if (muffled) [17:26:59.197] invokeRestart("muffleMessage") [17:26:59.197] } [17:26:59.197] else if (inherits(cond, "warning")) { [17:26:59.197] muffled <- grepl(pattern, "muffleWarning") [17:26:59.197] if (muffled) [17:26:59.197] invokeRestart("muffleWarning") [17:26:59.197] } [17:26:59.197] else if (inherits(cond, "condition")) { [17:26:59.197] if (!is.null(pattern)) { [17:26:59.197] computeRestarts <- base::computeRestarts [17:26:59.197] grepl <- base::grepl [17:26:59.197] restarts <- computeRestarts(cond) [17:26:59.197] for (restart in restarts) { [17:26:59.197] name <- restart$name [17:26:59.197] if (is.null(name)) [17:26:59.197] next [17:26:59.197] if (!grepl(pattern, name)) [17:26:59.197] next [17:26:59.197] invokeRestart(restart) [17:26:59.197] muffled <- TRUE [17:26:59.197] break [17:26:59.197] } [17:26:59.197] } [17:26:59.197] } [17:26:59.197] invisible(muffled) [17:26:59.197] } [17:26:59.197] muffleCondition(cond, pattern = "^muffle") [17:26:59.197] } [17:26:59.197] } [17:26:59.197] else { [17:26:59.197] if (TRUE) { [17:26:59.197] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.197] { [17:26:59.197] inherits <- base::inherits [17:26:59.197] invokeRestart <- base::invokeRestart [17:26:59.197] is.null <- base::is.null [17:26:59.197] muffled <- FALSE [17:26:59.197] if (inherits(cond, "message")) { [17:26:59.197] muffled <- grepl(pattern, "muffleMessage") [17:26:59.197] if (muffled) [17:26:59.197] invokeRestart("muffleMessage") [17:26:59.197] } [17:26:59.197] else if (inherits(cond, "warning")) { [17:26:59.197] muffled <- grepl(pattern, "muffleWarning") [17:26:59.197] if (muffled) [17:26:59.197] invokeRestart("muffleWarning") [17:26:59.197] } [17:26:59.197] else if (inherits(cond, "condition")) { [17:26:59.197] if (!is.null(pattern)) { [17:26:59.197] computeRestarts <- base::computeRestarts [17:26:59.197] grepl <- base::grepl [17:26:59.197] restarts <- computeRestarts(cond) [17:26:59.197] for (restart in restarts) { [17:26:59.197] name <- restart$name [17:26:59.197] if (is.null(name)) [17:26:59.197] next [17:26:59.197] if (!grepl(pattern, name)) [17:26:59.197] next [17:26:59.197] invokeRestart(restart) [17:26:59.197] muffled <- TRUE [17:26:59.197] break [17:26:59.197] } [17:26:59.197] } [17:26:59.197] } [17:26:59.197] invisible(muffled) [17:26:59.197] } [17:26:59.197] muffleCondition(cond, pattern = "^muffle") [17:26:59.197] } [17:26:59.197] } [17:26:59.197] } [17:26:59.197] })) [17:26:59.197] }, error = function(ex) { [17:26:59.197] base::structure(base::list(value = NULL, visible = NULL, [17:26:59.197] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.197] ...future.rng), started = ...future.startTime, [17:26:59.197] finished = Sys.time(), session_uuid = NA_character_, [17:26:59.197] version = "1.8"), class = "FutureResult") [17:26:59.197] }, finally = { [17:26:59.197] if (!identical(...future.workdir, getwd())) [17:26:59.197] setwd(...future.workdir) [17:26:59.197] { [17:26:59.197] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:59.197] ...future.oldOptions$nwarnings <- NULL [17:26:59.197] } [17:26:59.197] base::options(...future.oldOptions) [17:26:59.197] if (.Platform$OS.type == "windows") { [17:26:59.197] old_names <- names(...future.oldEnvVars) [17:26:59.197] envs <- base::Sys.getenv() [17:26:59.197] names <- names(envs) [17:26:59.197] common <- intersect(names, old_names) [17:26:59.197] added <- setdiff(names, old_names) [17:26:59.197] removed <- setdiff(old_names, names) [17:26:59.197] changed <- common[...future.oldEnvVars[common] != [17:26:59.197] envs[common]] [17:26:59.197] NAMES <- toupper(changed) [17:26:59.197] args <- list() [17:26:59.197] for (kk in seq_along(NAMES)) { [17:26:59.197] name <- changed[[kk]] [17:26:59.197] NAME <- NAMES[[kk]] [17:26:59.197] if (name != NAME && is.element(NAME, old_names)) [17:26:59.197] next [17:26:59.197] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.197] } [17:26:59.197] NAMES <- toupper(added) [17:26:59.197] for (kk in seq_along(NAMES)) { [17:26:59.197] name <- added[[kk]] [17:26:59.197] NAME <- NAMES[[kk]] [17:26:59.197] if (name != NAME && is.element(NAME, old_names)) [17:26:59.197] next [17:26:59.197] args[[name]] <- "" [17:26:59.197] } [17:26:59.197] NAMES <- toupper(removed) [17:26:59.197] for (kk in seq_along(NAMES)) { [17:26:59.197] name <- removed[[kk]] [17:26:59.197] NAME <- NAMES[[kk]] [17:26:59.197] if (name != NAME && is.element(NAME, old_names)) [17:26:59.197] next [17:26:59.197] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.197] } [17:26:59.197] if (length(args) > 0) [17:26:59.197] base::do.call(base::Sys.setenv, args = args) [17:26:59.197] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:59.197] } [17:26:59.197] else { [17:26:59.197] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:59.197] } [17:26:59.197] { [17:26:59.197] if (base::length(...future.futureOptionsAdded) > [17:26:59.197] 0L) { [17:26:59.197] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:59.197] base::names(opts) <- ...future.futureOptionsAdded [17:26:59.197] base::options(opts) [17:26:59.197] } [17:26:59.197] { [17:26:59.197] { [17:26:59.197] NULL [17:26:59.197] RNGkind("Mersenne-Twister") [17:26:59.197] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:59.197] inherits = FALSE) [17:26:59.197] } [17:26:59.197] options(future.plan = NULL) [17:26:59.197] if (is.na(NA_character_)) [17:26:59.197] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.197] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:59.197] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:59.197] .init = FALSE) [17:26:59.197] } [17:26:59.197] } [17:26:59.197] } [17:26:59.197] }) [17:26:59.197] if (TRUE) { [17:26:59.197] base::sink(type = "output", split = FALSE) [17:26:59.197] if (TRUE) { [17:26:59.197] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:59.197] } [17:26:59.197] else { [17:26:59.197] ...future.result["stdout"] <- base::list(NULL) [17:26:59.197] } [17:26:59.197] base::close(...future.stdout) [17:26:59.197] ...future.stdout <- NULL [17:26:59.197] } [17:26:59.197] ...future.result$conditions <- ...future.conditions [17:26:59.197] ...future.result$finished <- base::Sys.time() [17:26:59.197] ...future.result [17:26:59.197] } [17:26:59.201] assign_globals() ... [17:26:59.201] List of 1 [17:26:59.201] $ x: list() [17:26:59.201] - attr(*, "where")=List of 1 [17:26:59.201] ..$ x: [17:26:59.201] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:59.201] - attr(*, "resolved")= logi TRUE [17:26:59.201] - attr(*, "total_size")= num 0 [17:26:59.201] - attr(*, "already-done")= logi TRUE [17:26:59.204] - copied 'x' to environment [17:26:59.204] assign_globals() ... done [17:26:59.205] plan(): Setting new future strategy stack: [17:26:59.205] List of future strategies: [17:26:59.205] 1. sequential: [17:26:59.205] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.205] - tweaked: FALSE [17:26:59.205] - call: NULL [17:26:59.205] plan(): nbrOfWorkers() = 1 [17:26:59.207] plan(): Setting new future strategy stack: [17:26:59.207] List of future strategies: [17:26:59.207] 1. sequential: [17:26:59.207] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.207] - tweaked: FALSE [17:26:59.207] - call: plan(strategy) [17:26:59.208] plan(): nbrOfWorkers() = 1 [17:26:59.208] SequentialFuture started (and completed) [17:26:59.209] - Launch lazy future ... done [17:26:59.209] run() for 'SequentialFuture' ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.210] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.210] Searching for globals... [17:26:59.212] - globals found: [5] '{', 'x', '<-', '$', '$<-' [17:26:59.212] Searching for globals ... DONE [17:26:59.213] Resolving globals: TRUE [17:26:59.213] Resolving any globals that are futures ... [17:26:59.213] - globals: [5] '{', 'x', '<-', '$', '$<-' [17:26:59.213] Resolving any globals that are futures ... DONE [17:26:59.214] Resolving futures part of globals (recursively) ... [17:26:59.214] resolve() on list ... [17:26:59.214] recursive: 99 [17:26:59.214] length: 1 [17:26:59.214] elements: 'x' [17:26:59.215] length: 0 (resolved future 1) [17:26:59.215] resolve() on list ... DONE [17:26:59.215] - globals: [1] 'x' [17:26:59.215] Resolving futures part of globals (recursively) ... DONE [17:26:59.215] The total size of the 1 globals is 0 bytes (0 bytes) [17:26:59.216] The total size of the 1 globals exported for future expression ('{; x$a <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:26:59.216] - globals: [1] 'x' [17:26:59.216] [17:26:59.216] getGlobalsAndPackages() ... DONE [17:26:59.217] run() for 'Future' ... [17:26:59.217] - state: 'created' [17:26:59.217] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:59.217] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:59.218] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:59.218] - Field: 'label' [17:26:59.218] - Field: 'local' [17:26:59.218] - Field: 'owner' [17:26:59.218] - Field: 'envir' [17:26:59.218] - Field: 'packages' [17:26:59.219] - Field: 'gc' [17:26:59.219] - Field: 'conditions' [17:26:59.219] - Field: 'expr' [17:26:59.219] - Field: 'uuid' [17:26:59.219] - Field: 'seed' [17:26:59.219] - Field: 'version' [17:26:59.220] - Field: 'result' [17:26:59.220] - Field: 'asynchronous' [17:26:59.220] - Field: 'calls' [17:26:59.220] - Field: 'globals' [17:26:59.220] - Field: 'stdout' [17:26:59.220] - Field: 'earlySignal' [17:26:59.221] - Field: 'lazy' [17:26:59.221] - Field: 'state' [17:26:59.221] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:59.221] - Launch lazy future ... [17:26:59.221] Packages needed by the future expression (n = 0): [17:26:59.222] Packages needed by future strategies (n = 0): [17:26:59.222] { [17:26:59.222] { [17:26:59.222] { [17:26:59.222] ...future.startTime <- base::Sys.time() [17:26:59.222] { [17:26:59.222] { [17:26:59.222] { [17:26:59.222] base::local({ [17:26:59.222] has_future <- base::requireNamespace("future", [17:26:59.222] quietly = TRUE) [17:26:59.222] if (has_future) { [17:26:59.222] ns <- base::getNamespace("future") [17:26:59.222] version <- ns[[".package"]][["version"]] [17:26:59.222] if (is.null(version)) [17:26:59.222] version <- utils::packageVersion("future") [17:26:59.222] } [17:26:59.222] else { [17:26:59.222] version <- NULL [17:26:59.222] } [17:26:59.222] if (!has_future || version < "1.8.0") { [17:26:59.222] info <- base::c(r_version = base::gsub("R version ", [17:26:59.222] "", base::R.version$version.string), [17:26:59.222] platform = base::sprintf("%s (%s-bit)", [17:26:59.222] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:59.222] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:59.222] "release", "version")], collapse = " "), [17:26:59.222] hostname = base::Sys.info()[["nodename"]]) [17:26:59.222] info <- base::sprintf("%s: %s", base::names(info), [17:26:59.222] info) [17:26:59.222] info <- base::paste(info, collapse = "; ") [17:26:59.222] if (!has_future) { [17:26:59.222] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:59.222] info) [17:26:59.222] } [17:26:59.222] else { [17:26:59.222] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:59.222] info, version) [17:26:59.222] } [17:26:59.222] base::stop(msg) [17:26:59.222] } [17:26:59.222] }) [17:26:59.222] } [17:26:59.222] ...future.strategy.old <- future::plan("list") [17:26:59.222] options(future.plan = NULL) [17:26:59.222] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.222] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:59.222] } [17:26:59.222] ...future.workdir <- getwd() [17:26:59.222] } [17:26:59.222] ...future.oldOptions <- base::as.list(base::.Options) [17:26:59.222] ...future.oldEnvVars <- base::Sys.getenv() [17:26:59.222] } [17:26:59.222] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:26:59.222] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:59.222] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:26:59.222] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:26:59.222] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:59.222] future.stdout.windows.reencode = NULL, width = 80L) [17:26:59.222] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:59.222] base::names(...future.oldOptions)) [17:26:59.222] } [17:26:59.222] if (FALSE) { [17:26:59.222] } [17:26:59.222] else { [17:26:59.222] if (TRUE) { [17:26:59.222] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:59.222] open = "w") [17:26:59.222] } [17:26:59.222] else { [17:26:59.222] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:59.222] windows = "NUL", "/dev/null"), open = "w") [17:26:59.222] } [17:26:59.222] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:59.222] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:59.222] base::sink(type = "output", split = FALSE) [17:26:59.222] base::close(...future.stdout) [17:26:59.222] }, add = TRUE) [17:26:59.222] } [17:26:59.222] ...future.frame <- base::sys.nframe() [17:26:59.222] ...future.conditions <- base::list() [17:26:59.222] ...future.rng <- base::globalenv()$.Random.seed [17:26:59.222] if (FALSE) { [17:26:59.222] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:59.222] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:59.222] } [17:26:59.222] ...future.result <- base::tryCatch({ [17:26:59.222] base::withCallingHandlers({ [17:26:59.222] ...future.value <- base::withVisible(base::local({ [17:26:59.222] x$a <- 1 [17:26:59.222] x [17:26:59.222] })) [17:26:59.222] future::FutureResult(value = ...future.value$value, [17:26:59.222] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.222] ...future.rng), globalenv = if (FALSE) [17:26:59.222] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:59.222] ...future.globalenv.names)) [17:26:59.222] else NULL, started = ...future.startTime, version = "1.8") [17:26:59.222] }, condition = base::local({ [17:26:59.222] c <- base::c [17:26:59.222] inherits <- base::inherits [17:26:59.222] invokeRestart <- base::invokeRestart [17:26:59.222] length <- base::length [17:26:59.222] list <- base::list [17:26:59.222] seq.int <- base::seq.int [17:26:59.222] signalCondition <- base::signalCondition [17:26:59.222] sys.calls <- base::sys.calls [17:26:59.222] `[[` <- base::`[[` [17:26:59.222] `+` <- base::`+` [17:26:59.222] `<<-` <- base::`<<-` [17:26:59.222] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:59.222] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:59.222] 3L)] [17:26:59.222] } [17:26:59.222] function(cond) { [17:26:59.222] is_error <- inherits(cond, "error") [17:26:59.222] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:59.222] NULL) [17:26:59.222] if (is_error) { [17:26:59.222] sessionInformation <- function() { [17:26:59.222] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:59.222] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:59.222] search = base::search(), system = base::Sys.info()) [17:26:59.222] } [17:26:59.222] ...future.conditions[[length(...future.conditions) + [17:26:59.222] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:59.222] cond$call), session = sessionInformation(), [17:26:59.222] timestamp = base::Sys.time(), signaled = 0L) [17:26:59.222] signalCondition(cond) [17:26:59.222] } [17:26:59.222] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:59.222] "immediateCondition"))) { [17:26:59.222] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:59.222] ...future.conditions[[length(...future.conditions) + [17:26:59.222] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:59.222] if (TRUE && !signal) { [17:26:59.222] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.222] { [17:26:59.222] inherits <- base::inherits [17:26:59.222] invokeRestart <- base::invokeRestart [17:26:59.222] is.null <- base::is.null [17:26:59.222] muffled <- FALSE [17:26:59.222] if (inherits(cond, "message")) { [17:26:59.222] muffled <- grepl(pattern, "muffleMessage") [17:26:59.222] if (muffled) [17:26:59.222] invokeRestart("muffleMessage") [17:26:59.222] } [17:26:59.222] else if (inherits(cond, "warning")) { [17:26:59.222] muffled <- grepl(pattern, "muffleWarning") [17:26:59.222] if (muffled) [17:26:59.222] invokeRestart("muffleWarning") [17:26:59.222] } [17:26:59.222] else if (inherits(cond, "condition")) { [17:26:59.222] if (!is.null(pattern)) { [17:26:59.222] computeRestarts <- base::computeRestarts [17:26:59.222] grepl <- base::grepl [17:26:59.222] restarts <- computeRestarts(cond) [17:26:59.222] for (restart in restarts) { [17:26:59.222] name <- restart$name [17:26:59.222] if (is.null(name)) [17:26:59.222] next [17:26:59.222] if (!grepl(pattern, name)) [17:26:59.222] next [17:26:59.222] invokeRestart(restart) [17:26:59.222] muffled <- TRUE [17:26:59.222] break [17:26:59.222] } [17:26:59.222] } [17:26:59.222] } [17:26:59.222] invisible(muffled) [17:26:59.222] } [17:26:59.222] muffleCondition(cond, pattern = "^muffle") [17:26:59.222] } [17:26:59.222] } [17:26:59.222] else { [17:26:59.222] if (TRUE) { [17:26:59.222] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.222] { [17:26:59.222] inherits <- base::inherits [17:26:59.222] invokeRestart <- base::invokeRestart [17:26:59.222] is.null <- base::is.null [17:26:59.222] muffled <- FALSE [17:26:59.222] if (inherits(cond, "message")) { [17:26:59.222] muffled <- grepl(pattern, "muffleMessage") [17:26:59.222] if (muffled) [17:26:59.222] invokeRestart("muffleMessage") [17:26:59.222] } [17:26:59.222] else if (inherits(cond, "warning")) { [17:26:59.222] muffled <- grepl(pattern, "muffleWarning") [17:26:59.222] if (muffled) [17:26:59.222] invokeRestart("muffleWarning") [17:26:59.222] } [17:26:59.222] else if (inherits(cond, "condition")) { [17:26:59.222] if (!is.null(pattern)) { [17:26:59.222] computeRestarts <- base::computeRestarts [17:26:59.222] grepl <- base::grepl [17:26:59.222] restarts <- computeRestarts(cond) [17:26:59.222] for (restart in restarts) { [17:26:59.222] name <- restart$name [17:26:59.222] if (is.null(name)) [17:26:59.222] next [17:26:59.222] if (!grepl(pattern, name)) [17:26:59.222] next [17:26:59.222] invokeRestart(restart) [17:26:59.222] muffled <- TRUE [17:26:59.222] break [17:26:59.222] } [17:26:59.222] } [17:26:59.222] } [17:26:59.222] invisible(muffled) [17:26:59.222] } [17:26:59.222] muffleCondition(cond, pattern = "^muffle") [17:26:59.222] } [17:26:59.222] } [17:26:59.222] } [17:26:59.222] })) [17:26:59.222] }, error = function(ex) { [17:26:59.222] base::structure(base::list(value = NULL, visible = NULL, [17:26:59.222] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.222] ...future.rng), started = ...future.startTime, [17:26:59.222] finished = Sys.time(), session_uuid = NA_character_, [17:26:59.222] version = "1.8"), class = "FutureResult") [17:26:59.222] }, finally = { [17:26:59.222] if (!identical(...future.workdir, getwd())) [17:26:59.222] setwd(...future.workdir) [17:26:59.222] { [17:26:59.222] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:59.222] ...future.oldOptions$nwarnings <- NULL [17:26:59.222] } [17:26:59.222] base::options(...future.oldOptions) [17:26:59.222] if (.Platform$OS.type == "windows") { [17:26:59.222] old_names <- names(...future.oldEnvVars) [17:26:59.222] envs <- base::Sys.getenv() [17:26:59.222] names <- names(envs) [17:26:59.222] common <- intersect(names, old_names) [17:26:59.222] added <- setdiff(names, old_names) [17:26:59.222] removed <- setdiff(old_names, names) [17:26:59.222] changed <- common[...future.oldEnvVars[common] != [17:26:59.222] envs[common]] [17:26:59.222] NAMES <- toupper(changed) [17:26:59.222] args <- list() [17:26:59.222] for (kk in seq_along(NAMES)) { [17:26:59.222] name <- changed[[kk]] [17:26:59.222] NAME <- NAMES[[kk]] [17:26:59.222] if (name != NAME && is.element(NAME, old_names)) [17:26:59.222] next [17:26:59.222] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.222] } [17:26:59.222] NAMES <- toupper(added) [17:26:59.222] for (kk in seq_along(NAMES)) { [17:26:59.222] name <- added[[kk]] [17:26:59.222] NAME <- NAMES[[kk]] [17:26:59.222] if (name != NAME && is.element(NAME, old_names)) [17:26:59.222] next [17:26:59.222] args[[name]] <- "" [17:26:59.222] } [17:26:59.222] NAMES <- toupper(removed) [17:26:59.222] for (kk in seq_along(NAMES)) { [17:26:59.222] name <- removed[[kk]] [17:26:59.222] NAME <- NAMES[[kk]] [17:26:59.222] if (name != NAME && is.element(NAME, old_names)) [17:26:59.222] next [17:26:59.222] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.222] } [17:26:59.222] if (length(args) > 0) [17:26:59.222] base::do.call(base::Sys.setenv, args = args) [17:26:59.222] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:59.222] } [17:26:59.222] else { [17:26:59.222] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:59.222] } [17:26:59.222] { [17:26:59.222] if (base::length(...future.futureOptionsAdded) > [17:26:59.222] 0L) { [17:26:59.222] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:59.222] base::names(opts) <- ...future.futureOptionsAdded [17:26:59.222] base::options(opts) [17:26:59.222] } [17:26:59.222] { [17:26:59.222] { [17:26:59.222] NULL [17:26:59.222] RNGkind("Mersenne-Twister") [17:26:59.222] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:59.222] inherits = FALSE) [17:26:59.222] } [17:26:59.222] options(future.plan = NULL) [17:26:59.222] if (is.na(NA_character_)) [17:26:59.222] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.222] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:59.222] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:59.222] .init = FALSE) [17:26:59.222] } [17:26:59.222] } [17:26:59.222] } [17:26:59.222] }) [17:26:59.222] if (TRUE) { [17:26:59.222] base::sink(type = "output", split = FALSE) [17:26:59.222] if (TRUE) { [17:26:59.222] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:59.222] } [17:26:59.222] else { [17:26:59.222] ...future.result["stdout"] <- base::list(NULL) [17:26:59.222] } [17:26:59.222] base::close(...future.stdout) [17:26:59.222] ...future.stdout <- NULL [17:26:59.222] } [17:26:59.222] ...future.result$conditions <- ...future.conditions [17:26:59.222] ...future.result$finished <- base::Sys.time() [17:26:59.222] ...future.result [17:26:59.222] } [17:26:59.226] assign_globals() ... [17:26:59.226] List of 1 [17:26:59.226] $ x: list() [17:26:59.226] - attr(*, "where")=List of 1 [17:26:59.226] ..$ x: [17:26:59.226] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:59.226] - attr(*, "resolved")= logi TRUE [17:26:59.226] - attr(*, "total_size")= num 0 [17:26:59.226] - attr(*, "already-done")= logi TRUE [17:26:59.229] - copied 'x' to environment [17:26:59.229] assign_globals() ... done [17:26:59.229] plan(): Setting new future strategy stack: [17:26:59.229] List of future strategies: [17:26:59.229] 1. sequential: [17:26:59.229] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.229] - tweaked: FALSE [17:26:59.229] - call: NULL [17:26:59.230] plan(): nbrOfWorkers() = 1 [17:26:59.231] plan(): Setting new future strategy stack: [17:26:59.231] List of future strategies: [17:26:59.231] 1. sequential: [17:26:59.231] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.231] - tweaked: FALSE [17:26:59.231] - call: plan(strategy) [17:26:59.232] plan(): nbrOfWorkers() = 1 [17:26:59.232] SequentialFuture started (and completed) [17:26:59.232] - Launch lazy future ... done [17:26:59.233] run() for 'SequentialFuture' ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.235] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.235] Searching for globals... [17:26:59.237] - globals found: [5] '{', 'x', '<-', '$', '$<-' [17:26:59.238] Searching for globals ... DONE [17:26:59.238] Resolving globals: TRUE [17:26:59.238] Resolving any globals that are futures ... [17:26:59.238] - globals: [5] '{', 'x', '<-', '$', '$<-' [17:26:59.239] Resolving any globals that are futures ... DONE [17:26:59.239] Resolving futures part of globals (recursively) ... [17:26:59.240] resolve() on list ... [17:26:59.240] recursive: 99 [17:26:59.240] length: 1 [17:26:59.241] elements: 'x' [17:26:59.241] length: 0 (resolved future 1) [17:26:59.241] resolve() on list ... DONE [17:26:59.242] - globals: [1] 'x' [17:26:59.242] Resolving futures part of globals (recursively) ... DONE [17:26:59.242] The total size of the 1 globals is 0 bytes (0 bytes) [17:26:59.243] The total size of the 1 globals exported for future expression ('{; x$a <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:26:59.243] - globals: [1] 'x' [17:26:59.243] [17:26:59.243] getGlobalsAndPackages() ... DONE [17:26:59.244] run() for 'Future' ... [17:26:59.244] - state: 'created' [17:26:59.244] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:59.245] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:59.245] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:59.245] - Field: 'label' [17:26:59.246] - Field: 'local' [17:26:59.246] - Field: 'owner' [17:26:59.246] - Field: 'envir' [17:26:59.246] - Field: 'packages' [17:26:59.247] - Field: 'gc' [17:26:59.247] - Field: 'conditions' [17:26:59.247] - Field: 'expr' [17:26:59.247] - Field: 'uuid' [17:26:59.248] - Field: 'seed' [17:26:59.248] - Field: 'version' [17:26:59.248] - Field: 'result' [17:26:59.248] - Field: 'asynchronous' [17:26:59.249] - Field: 'calls' [17:26:59.249] - Field: 'globals' [17:26:59.249] - Field: 'stdout' [17:26:59.249] - Field: 'earlySignal' [17:26:59.250] - Field: 'lazy' [17:26:59.250] - Field: 'state' [17:26:59.250] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:59.250] - Launch lazy future ... [17:26:59.251] Packages needed by the future expression (n = 0): [17:26:59.251] Packages needed by future strategies (n = 0): [17:26:59.252] { [17:26:59.252] { [17:26:59.252] { [17:26:59.252] ...future.startTime <- base::Sys.time() [17:26:59.252] { [17:26:59.252] { [17:26:59.252] { [17:26:59.252] base::local({ [17:26:59.252] has_future <- base::requireNamespace("future", [17:26:59.252] quietly = TRUE) [17:26:59.252] if (has_future) { [17:26:59.252] ns <- base::getNamespace("future") [17:26:59.252] version <- ns[[".package"]][["version"]] [17:26:59.252] if (is.null(version)) [17:26:59.252] version <- utils::packageVersion("future") [17:26:59.252] } [17:26:59.252] else { [17:26:59.252] version <- NULL [17:26:59.252] } [17:26:59.252] if (!has_future || version < "1.8.0") { [17:26:59.252] info <- base::c(r_version = base::gsub("R version ", [17:26:59.252] "", base::R.version$version.string), [17:26:59.252] platform = base::sprintf("%s (%s-bit)", [17:26:59.252] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:59.252] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:59.252] "release", "version")], collapse = " "), [17:26:59.252] hostname = base::Sys.info()[["nodename"]]) [17:26:59.252] info <- base::sprintf("%s: %s", base::names(info), [17:26:59.252] info) [17:26:59.252] info <- base::paste(info, collapse = "; ") [17:26:59.252] if (!has_future) { [17:26:59.252] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:59.252] info) [17:26:59.252] } [17:26:59.252] else { [17:26:59.252] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:59.252] info, version) [17:26:59.252] } [17:26:59.252] base::stop(msg) [17:26:59.252] } [17:26:59.252] }) [17:26:59.252] } [17:26:59.252] ...future.strategy.old <- future::plan("list") [17:26:59.252] options(future.plan = NULL) [17:26:59.252] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.252] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:59.252] } [17:26:59.252] ...future.workdir <- getwd() [17:26:59.252] } [17:26:59.252] ...future.oldOptions <- base::as.list(base::.Options) [17:26:59.252] ...future.oldEnvVars <- base::Sys.getenv() [17:26:59.252] } [17:26:59.252] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:26:59.252] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:59.252] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:26:59.252] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:26:59.252] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:59.252] future.stdout.windows.reencode = NULL, width = 80L) [17:26:59.252] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:59.252] base::names(...future.oldOptions)) [17:26:59.252] } [17:26:59.252] if (FALSE) { [17:26:59.252] } [17:26:59.252] else { [17:26:59.252] if (TRUE) { [17:26:59.252] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:59.252] open = "w") [17:26:59.252] } [17:26:59.252] else { [17:26:59.252] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:59.252] windows = "NUL", "/dev/null"), open = "w") [17:26:59.252] } [17:26:59.252] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:59.252] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:59.252] base::sink(type = "output", split = FALSE) [17:26:59.252] base::close(...future.stdout) [17:26:59.252] }, add = TRUE) [17:26:59.252] } [17:26:59.252] ...future.frame <- base::sys.nframe() [17:26:59.252] ...future.conditions <- base::list() [17:26:59.252] ...future.rng <- base::globalenv()$.Random.seed [17:26:59.252] if (FALSE) { [17:26:59.252] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:59.252] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:59.252] } [17:26:59.252] ...future.result <- base::tryCatch({ [17:26:59.252] base::withCallingHandlers({ [17:26:59.252] ...future.value <- base::withVisible(base::local({ [17:26:59.252] x$a <- 1 [17:26:59.252] x [17:26:59.252] })) [17:26:59.252] future::FutureResult(value = ...future.value$value, [17:26:59.252] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.252] ...future.rng), globalenv = if (FALSE) [17:26:59.252] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:59.252] ...future.globalenv.names)) [17:26:59.252] else NULL, started = ...future.startTime, version = "1.8") [17:26:59.252] }, condition = base::local({ [17:26:59.252] c <- base::c [17:26:59.252] inherits <- base::inherits [17:26:59.252] invokeRestart <- base::invokeRestart [17:26:59.252] length <- base::length [17:26:59.252] list <- base::list [17:26:59.252] seq.int <- base::seq.int [17:26:59.252] signalCondition <- base::signalCondition [17:26:59.252] sys.calls <- base::sys.calls [17:26:59.252] `[[` <- base::`[[` [17:26:59.252] `+` <- base::`+` [17:26:59.252] `<<-` <- base::`<<-` [17:26:59.252] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:59.252] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:59.252] 3L)] [17:26:59.252] } [17:26:59.252] function(cond) { [17:26:59.252] is_error <- inherits(cond, "error") [17:26:59.252] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:59.252] NULL) [17:26:59.252] if (is_error) { [17:26:59.252] sessionInformation <- function() { [17:26:59.252] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:59.252] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:59.252] search = base::search(), system = base::Sys.info()) [17:26:59.252] } [17:26:59.252] ...future.conditions[[length(...future.conditions) + [17:26:59.252] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:59.252] cond$call), session = sessionInformation(), [17:26:59.252] timestamp = base::Sys.time(), signaled = 0L) [17:26:59.252] signalCondition(cond) [17:26:59.252] } [17:26:59.252] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:59.252] "immediateCondition"))) { [17:26:59.252] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:59.252] ...future.conditions[[length(...future.conditions) + [17:26:59.252] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:59.252] if (TRUE && !signal) { [17:26:59.252] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.252] { [17:26:59.252] inherits <- base::inherits [17:26:59.252] invokeRestart <- base::invokeRestart [17:26:59.252] is.null <- base::is.null [17:26:59.252] muffled <- FALSE [17:26:59.252] if (inherits(cond, "message")) { [17:26:59.252] muffled <- grepl(pattern, "muffleMessage") [17:26:59.252] if (muffled) [17:26:59.252] invokeRestart("muffleMessage") [17:26:59.252] } [17:26:59.252] else if (inherits(cond, "warning")) { [17:26:59.252] muffled <- grepl(pattern, "muffleWarning") [17:26:59.252] if (muffled) [17:26:59.252] invokeRestart("muffleWarning") [17:26:59.252] } [17:26:59.252] else if (inherits(cond, "condition")) { [17:26:59.252] if (!is.null(pattern)) { [17:26:59.252] computeRestarts <- base::computeRestarts [17:26:59.252] grepl <- base::grepl [17:26:59.252] restarts <- computeRestarts(cond) [17:26:59.252] for (restart in restarts) { [17:26:59.252] name <- restart$name [17:26:59.252] if (is.null(name)) [17:26:59.252] next [17:26:59.252] if (!grepl(pattern, name)) [17:26:59.252] next [17:26:59.252] invokeRestart(restart) [17:26:59.252] muffled <- TRUE [17:26:59.252] break [17:26:59.252] } [17:26:59.252] } [17:26:59.252] } [17:26:59.252] invisible(muffled) [17:26:59.252] } [17:26:59.252] muffleCondition(cond, pattern = "^muffle") [17:26:59.252] } [17:26:59.252] } [17:26:59.252] else { [17:26:59.252] if (TRUE) { [17:26:59.252] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.252] { [17:26:59.252] inherits <- base::inherits [17:26:59.252] invokeRestart <- base::invokeRestart [17:26:59.252] is.null <- base::is.null [17:26:59.252] muffled <- FALSE [17:26:59.252] if (inherits(cond, "message")) { [17:26:59.252] muffled <- grepl(pattern, "muffleMessage") [17:26:59.252] if (muffled) [17:26:59.252] invokeRestart("muffleMessage") [17:26:59.252] } [17:26:59.252] else if (inherits(cond, "warning")) { [17:26:59.252] muffled <- grepl(pattern, "muffleWarning") [17:26:59.252] if (muffled) [17:26:59.252] invokeRestart("muffleWarning") [17:26:59.252] } [17:26:59.252] else if (inherits(cond, "condition")) { [17:26:59.252] if (!is.null(pattern)) { [17:26:59.252] computeRestarts <- base::computeRestarts [17:26:59.252] grepl <- base::grepl [17:26:59.252] restarts <- computeRestarts(cond) [17:26:59.252] for (restart in restarts) { [17:26:59.252] name <- restart$name [17:26:59.252] if (is.null(name)) [17:26:59.252] next [17:26:59.252] if (!grepl(pattern, name)) [17:26:59.252] next [17:26:59.252] invokeRestart(restart) [17:26:59.252] muffled <- TRUE [17:26:59.252] break [17:26:59.252] } [17:26:59.252] } [17:26:59.252] } [17:26:59.252] invisible(muffled) [17:26:59.252] } [17:26:59.252] muffleCondition(cond, pattern = "^muffle") [17:26:59.252] } [17:26:59.252] } [17:26:59.252] } [17:26:59.252] })) [17:26:59.252] }, error = function(ex) { [17:26:59.252] base::structure(base::list(value = NULL, visible = NULL, [17:26:59.252] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.252] ...future.rng), started = ...future.startTime, [17:26:59.252] finished = Sys.time(), session_uuid = NA_character_, [17:26:59.252] version = "1.8"), class = "FutureResult") [17:26:59.252] }, finally = { [17:26:59.252] if (!identical(...future.workdir, getwd())) [17:26:59.252] setwd(...future.workdir) [17:26:59.252] { [17:26:59.252] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:59.252] ...future.oldOptions$nwarnings <- NULL [17:26:59.252] } [17:26:59.252] base::options(...future.oldOptions) [17:26:59.252] if (.Platform$OS.type == "windows") { [17:26:59.252] old_names <- names(...future.oldEnvVars) [17:26:59.252] envs <- base::Sys.getenv() [17:26:59.252] names <- names(envs) [17:26:59.252] common <- intersect(names, old_names) [17:26:59.252] added <- setdiff(names, old_names) [17:26:59.252] removed <- setdiff(old_names, names) [17:26:59.252] changed <- common[...future.oldEnvVars[common] != [17:26:59.252] envs[common]] [17:26:59.252] NAMES <- toupper(changed) [17:26:59.252] args <- list() [17:26:59.252] for (kk in seq_along(NAMES)) { [17:26:59.252] name <- changed[[kk]] [17:26:59.252] NAME <- NAMES[[kk]] [17:26:59.252] if (name != NAME && is.element(NAME, old_names)) [17:26:59.252] next [17:26:59.252] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.252] } [17:26:59.252] NAMES <- toupper(added) [17:26:59.252] for (kk in seq_along(NAMES)) { [17:26:59.252] name <- added[[kk]] [17:26:59.252] NAME <- NAMES[[kk]] [17:26:59.252] if (name != NAME && is.element(NAME, old_names)) [17:26:59.252] next [17:26:59.252] args[[name]] <- "" [17:26:59.252] } [17:26:59.252] NAMES <- toupper(removed) [17:26:59.252] for (kk in seq_along(NAMES)) { [17:26:59.252] name <- removed[[kk]] [17:26:59.252] NAME <- NAMES[[kk]] [17:26:59.252] if (name != NAME && is.element(NAME, old_names)) [17:26:59.252] next [17:26:59.252] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.252] } [17:26:59.252] if (length(args) > 0) [17:26:59.252] base::do.call(base::Sys.setenv, args = args) [17:26:59.252] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:59.252] } [17:26:59.252] else { [17:26:59.252] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:59.252] } [17:26:59.252] { [17:26:59.252] if (base::length(...future.futureOptionsAdded) > [17:26:59.252] 0L) { [17:26:59.252] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:59.252] base::names(opts) <- ...future.futureOptionsAdded [17:26:59.252] base::options(opts) [17:26:59.252] } [17:26:59.252] { [17:26:59.252] { [17:26:59.252] NULL [17:26:59.252] RNGkind("Mersenne-Twister") [17:26:59.252] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:59.252] inherits = FALSE) [17:26:59.252] } [17:26:59.252] options(future.plan = NULL) [17:26:59.252] if (is.na(NA_character_)) [17:26:59.252] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.252] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:59.252] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:59.252] .init = FALSE) [17:26:59.252] } [17:26:59.252] } [17:26:59.252] } [17:26:59.252] }) [17:26:59.252] if (TRUE) { [17:26:59.252] base::sink(type = "output", split = FALSE) [17:26:59.252] if (TRUE) { [17:26:59.252] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:59.252] } [17:26:59.252] else { [17:26:59.252] ...future.result["stdout"] <- base::list(NULL) [17:26:59.252] } [17:26:59.252] base::close(...future.stdout) [17:26:59.252] ...future.stdout <- NULL [17:26:59.252] } [17:26:59.252] ...future.result$conditions <- ...future.conditions [17:26:59.252] ...future.result$finished <- base::Sys.time() [17:26:59.252] ...future.result [17:26:59.252] } [17:26:59.256] assign_globals() ... [17:26:59.257] List of 1 [17:26:59.257] $ x: list() [17:26:59.257] - attr(*, "where")=List of 1 [17:26:59.257] ..$ x: [17:26:59.257] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:59.257] - attr(*, "resolved")= logi TRUE [17:26:59.257] - attr(*, "total_size")= num 0 [17:26:59.257] - attr(*, "already-done")= logi TRUE [17:26:59.259] - copied 'x' to environment [17:26:59.260] assign_globals() ... done [17:26:59.260] plan(): Setting new future strategy stack: [17:26:59.260] List of future strategies: [17:26:59.260] 1. sequential: [17:26:59.260] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.260] - tweaked: FALSE [17:26:59.260] - call: NULL [17:26:59.261] plan(): nbrOfWorkers() = 1 [17:26:59.262] plan(): Setting new future strategy stack: [17:26:59.262] List of future strategies: [17:26:59.262] 1. sequential: [17:26:59.262] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.262] - tweaked: FALSE [17:26:59.262] - call: plan(strategy) [17:26:59.263] plan(): nbrOfWorkers() = 1 [17:26:59.263] SequentialFuture started (and completed) [17:26:59.263] - Launch lazy future ... done [17:26:59.263] run() for 'SequentialFuture' ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.264] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.264] Searching for globals... [17:26:59.266] - globals found: [5] '{', 'x', '<-', '$', '$<-' [17:26:59.267] Searching for globals ... DONE [17:26:59.267] Resolving globals: TRUE [17:26:59.267] Resolving any globals that are futures ... [17:26:59.267] - globals: [5] '{', 'x', '<-', '$', '$<-' [17:26:59.267] Resolving any globals that are futures ... DONE [17:26:59.268] Resolving futures part of globals (recursively) ... [17:26:59.268] resolve() on list ... [17:26:59.268] recursive: 99 [17:26:59.268] length: 1 [17:26:59.269] elements: 'x' [17:26:59.269] length: 0 (resolved future 1) [17:26:59.269] resolve() on list ... DONE [17:26:59.269] - globals: [1] 'x' [17:26:59.269] Resolving futures part of globals (recursively) ... DONE [17:26:59.269] The total size of the 1 globals is 0 bytes (0 bytes) [17:26:59.271] The total size of the 1 globals exported for future expression ('{; x$a <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:26:59.271] - globals: [1] 'x' [17:26:59.271] [17:26:59.271] getGlobalsAndPackages() ... DONE [17:26:59.272] run() for 'Future' ... [17:26:59.272] - state: 'created' [17:26:59.272] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:59.272] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:59.273] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:59.273] - Field: 'label' [17:26:59.273] - Field: 'local' [17:26:59.273] - Field: 'owner' [17:26:59.273] - Field: 'envir' [17:26:59.273] - Field: 'packages' [17:26:59.274] - Field: 'gc' [17:26:59.274] - Field: 'conditions' [17:26:59.274] - Field: 'expr' [17:26:59.274] - Field: 'uuid' [17:26:59.274] - Field: 'seed' [17:26:59.274] - Field: 'version' [17:26:59.275] - Field: 'result' [17:26:59.275] - Field: 'asynchronous' [17:26:59.275] - Field: 'calls' [17:26:59.275] - Field: 'globals' [17:26:59.275] - Field: 'stdout' [17:26:59.275] - Field: 'earlySignal' [17:26:59.276] - Field: 'lazy' [17:26:59.276] - Field: 'state' [17:26:59.276] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:59.276] - Launch lazy future ... [17:26:59.276] Packages needed by the future expression (n = 0): [17:26:59.277] Packages needed by future strategies (n = 0): [17:26:59.277] { [17:26:59.277] { [17:26:59.277] { [17:26:59.277] ...future.startTime <- base::Sys.time() [17:26:59.277] { [17:26:59.277] { [17:26:59.277] { [17:26:59.277] base::local({ [17:26:59.277] has_future <- base::requireNamespace("future", [17:26:59.277] quietly = TRUE) [17:26:59.277] if (has_future) { [17:26:59.277] ns <- base::getNamespace("future") [17:26:59.277] version <- ns[[".package"]][["version"]] [17:26:59.277] if (is.null(version)) [17:26:59.277] version <- utils::packageVersion("future") [17:26:59.277] } [17:26:59.277] else { [17:26:59.277] version <- NULL [17:26:59.277] } [17:26:59.277] if (!has_future || version < "1.8.0") { [17:26:59.277] info <- base::c(r_version = base::gsub("R version ", [17:26:59.277] "", base::R.version$version.string), [17:26:59.277] platform = base::sprintf("%s (%s-bit)", [17:26:59.277] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:59.277] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:59.277] "release", "version")], collapse = " "), [17:26:59.277] hostname = base::Sys.info()[["nodename"]]) [17:26:59.277] info <- base::sprintf("%s: %s", base::names(info), [17:26:59.277] info) [17:26:59.277] info <- base::paste(info, collapse = "; ") [17:26:59.277] if (!has_future) { [17:26:59.277] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:59.277] info) [17:26:59.277] } [17:26:59.277] else { [17:26:59.277] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:59.277] info, version) [17:26:59.277] } [17:26:59.277] base::stop(msg) [17:26:59.277] } [17:26:59.277] }) [17:26:59.277] } [17:26:59.277] ...future.strategy.old <- future::plan("list") [17:26:59.277] options(future.plan = NULL) [17:26:59.277] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.277] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:59.277] } [17:26:59.277] ...future.workdir <- getwd() [17:26:59.277] } [17:26:59.277] ...future.oldOptions <- base::as.list(base::.Options) [17:26:59.277] ...future.oldEnvVars <- base::Sys.getenv() [17:26:59.277] } [17:26:59.277] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:26:59.277] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:59.277] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:26:59.277] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:26:59.277] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:59.277] future.stdout.windows.reencode = NULL, width = 80L) [17:26:59.277] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:59.277] base::names(...future.oldOptions)) [17:26:59.277] } [17:26:59.277] if (FALSE) { [17:26:59.277] } [17:26:59.277] else { [17:26:59.277] if (TRUE) { [17:26:59.277] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:59.277] open = "w") [17:26:59.277] } [17:26:59.277] else { [17:26:59.277] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:59.277] windows = "NUL", "/dev/null"), open = "w") [17:26:59.277] } [17:26:59.277] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:59.277] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:59.277] base::sink(type = "output", split = FALSE) [17:26:59.277] base::close(...future.stdout) [17:26:59.277] }, add = TRUE) [17:26:59.277] } [17:26:59.277] ...future.frame <- base::sys.nframe() [17:26:59.277] ...future.conditions <- base::list() [17:26:59.277] ...future.rng <- base::globalenv()$.Random.seed [17:26:59.277] if (FALSE) { [17:26:59.277] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:59.277] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:59.277] } [17:26:59.277] ...future.result <- base::tryCatch({ [17:26:59.277] base::withCallingHandlers({ [17:26:59.277] ...future.value <- base::withVisible(base::local({ [17:26:59.277] x$a <- 1 [17:26:59.277] x [17:26:59.277] })) [17:26:59.277] future::FutureResult(value = ...future.value$value, [17:26:59.277] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.277] ...future.rng), globalenv = if (FALSE) [17:26:59.277] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:59.277] ...future.globalenv.names)) [17:26:59.277] else NULL, started = ...future.startTime, version = "1.8") [17:26:59.277] }, condition = base::local({ [17:26:59.277] c <- base::c [17:26:59.277] inherits <- base::inherits [17:26:59.277] invokeRestart <- base::invokeRestart [17:26:59.277] length <- base::length [17:26:59.277] list <- base::list [17:26:59.277] seq.int <- base::seq.int [17:26:59.277] signalCondition <- base::signalCondition [17:26:59.277] sys.calls <- base::sys.calls [17:26:59.277] `[[` <- base::`[[` [17:26:59.277] `+` <- base::`+` [17:26:59.277] `<<-` <- base::`<<-` [17:26:59.277] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:59.277] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:59.277] 3L)] [17:26:59.277] } [17:26:59.277] function(cond) { [17:26:59.277] is_error <- inherits(cond, "error") [17:26:59.277] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:59.277] NULL) [17:26:59.277] if (is_error) { [17:26:59.277] sessionInformation <- function() { [17:26:59.277] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:59.277] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:59.277] search = base::search(), system = base::Sys.info()) [17:26:59.277] } [17:26:59.277] ...future.conditions[[length(...future.conditions) + [17:26:59.277] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:59.277] cond$call), session = sessionInformation(), [17:26:59.277] timestamp = base::Sys.time(), signaled = 0L) [17:26:59.277] signalCondition(cond) [17:26:59.277] } [17:26:59.277] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:59.277] "immediateCondition"))) { [17:26:59.277] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:59.277] ...future.conditions[[length(...future.conditions) + [17:26:59.277] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:59.277] if (TRUE && !signal) { [17:26:59.277] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.277] { [17:26:59.277] inherits <- base::inherits [17:26:59.277] invokeRestart <- base::invokeRestart [17:26:59.277] is.null <- base::is.null [17:26:59.277] muffled <- FALSE [17:26:59.277] if (inherits(cond, "message")) { [17:26:59.277] muffled <- grepl(pattern, "muffleMessage") [17:26:59.277] if (muffled) [17:26:59.277] invokeRestart("muffleMessage") [17:26:59.277] } [17:26:59.277] else if (inherits(cond, "warning")) { [17:26:59.277] muffled <- grepl(pattern, "muffleWarning") [17:26:59.277] if (muffled) [17:26:59.277] invokeRestart("muffleWarning") [17:26:59.277] } [17:26:59.277] else if (inherits(cond, "condition")) { [17:26:59.277] if (!is.null(pattern)) { [17:26:59.277] computeRestarts <- base::computeRestarts [17:26:59.277] grepl <- base::grepl [17:26:59.277] restarts <- computeRestarts(cond) [17:26:59.277] for (restart in restarts) { [17:26:59.277] name <- restart$name [17:26:59.277] if (is.null(name)) [17:26:59.277] next [17:26:59.277] if (!grepl(pattern, name)) [17:26:59.277] next [17:26:59.277] invokeRestart(restart) [17:26:59.277] muffled <- TRUE [17:26:59.277] break [17:26:59.277] } [17:26:59.277] } [17:26:59.277] } [17:26:59.277] invisible(muffled) [17:26:59.277] } [17:26:59.277] muffleCondition(cond, pattern = "^muffle") [17:26:59.277] } [17:26:59.277] } [17:26:59.277] else { [17:26:59.277] if (TRUE) { [17:26:59.277] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.277] { [17:26:59.277] inherits <- base::inherits [17:26:59.277] invokeRestart <- base::invokeRestart [17:26:59.277] is.null <- base::is.null [17:26:59.277] muffled <- FALSE [17:26:59.277] if (inherits(cond, "message")) { [17:26:59.277] muffled <- grepl(pattern, "muffleMessage") [17:26:59.277] if (muffled) [17:26:59.277] invokeRestart("muffleMessage") [17:26:59.277] } [17:26:59.277] else if (inherits(cond, "warning")) { [17:26:59.277] muffled <- grepl(pattern, "muffleWarning") [17:26:59.277] if (muffled) [17:26:59.277] invokeRestart("muffleWarning") [17:26:59.277] } [17:26:59.277] else if (inherits(cond, "condition")) { [17:26:59.277] if (!is.null(pattern)) { [17:26:59.277] computeRestarts <- base::computeRestarts [17:26:59.277] grepl <- base::grepl [17:26:59.277] restarts <- computeRestarts(cond) [17:26:59.277] for (restart in restarts) { [17:26:59.277] name <- restart$name [17:26:59.277] if (is.null(name)) [17:26:59.277] next [17:26:59.277] if (!grepl(pattern, name)) [17:26:59.277] next [17:26:59.277] invokeRestart(restart) [17:26:59.277] muffled <- TRUE [17:26:59.277] break [17:26:59.277] } [17:26:59.277] } [17:26:59.277] } [17:26:59.277] invisible(muffled) [17:26:59.277] } [17:26:59.277] muffleCondition(cond, pattern = "^muffle") [17:26:59.277] } [17:26:59.277] } [17:26:59.277] } [17:26:59.277] })) [17:26:59.277] }, error = function(ex) { [17:26:59.277] base::structure(base::list(value = NULL, visible = NULL, [17:26:59.277] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.277] ...future.rng), started = ...future.startTime, [17:26:59.277] finished = Sys.time(), session_uuid = NA_character_, [17:26:59.277] version = "1.8"), class = "FutureResult") [17:26:59.277] }, finally = { [17:26:59.277] if (!identical(...future.workdir, getwd())) [17:26:59.277] setwd(...future.workdir) [17:26:59.277] { [17:26:59.277] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:59.277] ...future.oldOptions$nwarnings <- NULL [17:26:59.277] } [17:26:59.277] base::options(...future.oldOptions) [17:26:59.277] if (.Platform$OS.type == "windows") { [17:26:59.277] old_names <- names(...future.oldEnvVars) [17:26:59.277] envs <- base::Sys.getenv() [17:26:59.277] names <- names(envs) [17:26:59.277] common <- intersect(names, old_names) [17:26:59.277] added <- setdiff(names, old_names) [17:26:59.277] removed <- setdiff(old_names, names) [17:26:59.277] changed <- common[...future.oldEnvVars[common] != [17:26:59.277] envs[common]] [17:26:59.277] NAMES <- toupper(changed) [17:26:59.277] args <- list() [17:26:59.277] for (kk in seq_along(NAMES)) { [17:26:59.277] name <- changed[[kk]] [17:26:59.277] NAME <- NAMES[[kk]] [17:26:59.277] if (name != NAME && is.element(NAME, old_names)) [17:26:59.277] next [17:26:59.277] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.277] } [17:26:59.277] NAMES <- toupper(added) [17:26:59.277] for (kk in seq_along(NAMES)) { [17:26:59.277] name <- added[[kk]] [17:26:59.277] NAME <- NAMES[[kk]] [17:26:59.277] if (name != NAME && is.element(NAME, old_names)) [17:26:59.277] next [17:26:59.277] args[[name]] <- "" [17:26:59.277] } [17:26:59.277] NAMES <- toupper(removed) [17:26:59.277] for (kk in seq_along(NAMES)) { [17:26:59.277] name <- removed[[kk]] [17:26:59.277] NAME <- NAMES[[kk]] [17:26:59.277] if (name != NAME && is.element(NAME, old_names)) [17:26:59.277] next [17:26:59.277] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.277] } [17:26:59.277] if (length(args) > 0) [17:26:59.277] base::do.call(base::Sys.setenv, args = args) [17:26:59.277] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:59.277] } [17:26:59.277] else { [17:26:59.277] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:59.277] } [17:26:59.277] { [17:26:59.277] if (base::length(...future.futureOptionsAdded) > [17:26:59.277] 0L) { [17:26:59.277] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:59.277] base::names(opts) <- ...future.futureOptionsAdded [17:26:59.277] base::options(opts) [17:26:59.277] } [17:26:59.277] { [17:26:59.277] { [17:26:59.277] NULL [17:26:59.277] RNGkind("Mersenne-Twister") [17:26:59.277] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:59.277] inherits = FALSE) [17:26:59.277] } [17:26:59.277] options(future.plan = NULL) [17:26:59.277] if (is.na(NA_character_)) [17:26:59.277] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.277] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:59.277] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:59.277] .init = FALSE) [17:26:59.277] } [17:26:59.277] } [17:26:59.277] } [17:26:59.277] }) [17:26:59.277] if (TRUE) { [17:26:59.277] base::sink(type = "output", split = FALSE) [17:26:59.277] if (TRUE) { [17:26:59.277] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:59.277] } [17:26:59.277] else { [17:26:59.277] ...future.result["stdout"] <- base::list(NULL) [17:26:59.277] } [17:26:59.277] base::close(...future.stdout) [17:26:59.277] ...future.stdout <- NULL [17:26:59.277] } [17:26:59.277] ...future.result$conditions <- ...future.conditions [17:26:59.277] ...future.result$finished <- base::Sys.time() [17:26:59.277] ...future.result [17:26:59.277] } [17:26:59.281] assign_globals() ... [17:26:59.281] List of 1 [17:26:59.281] $ x: list() [17:26:59.281] - attr(*, "where")=List of 1 [17:26:59.281] ..$ x: [17:26:59.281] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:59.281] - attr(*, "resolved")= logi TRUE [17:26:59.281] - attr(*, "total_size")= num 0 [17:26:59.281] - attr(*, "already-done")= logi TRUE [17:26:59.284] - copied 'x' to environment [17:26:59.284] assign_globals() ... done [17:26:59.284] plan(): Setting new future strategy stack: [17:26:59.284] List of future strategies: [17:26:59.284] 1. sequential: [17:26:59.284] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.284] - tweaked: FALSE [17:26:59.284] - call: NULL [17:26:59.285] plan(): nbrOfWorkers() = 1 [17:26:59.286] plan(): Setting new future strategy stack: [17:26:59.286] List of future strategies: [17:26:59.286] 1. sequential: [17:26:59.286] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.286] - tweaked: FALSE [17:26:59.286] - call: plan(strategy) [17:26:59.287] plan(): nbrOfWorkers() = 1 [17:26:59.287] SequentialFuture started (and completed) [17:26:59.287] - Launch lazy future ... done [17:26:59.287] run() for 'SequentialFuture' ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.288] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.288] Searching for globals... [17:26:59.291] - globals found: [5] '{', '<-', 'list', '$', '$<-' [17:26:59.291] Searching for globals ... DONE [17:26:59.292] Resolving globals: TRUE [17:26:59.292] Resolving any globals that are futures ... [17:26:59.292] - globals: [5] '{', '<-', 'list', '$', '$<-' [17:26:59.292] Resolving any globals that are futures ... DONE [17:26:59.293] [17:26:59.293] [17:26:59.293] getGlobalsAndPackages() ... DONE [17:26:59.293] run() for 'Future' ... [17:26:59.293] - state: 'created' [17:26:59.294] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:59.294] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:59.294] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:59.294] - Field: 'label' [17:26:59.295] - Field: 'local' [17:26:59.295] - Field: 'owner' [17:26:59.295] - Field: 'envir' [17:26:59.295] - Field: 'packages' [17:26:59.295] - Field: 'gc' [17:26:59.295] - Field: 'conditions' [17:26:59.296] - Field: 'expr' [17:26:59.296] - Field: 'uuid' [17:26:59.296] - Field: 'seed' [17:26:59.296] - Field: 'version' [17:26:59.296] - Field: 'result' [17:26:59.296] - Field: 'asynchronous' [17:26:59.297] - Field: 'calls' [17:26:59.297] - Field: 'globals' [17:26:59.297] - Field: 'stdout' [17:26:59.297] - Field: 'earlySignal' [17:26:59.297] - Field: 'lazy' [17:26:59.297] - Field: 'state' [17:26:59.298] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:59.298] - Launch lazy future ... [17:26:59.298] Packages needed by the future expression (n = 0): [17:26:59.298] Packages needed by future strategies (n = 0): [17:26:59.299] { [17:26:59.299] { [17:26:59.299] { [17:26:59.299] ...future.startTime <- base::Sys.time() [17:26:59.299] { [17:26:59.299] { [17:26:59.299] { [17:26:59.299] base::local({ [17:26:59.299] has_future <- base::requireNamespace("future", [17:26:59.299] quietly = TRUE) [17:26:59.299] if (has_future) { [17:26:59.299] ns <- base::getNamespace("future") [17:26:59.299] version <- ns[[".package"]][["version"]] [17:26:59.299] if (is.null(version)) [17:26:59.299] version <- utils::packageVersion("future") [17:26:59.299] } [17:26:59.299] else { [17:26:59.299] version <- NULL [17:26:59.299] } [17:26:59.299] if (!has_future || version < "1.8.0") { [17:26:59.299] info <- base::c(r_version = base::gsub("R version ", [17:26:59.299] "", base::R.version$version.string), [17:26:59.299] platform = base::sprintf("%s (%s-bit)", [17:26:59.299] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:59.299] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:59.299] "release", "version")], collapse = " "), [17:26:59.299] hostname = base::Sys.info()[["nodename"]]) [17:26:59.299] info <- base::sprintf("%s: %s", base::names(info), [17:26:59.299] info) [17:26:59.299] info <- base::paste(info, collapse = "; ") [17:26:59.299] if (!has_future) { [17:26:59.299] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:59.299] info) [17:26:59.299] } [17:26:59.299] else { [17:26:59.299] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:59.299] info, version) [17:26:59.299] } [17:26:59.299] base::stop(msg) [17:26:59.299] } [17:26:59.299] }) [17:26:59.299] } [17:26:59.299] ...future.strategy.old <- future::plan("list") [17:26:59.299] options(future.plan = NULL) [17:26:59.299] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.299] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:59.299] } [17:26:59.299] ...future.workdir <- getwd() [17:26:59.299] } [17:26:59.299] ...future.oldOptions <- base::as.list(base::.Options) [17:26:59.299] ...future.oldEnvVars <- base::Sys.getenv() [17:26:59.299] } [17:26:59.299] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:26:59.299] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:59.299] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:26:59.299] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:26:59.299] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:59.299] future.stdout.windows.reencode = NULL, width = 80L) [17:26:59.299] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:59.299] base::names(...future.oldOptions)) [17:26:59.299] } [17:26:59.299] if (FALSE) { [17:26:59.299] } [17:26:59.299] else { [17:26:59.299] if (TRUE) { [17:26:59.299] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:59.299] open = "w") [17:26:59.299] } [17:26:59.299] else { [17:26:59.299] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:59.299] windows = "NUL", "/dev/null"), open = "w") [17:26:59.299] } [17:26:59.299] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:59.299] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:59.299] base::sink(type = "output", split = FALSE) [17:26:59.299] base::close(...future.stdout) [17:26:59.299] }, add = TRUE) [17:26:59.299] } [17:26:59.299] ...future.frame <- base::sys.nframe() [17:26:59.299] ...future.conditions <- base::list() [17:26:59.299] ...future.rng <- base::globalenv()$.Random.seed [17:26:59.299] if (FALSE) { [17:26:59.299] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:59.299] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:59.299] } [17:26:59.299] ...future.result <- base::tryCatch({ [17:26:59.299] base::withCallingHandlers({ [17:26:59.299] ...future.value <- base::withVisible(base::local({ [17:26:59.299] x <- list(b = 2) [17:26:59.299] x$a <- 1 [17:26:59.299] x [17:26:59.299] })) [17:26:59.299] future::FutureResult(value = ...future.value$value, [17:26:59.299] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.299] ...future.rng), globalenv = if (FALSE) [17:26:59.299] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:59.299] ...future.globalenv.names)) [17:26:59.299] else NULL, started = ...future.startTime, version = "1.8") [17:26:59.299] }, condition = base::local({ [17:26:59.299] c <- base::c [17:26:59.299] inherits <- base::inherits [17:26:59.299] invokeRestart <- base::invokeRestart [17:26:59.299] length <- base::length [17:26:59.299] list <- base::list [17:26:59.299] seq.int <- base::seq.int [17:26:59.299] signalCondition <- base::signalCondition [17:26:59.299] sys.calls <- base::sys.calls [17:26:59.299] `[[` <- base::`[[` [17:26:59.299] `+` <- base::`+` [17:26:59.299] `<<-` <- base::`<<-` [17:26:59.299] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:59.299] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:59.299] 3L)] [17:26:59.299] } [17:26:59.299] function(cond) { [17:26:59.299] is_error <- inherits(cond, "error") [17:26:59.299] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:59.299] NULL) [17:26:59.299] if (is_error) { [17:26:59.299] sessionInformation <- function() { [17:26:59.299] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:59.299] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:59.299] search = base::search(), system = base::Sys.info()) [17:26:59.299] } [17:26:59.299] ...future.conditions[[length(...future.conditions) + [17:26:59.299] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:59.299] cond$call), session = sessionInformation(), [17:26:59.299] timestamp = base::Sys.time(), signaled = 0L) [17:26:59.299] signalCondition(cond) [17:26:59.299] } [17:26:59.299] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:59.299] "immediateCondition"))) { [17:26:59.299] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:59.299] ...future.conditions[[length(...future.conditions) + [17:26:59.299] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:59.299] if (TRUE && !signal) { [17:26:59.299] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.299] { [17:26:59.299] inherits <- base::inherits [17:26:59.299] invokeRestart <- base::invokeRestart [17:26:59.299] is.null <- base::is.null [17:26:59.299] muffled <- FALSE [17:26:59.299] if (inherits(cond, "message")) { [17:26:59.299] muffled <- grepl(pattern, "muffleMessage") [17:26:59.299] if (muffled) [17:26:59.299] invokeRestart("muffleMessage") [17:26:59.299] } [17:26:59.299] else if (inherits(cond, "warning")) { [17:26:59.299] muffled <- grepl(pattern, "muffleWarning") [17:26:59.299] if (muffled) [17:26:59.299] invokeRestart("muffleWarning") [17:26:59.299] } [17:26:59.299] else if (inherits(cond, "condition")) { [17:26:59.299] if (!is.null(pattern)) { [17:26:59.299] computeRestarts <- base::computeRestarts [17:26:59.299] grepl <- base::grepl [17:26:59.299] restarts <- computeRestarts(cond) [17:26:59.299] for (restart in restarts) { [17:26:59.299] name <- restart$name [17:26:59.299] if (is.null(name)) [17:26:59.299] next [17:26:59.299] if (!grepl(pattern, name)) [17:26:59.299] next [17:26:59.299] invokeRestart(restart) [17:26:59.299] muffled <- TRUE [17:26:59.299] break [17:26:59.299] } [17:26:59.299] } [17:26:59.299] } [17:26:59.299] invisible(muffled) [17:26:59.299] } [17:26:59.299] muffleCondition(cond, pattern = "^muffle") [17:26:59.299] } [17:26:59.299] } [17:26:59.299] else { [17:26:59.299] if (TRUE) { [17:26:59.299] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.299] { [17:26:59.299] inherits <- base::inherits [17:26:59.299] invokeRestart <- base::invokeRestart [17:26:59.299] is.null <- base::is.null [17:26:59.299] muffled <- FALSE [17:26:59.299] if (inherits(cond, "message")) { [17:26:59.299] muffled <- grepl(pattern, "muffleMessage") [17:26:59.299] if (muffled) [17:26:59.299] invokeRestart("muffleMessage") [17:26:59.299] } [17:26:59.299] else if (inherits(cond, "warning")) { [17:26:59.299] muffled <- grepl(pattern, "muffleWarning") [17:26:59.299] if (muffled) [17:26:59.299] invokeRestart("muffleWarning") [17:26:59.299] } [17:26:59.299] else if (inherits(cond, "condition")) { [17:26:59.299] if (!is.null(pattern)) { [17:26:59.299] computeRestarts <- base::computeRestarts [17:26:59.299] grepl <- base::grepl [17:26:59.299] restarts <- computeRestarts(cond) [17:26:59.299] for (restart in restarts) { [17:26:59.299] name <- restart$name [17:26:59.299] if (is.null(name)) [17:26:59.299] next [17:26:59.299] if (!grepl(pattern, name)) [17:26:59.299] next [17:26:59.299] invokeRestart(restart) [17:26:59.299] muffled <- TRUE [17:26:59.299] break [17:26:59.299] } [17:26:59.299] } [17:26:59.299] } [17:26:59.299] invisible(muffled) [17:26:59.299] } [17:26:59.299] muffleCondition(cond, pattern = "^muffle") [17:26:59.299] } [17:26:59.299] } [17:26:59.299] } [17:26:59.299] })) [17:26:59.299] }, error = function(ex) { [17:26:59.299] base::structure(base::list(value = NULL, visible = NULL, [17:26:59.299] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.299] ...future.rng), started = ...future.startTime, [17:26:59.299] finished = Sys.time(), session_uuid = NA_character_, [17:26:59.299] version = "1.8"), class = "FutureResult") [17:26:59.299] }, finally = { [17:26:59.299] if (!identical(...future.workdir, getwd())) [17:26:59.299] setwd(...future.workdir) [17:26:59.299] { [17:26:59.299] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:59.299] ...future.oldOptions$nwarnings <- NULL [17:26:59.299] } [17:26:59.299] base::options(...future.oldOptions) [17:26:59.299] if (.Platform$OS.type == "windows") { [17:26:59.299] old_names <- names(...future.oldEnvVars) [17:26:59.299] envs <- base::Sys.getenv() [17:26:59.299] names <- names(envs) [17:26:59.299] common <- intersect(names, old_names) [17:26:59.299] added <- setdiff(names, old_names) [17:26:59.299] removed <- setdiff(old_names, names) [17:26:59.299] changed <- common[...future.oldEnvVars[common] != [17:26:59.299] envs[common]] [17:26:59.299] NAMES <- toupper(changed) [17:26:59.299] args <- list() [17:26:59.299] for (kk in seq_along(NAMES)) { [17:26:59.299] name <- changed[[kk]] [17:26:59.299] NAME <- NAMES[[kk]] [17:26:59.299] if (name != NAME && is.element(NAME, old_names)) [17:26:59.299] next [17:26:59.299] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.299] } [17:26:59.299] NAMES <- toupper(added) [17:26:59.299] for (kk in seq_along(NAMES)) { [17:26:59.299] name <- added[[kk]] [17:26:59.299] NAME <- NAMES[[kk]] [17:26:59.299] if (name != NAME && is.element(NAME, old_names)) [17:26:59.299] next [17:26:59.299] args[[name]] <- "" [17:26:59.299] } [17:26:59.299] NAMES <- toupper(removed) [17:26:59.299] for (kk in seq_along(NAMES)) { [17:26:59.299] name <- removed[[kk]] [17:26:59.299] NAME <- NAMES[[kk]] [17:26:59.299] if (name != NAME && is.element(NAME, old_names)) [17:26:59.299] next [17:26:59.299] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.299] } [17:26:59.299] if (length(args) > 0) [17:26:59.299] base::do.call(base::Sys.setenv, args = args) [17:26:59.299] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:59.299] } [17:26:59.299] else { [17:26:59.299] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:59.299] } [17:26:59.299] { [17:26:59.299] if (base::length(...future.futureOptionsAdded) > [17:26:59.299] 0L) { [17:26:59.299] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:59.299] base::names(opts) <- ...future.futureOptionsAdded [17:26:59.299] base::options(opts) [17:26:59.299] } [17:26:59.299] { [17:26:59.299] { [17:26:59.299] NULL [17:26:59.299] RNGkind("Mersenne-Twister") [17:26:59.299] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:59.299] inherits = FALSE) [17:26:59.299] } [17:26:59.299] options(future.plan = NULL) [17:26:59.299] if (is.na(NA_character_)) [17:26:59.299] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.299] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:59.299] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:59.299] .init = FALSE) [17:26:59.299] } [17:26:59.299] } [17:26:59.299] } [17:26:59.299] }) [17:26:59.299] if (TRUE) { [17:26:59.299] base::sink(type = "output", split = FALSE) [17:26:59.299] if (TRUE) { [17:26:59.299] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:59.299] } [17:26:59.299] else { [17:26:59.299] ...future.result["stdout"] <- base::list(NULL) [17:26:59.299] } [17:26:59.299] base::close(...future.stdout) [17:26:59.299] ...future.stdout <- NULL [17:26:59.299] } [17:26:59.299] ...future.result$conditions <- ...future.conditions [17:26:59.299] ...future.result$finished <- base::Sys.time() [17:26:59.299] ...future.result [17:26:59.299] } [17:26:59.303] plan(): Setting new future strategy stack: [17:26:59.303] List of future strategies: [17:26:59.303] 1. sequential: [17:26:59.303] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.303] - tweaked: FALSE [17:26:59.303] - call: NULL [17:26:59.303] plan(): nbrOfWorkers() = 1 [17:26:59.305] plan(): Setting new future strategy stack: [17:26:59.305] List of future strategies: [17:26:59.305] 1. sequential: [17:26:59.305] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.305] - tweaked: FALSE [17:26:59.305] - call: plan(strategy) [17:26:59.306] plan(): nbrOfWorkers() = 1 [17:26:59.306] SequentialFuture started (and completed) [17:26:59.307] - Launch lazy future ... done [17:26:59.307] run() for 'SequentialFuture' ... done $b [1] 2 $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.307] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.308] Searching for globals... [17:26:59.310] - globals found: [5] '{', 'x', '<-', '[[', '[[<-' [17:26:59.310] Searching for globals ... DONE [17:26:59.310] Resolving globals: TRUE [17:26:59.311] Resolving any globals that are futures ... [17:26:59.311] - globals: [5] '{', 'x', '<-', '[[', '[[<-' [17:26:59.311] Resolving any globals that are futures ... DONE [17:26:59.311] Resolving futures part of globals (recursively) ... [17:26:59.312] resolve() on list ... [17:26:59.312] recursive: 99 [17:26:59.312] length: 1 [17:26:59.312] elements: 'x' [17:26:59.312] length: 0 (resolved future 1) [17:26:59.312] resolve() on list ... DONE [17:26:59.313] - globals: [1] 'x' [17:26:59.313] Resolving futures part of globals (recursively) ... DONE [17:26:59.313] The total size of the 1 globals is 0 bytes (0 bytes) [17:26:59.313] The total size of the 1 globals exported for future expression ('{; x[["a"]] <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:26:59.314] - globals: [1] 'x' [17:26:59.314] [17:26:59.314] getGlobalsAndPackages() ... DONE [17:26:59.314] run() for 'Future' ... [17:26:59.314] - state: 'created' [17:26:59.315] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:59.315] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:59.315] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:59.315] - Field: 'label' [17:26:59.315] - Field: 'local' [17:26:59.316] - Field: 'owner' [17:26:59.316] - Field: 'envir' [17:26:59.316] - Field: 'packages' [17:26:59.316] - Field: 'gc' [17:26:59.316] - Field: 'conditions' [17:26:59.317] - Field: 'expr' [17:26:59.317] - Field: 'uuid' [17:26:59.317] - Field: 'seed' [17:26:59.317] - Field: 'version' [17:26:59.317] - Field: 'result' [17:26:59.317] - Field: 'asynchronous' [17:26:59.318] - Field: 'calls' [17:26:59.318] - Field: 'globals' [17:26:59.318] - Field: 'stdout' [17:26:59.318] - Field: 'earlySignal' [17:26:59.318] - Field: 'lazy' [17:26:59.318] - Field: 'state' [17:26:59.319] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:59.319] - Launch lazy future ... [17:26:59.319] Packages needed by the future expression (n = 0): [17:26:59.319] Packages needed by future strategies (n = 0): [17:26:59.320] { [17:26:59.320] { [17:26:59.320] { [17:26:59.320] ...future.startTime <- base::Sys.time() [17:26:59.320] { [17:26:59.320] { [17:26:59.320] { [17:26:59.320] base::local({ [17:26:59.320] has_future <- base::requireNamespace("future", [17:26:59.320] quietly = TRUE) [17:26:59.320] if (has_future) { [17:26:59.320] ns <- base::getNamespace("future") [17:26:59.320] version <- ns[[".package"]][["version"]] [17:26:59.320] if (is.null(version)) [17:26:59.320] version <- utils::packageVersion("future") [17:26:59.320] } [17:26:59.320] else { [17:26:59.320] version <- NULL [17:26:59.320] } [17:26:59.320] if (!has_future || version < "1.8.0") { [17:26:59.320] info <- base::c(r_version = base::gsub("R version ", [17:26:59.320] "", base::R.version$version.string), [17:26:59.320] platform = base::sprintf("%s (%s-bit)", [17:26:59.320] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:59.320] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:59.320] "release", "version")], collapse = " "), [17:26:59.320] hostname = base::Sys.info()[["nodename"]]) [17:26:59.320] info <- base::sprintf("%s: %s", base::names(info), [17:26:59.320] info) [17:26:59.320] info <- base::paste(info, collapse = "; ") [17:26:59.320] if (!has_future) { [17:26:59.320] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:59.320] info) [17:26:59.320] } [17:26:59.320] else { [17:26:59.320] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:59.320] info, version) [17:26:59.320] } [17:26:59.320] base::stop(msg) [17:26:59.320] } [17:26:59.320] }) [17:26:59.320] } [17:26:59.320] ...future.strategy.old <- future::plan("list") [17:26:59.320] options(future.plan = NULL) [17:26:59.320] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.320] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:59.320] } [17:26:59.320] ...future.workdir <- getwd() [17:26:59.320] } [17:26:59.320] ...future.oldOptions <- base::as.list(base::.Options) [17:26:59.320] ...future.oldEnvVars <- base::Sys.getenv() [17:26:59.320] } [17:26:59.320] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:26:59.320] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:59.320] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:26:59.320] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:26:59.320] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:59.320] future.stdout.windows.reencode = NULL, width = 80L) [17:26:59.320] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:59.320] base::names(...future.oldOptions)) [17:26:59.320] } [17:26:59.320] if (FALSE) { [17:26:59.320] } [17:26:59.320] else { [17:26:59.320] if (TRUE) { [17:26:59.320] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:59.320] open = "w") [17:26:59.320] } [17:26:59.320] else { [17:26:59.320] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:59.320] windows = "NUL", "/dev/null"), open = "w") [17:26:59.320] } [17:26:59.320] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:59.320] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:59.320] base::sink(type = "output", split = FALSE) [17:26:59.320] base::close(...future.stdout) [17:26:59.320] }, add = TRUE) [17:26:59.320] } [17:26:59.320] ...future.frame <- base::sys.nframe() [17:26:59.320] ...future.conditions <- base::list() [17:26:59.320] ...future.rng <- base::globalenv()$.Random.seed [17:26:59.320] if (FALSE) { [17:26:59.320] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:59.320] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:59.320] } [17:26:59.320] ...future.result <- base::tryCatch({ [17:26:59.320] base::withCallingHandlers({ [17:26:59.320] ...future.value <- base::withVisible(base::local({ [17:26:59.320] x[["a"]] <- 1 [17:26:59.320] x [17:26:59.320] })) [17:26:59.320] future::FutureResult(value = ...future.value$value, [17:26:59.320] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.320] ...future.rng), globalenv = if (FALSE) [17:26:59.320] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:59.320] ...future.globalenv.names)) [17:26:59.320] else NULL, started = ...future.startTime, version = "1.8") [17:26:59.320] }, condition = base::local({ [17:26:59.320] c <- base::c [17:26:59.320] inherits <- base::inherits [17:26:59.320] invokeRestart <- base::invokeRestart [17:26:59.320] length <- base::length [17:26:59.320] list <- base::list [17:26:59.320] seq.int <- base::seq.int [17:26:59.320] signalCondition <- base::signalCondition [17:26:59.320] sys.calls <- base::sys.calls [17:26:59.320] `[[` <- base::`[[` [17:26:59.320] `+` <- base::`+` [17:26:59.320] `<<-` <- base::`<<-` [17:26:59.320] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:59.320] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:59.320] 3L)] [17:26:59.320] } [17:26:59.320] function(cond) { [17:26:59.320] is_error <- inherits(cond, "error") [17:26:59.320] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:59.320] NULL) [17:26:59.320] if (is_error) { [17:26:59.320] sessionInformation <- function() { [17:26:59.320] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:59.320] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:59.320] search = base::search(), system = base::Sys.info()) [17:26:59.320] } [17:26:59.320] ...future.conditions[[length(...future.conditions) + [17:26:59.320] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:59.320] cond$call), session = sessionInformation(), [17:26:59.320] timestamp = base::Sys.time(), signaled = 0L) [17:26:59.320] signalCondition(cond) [17:26:59.320] } [17:26:59.320] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:59.320] "immediateCondition"))) { [17:26:59.320] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:59.320] ...future.conditions[[length(...future.conditions) + [17:26:59.320] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:59.320] if (TRUE && !signal) { [17:26:59.320] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.320] { [17:26:59.320] inherits <- base::inherits [17:26:59.320] invokeRestart <- base::invokeRestart [17:26:59.320] is.null <- base::is.null [17:26:59.320] muffled <- FALSE [17:26:59.320] if (inherits(cond, "message")) { [17:26:59.320] muffled <- grepl(pattern, "muffleMessage") [17:26:59.320] if (muffled) [17:26:59.320] invokeRestart("muffleMessage") [17:26:59.320] } [17:26:59.320] else if (inherits(cond, "warning")) { [17:26:59.320] muffled <- grepl(pattern, "muffleWarning") [17:26:59.320] if (muffled) [17:26:59.320] invokeRestart("muffleWarning") [17:26:59.320] } [17:26:59.320] else if (inherits(cond, "condition")) { [17:26:59.320] if (!is.null(pattern)) { [17:26:59.320] computeRestarts <- base::computeRestarts [17:26:59.320] grepl <- base::grepl [17:26:59.320] restarts <- computeRestarts(cond) [17:26:59.320] for (restart in restarts) { [17:26:59.320] name <- restart$name [17:26:59.320] if (is.null(name)) [17:26:59.320] next [17:26:59.320] if (!grepl(pattern, name)) [17:26:59.320] next [17:26:59.320] invokeRestart(restart) [17:26:59.320] muffled <- TRUE [17:26:59.320] break [17:26:59.320] } [17:26:59.320] } [17:26:59.320] } [17:26:59.320] invisible(muffled) [17:26:59.320] } [17:26:59.320] muffleCondition(cond, pattern = "^muffle") [17:26:59.320] } [17:26:59.320] } [17:26:59.320] else { [17:26:59.320] if (TRUE) { [17:26:59.320] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.320] { [17:26:59.320] inherits <- base::inherits [17:26:59.320] invokeRestart <- base::invokeRestart [17:26:59.320] is.null <- base::is.null [17:26:59.320] muffled <- FALSE [17:26:59.320] if (inherits(cond, "message")) { [17:26:59.320] muffled <- grepl(pattern, "muffleMessage") [17:26:59.320] if (muffled) [17:26:59.320] invokeRestart("muffleMessage") [17:26:59.320] } [17:26:59.320] else if (inherits(cond, "warning")) { [17:26:59.320] muffled <- grepl(pattern, "muffleWarning") [17:26:59.320] if (muffled) [17:26:59.320] invokeRestart("muffleWarning") [17:26:59.320] } [17:26:59.320] else if (inherits(cond, "condition")) { [17:26:59.320] if (!is.null(pattern)) { [17:26:59.320] computeRestarts <- base::computeRestarts [17:26:59.320] grepl <- base::grepl [17:26:59.320] restarts <- computeRestarts(cond) [17:26:59.320] for (restart in restarts) { [17:26:59.320] name <- restart$name [17:26:59.320] if (is.null(name)) [17:26:59.320] next [17:26:59.320] if (!grepl(pattern, name)) [17:26:59.320] next [17:26:59.320] invokeRestart(restart) [17:26:59.320] muffled <- TRUE [17:26:59.320] break [17:26:59.320] } [17:26:59.320] } [17:26:59.320] } [17:26:59.320] invisible(muffled) [17:26:59.320] } [17:26:59.320] muffleCondition(cond, pattern = "^muffle") [17:26:59.320] } [17:26:59.320] } [17:26:59.320] } [17:26:59.320] })) [17:26:59.320] }, error = function(ex) { [17:26:59.320] base::structure(base::list(value = NULL, visible = NULL, [17:26:59.320] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.320] ...future.rng), started = ...future.startTime, [17:26:59.320] finished = Sys.time(), session_uuid = NA_character_, [17:26:59.320] version = "1.8"), class = "FutureResult") [17:26:59.320] }, finally = { [17:26:59.320] if (!identical(...future.workdir, getwd())) [17:26:59.320] setwd(...future.workdir) [17:26:59.320] { [17:26:59.320] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:59.320] ...future.oldOptions$nwarnings <- NULL [17:26:59.320] } [17:26:59.320] base::options(...future.oldOptions) [17:26:59.320] if (.Platform$OS.type == "windows") { [17:26:59.320] old_names <- names(...future.oldEnvVars) [17:26:59.320] envs <- base::Sys.getenv() [17:26:59.320] names <- names(envs) [17:26:59.320] common <- intersect(names, old_names) [17:26:59.320] added <- setdiff(names, old_names) [17:26:59.320] removed <- setdiff(old_names, names) [17:26:59.320] changed <- common[...future.oldEnvVars[common] != [17:26:59.320] envs[common]] [17:26:59.320] NAMES <- toupper(changed) [17:26:59.320] args <- list() [17:26:59.320] for (kk in seq_along(NAMES)) { [17:26:59.320] name <- changed[[kk]] [17:26:59.320] NAME <- NAMES[[kk]] [17:26:59.320] if (name != NAME && is.element(NAME, old_names)) [17:26:59.320] next [17:26:59.320] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.320] } [17:26:59.320] NAMES <- toupper(added) [17:26:59.320] for (kk in seq_along(NAMES)) { [17:26:59.320] name <- added[[kk]] [17:26:59.320] NAME <- NAMES[[kk]] [17:26:59.320] if (name != NAME && is.element(NAME, old_names)) [17:26:59.320] next [17:26:59.320] args[[name]] <- "" [17:26:59.320] } [17:26:59.320] NAMES <- toupper(removed) [17:26:59.320] for (kk in seq_along(NAMES)) { [17:26:59.320] name <- removed[[kk]] [17:26:59.320] NAME <- NAMES[[kk]] [17:26:59.320] if (name != NAME && is.element(NAME, old_names)) [17:26:59.320] next [17:26:59.320] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.320] } [17:26:59.320] if (length(args) > 0) [17:26:59.320] base::do.call(base::Sys.setenv, args = args) [17:26:59.320] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:59.320] } [17:26:59.320] else { [17:26:59.320] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:59.320] } [17:26:59.320] { [17:26:59.320] if (base::length(...future.futureOptionsAdded) > [17:26:59.320] 0L) { [17:26:59.320] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:59.320] base::names(opts) <- ...future.futureOptionsAdded [17:26:59.320] base::options(opts) [17:26:59.320] } [17:26:59.320] { [17:26:59.320] { [17:26:59.320] NULL [17:26:59.320] RNGkind("Mersenne-Twister") [17:26:59.320] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:59.320] inherits = FALSE) [17:26:59.320] } [17:26:59.320] options(future.plan = NULL) [17:26:59.320] if (is.na(NA_character_)) [17:26:59.320] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.320] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:59.320] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:59.320] .init = FALSE) [17:26:59.320] } [17:26:59.320] } [17:26:59.320] } [17:26:59.320] }) [17:26:59.320] if (TRUE) { [17:26:59.320] base::sink(type = "output", split = FALSE) [17:26:59.320] if (TRUE) { [17:26:59.320] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:59.320] } [17:26:59.320] else { [17:26:59.320] ...future.result["stdout"] <- base::list(NULL) [17:26:59.320] } [17:26:59.320] base::close(...future.stdout) [17:26:59.320] ...future.stdout <- NULL [17:26:59.320] } [17:26:59.320] ...future.result$conditions <- ...future.conditions [17:26:59.320] ...future.result$finished <- base::Sys.time() [17:26:59.320] ...future.result [17:26:59.320] } [17:26:59.323] assign_globals() ... [17:26:59.324] List of 1 [17:26:59.324] $ x: list() [17:26:59.324] - attr(*, "where")=List of 1 [17:26:59.324] ..$ x: [17:26:59.324] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:59.324] - attr(*, "resolved")= logi TRUE [17:26:59.324] - attr(*, "total_size")= num 0 [17:26:59.324] - attr(*, "already-done")= logi TRUE [17:26:59.326] - copied 'x' to environment [17:26:59.326] assign_globals() ... done [17:26:59.327] plan(): Setting new future strategy stack: [17:26:59.327] List of future strategies: [17:26:59.327] 1. sequential: [17:26:59.327] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.327] - tweaked: FALSE [17:26:59.327] - call: NULL [17:26:59.328] plan(): nbrOfWorkers() = 1 [17:26:59.329] plan(): Setting new future strategy stack: [17:26:59.329] List of future strategies: [17:26:59.329] 1. sequential: [17:26:59.329] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.329] - tweaked: FALSE [17:26:59.329] - call: plan(strategy) [17:26:59.329] plan(): nbrOfWorkers() = 1 [17:26:59.330] SequentialFuture started (and completed) [17:26:59.330] - Launch lazy future ... done [17:26:59.330] run() for 'SequentialFuture' ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.331] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.331] Searching for globals... [17:26:59.333] - globals found: [5] '{', 'x', '<-', '[[', '[[<-' [17:26:59.333] Searching for globals ... DONE [17:26:59.334] Resolving globals: TRUE [17:26:59.334] Resolving any globals that are futures ... [17:26:59.334] - globals: [5] '{', 'x', '<-', '[[', '[[<-' [17:26:59.334] Resolving any globals that are futures ... DONE [17:26:59.335] Resolving futures part of globals (recursively) ... [17:26:59.335] resolve() on list ... [17:26:59.335] recursive: 99 [17:26:59.336] length: 1 [17:26:59.336] elements: 'x' [17:26:59.336] length: 0 (resolved future 1) [17:26:59.337] resolve() on list ... DONE [17:26:59.337] - globals: [1] 'x' [17:26:59.337] Resolving futures part of globals (recursively) ... DONE [17:26:59.337] The total size of the 1 globals is 0 bytes (0 bytes) [17:26:59.337] The total size of the 1 globals exported for future expression ('{; x[["a"]] <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:26:59.338] - globals: [1] 'x' [17:26:59.338] [17:26:59.338] getGlobalsAndPackages() ... DONE [17:26:59.338] run() for 'Future' ... [17:26:59.339] - state: 'created' [17:26:59.339] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:59.339] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:59.339] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:59.339] - Field: 'label' [17:26:59.340] - Field: 'local' [17:26:59.340] - Field: 'owner' [17:26:59.340] - Field: 'envir' [17:26:59.340] - Field: 'packages' [17:26:59.340] - Field: 'gc' [17:26:59.341] - Field: 'conditions' [17:26:59.341] - Field: 'expr' [17:26:59.341] - Field: 'uuid' [17:26:59.341] - Field: 'seed' [17:26:59.341] - Field: 'version' [17:26:59.341] - Field: 'result' [17:26:59.342] - Field: 'asynchronous' [17:26:59.342] - Field: 'calls' [17:26:59.342] - Field: 'globals' [17:26:59.342] - Field: 'stdout' [17:26:59.342] - Field: 'earlySignal' [17:26:59.342] - Field: 'lazy' [17:26:59.343] - Field: 'state' [17:26:59.343] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:59.343] - Launch lazy future ... [17:26:59.343] Packages needed by the future expression (n = 0): [17:26:59.343] Packages needed by future strategies (n = 0): [17:26:59.344] { [17:26:59.344] { [17:26:59.344] { [17:26:59.344] ...future.startTime <- base::Sys.time() [17:26:59.344] { [17:26:59.344] { [17:26:59.344] { [17:26:59.344] base::local({ [17:26:59.344] has_future <- base::requireNamespace("future", [17:26:59.344] quietly = TRUE) [17:26:59.344] if (has_future) { [17:26:59.344] ns <- base::getNamespace("future") [17:26:59.344] version <- ns[[".package"]][["version"]] [17:26:59.344] if (is.null(version)) [17:26:59.344] version <- utils::packageVersion("future") [17:26:59.344] } [17:26:59.344] else { [17:26:59.344] version <- NULL [17:26:59.344] } [17:26:59.344] if (!has_future || version < "1.8.0") { [17:26:59.344] info <- base::c(r_version = base::gsub("R version ", [17:26:59.344] "", base::R.version$version.string), [17:26:59.344] platform = base::sprintf("%s (%s-bit)", [17:26:59.344] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:59.344] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:59.344] "release", "version")], collapse = " "), [17:26:59.344] hostname = base::Sys.info()[["nodename"]]) [17:26:59.344] info <- base::sprintf("%s: %s", base::names(info), [17:26:59.344] info) [17:26:59.344] info <- base::paste(info, collapse = "; ") [17:26:59.344] if (!has_future) { [17:26:59.344] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:59.344] info) [17:26:59.344] } [17:26:59.344] else { [17:26:59.344] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:59.344] info, version) [17:26:59.344] } [17:26:59.344] base::stop(msg) [17:26:59.344] } [17:26:59.344] }) [17:26:59.344] } [17:26:59.344] ...future.strategy.old <- future::plan("list") [17:26:59.344] options(future.plan = NULL) [17:26:59.344] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.344] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:59.344] } [17:26:59.344] ...future.workdir <- getwd() [17:26:59.344] } [17:26:59.344] ...future.oldOptions <- base::as.list(base::.Options) [17:26:59.344] ...future.oldEnvVars <- base::Sys.getenv() [17:26:59.344] } [17:26:59.344] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:26:59.344] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:59.344] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:26:59.344] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:26:59.344] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:59.344] future.stdout.windows.reencode = NULL, width = 80L) [17:26:59.344] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:59.344] base::names(...future.oldOptions)) [17:26:59.344] } [17:26:59.344] if (FALSE) { [17:26:59.344] } [17:26:59.344] else { [17:26:59.344] if (TRUE) { [17:26:59.344] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:59.344] open = "w") [17:26:59.344] } [17:26:59.344] else { [17:26:59.344] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:59.344] windows = "NUL", "/dev/null"), open = "w") [17:26:59.344] } [17:26:59.344] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:59.344] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:59.344] base::sink(type = "output", split = FALSE) [17:26:59.344] base::close(...future.stdout) [17:26:59.344] }, add = TRUE) [17:26:59.344] } [17:26:59.344] ...future.frame <- base::sys.nframe() [17:26:59.344] ...future.conditions <- base::list() [17:26:59.344] ...future.rng <- base::globalenv()$.Random.seed [17:26:59.344] if (FALSE) { [17:26:59.344] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:59.344] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:59.344] } [17:26:59.344] ...future.result <- base::tryCatch({ [17:26:59.344] base::withCallingHandlers({ [17:26:59.344] ...future.value <- base::withVisible(base::local({ [17:26:59.344] x[["a"]] <- 1 [17:26:59.344] x [17:26:59.344] })) [17:26:59.344] future::FutureResult(value = ...future.value$value, [17:26:59.344] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.344] ...future.rng), globalenv = if (FALSE) [17:26:59.344] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:59.344] ...future.globalenv.names)) [17:26:59.344] else NULL, started = ...future.startTime, version = "1.8") [17:26:59.344] }, condition = base::local({ [17:26:59.344] c <- base::c [17:26:59.344] inherits <- base::inherits [17:26:59.344] invokeRestart <- base::invokeRestart [17:26:59.344] length <- base::length [17:26:59.344] list <- base::list [17:26:59.344] seq.int <- base::seq.int [17:26:59.344] signalCondition <- base::signalCondition [17:26:59.344] sys.calls <- base::sys.calls [17:26:59.344] `[[` <- base::`[[` [17:26:59.344] `+` <- base::`+` [17:26:59.344] `<<-` <- base::`<<-` [17:26:59.344] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:59.344] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:59.344] 3L)] [17:26:59.344] } [17:26:59.344] function(cond) { [17:26:59.344] is_error <- inherits(cond, "error") [17:26:59.344] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:59.344] NULL) [17:26:59.344] if (is_error) { [17:26:59.344] sessionInformation <- function() { [17:26:59.344] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:59.344] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:59.344] search = base::search(), system = base::Sys.info()) [17:26:59.344] } [17:26:59.344] ...future.conditions[[length(...future.conditions) + [17:26:59.344] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:59.344] cond$call), session = sessionInformation(), [17:26:59.344] timestamp = base::Sys.time(), signaled = 0L) [17:26:59.344] signalCondition(cond) [17:26:59.344] } [17:26:59.344] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:59.344] "immediateCondition"))) { [17:26:59.344] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:59.344] ...future.conditions[[length(...future.conditions) + [17:26:59.344] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:59.344] if (TRUE && !signal) { [17:26:59.344] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.344] { [17:26:59.344] inherits <- base::inherits [17:26:59.344] invokeRestart <- base::invokeRestart [17:26:59.344] is.null <- base::is.null [17:26:59.344] muffled <- FALSE [17:26:59.344] if (inherits(cond, "message")) { [17:26:59.344] muffled <- grepl(pattern, "muffleMessage") [17:26:59.344] if (muffled) [17:26:59.344] invokeRestart("muffleMessage") [17:26:59.344] } [17:26:59.344] else if (inherits(cond, "warning")) { [17:26:59.344] muffled <- grepl(pattern, "muffleWarning") [17:26:59.344] if (muffled) [17:26:59.344] invokeRestart("muffleWarning") [17:26:59.344] } [17:26:59.344] else if (inherits(cond, "condition")) { [17:26:59.344] if (!is.null(pattern)) { [17:26:59.344] computeRestarts <- base::computeRestarts [17:26:59.344] grepl <- base::grepl [17:26:59.344] restarts <- computeRestarts(cond) [17:26:59.344] for (restart in restarts) { [17:26:59.344] name <- restart$name [17:26:59.344] if (is.null(name)) [17:26:59.344] next [17:26:59.344] if (!grepl(pattern, name)) [17:26:59.344] next [17:26:59.344] invokeRestart(restart) [17:26:59.344] muffled <- TRUE [17:26:59.344] break [17:26:59.344] } [17:26:59.344] } [17:26:59.344] } [17:26:59.344] invisible(muffled) [17:26:59.344] } [17:26:59.344] muffleCondition(cond, pattern = "^muffle") [17:26:59.344] } [17:26:59.344] } [17:26:59.344] else { [17:26:59.344] if (TRUE) { [17:26:59.344] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.344] { [17:26:59.344] inherits <- base::inherits [17:26:59.344] invokeRestart <- base::invokeRestart [17:26:59.344] is.null <- base::is.null [17:26:59.344] muffled <- FALSE [17:26:59.344] if (inherits(cond, "message")) { [17:26:59.344] muffled <- grepl(pattern, "muffleMessage") [17:26:59.344] if (muffled) [17:26:59.344] invokeRestart("muffleMessage") [17:26:59.344] } [17:26:59.344] else if (inherits(cond, "warning")) { [17:26:59.344] muffled <- grepl(pattern, "muffleWarning") [17:26:59.344] if (muffled) [17:26:59.344] invokeRestart("muffleWarning") [17:26:59.344] } [17:26:59.344] else if (inherits(cond, "condition")) { [17:26:59.344] if (!is.null(pattern)) { [17:26:59.344] computeRestarts <- base::computeRestarts [17:26:59.344] grepl <- base::grepl [17:26:59.344] restarts <- computeRestarts(cond) [17:26:59.344] for (restart in restarts) { [17:26:59.344] name <- restart$name [17:26:59.344] if (is.null(name)) [17:26:59.344] next [17:26:59.344] if (!grepl(pattern, name)) [17:26:59.344] next [17:26:59.344] invokeRestart(restart) [17:26:59.344] muffled <- TRUE [17:26:59.344] break [17:26:59.344] } [17:26:59.344] } [17:26:59.344] } [17:26:59.344] invisible(muffled) [17:26:59.344] } [17:26:59.344] muffleCondition(cond, pattern = "^muffle") [17:26:59.344] } [17:26:59.344] } [17:26:59.344] } [17:26:59.344] })) [17:26:59.344] }, error = function(ex) { [17:26:59.344] base::structure(base::list(value = NULL, visible = NULL, [17:26:59.344] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.344] ...future.rng), started = ...future.startTime, [17:26:59.344] finished = Sys.time(), session_uuid = NA_character_, [17:26:59.344] version = "1.8"), class = "FutureResult") [17:26:59.344] }, finally = { [17:26:59.344] if (!identical(...future.workdir, getwd())) [17:26:59.344] setwd(...future.workdir) [17:26:59.344] { [17:26:59.344] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:59.344] ...future.oldOptions$nwarnings <- NULL [17:26:59.344] } [17:26:59.344] base::options(...future.oldOptions) [17:26:59.344] if (.Platform$OS.type == "windows") { [17:26:59.344] old_names <- names(...future.oldEnvVars) [17:26:59.344] envs <- base::Sys.getenv() [17:26:59.344] names <- names(envs) [17:26:59.344] common <- intersect(names, old_names) [17:26:59.344] added <- setdiff(names, old_names) [17:26:59.344] removed <- setdiff(old_names, names) [17:26:59.344] changed <- common[...future.oldEnvVars[common] != [17:26:59.344] envs[common]] [17:26:59.344] NAMES <- toupper(changed) [17:26:59.344] args <- list() [17:26:59.344] for (kk in seq_along(NAMES)) { [17:26:59.344] name <- changed[[kk]] [17:26:59.344] NAME <- NAMES[[kk]] [17:26:59.344] if (name != NAME && is.element(NAME, old_names)) [17:26:59.344] next [17:26:59.344] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.344] } [17:26:59.344] NAMES <- toupper(added) [17:26:59.344] for (kk in seq_along(NAMES)) { [17:26:59.344] name <- added[[kk]] [17:26:59.344] NAME <- NAMES[[kk]] [17:26:59.344] if (name != NAME && is.element(NAME, old_names)) [17:26:59.344] next [17:26:59.344] args[[name]] <- "" [17:26:59.344] } [17:26:59.344] NAMES <- toupper(removed) [17:26:59.344] for (kk in seq_along(NAMES)) { [17:26:59.344] name <- removed[[kk]] [17:26:59.344] NAME <- NAMES[[kk]] [17:26:59.344] if (name != NAME && is.element(NAME, old_names)) [17:26:59.344] next [17:26:59.344] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.344] } [17:26:59.344] if (length(args) > 0) [17:26:59.344] base::do.call(base::Sys.setenv, args = args) [17:26:59.344] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:59.344] } [17:26:59.344] else { [17:26:59.344] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:59.344] } [17:26:59.344] { [17:26:59.344] if (base::length(...future.futureOptionsAdded) > [17:26:59.344] 0L) { [17:26:59.344] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:59.344] base::names(opts) <- ...future.futureOptionsAdded [17:26:59.344] base::options(opts) [17:26:59.344] } [17:26:59.344] { [17:26:59.344] { [17:26:59.344] NULL [17:26:59.344] RNGkind("Mersenne-Twister") [17:26:59.344] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:59.344] inherits = FALSE) [17:26:59.344] } [17:26:59.344] options(future.plan = NULL) [17:26:59.344] if (is.na(NA_character_)) [17:26:59.344] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.344] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:59.344] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:59.344] .init = FALSE) [17:26:59.344] } [17:26:59.344] } [17:26:59.344] } [17:26:59.344] }) [17:26:59.344] if (TRUE) { [17:26:59.344] base::sink(type = "output", split = FALSE) [17:26:59.344] if (TRUE) { [17:26:59.344] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:59.344] } [17:26:59.344] else { [17:26:59.344] ...future.result["stdout"] <- base::list(NULL) [17:26:59.344] } [17:26:59.344] base::close(...future.stdout) [17:26:59.344] ...future.stdout <- NULL [17:26:59.344] } [17:26:59.344] ...future.result$conditions <- ...future.conditions [17:26:59.344] ...future.result$finished <- base::Sys.time() [17:26:59.344] ...future.result [17:26:59.344] } [17:26:59.348] assign_globals() ... [17:26:59.348] List of 1 [17:26:59.348] $ x: list() [17:26:59.348] - attr(*, "where")=List of 1 [17:26:59.348] ..$ x: [17:26:59.348] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:59.348] - attr(*, "resolved")= logi TRUE [17:26:59.348] - attr(*, "total_size")= num 0 [17:26:59.348] - attr(*, "already-done")= logi TRUE [17:26:59.350] - copied 'x' to environment [17:26:59.351] assign_globals() ... done [17:26:59.351] plan(): Setting new future strategy stack: [17:26:59.351] List of future strategies: [17:26:59.351] 1. sequential: [17:26:59.351] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.351] - tweaked: FALSE [17:26:59.351] - call: NULL [17:26:59.352] plan(): nbrOfWorkers() = 1 [17:26:59.353] plan(): Setting new future strategy stack: [17:26:59.353] List of future strategies: [17:26:59.353] 1. sequential: [17:26:59.353] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.353] - tweaked: FALSE [17:26:59.353] - call: plan(strategy) [17:26:59.354] plan(): nbrOfWorkers() = 1 [17:26:59.354] SequentialFuture started (and completed) [17:26:59.354] - Launch lazy future ... done [17:26:59.354] run() for 'SequentialFuture' ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.355] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.355] Searching for globals... [17:26:59.357] - globals found: [5] '{', 'x', '<-', '[[', '[[<-' [17:26:59.358] Searching for globals ... DONE [17:26:59.358] Resolving globals: TRUE [17:26:59.358] Resolving any globals that are futures ... [17:26:59.358] - globals: [5] '{', 'x', '<-', '[[', '[[<-' [17:26:59.358] Resolving any globals that are futures ... DONE [17:26:59.359] Resolving futures part of globals (recursively) ... [17:26:59.359] resolve() on list ... [17:26:59.359] recursive: 99 [17:26:59.359] length: 1 [17:26:59.360] elements: 'x' [17:26:59.360] length: 0 (resolved future 1) [17:26:59.360] resolve() on list ... DONE [17:26:59.360] - globals: [1] 'x' [17:26:59.360] Resolving futures part of globals (recursively) ... DONE [17:26:59.360] The total size of the 1 globals is 0 bytes (0 bytes) [17:26:59.361] The total size of the 1 globals exported for future expression ('{; x[["a"]] <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:26:59.361] - globals: [1] 'x' [17:26:59.361] [17:26:59.361] getGlobalsAndPackages() ... DONE [17:26:59.362] run() for 'Future' ... [17:26:59.362] - state: 'created' [17:26:59.362] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:59.362] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:59.363] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:59.363] - Field: 'label' [17:26:59.363] - Field: 'local' [17:26:59.363] - Field: 'owner' [17:26:59.363] - Field: 'envir' [17:26:59.364] - Field: 'packages' [17:26:59.364] - Field: 'gc' [17:26:59.364] - Field: 'conditions' [17:26:59.364] - Field: 'expr' [17:26:59.364] - Field: 'uuid' [17:26:59.364] - Field: 'seed' [17:26:59.365] - Field: 'version' [17:26:59.365] - Field: 'result' [17:26:59.365] - Field: 'asynchronous' [17:26:59.365] - Field: 'calls' [17:26:59.365] - Field: 'globals' [17:26:59.365] - Field: 'stdout' [17:26:59.366] - Field: 'earlySignal' [17:26:59.366] - Field: 'lazy' [17:26:59.366] - Field: 'state' [17:26:59.366] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:59.366] - Launch lazy future ... [17:26:59.367] Packages needed by the future expression (n = 0): [17:26:59.367] Packages needed by future strategies (n = 0): [17:26:59.368] { [17:26:59.368] { [17:26:59.368] { [17:26:59.368] ...future.startTime <- base::Sys.time() [17:26:59.368] { [17:26:59.368] { [17:26:59.368] { [17:26:59.368] base::local({ [17:26:59.368] has_future <- base::requireNamespace("future", [17:26:59.368] quietly = TRUE) [17:26:59.368] if (has_future) { [17:26:59.368] ns <- base::getNamespace("future") [17:26:59.368] version <- ns[[".package"]][["version"]] [17:26:59.368] if (is.null(version)) [17:26:59.368] version <- utils::packageVersion("future") [17:26:59.368] } [17:26:59.368] else { [17:26:59.368] version <- NULL [17:26:59.368] } [17:26:59.368] if (!has_future || version < "1.8.0") { [17:26:59.368] info <- base::c(r_version = base::gsub("R version ", [17:26:59.368] "", base::R.version$version.string), [17:26:59.368] platform = base::sprintf("%s (%s-bit)", [17:26:59.368] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:59.368] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:59.368] "release", "version")], collapse = " "), [17:26:59.368] hostname = base::Sys.info()[["nodename"]]) [17:26:59.368] info <- base::sprintf("%s: %s", base::names(info), [17:26:59.368] info) [17:26:59.368] info <- base::paste(info, collapse = "; ") [17:26:59.368] if (!has_future) { [17:26:59.368] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:59.368] info) [17:26:59.368] } [17:26:59.368] else { [17:26:59.368] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:59.368] info, version) [17:26:59.368] } [17:26:59.368] base::stop(msg) [17:26:59.368] } [17:26:59.368] }) [17:26:59.368] } [17:26:59.368] ...future.strategy.old <- future::plan("list") [17:26:59.368] options(future.plan = NULL) [17:26:59.368] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.368] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:59.368] } [17:26:59.368] ...future.workdir <- getwd() [17:26:59.368] } [17:26:59.368] ...future.oldOptions <- base::as.list(base::.Options) [17:26:59.368] ...future.oldEnvVars <- base::Sys.getenv() [17:26:59.368] } [17:26:59.368] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:26:59.368] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:59.368] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:26:59.368] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:26:59.368] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:59.368] future.stdout.windows.reencode = NULL, width = 80L) [17:26:59.368] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:59.368] base::names(...future.oldOptions)) [17:26:59.368] } [17:26:59.368] if (FALSE) { [17:26:59.368] } [17:26:59.368] else { [17:26:59.368] if (TRUE) { [17:26:59.368] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:59.368] open = "w") [17:26:59.368] } [17:26:59.368] else { [17:26:59.368] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:59.368] windows = "NUL", "/dev/null"), open = "w") [17:26:59.368] } [17:26:59.368] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:59.368] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:59.368] base::sink(type = "output", split = FALSE) [17:26:59.368] base::close(...future.stdout) [17:26:59.368] }, add = TRUE) [17:26:59.368] } [17:26:59.368] ...future.frame <- base::sys.nframe() [17:26:59.368] ...future.conditions <- base::list() [17:26:59.368] ...future.rng <- base::globalenv()$.Random.seed [17:26:59.368] if (FALSE) { [17:26:59.368] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:59.368] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:59.368] } [17:26:59.368] ...future.result <- base::tryCatch({ [17:26:59.368] base::withCallingHandlers({ [17:26:59.368] ...future.value <- base::withVisible(base::local({ [17:26:59.368] x[["a"]] <- 1 [17:26:59.368] x [17:26:59.368] })) [17:26:59.368] future::FutureResult(value = ...future.value$value, [17:26:59.368] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.368] ...future.rng), globalenv = if (FALSE) [17:26:59.368] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:59.368] ...future.globalenv.names)) [17:26:59.368] else NULL, started = ...future.startTime, version = "1.8") [17:26:59.368] }, condition = base::local({ [17:26:59.368] c <- base::c [17:26:59.368] inherits <- base::inherits [17:26:59.368] invokeRestart <- base::invokeRestart [17:26:59.368] length <- base::length [17:26:59.368] list <- base::list [17:26:59.368] seq.int <- base::seq.int [17:26:59.368] signalCondition <- base::signalCondition [17:26:59.368] sys.calls <- base::sys.calls [17:26:59.368] `[[` <- base::`[[` [17:26:59.368] `+` <- base::`+` [17:26:59.368] `<<-` <- base::`<<-` [17:26:59.368] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:59.368] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:59.368] 3L)] [17:26:59.368] } [17:26:59.368] function(cond) { [17:26:59.368] is_error <- inherits(cond, "error") [17:26:59.368] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:59.368] NULL) [17:26:59.368] if (is_error) { [17:26:59.368] sessionInformation <- function() { [17:26:59.368] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:59.368] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:59.368] search = base::search(), system = base::Sys.info()) [17:26:59.368] } [17:26:59.368] ...future.conditions[[length(...future.conditions) + [17:26:59.368] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:59.368] cond$call), session = sessionInformation(), [17:26:59.368] timestamp = base::Sys.time(), signaled = 0L) [17:26:59.368] signalCondition(cond) [17:26:59.368] } [17:26:59.368] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:59.368] "immediateCondition"))) { [17:26:59.368] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:59.368] ...future.conditions[[length(...future.conditions) + [17:26:59.368] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:59.368] if (TRUE && !signal) { [17:26:59.368] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.368] { [17:26:59.368] inherits <- base::inherits [17:26:59.368] invokeRestart <- base::invokeRestart [17:26:59.368] is.null <- base::is.null [17:26:59.368] muffled <- FALSE [17:26:59.368] if (inherits(cond, "message")) { [17:26:59.368] muffled <- grepl(pattern, "muffleMessage") [17:26:59.368] if (muffled) [17:26:59.368] invokeRestart("muffleMessage") [17:26:59.368] } [17:26:59.368] else if (inherits(cond, "warning")) { [17:26:59.368] muffled <- grepl(pattern, "muffleWarning") [17:26:59.368] if (muffled) [17:26:59.368] invokeRestart("muffleWarning") [17:26:59.368] } [17:26:59.368] else if (inherits(cond, "condition")) { [17:26:59.368] if (!is.null(pattern)) { [17:26:59.368] computeRestarts <- base::computeRestarts [17:26:59.368] grepl <- base::grepl [17:26:59.368] restarts <- computeRestarts(cond) [17:26:59.368] for (restart in restarts) { [17:26:59.368] name <- restart$name [17:26:59.368] if (is.null(name)) [17:26:59.368] next [17:26:59.368] if (!grepl(pattern, name)) [17:26:59.368] next [17:26:59.368] invokeRestart(restart) [17:26:59.368] muffled <- TRUE [17:26:59.368] break [17:26:59.368] } [17:26:59.368] } [17:26:59.368] } [17:26:59.368] invisible(muffled) [17:26:59.368] } [17:26:59.368] muffleCondition(cond, pattern = "^muffle") [17:26:59.368] } [17:26:59.368] } [17:26:59.368] else { [17:26:59.368] if (TRUE) { [17:26:59.368] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.368] { [17:26:59.368] inherits <- base::inherits [17:26:59.368] invokeRestart <- base::invokeRestart [17:26:59.368] is.null <- base::is.null [17:26:59.368] muffled <- FALSE [17:26:59.368] if (inherits(cond, "message")) { [17:26:59.368] muffled <- grepl(pattern, "muffleMessage") [17:26:59.368] if (muffled) [17:26:59.368] invokeRestart("muffleMessage") [17:26:59.368] } [17:26:59.368] else if (inherits(cond, "warning")) { [17:26:59.368] muffled <- grepl(pattern, "muffleWarning") [17:26:59.368] if (muffled) [17:26:59.368] invokeRestart("muffleWarning") [17:26:59.368] } [17:26:59.368] else if (inherits(cond, "condition")) { [17:26:59.368] if (!is.null(pattern)) { [17:26:59.368] computeRestarts <- base::computeRestarts [17:26:59.368] grepl <- base::grepl [17:26:59.368] restarts <- computeRestarts(cond) [17:26:59.368] for (restart in restarts) { [17:26:59.368] name <- restart$name [17:26:59.368] if (is.null(name)) [17:26:59.368] next [17:26:59.368] if (!grepl(pattern, name)) [17:26:59.368] next [17:26:59.368] invokeRestart(restart) [17:26:59.368] muffled <- TRUE [17:26:59.368] break [17:26:59.368] } [17:26:59.368] } [17:26:59.368] } [17:26:59.368] invisible(muffled) [17:26:59.368] } [17:26:59.368] muffleCondition(cond, pattern = "^muffle") [17:26:59.368] } [17:26:59.368] } [17:26:59.368] } [17:26:59.368] })) [17:26:59.368] }, error = function(ex) { [17:26:59.368] base::structure(base::list(value = NULL, visible = NULL, [17:26:59.368] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.368] ...future.rng), started = ...future.startTime, [17:26:59.368] finished = Sys.time(), session_uuid = NA_character_, [17:26:59.368] version = "1.8"), class = "FutureResult") [17:26:59.368] }, finally = { [17:26:59.368] if (!identical(...future.workdir, getwd())) [17:26:59.368] setwd(...future.workdir) [17:26:59.368] { [17:26:59.368] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:59.368] ...future.oldOptions$nwarnings <- NULL [17:26:59.368] } [17:26:59.368] base::options(...future.oldOptions) [17:26:59.368] if (.Platform$OS.type == "windows") { [17:26:59.368] old_names <- names(...future.oldEnvVars) [17:26:59.368] envs <- base::Sys.getenv() [17:26:59.368] names <- names(envs) [17:26:59.368] common <- intersect(names, old_names) [17:26:59.368] added <- setdiff(names, old_names) [17:26:59.368] removed <- setdiff(old_names, names) [17:26:59.368] changed <- common[...future.oldEnvVars[common] != [17:26:59.368] envs[common]] [17:26:59.368] NAMES <- toupper(changed) [17:26:59.368] args <- list() [17:26:59.368] for (kk in seq_along(NAMES)) { [17:26:59.368] name <- changed[[kk]] [17:26:59.368] NAME <- NAMES[[kk]] [17:26:59.368] if (name != NAME && is.element(NAME, old_names)) [17:26:59.368] next [17:26:59.368] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.368] } [17:26:59.368] NAMES <- toupper(added) [17:26:59.368] for (kk in seq_along(NAMES)) { [17:26:59.368] name <- added[[kk]] [17:26:59.368] NAME <- NAMES[[kk]] [17:26:59.368] if (name != NAME && is.element(NAME, old_names)) [17:26:59.368] next [17:26:59.368] args[[name]] <- "" [17:26:59.368] } [17:26:59.368] NAMES <- toupper(removed) [17:26:59.368] for (kk in seq_along(NAMES)) { [17:26:59.368] name <- removed[[kk]] [17:26:59.368] NAME <- NAMES[[kk]] [17:26:59.368] if (name != NAME && is.element(NAME, old_names)) [17:26:59.368] next [17:26:59.368] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.368] } [17:26:59.368] if (length(args) > 0) [17:26:59.368] base::do.call(base::Sys.setenv, args = args) [17:26:59.368] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:59.368] } [17:26:59.368] else { [17:26:59.368] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:59.368] } [17:26:59.368] { [17:26:59.368] if (base::length(...future.futureOptionsAdded) > [17:26:59.368] 0L) { [17:26:59.368] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:59.368] base::names(opts) <- ...future.futureOptionsAdded [17:26:59.368] base::options(opts) [17:26:59.368] } [17:26:59.368] { [17:26:59.368] { [17:26:59.368] NULL [17:26:59.368] RNGkind("Mersenne-Twister") [17:26:59.368] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:59.368] inherits = FALSE) [17:26:59.368] } [17:26:59.368] options(future.plan = NULL) [17:26:59.368] if (is.na(NA_character_)) [17:26:59.368] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.368] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:59.368] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:59.368] .init = FALSE) [17:26:59.368] } [17:26:59.368] } [17:26:59.368] } [17:26:59.368] }) [17:26:59.368] if (TRUE) { [17:26:59.368] base::sink(type = "output", split = FALSE) [17:26:59.368] if (TRUE) { [17:26:59.368] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:59.368] } [17:26:59.368] else { [17:26:59.368] ...future.result["stdout"] <- base::list(NULL) [17:26:59.368] } [17:26:59.368] base::close(...future.stdout) [17:26:59.368] ...future.stdout <- NULL [17:26:59.368] } [17:26:59.368] ...future.result$conditions <- ...future.conditions [17:26:59.368] ...future.result$finished <- base::Sys.time() [17:26:59.368] ...future.result [17:26:59.368] } [17:26:59.372] assign_globals() ... [17:26:59.372] List of 1 [17:26:59.372] $ x: list() [17:26:59.372] - attr(*, "where")=List of 1 [17:26:59.372] ..$ x: [17:26:59.372] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:59.372] - attr(*, "resolved")= logi TRUE [17:26:59.372] - attr(*, "total_size")= num 0 [17:26:59.372] - attr(*, "already-done")= logi TRUE [17:26:59.375] - copied 'x' to environment [17:26:59.375] assign_globals() ... done [17:26:59.375] plan(): Setting new future strategy stack: [17:26:59.375] List of future strategies: [17:26:59.375] 1. sequential: [17:26:59.375] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.375] - tweaked: FALSE [17:26:59.375] - call: NULL [17:26:59.376] plan(): nbrOfWorkers() = 1 [17:26:59.377] plan(): Setting new future strategy stack: [17:26:59.377] List of future strategies: [17:26:59.377] 1. sequential: [17:26:59.377] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.377] - tweaked: FALSE [17:26:59.377] - call: plan(strategy) [17:26:59.378] plan(): nbrOfWorkers() = 1 [17:26:59.378] SequentialFuture started (and completed) [17:26:59.378] - Launch lazy future ... done [17:26:59.378] run() for 'SequentialFuture' ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.379] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.379] Searching for globals... [17:26:59.382] - globals found: [6] '{', 'x', '<-', '[', '[<-', 'list' [17:26:59.382] Searching for globals ... DONE [17:26:59.382] Resolving globals: TRUE [17:26:59.382] Resolving any globals that are futures ... [17:26:59.382] - globals: [6] '{', 'x', '<-', '[', '[<-', 'list' [17:26:59.383] Resolving any globals that are futures ... DONE [17:26:59.383] Resolving futures part of globals (recursively) ... [17:26:59.383] resolve() on list ... [17:26:59.384] recursive: 99 [17:26:59.384] length: 1 [17:26:59.384] elements: 'x' [17:26:59.384] length: 0 (resolved future 1) [17:26:59.384] resolve() on list ... DONE [17:26:59.384] - globals: [1] 'x' [17:26:59.385] Resolving futures part of globals (recursively) ... DONE [17:26:59.385] The total size of the 1 globals is 0 bytes (0 bytes) [17:26:59.385] The total size of the 1 globals exported for future expression ('{; x["a"] <- list(1); x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:26:59.385] - globals: [1] 'x' [17:26:59.386] [17:26:59.386] getGlobalsAndPackages() ... DONE [17:26:59.386] run() for 'Future' ... [17:26:59.386] - state: 'created' [17:26:59.386] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:59.387] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:59.387] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:59.387] - Field: 'label' [17:26:59.387] - Field: 'local' [17:26:59.387] - Field: 'owner' [17:26:59.388] - Field: 'envir' [17:26:59.388] - Field: 'packages' [17:26:59.388] - Field: 'gc' [17:26:59.388] - Field: 'conditions' [17:26:59.388] - Field: 'expr' [17:26:59.388] - Field: 'uuid' [17:26:59.389] - Field: 'seed' [17:26:59.389] - Field: 'version' [17:26:59.389] - Field: 'result' [17:26:59.389] - Field: 'asynchronous' [17:26:59.389] - Field: 'calls' [17:26:59.389] - Field: 'globals' [17:26:59.390] - Field: 'stdout' [17:26:59.390] - Field: 'earlySignal' [17:26:59.390] - Field: 'lazy' [17:26:59.390] - Field: 'state' [17:26:59.390] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:59.390] - Launch lazy future ... [17:26:59.391] Packages needed by the future expression (n = 0): [17:26:59.391] Packages needed by future strategies (n = 0): [17:26:59.391] { [17:26:59.391] { [17:26:59.391] { [17:26:59.391] ...future.startTime <- base::Sys.time() [17:26:59.391] { [17:26:59.391] { [17:26:59.391] { [17:26:59.391] base::local({ [17:26:59.391] has_future <- base::requireNamespace("future", [17:26:59.391] quietly = TRUE) [17:26:59.391] if (has_future) { [17:26:59.391] ns <- base::getNamespace("future") [17:26:59.391] version <- ns[[".package"]][["version"]] [17:26:59.391] if (is.null(version)) [17:26:59.391] version <- utils::packageVersion("future") [17:26:59.391] } [17:26:59.391] else { [17:26:59.391] version <- NULL [17:26:59.391] } [17:26:59.391] if (!has_future || version < "1.8.0") { [17:26:59.391] info <- base::c(r_version = base::gsub("R version ", [17:26:59.391] "", base::R.version$version.string), [17:26:59.391] platform = base::sprintf("%s (%s-bit)", [17:26:59.391] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:59.391] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:59.391] "release", "version")], collapse = " "), [17:26:59.391] hostname = base::Sys.info()[["nodename"]]) [17:26:59.391] info <- base::sprintf("%s: %s", base::names(info), [17:26:59.391] info) [17:26:59.391] info <- base::paste(info, collapse = "; ") [17:26:59.391] if (!has_future) { [17:26:59.391] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:59.391] info) [17:26:59.391] } [17:26:59.391] else { [17:26:59.391] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:59.391] info, version) [17:26:59.391] } [17:26:59.391] base::stop(msg) [17:26:59.391] } [17:26:59.391] }) [17:26:59.391] } [17:26:59.391] ...future.strategy.old <- future::plan("list") [17:26:59.391] options(future.plan = NULL) [17:26:59.391] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.391] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:59.391] } [17:26:59.391] ...future.workdir <- getwd() [17:26:59.391] } [17:26:59.391] ...future.oldOptions <- base::as.list(base::.Options) [17:26:59.391] ...future.oldEnvVars <- base::Sys.getenv() [17:26:59.391] } [17:26:59.391] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:26:59.391] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:59.391] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:26:59.391] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:26:59.391] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:59.391] future.stdout.windows.reencode = NULL, width = 80L) [17:26:59.391] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:59.391] base::names(...future.oldOptions)) [17:26:59.391] } [17:26:59.391] if (FALSE) { [17:26:59.391] } [17:26:59.391] else { [17:26:59.391] if (TRUE) { [17:26:59.391] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:59.391] open = "w") [17:26:59.391] } [17:26:59.391] else { [17:26:59.391] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:59.391] windows = "NUL", "/dev/null"), open = "w") [17:26:59.391] } [17:26:59.391] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:59.391] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:59.391] base::sink(type = "output", split = FALSE) [17:26:59.391] base::close(...future.stdout) [17:26:59.391] }, add = TRUE) [17:26:59.391] } [17:26:59.391] ...future.frame <- base::sys.nframe() [17:26:59.391] ...future.conditions <- base::list() [17:26:59.391] ...future.rng <- base::globalenv()$.Random.seed [17:26:59.391] if (FALSE) { [17:26:59.391] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:59.391] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:59.391] } [17:26:59.391] ...future.result <- base::tryCatch({ [17:26:59.391] base::withCallingHandlers({ [17:26:59.391] ...future.value <- base::withVisible(base::local({ [17:26:59.391] x["a"] <- list(1) [17:26:59.391] x [17:26:59.391] })) [17:26:59.391] future::FutureResult(value = ...future.value$value, [17:26:59.391] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.391] ...future.rng), globalenv = if (FALSE) [17:26:59.391] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:59.391] ...future.globalenv.names)) [17:26:59.391] else NULL, started = ...future.startTime, version = "1.8") [17:26:59.391] }, condition = base::local({ [17:26:59.391] c <- base::c [17:26:59.391] inherits <- base::inherits [17:26:59.391] invokeRestart <- base::invokeRestart [17:26:59.391] length <- base::length [17:26:59.391] list <- base::list [17:26:59.391] seq.int <- base::seq.int [17:26:59.391] signalCondition <- base::signalCondition [17:26:59.391] sys.calls <- base::sys.calls [17:26:59.391] `[[` <- base::`[[` [17:26:59.391] `+` <- base::`+` [17:26:59.391] `<<-` <- base::`<<-` [17:26:59.391] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:59.391] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:59.391] 3L)] [17:26:59.391] } [17:26:59.391] function(cond) { [17:26:59.391] is_error <- inherits(cond, "error") [17:26:59.391] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:59.391] NULL) [17:26:59.391] if (is_error) { [17:26:59.391] sessionInformation <- function() { [17:26:59.391] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:59.391] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:59.391] search = base::search(), system = base::Sys.info()) [17:26:59.391] } [17:26:59.391] ...future.conditions[[length(...future.conditions) + [17:26:59.391] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:59.391] cond$call), session = sessionInformation(), [17:26:59.391] timestamp = base::Sys.time(), signaled = 0L) [17:26:59.391] signalCondition(cond) [17:26:59.391] } [17:26:59.391] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:59.391] "immediateCondition"))) { [17:26:59.391] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:59.391] ...future.conditions[[length(...future.conditions) + [17:26:59.391] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:59.391] if (TRUE && !signal) { [17:26:59.391] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.391] { [17:26:59.391] inherits <- base::inherits [17:26:59.391] invokeRestart <- base::invokeRestart [17:26:59.391] is.null <- base::is.null [17:26:59.391] muffled <- FALSE [17:26:59.391] if (inherits(cond, "message")) { [17:26:59.391] muffled <- grepl(pattern, "muffleMessage") [17:26:59.391] if (muffled) [17:26:59.391] invokeRestart("muffleMessage") [17:26:59.391] } [17:26:59.391] else if (inherits(cond, "warning")) { [17:26:59.391] muffled <- grepl(pattern, "muffleWarning") [17:26:59.391] if (muffled) [17:26:59.391] invokeRestart("muffleWarning") [17:26:59.391] } [17:26:59.391] else if (inherits(cond, "condition")) { [17:26:59.391] if (!is.null(pattern)) { [17:26:59.391] computeRestarts <- base::computeRestarts [17:26:59.391] grepl <- base::grepl [17:26:59.391] restarts <- computeRestarts(cond) [17:26:59.391] for (restart in restarts) { [17:26:59.391] name <- restart$name [17:26:59.391] if (is.null(name)) [17:26:59.391] next [17:26:59.391] if (!grepl(pattern, name)) [17:26:59.391] next [17:26:59.391] invokeRestart(restart) [17:26:59.391] muffled <- TRUE [17:26:59.391] break [17:26:59.391] } [17:26:59.391] } [17:26:59.391] } [17:26:59.391] invisible(muffled) [17:26:59.391] } [17:26:59.391] muffleCondition(cond, pattern = "^muffle") [17:26:59.391] } [17:26:59.391] } [17:26:59.391] else { [17:26:59.391] if (TRUE) { [17:26:59.391] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.391] { [17:26:59.391] inherits <- base::inherits [17:26:59.391] invokeRestart <- base::invokeRestart [17:26:59.391] is.null <- base::is.null [17:26:59.391] muffled <- FALSE [17:26:59.391] if (inherits(cond, "message")) { [17:26:59.391] muffled <- grepl(pattern, "muffleMessage") [17:26:59.391] if (muffled) [17:26:59.391] invokeRestart("muffleMessage") [17:26:59.391] } [17:26:59.391] else if (inherits(cond, "warning")) { [17:26:59.391] muffled <- grepl(pattern, "muffleWarning") [17:26:59.391] if (muffled) [17:26:59.391] invokeRestart("muffleWarning") [17:26:59.391] } [17:26:59.391] else if (inherits(cond, "condition")) { [17:26:59.391] if (!is.null(pattern)) { [17:26:59.391] computeRestarts <- base::computeRestarts [17:26:59.391] grepl <- base::grepl [17:26:59.391] restarts <- computeRestarts(cond) [17:26:59.391] for (restart in restarts) { [17:26:59.391] name <- restart$name [17:26:59.391] if (is.null(name)) [17:26:59.391] next [17:26:59.391] if (!grepl(pattern, name)) [17:26:59.391] next [17:26:59.391] invokeRestart(restart) [17:26:59.391] muffled <- TRUE [17:26:59.391] break [17:26:59.391] } [17:26:59.391] } [17:26:59.391] } [17:26:59.391] invisible(muffled) [17:26:59.391] } [17:26:59.391] muffleCondition(cond, pattern = "^muffle") [17:26:59.391] } [17:26:59.391] } [17:26:59.391] } [17:26:59.391] })) [17:26:59.391] }, error = function(ex) { [17:26:59.391] base::structure(base::list(value = NULL, visible = NULL, [17:26:59.391] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.391] ...future.rng), started = ...future.startTime, [17:26:59.391] finished = Sys.time(), session_uuid = NA_character_, [17:26:59.391] version = "1.8"), class = "FutureResult") [17:26:59.391] }, finally = { [17:26:59.391] if (!identical(...future.workdir, getwd())) [17:26:59.391] setwd(...future.workdir) [17:26:59.391] { [17:26:59.391] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:59.391] ...future.oldOptions$nwarnings <- NULL [17:26:59.391] } [17:26:59.391] base::options(...future.oldOptions) [17:26:59.391] if (.Platform$OS.type == "windows") { [17:26:59.391] old_names <- names(...future.oldEnvVars) [17:26:59.391] envs <- base::Sys.getenv() [17:26:59.391] names <- names(envs) [17:26:59.391] common <- intersect(names, old_names) [17:26:59.391] added <- setdiff(names, old_names) [17:26:59.391] removed <- setdiff(old_names, names) [17:26:59.391] changed <- common[...future.oldEnvVars[common] != [17:26:59.391] envs[common]] [17:26:59.391] NAMES <- toupper(changed) [17:26:59.391] args <- list() [17:26:59.391] for (kk in seq_along(NAMES)) { [17:26:59.391] name <- changed[[kk]] [17:26:59.391] NAME <- NAMES[[kk]] [17:26:59.391] if (name != NAME && is.element(NAME, old_names)) [17:26:59.391] next [17:26:59.391] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.391] } [17:26:59.391] NAMES <- toupper(added) [17:26:59.391] for (kk in seq_along(NAMES)) { [17:26:59.391] name <- added[[kk]] [17:26:59.391] NAME <- NAMES[[kk]] [17:26:59.391] if (name != NAME && is.element(NAME, old_names)) [17:26:59.391] next [17:26:59.391] args[[name]] <- "" [17:26:59.391] } [17:26:59.391] NAMES <- toupper(removed) [17:26:59.391] for (kk in seq_along(NAMES)) { [17:26:59.391] name <- removed[[kk]] [17:26:59.391] NAME <- NAMES[[kk]] [17:26:59.391] if (name != NAME && is.element(NAME, old_names)) [17:26:59.391] next [17:26:59.391] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.391] } [17:26:59.391] if (length(args) > 0) [17:26:59.391] base::do.call(base::Sys.setenv, args = args) [17:26:59.391] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:59.391] } [17:26:59.391] else { [17:26:59.391] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:59.391] } [17:26:59.391] { [17:26:59.391] if (base::length(...future.futureOptionsAdded) > [17:26:59.391] 0L) { [17:26:59.391] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:59.391] base::names(opts) <- ...future.futureOptionsAdded [17:26:59.391] base::options(opts) [17:26:59.391] } [17:26:59.391] { [17:26:59.391] { [17:26:59.391] NULL [17:26:59.391] RNGkind("Mersenne-Twister") [17:26:59.391] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:59.391] inherits = FALSE) [17:26:59.391] } [17:26:59.391] options(future.plan = NULL) [17:26:59.391] if (is.na(NA_character_)) [17:26:59.391] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.391] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:59.391] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:59.391] .init = FALSE) [17:26:59.391] } [17:26:59.391] } [17:26:59.391] } [17:26:59.391] }) [17:26:59.391] if (TRUE) { [17:26:59.391] base::sink(type = "output", split = FALSE) [17:26:59.391] if (TRUE) { [17:26:59.391] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:59.391] } [17:26:59.391] else { [17:26:59.391] ...future.result["stdout"] <- base::list(NULL) [17:26:59.391] } [17:26:59.391] base::close(...future.stdout) [17:26:59.391] ...future.stdout <- NULL [17:26:59.391] } [17:26:59.391] ...future.result$conditions <- ...future.conditions [17:26:59.391] ...future.result$finished <- base::Sys.time() [17:26:59.391] ...future.result [17:26:59.391] } [17:26:59.395] assign_globals() ... [17:26:59.395] List of 1 [17:26:59.395] $ x: list() [17:26:59.395] - attr(*, "where")=List of 1 [17:26:59.395] ..$ x: [17:26:59.395] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:59.395] - attr(*, "resolved")= logi TRUE [17:26:59.395] - attr(*, "total_size")= num 0 [17:26:59.395] - attr(*, "already-done")= logi TRUE [17:26:59.398] - copied 'x' to environment [17:26:59.398] assign_globals() ... done [17:26:59.399] plan(): Setting new future strategy stack: [17:26:59.399] List of future strategies: [17:26:59.399] 1. sequential: [17:26:59.399] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.399] - tweaked: FALSE [17:26:59.399] - call: NULL [17:26:59.399] plan(): nbrOfWorkers() = 1 [17:26:59.400] plan(): Setting new future strategy stack: [17:26:59.402] List of future strategies: [17:26:59.402] 1. sequential: [17:26:59.402] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.402] - tweaked: FALSE [17:26:59.402] - call: plan(strategy) [17:26:59.402] plan(): nbrOfWorkers() = 1 [17:26:59.402] SequentialFuture started (and completed) [17:26:59.403] - Launch lazy future ... done [17:26:59.403] run() for 'SequentialFuture' ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.403] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.404] Searching for globals... [17:26:59.406] - globals found: [6] '{', 'x', '<-', '[', '[<-', 'list' [17:26:59.406] Searching for globals ... DONE [17:26:59.406] Resolving globals: TRUE [17:26:59.407] Resolving any globals that are futures ... [17:26:59.407] - globals: [6] '{', 'x', '<-', '[', '[<-', 'list' [17:26:59.407] Resolving any globals that are futures ... DONE [17:26:59.407] Resolving futures part of globals (recursively) ... [17:26:59.408] resolve() on list ... [17:26:59.408] recursive: 99 [17:26:59.408] length: 1 [17:26:59.408] elements: 'x' [17:26:59.408] length: 0 (resolved future 1) [17:26:59.409] resolve() on list ... DONE [17:26:59.409] - globals: [1] 'x' [17:26:59.409] Resolving futures part of globals (recursively) ... DONE [17:26:59.409] The total size of the 1 globals is 0 bytes (0 bytes) [17:26:59.410] The total size of the 1 globals exported for future expression ('{; x["a"] <- list(1); x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:26:59.410] - globals: [1] 'x' [17:26:59.410] [17:26:59.410] getGlobalsAndPackages() ... DONE [17:26:59.410] run() for 'Future' ... [17:26:59.411] - state: 'created' [17:26:59.411] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:59.411] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:59.411] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:59.411] - Field: 'label' [17:26:59.412] - Field: 'local' [17:26:59.412] - Field: 'owner' [17:26:59.412] - Field: 'envir' [17:26:59.412] - Field: 'packages' [17:26:59.412] - Field: 'gc' [17:26:59.413] - Field: 'conditions' [17:26:59.413] - Field: 'expr' [17:26:59.413] - Field: 'uuid' [17:26:59.413] - Field: 'seed' [17:26:59.413] - Field: 'version' [17:26:59.413] - Field: 'result' [17:26:59.414] - Field: 'asynchronous' [17:26:59.414] - Field: 'calls' [17:26:59.414] - Field: 'globals' [17:26:59.414] - Field: 'stdout' [17:26:59.414] - Field: 'earlySignal' [17:26:59.414] - Field: 'lazy' [17:26:59.415] - Field: 'state' [17:26:59.415] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:59.415] - Launch lazy future ... [17:26:59.415] Packages needed by the future expression (n = 0): [17:26:59.415] Packages needed by future strategies (n = 0): [17:26:59.416] { [17:26:59.416] { [17:26:59.416] { [17:26:59.416] ...future.startTime <- base::Sys.time() [17:26:59.416] { [17:26:59.416] { [17:26:59.416] { [17:26:59.416] base::local({ [17:26:59.416] has_future <- base::requireNamespace("future", [17:26:59.416] quietly = TRUE) [17:26:59.416] if (has_future) { [17:26:59.416] ns <- base::getNamespace("future") [17:26:59.416] version <- ns[[".package"]][["version"]] [17:26:59.416] if (is.null(version)) [17:26:59.416] version <- utils::packageVersion("future") [17:26:59.416] } [17:26:59.416] else { [17:26:59.416] version <- NULL [17:26:59.416] } [17:26:59.416] if (!has_future || version < "1.8.0") { [17:26:59.416] info <- base::c(r_version = base::gsub("R version ", [17:26:59.416] "", base::R.version$version.string), [17:26:59.416] platform = base::sprintf("%s (%s-bit)", [17:26:59.416] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:59.416] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:59.416] "release", "version")], collapse = " "), [17:26:59.416] hostname = base::Sys.info()[["nodename"]]) [17:26:59.416] info <- base::sprintf("%s: %s", base::names(info), [17:26:59.416] info) [17:26:59.416] info <- base::paste(info, collapse = "; ") [17:26:59.416] if (!has_future) { [17:26:59.416] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:59.416] info) [17:26:59.416] } [17:26:59.416] else { [17:26:59.416] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:59.416] info, version) [17:26:59.416] } [17:26:59.416] base::stop(msg) [17:26:59.416] } [17:26:59.416] }) [17:26:59.416] } [17:26:59.416] ...future.strategy.old <- future::plan("list") [17:26:59.416] options(future.plan = NULL) [17:26:59.416] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.416] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:59.416] } [17:26:59.416] ...future.workdir <- getwd() [17:26:59.416] } [17:26:59.416] ...future.oldOptions <- base::as.list(base::.Options) [17:26:59.416] ...future.oldEnvVars <- base::Sys.getenv() [17:26:59.416] } [17:26:59.416] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:26:59.416] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:59.416] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:26:59.416] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:26:59.416] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:59.416] future.stdout.windows.reencode = NULL, width = 80L) [17:26:59.416] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:59.416] base::names(...future.oldOptions)) [17:26:59.416] } [17:26:59.416] if (FALSE) { [17:26:59.416] } [17:26:59.416] else { [17:26:59.416] if (TRUE) { [17:26:59.416] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:59.416] open = "w") [17:26:59.416] } [17:26:59.416] else { [17:26:59.416] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:59.416] windows = "NUL", "/dev/null"), open = "w") [17:26:59.416] } [17:26:59.416] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:59.416] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:59.416] base::sink(type = "output", split = FALSE) [17:26:59.416] base::close(...future.stdout) [17:26:59.416] }, add = TRUE) [17:26:59.416] } [17:26:59.416] ...future.frame <- base::sys.nframe() [17:26:59.416] ...future.conditions <- base::list() [17:26:59.416] ...future.rng <- base::globalenv()$.Random.seed [17:26:59.416] if (FALSE) { [17:26:59.416] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:59.416] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:59.416] } [17:26:59.416] ...future.result <- base::tryCatch({ [17:26:59.416] base::withCallingHandlers({ [17:26:59.416] ...future.value <- base::withVisible(base::local({ [17:26:59.416] x["a"] <- list(1) [17:26:59.416] x [17:26:59.416] })) [17:26:59.416] future::FutureResult(value = ...future.value$value, [17:26:59.416] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.416] ...future.rng), globalenv = if (FALSE) [17:26:59.416] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:59.416] ...future.globalenv.names)) [17:26:59.416] else NULL, started = ...future.startTime, version = "1.8") [17:26:59.416] }, condition = base::local({ [17:26:59.416] c <- base::c [17:26:59.416] inherits <- base::inherits [17:26:59.416] invokeRestart <- base::invokeRestart [17:26:59.416] length <- base::length [17:26:59.416] list <- base::list [17:26:59.416] seq.int <- base::seq.int [17:26:59.416] signalCondition <- base::signalCondition [17:26:59.416] sys.calls <- base::sys.calls [17:26:59.416] `[[` <- base::`[[` [17:26:59.416] `+` <- base::`+` [17:26:59.416] `<<-` <- base::`<<-` [17:26:59.416] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:59.416] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:59.416] 3L)] [17:26:59.416] } [17:26:59.416] function(cond) { [17:26:59.416] is_error <- inherits(cond, "error") [17:26:59.416] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:59.416] NULL) [17:26:59.416] if (is_error) { [17:26:59.416] sessionInformation <- function() { [17:26:59.416] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:59.416] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:59.416] search = base::search(), system = base::Sys.info()) [17:26:59.416] } [17:26:59.416] ...future.conditions[[length(...future.conditions) + [17:26:59.416] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:59.416] cond$call), session = sessionInformation(), [17:26:59.416] timestamp = base::Sys.time(), signaled = 0L) [17:26:59.416] signalCondition(cond) [17:26:59.416] } [17:26:59.416] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:59.416] "immediateCondition"))) { [17:26:59.416] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:59.416] ...future.conditions[[length(...future.conditions) + [17:26:59.416] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:59.416] if (TRUE && !signal) { [17:26:59.416] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.416] { [17:26:59.416] inherits <- base::inherits [17:26:59.416] invokeRestart <- base::invokeRestart [17:26:59.416] is.null <- base::is.null [17:26:59.416] muffled <- FALSE [17:26:59.416] if (inherits(cond, "message")) { [17:26:59.416] muffled <- grepl(pattern, "muffleMessage") [17:26:59.416] if (muffled) [17:26:59.416] invokeRestart("muffleMessage") [17:26:59.416] } [17:26:59.416] else if (inherits(cond, "warning")) { [17:26:59.416] muffled <- grepl(pattern, "muffleWarning") [17:26:59.416] if (muffled) [17:26:59.416] invokeRestart("muffleWarning") [17:26:59.416] } [17:26:59.416] else if (inherits(cond, "condition")) { [17:26:59.416] if (!is.null(pattern)) { [17:26:59.416] computeRestarts <- base::computeRestarts [17:26:59.416] grepl <- base::grepl [17:26:59.416] restarts <- computeRestarts(cond) [17:26:59.416] for (restart in restarts) { [17:26:59.416] name <- restart$name [17:26:59.416] if (is.null(name)) [17:26:59.416] next [17:26:59.416] if (!grepl(pattern, name)) [17:26:59.416] next [17:26:59.416] invokeRestart(restart) [17:26:59.416] muffled <- TRUE [17:26:59.416] break [17:26:59.416] } [17:26:59.416] } [17:26:59.416] } [17:26:59.416] invisible(muffled) [17:26:59.416] } [17:26:59.416] muffleCondition(cond, pattern = "^muffle") [17:26:59.416] } [17:26:59.416] } [17:26:59.416] else { [17:26:59.416] if (TRUE) { [17:26:59.416] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.416] { [17:26:59.416] inherits <- base::inherits [17:26:59.416] invokeRestart <- base::invokeRestart [17:26:59.416] is.null <- base::is.null [17:26:59.416] muffled <- FALSE [17:26:59.416] if (inherits(cond, "message")) { [17:26:59.416] muffled <- grepl(pattern, "muffleMessage") [17:26:59.416] if (muffled) [17:26:59.416] invokeRestart("muffleMessage") [17:26:59.416] } [17:26:59.416] else if (inherits(cond, "warning")) { [17:26:59.416] muffled <- grepl(pattern, "muffleWarning") [17:26:59.416] if (muffled) [17:26:59.416] invokeRestart("muffleWarning") [17:26:59.416] } [17:26:59.416] else if (inherits(cond, "condition")) { [17:26:59.416] if (!is.null(pattern)) { [17:26:59.416] computeRestarts <- base::computeRestarts [17:26:59.416] grepl <- base::grepl [17:26:59.416] restarts <- computeRestarts(cond) [17:26:59.416] for (restart in restarts) { [17:26:59.416] name <- restart$name [17:26:59.416] if (is.null(name)) [17:26:59.416] next [17:26:59.416] if (!grepl(pattern, name)) [17:26:59.416] next [17:26:59.416] invokeRestart(restart) [17:26:59.416] muffled <- TRUE [17:26:59.416] break [17:26:59.416] } [17:26:59.416] } [17:26:59.416] } [17:26:59.416] invisible(muffled) [17:26:59.416] } [17:26:59.416] muffleCondition(cond, pattern = "^muffle") [17:26:59.416] } [17:26:59.416] } [17:26:59.416] } [17:26:59.416] })) [17:26:59.416] }, error = function(ex) { [17:26:59.416] base::structure(base::list(value = NULL, visible = NULL, [17:26:59.416] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.416] ...future.rng), started = ...future.startTime, [17:26:59.416] finished = Sys.time(), session_uuid = NA_character_, [17:26:59.416] version = "1.8"), class = "FutureResult") [17:26:59.416] }, finally = { [17:26:59.416] if (!identical(...future.workdir, getwd())) [17:26:59.416] setwd(...future.workdir) [17:26:59.416] { [17:26:59.416] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:59.416] ...future.oldOptions$nwarnings <- NULL [17:26:59.416] } [17:26:59.416] base::options(...future.oldOptions) [17:26:59.416] if (.Platform$OS.type == "windows") { [17:26:59.416] old_names <- names(...future.oldEnvVars) [17:26:59.416] envs <- base::Sys.getenv() [17:26:59.416] names <- names(envs) [17:26:59.416] common <- intersect(names, old_names) [17:26:59.416] added <- setdiff(names, old_names) [17:26:59.416] removed <- setdiff(old_names, names) [17:26:59.416] changed <- common[...future.oldEnvVars[common] != [17:26:59.416] envs[common]] [17:26:59.416] NAMES <- toupper(changed) [17:26:59.416] args <- list() [17:26:59.416] for (kk in seq_along(NAMES)) { [17:26:59.416] name <- changed[[kk]] [17:26:59.416] NAME <- NAMES[[kk]] [17:26:59.416] if (name != NAME && is.element(NAME, old_names)) [17:26:59.416] next [17:26:59.416] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.416] } [17:26:59.416] NAMES <- toupper(added) [17:26:59.416] for (kk in seq_along(NAMES)) { [17:26:59.416] name <- added[[kk]] [17:26:59.416] NAME <- NAMES[[kk]] [17:26:59.416] if (name != NAME && is.element(NAME, old_names)) [17:26:59.416] next [17:26:59.416] args[[name]] <- "" [17:26:59.416] } [17:26:59.416] NAMES <- toupper(removed) [17:26:59.416] for (kk in seq_along(NAMES)) { [17:26:59.416] name <- removed[[kk]] [17:26:59.416] NAME <- NAMES[[kk]] [17:26:59.416] if (name != NAME && is.element(NAME, old_names)) [17:26:59.416] next [17:26:59.416] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.416] } [17:26:59.416] if (length(args) > 0) [17:26:59.416] base::do.call(base::Sys.setenv, args = args) [17:26:59.416] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:59.416] } [17:26:59.416] else { [17:26:59.416] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:59.416] } [17:26:59.416] { [17:26:59.416] if (base::length(...future.futureOptionsAdded) > [17:26:59.416] 0L) { [17:26:59.416] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:59.416] base::names(opts) <- ...future.futureOptionsAdded [17:26:59.416] base::options(opts) [17:26:59.416] } [17:26:59.416] { [17:26:59.416] { [17:26:59.416] NULL [17:26:59.416] RNGkind("Mersenne-Twister") [17:26:59.416] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:59.416] inherits = FALSE) [17:26:59.416] } [17:26:59.416] options(future.plan = NULL) [17:26:59.416] if (is.na(NA_character_)) [17:26:59.416] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.416] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:59.416] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:59.416] .init = FALSE) [17:26:59.416] } [17:26:59.416] } [17:26:59.416] } [17:26:59.416] }) [17:26:59.416] if (TRUE) { [17:26:59.416] base::sink(type = "output", split = FALSE) [17:26:59.416] if (TRUE) { [17:26:59.416] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:59.416] } [17:26:59.416] else { [17:26:59.416] ...future.result["stdout"] <- base::list(NULL) [17:26:59.416] } [17:26:59.416] base::close(...future.stdout) [17:26:59.416] ...future.stdout <- NULL [17:26:59.416] } [17:26:59.416] ...future.result$conditions <- ...future.conditions [17:26:59.416] ...future.result$finished <- base::Sys.time() [17:26:59.416] ...future.result [17:26:59.416] } [17:26:59.420] assign_globals() ... [17:26:59.420] List of 1 [17:26:59.420] $ x: list() [17:26:59.420] - attr(*, "where")=List of 1 [17:26:59.420] ..$ x: [17:26:59.420] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:59.420] - attr(*, "resolved")= logi TRUE [17:26:59.420] - attr(*, "total_size")= num 0 [17:26:59.420] - attr(*, "already-done")= logi TRUE [17:26:59.422] - copied 'x' to environment [17:26:59.423] assign_globals() ... done [17:26:59.423] plan(): Setting new future strategy stack: [17:26:59.423] List of future strategies: [17:26:59.423] 1. sequential: [17:26:59.423] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.423] - tweaked: FALSE [17:26:59.423] - call: NULL [17:26:59.424] plan(): nbrOfWorkers() = 1 [17:26:59.425] plan(): Setting new future strategy stack: [17:26:59.425] List of future strategies: [17:26:59.425] 1. sequential: [17:26:59.425] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.425] - tweaked: FALSE [17:26:59.425] - call: plan(strategy) [17:26:59.426] plan(): nbrOfWorkers() = 1 [17:26:59.426] SequentialFuture started (and completed) [17:26:59.426] - Launch lazy future ... done [17:26:59.426] run() for 'SequentialFuture' ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.427] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.427] Searching for globals... [17:26:59.431] - globals found: [6] '{', 'x', '<-', '[', '[<-', 'list' [17:26:59.431] Searching for globals ... DONE [17:26:59.431] Resolving globals: TRUE [17:26:59.431] Resolving any globals that are futures ... [17:26:59.431] - globals: [6] '{', 'x', '<-', '[', '[<-', 'list' [17:26:59.431] Resolving any globals that are futures ... DONE [17:26:59.432] Resolving futures part of globals (recursively) ... [17:26:59.432] resolve() on list ... [17:26:59.432] recursive: 99 [17:26:59.433] length: 1 [17:26:59.433] elements: 'x' [17:26:59.433] length: 0 (resolved future 1) [17:26:59.433] resolve() on list ... DONE [17:26:59.433] - globals: [1] 'x' [17:26:59.433] Resolving futures part of globals (recursively) ... DONE [17:26:59.434] The total size of the 1 globals is 0 bytes (0 bytes) [17:26:59.434] The total size of the 1 globals exported for future expression ('{; x["a"] <- list(1); x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:26:59.434] - globals: [1] 'x' [17:26:59.434] [17:26:59.435] getGlobalsAndPackages() ... DONE [17:26:59.435] run() for 'Future' ... [17:26:59.435] - state: 'created' [17:26:59.435] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:59.436] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:59.436] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:59.436] - Field: 'label' [17:26:59.436] - Field: 'local' [17:26:59.436] - Field: 'owner' [17:26:59.436] - Field: 'envir' [17:26:59.437] - Field: 'packages' [17:26:59.437] - Field: 'gc' [17:26:59.437] - Field: 'conditions' [17:26:59.437] - Field: 'expr' [17:26:59.437] - Field: 'uuid' [17:26:59.438] - Field: 'seed' [17:26:59.438] - Field: 'version' [17:26:59.438] - Field: 'result' [17:26:59.438] - Field: 'asynchronous' [17:26:59.438] - Field: 'calls' [17:26:59.438] - Field: 'globals' [17:26:59.439] - Field: 'stdout' [17:26:59.439] - Field: 'earlySignal' [17:26:59.439] - Field: 'lazy' [17:26:59.439] - Field: 'state' [17:26:59.439] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:59.439] - Launch lazy future ... [17:26:59.440] Packages needed by the future expression (n = 0): [17:26:59.440] Packages needed by future strategies (n = 0): [17:26:59.440] { [17:26:59.440] { [17:26:59.440] { [17:26:59.440] ...future.startTime <- base::Sys.time() [17:26:59.440] { [17:26:59.440] { [17:26:59.440] { [17:26:59.440] base::local({ [17:26:59.440] has_future <- base::requireNamespace("future", [17:26:59.440] quietly = TRUE) [17:26:59.440] if (has_future) { [17:26:59.440] ns <- base::getNamespace("future") [17:26:59.440] version <- ns[[".package"]][["version"]] [17:26:59.440] if (is.null(version)) [17:26:59.440] version <- utils::packageVersion("future") [17:26:59.440] } [17:26:59.440] else { [17:26:59.440] version <- NULL [17:26:59.440] } [17:26:59.440] if (!has_future || version < "1.8.0") { [17:26:59.440] info <- base::c(r_version = base::gsub("R version ", [17:26:59.440] "", base::R.version$version.string), [17:26:59.440] platform = base::sprintf("%s (%s-bit)", [17:26:59.440] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:59.440] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:59.440] "release", "version")], collapse = " "), [17:26:59.440] hostname = base::Sys.info()[["nodename"]]) [17:26:59.440] info <- base::sprintf("%s: %s", base::names(info), [17:26:59.440] info) [17:26:59.440] info <- base::paste(info, collapse = "; ") [17:26:59.440] if (!has_future) { [17:26:59.440] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:59.440] info) [17:26:59.440] } [17:26:59.440] else { [17:26:59.440] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:59.440] info, version) [17:26:59.440] } [17:26:59.440] base::stop(msg) [17:26:59.440] } [17:26:59.440] }) [17:26:59.440] } [17:26:59.440] ...future.strategy.old <- future::plan("list") [17:26:59.440] options(future.plan = NULL) [17:26:59.440] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.440] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:59.440] } [17:26:59.440] ...future.workdir <- getwd() [17:26:59.440] } [17:26:59.440] ...future.oldOptions <- base::as.list(base::.Options) [17:26:59.440] ...future.oldEnvVars <- base::Sys.getenv() [17:26:59.440] } [17:26:59.440] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:26:59.440] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:59.440] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:26:59.440] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:26:59.440] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:59.440] future.stdout.windows.reencode = NULL, width = 80L) [17:26:59.440] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:59.440] base::names(...future.oldOptions)) [17:26:59.440] } [17:26:59.440] if (FALSE) { [17:26:59.440] } [17:26:59.440] else { [17:26:59.440] if (TRUE) { [17:26:59.440] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:59.440] open = "w") [17:26:59.440] } [17:26:59.440] else { [17:26:59.440] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:59.440] windows = "NUL", "/dev/null"), open = "w") [17:26:59.440] } [17:26:59.440] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:59.440] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:59.440] base::sink(type = "output", split = FALSE) [17:26:59.440] base::close(...future.stdout) [17:26:59.440] }, add = TRUE) [17:26:59.440] } [17:26:59.440] ...future.frame <- base::sys.nframe() [17:26:59.440] ...future.conditions <- base::list() [17:26:59.440] ...future.rng <- base::globalenv()$.Random.seed [17:26:59.440] if (FALSE) { [17:26:59.440] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:59.440] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:59.440] } [17:26:59.440] ...future.result <- base::tryCatch({ [17:26:59.440] base::withCallingHandlers({ [17:26:59.440] ...future.value <- base::withVisible(base::local({ [17:26:59.440] x["a"] <- list(1) [17:26:59.440] x [17:26:59.440] })) [17:26:59.440] future::FutureResult(value = ...future.value$value, [17:26:59.440] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.440] ...future.rng), globalenv = if (FALSE) [17:26:59.440] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:59.440] ...future.globalenv.names)) [17:26:59.440] else NULL, started = ...future.startTime, version = "1.8") [17:26:59.440] }, condition = base::local({ [17:26:59.440] c <- base::c [17:26:59.440] inherits <- base::inherits [17:26:59.440] invokeRestart <- base::invokeRestart [17:26:59.440] length <- base::length [17:26:59.440] list <- base::list [17:26:59.440] seq.int <- base::seq.int [17:26:59.440] signalCondition <- base::signalCondition [17:26:59.440] sys.calls <- base::sys.calls [17:26:59.440] `[[` <- base::`[[` [17:26:59.440] `+` <- base::`+` [17:26:59.440] `<<-` <- base::`<<-` [17:26:59.440] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:59.440] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:59.440] 3L)] [17:26:59.440] } [17:26:59.440] function(cond) { [17:26:59.440] is_error <- inherits(cond, "error") [17:26:59.440] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:59.440] NULL) [17:26:59.440] if (is_error) { [17:26:59.440] sessionInformation <- function() { [17:26:59.440] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:59.440] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:59.440] search = base::search(), system = base::Sys.info()) [17:26:59.440] } [17:26:59.440] ...future.conditions[[length(...future.conditions) + [17:26:59.440] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:59.440] cond$call), session = sessionInformation(), [17:26:59.440] timestamp = base::Sys.time(), signaled = 0L) [17:26:59.440] signalCondition(cond) [17:26:59.440] } [17:26:59.440] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:59.440] "immediateCondition"))) { [17:26:59.440] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:59.440] ...future.conditions[[length(...future.conditions) + [17:26:59.440] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:59.440] if (TRUE && !signal) { [17:26:59.440] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.440] { [17:26:59.440] inherits <- base::inherits [17:26:59.440] invokeRestart <- base::invokeRestart [17:26:59.440] is.null <- base::is.null [17:26:59.440] muffled <- FALSE [17:26:59.440] if (inherits(cond, "message")) { [17:26:59.440] muffled <- grepl(pattern, "muffleMessage") [17:26:59.440] if (muffled) [17:26:59.440] invokeRestart("muffleMessage") [17:26:59.440] } [17:26:59.440] else if (inherits(cond, "warning")) { [17:26:59.440] muffled <- grepl(pattern, "muffleWarning") [17:26:59.440] if (muffled) [17:26:59.440] invokeRestart("muffleWarning") [17:26:59.440] } [17:26:59.440] else if (inherits(cond, "condition")) { [17:26:59.440] if (!is.null(pattern)) { [17:26:59.440] computeRestarts <- base::computeRestarts [17:26:59.440] grepl <- base::grepl [17:26:59.440] restarts <- computeRestarts(cond) [17:26:59.440] for (restart in restarts) { [17:26:59.440] name <- restart$name [17:26:59.440] if (is.null(name)) [17:26:59.440] next [17:26:59.440] if (!grepl(pattern, name)) [17:26:59.440] next [17:26:59.440] invokeRestart(restart) [17:26:59.440] muffled <- TRUE [17:26:59.440] break [17:26:59.440] } [17:26:59.440] } [17:26:59.440] } [17:26:59.440] invisible(muffled) [17:26:59.440] } [17:26:59.440] muffleCondition(cond, pattern = "^muffle") [17:26:59.440] } [17:26:59.440] } [17:26:59.440] else { [17:26:59.440] if (TRUE) { [17:26:59.440] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.440] { [17:26:59.440] inherits <- base::inherits [17:26:59.440] invokeRestart <- base::invokeRestart [17:26:59.440] is.null <- base::is.null [17:26:59.440] muffled <- FALSE [17:26:59.440] if (inherits(cond, "message")) { [17:26:59.440] muffled <- grepl(pattern, "muffleMessage") [17:26:59.440] if (muffled) [17:26:59.440] invokeRestart("muffleMessage") [17:26:59.440] } [17:26:59.440] else if (inherits(cond, "warning")) { [17:26:59.440] muffled <- grepl(pattern, "muffleWarning") [17:26:59.440] if (muffled) [17:26:59.440] invokeRestart("muffleWarning") [17:26:59.440] } [17:26:59.440] else if (inherits(cond, "condition")) { [17:26:59.440] if (!is.null(pattern)) { [17:26:59.440] computeRestarts <- base::computeRestarts [17:26:59.440] grepl <- base::grepl [17:26:59.440] restarts <- computeRestarts(cond) [17:26:59.440] for (restart in restarts) { [17:26:59.440] name <- restart$name [17:26:59.440] if (is.null(name)) [17:26:59.440] next [17:26:59.440] if (!grepl(pattern, name)) [17:26:59.440] next [17:26:59.440] invokeRestart(restart) [17:26:59.440] muffled <- TRUE [17:26:59.440] break [17:26:59.440] } [17:26:59.440] } [17:26:59.440] } [17:26:59.440] invisible(muffled) [17:26:59.440] } [17:26:59.440] muffleCondition(cond, pattern = "^muffle") [17:26:59.440] } [17:26:59.440] } [17:26:59.440] } [17:26:59.440] })) [17:26:59.440] }, error = function(ex) { [17:26:59.440] base::structure(base::list(value = NULL, visible = NULL, [17:26:59.440] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.440] ...future.rng), started = ...future.startTime, [17:26:59.440] finished = Sys.time(), session_uuid = NA_character_, [17:26:59.440] version = "1.8"), class = "FutureResult") [17:26:59.440] }, finally = { [17:26:59.440] if (!identical(...future.workdir, getwd())) [17:26:59.440] setwd(...future.workdir) [17:26:59.440] { [17:26:59.440] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:59.440] ...future.oldOptions$nwarnings <- NULL [17:26:59.440] } [17:26:59.440] base::options(...future.oldOptions) [17:26:59.440] if (.Platform$OS.type == "windows") { [17:26:59.440] old_names <- names(...future.oldEnvVars) [17:26:59.440] envs <- base::Sys.getenv() [17:26:59.440] names <- names(envs) [17:26:59.440] common <- intersect(names, old_names) [17:26:59.440] added <- setdiff(names, old_names) [17:26:59.440] removed <- setdiff(old_names, names) [17:26:59.440] changed <- common[...future.oldEnvVars[common] != [17:26:59.440] envs[common]] [17:26:59.440] NAMES <- toupper(changed) [17:26:59.440] args <- list() [17:26:59.440] for (kk in seq_along(NAMES)) { [17:26:59.440] name <- changed[[kk]] [17:26:59.440] NAME <- NAMES[[kk]] [17:26:59.440] if (name != NAME && is.element(NAME, old_names)) [17:26:59.440] next [17:26:59.440] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.440] } [17:26:59.440] NAMES <- toupper(added) [17:26:59.440] for (kk in seq_along(NAMES)) { [17:26:59.440] name <- added[[kk]] [17:26:59.440] NAME <- NAMES[[kk]] [17:26:59.440] if (name != NAME && is.element(NAME, old_names)) [17:26:59.440] next [17:26:59.440] args[[name]] <- "" [17:26:59.440] } [17:26:59.440] NAMES <- toupper(removed) [17:26:59.440] for (kk in seq_along(NAMES)) { [17:26:59.440] name <- removed[[kk]] [17:26:59.440] NAME <- NAMES[[kk]] [17:26:59.440] if (name != NAME && is.element(NAME, old_names)) [17:26:59.440] next [17:26:59.440] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.440] } [17:26:59.440] if (length(args) > 0) [17:26:59.440] base::do.call(base::Sys.setenv, args = args) [17:26:59.440] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:59.440] } [17:26:59.440] else { [17:26:59.440] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:59.440] } [17:26:59.440] { [17:26:59.440] if (base::length(...future.futureOptionsAdded) > [17:26:59.440] 0L) { [17:26:59.440] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:59.440] base::names(opts) <- ...future.futureOptionsAdded [17:26:59.440] base::options(opts) [17:26:59.440] } [17:26:59.440] { [17:26:59.440] { [17:26:59.440] NULL [17:26:59.440] RNGkind("Mersenne-Twister") [17:26:59.440] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:59.440] inherits = FALSE) [17:26:59.440] } [17:26:59.440] options(future.plan = NULL) [17:26:59.440] if (is.na(NA_character_)) [17:26:59.440] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.440] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:59.440] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:59.440] .init = FALSE) [17:26:59.440] } [17:26:59.440] } [17:26:59.440] } [17:26:59.440] }) [17:26:59.440] if (TRUE) { [17:26:59.440] base::sink(type = "output", split = FALSE) [17:26:59.440] if (TRUE) { [17:26:59.440] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:59.440] } [17:26:59.440] else { [17:26:59.440] ...future.result["stdout"] <- base::list(NULL) [17:26:59.440] } [17:26:59.440] base::close(...future.stdout) [17:26:59.440] ...future.stdout <- NULL [17:26:59.440] } [17:26:59.440] ...future.result$conditions <- ...future.conditions [17:26:59.440] ...future.result$finished <- base::Sys.time() [17:26:59.440] ...future.result [17:26:59.440] } [17:26:59.444] assign_globals() ... [17:26:59.444] List of 1 [17:26:59.444] $ x: list() [17:26:59.444] - attr(*, "where")=List of 1 [17:26:59.444] ..$ x: [17:26:59.444] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:59.444] - attr(*, "resolved")= logi TRUE [17:26:59.444] - attr(*, "total_size")= num 0 [17:26:59.444] - attr(*, "already-done")= logi TRUE [17:26:59.447] - copied 'x' to environment [17:26:59.447] assign_globals() ... done [17:26:59.448] plan(): Setting new future strategy stack: [17:26:59.448] List of future strategies: [17:26:59.448] 1. sequential: [17:26:59.448] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.448] - tweaked: FALSE [17:26:59.448] - call: NULL [17:26:59.448] plan(): nbrOfWorkers() = 1 [17:26:59.449] plan(): Setting new future strategy stack: [17:26:59.450] List of future strategies: [17:26:59.450] 1. sequential: [17:26:59.450] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.450] - tweaked: FALSE [17:26:59.450] - call: plan(strategy) [17:26:59.450] plan(): nbrOfWorkers() = 1 [17:26:59.450] SequentialFuture started (and completed) [17:26:59.451] - Launch lazy future ... done [17:26:59.451] run() for 'SequentialFuture' ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.451] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.452] Searching for globals... [17:26:59.454] - globals found: [7] '{', 'x', '<-', '[', 'name', '[<-', 'list' [17:26:59.455] Searching for globals ... DONE [17:26:59.455] Resolving globals: TRUE [17:26:59.455] Resolving any globals that are futures ... [17:26:59.455] - globals: [7] '{', 'x', '<-', '[', 'name', '[<-', 'list' [17:26:59.455] Resolving any globals that are futures ... DONE [17:26:59.456] Resolving futures part of globals (recursively) ... [17:26:59.456] resolve() on list ... [17:26:59.456] recursive: 99 [17:26:59.456] length: 2 [17:26:59.457] elements: 'x', 'name' [17:26:59.457] length: 1 (resolved future 1) [17:26:59.457] length: 0 (resolved future 2) [17:26:59.457] resolve() on list ... DONE [17:26:59.457] - globals: [2] 'x', 'name' [17:26:59.458] Resolving futures part of globals (recursively) ... DONE [17:26:59.458] The total size of the 2 globals is 112 bytes (112 bytes) [17:26:59.458] The total size of the 2 globals exported for future expression ('{; x[name] <- list(1); x; }') is 112 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There are two globals: 'name' (112 bytes of class 'character') and 'x' (0 bytes of class 'list') [17:26:59.459] - globals: [2] 'x', 'name' [17:26:59.459] [17:26:59.459] getGlobalsAndPackages() ... DONE [17:26:59.459] run() for 'Future' ... [17:26:59.459] - state: 'created' [17:26:59.460] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:59.460] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:59.460] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:59.460] - Field: 'label' [17:26:59.461] - Field: 'local' [17:26:59.462] - Field: 'owner' [17:26:59.462] - Field: 'envir' [17:26:59.462] - Field: 'packages' [17:26:59.462] - Field: 'gc' [17:26:59.462] - Field: 'conditions' [17:26:59.462] - Field: 'expr' [17:26:59.463] - Field: 'uuid' [17:26:59.463] - Field: 'seed' [17:26:59.463] - Field: 'version' [17:26:59.463] - Field: 'result' [17:26:59.463] - Field: 'asynchronous' [17:26:59.464] - Field: 'calls' [17:26:59.464] - Field: 'globals' [17:26:59.464] - Field: 'stdout' [17:26:59.464] - Field: 'earlySignal' [17:26:59.464] - Field: 'lazy' [17:26:59.464] - Field: 'state' [17:26:59.465] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:59.465] - Launch lazy future ... [17:26:59.465] Packages needed by the future expression (n = 0): [17:26:59.465] Packages needed by future strategies (n = 0): [17:26:59.466] { [17:26:59.466] { [17:26:59.466] { [17:26:59.466] ...future.startTime <- base::Sys.time() [17:26:59.466] { [17:26:59.466] { [17:26:59.466] { [17:26:59.466] base::local({ [17:26:59.466] has_future <- base::requireNamespace("future", [17:26:59.466] quietly = TRUE) [17:26:59.466] if (has_future) { [17:26:59.466] ns <- base::getNamespace("future") [17:26:59.466] version <- ns[[".package"]][["version"]] [17:26:59.466] if (is.null(version)) [17:26:59.466] version <- utils::packageVersion("future") [17:26:59.466] } [17:26:59.466] else { [17:26:59.466] version <- NULL [17:26:59.466] } [17:26:59.466] if (!has_future || version < "1.8.0") { [17:26:59.466] info <- base::c(r_version = base::gsub("R version ", [17:26:59.466] "", base::R.version$version.string), [17:26:59.466] platform = base::sprintf("%s (%s-bit)", [17:26:59.466] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:59.466] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:59.466] "release", "version")], collapse = " "), [17:26:59.466] hostname = base::Sys.info()[["nodename"]]) [17:26:59.466] info <- base::sprintf("%s: %s", base::names(info), [17:26:59.466] info) [17:26:59.466] info <- base::paste(info, collapse = "; ") [17:26:59.466] if (!has_future) { [17:26:59.466] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:59.466] info) [17:26:59.466] } [17:26:59.466] else { [17:26:59.466] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:59.466] info, version) [17:26:59.466] } [17:26:59.466] base::stop(msg) [17:26:59.466] } [17:26:59.466] }) [17:26:59.466] } [17:26:59.466] ...future.strategy.old <- future::plan("list") [17:26:59.466] options(future.plan = NULL) [17:26:59.466] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.466] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:59.466] } [17:26:59.466] ...future.workdir <- getwd() [17:26:59.466] } [17:26:59.466] ...future.oldOptions <- base::as.list(base::.Options) [17:26:59.466] ...future.oldEnvVars <- base::Sys.getenv() [17:26:59.466] } [17:26:59.466] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:26:59.466] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:59.466] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:26:59.466] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:26:59.466] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:59.466] future.stdout.windows.reencode = NULL, width = 80L) [17:26:59.466] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:59.466] base::names(...future.oldOptions)) [17:26:59.466] } [17:26:59.466] if (FALSE) { [17:26:59.466] } [17:26:59.466] else { [17:26:59.466] if (TRUE) { [17:26:59.466] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:59.466] open = "w") [17:26:59.466] } [17:26:59.466] else { [17:26:59.466] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:59.466] windows = "NUL", "/dev/null"), open = "w") [17:26:59.466] } [17:26:59.466] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:59.466] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:59.466] base::sink(type = "output", split = FALSE) [17:26:59.466] base::close(...future.stdout) [17:26:59.466] }, add = TRUE) [17:26:59.466] } [17:26:59.466] ...future.frame <- base::sys.nframe() [17:26:59.466] ...future.conditions <- base::list() [17:26:59.466] ...future.rng <- base::globalenv()$.Random.seed [17:26:59.466] if (FALSE) { [17:26:59.466] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:59.466] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:59.466] } [17:26:59.466] ...future.result <- base::tryCatch({ [17:26:59.466] base::withCallingHandlers({ [17:26:59.466] ...future.value <- base::withVisible(base::local({ [17:26:59.466] x[name] <- list(1) [17:26:59.466] x [17:26:59.466] })) [17:26:59.466] future::FutureResult(value = ...future.value$value, [17:26:59.466] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.466] ...future.rng), globalenv = if (FALSE) [17:26:59.466] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:59.466] ...future.globalenv.names)) [17:26:59.466] else NULL, started = ...future.startTime, version = "1.8") [17:26:59.466] }, condition = base::local({ [17:26:59.466] c <- base::c [17:26:59.466] inherits <- base::inherits [17:26:59.466] invokeRestart <- base::invokeRestart [17:26:59.466] length <- base::length [17:26:59.466] list <- base::list [17:26:59.466] seq.int <- base::seq.int [17:26:59.466] signalCondition <- base::signalCondition [17:26:59.466] sys.calls <- base::sys.calls [17:26:59.466] `[[` <- base::`[[` [17:26:59.466] `+` <- base::`+` [17:26:59.466] `<<-` <- base::`<<-` [17:26:59.466] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:59.466] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:59.466] 3L)] [17:26:59.466] } [17:26:59.466] function(cond) { [17:26:59.466] is_error <- inherits(cond, "error") [17:26:59.466] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:59.466] NULL) [17:26:59.466] if (is_error) { [17:26:59.466] sessionInformation <- function() { [17:26:59.466] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:59.466] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:59.466] search = base::search(), system = base::Sys.info()) [17:26:59.466] } [17:26:59.466] ...future.conditions[[length(...future.conditions) + [17:26:59.466] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:59.466] cond$call), session = sessionInformation(), [17:26:59.466] timestamp = base::Sys.time(), signaled = 0L) [17:26:59.466] signalCondition(cond) [17:26:59.466] } [17:26:59.466] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:59.466] "immediateCondition"))) { [17:26:59.466] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:59.466] ...future.conditions[[length(...future.conditions) + [17:26:59.466] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:59.466] if (TRUE && !signal) { [17:26:59.466] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.466] { [17:26:59.466] inherits <- base::inherits [17:26:59.466] invokeRestart <- base::invokeRestart [17:26:59.466] is.null <- base::is.null [17:26:59.466] muffled <- FALSE [17:26:59.466] if (inherits(cond, "message")) { [17:26:59.466] muffled <- grepl(pattern, "muffleMessage") [17:26:59.466] if (muffled) [17:26:59.466] invokeRestart("muffleMessage") [17:26:59.466] } [17:26:59.466] else if (inherits(cond, "warning")) { [17:26:59.466] muffled <- grepl(pattern, "muffleWarning") [17:26:59.466] if (muffled) [17:26:59.466] invokeRestart("muffleWarning") [17:26:59.466] } [17:26:59.466] else if (inherits(cond, "condition")) { [17:26:59.466] if (!is.null(pattern)) { [17:26:59.466] computeRestarts <- base::computeRestarts [17:26:59.466] grepl <- base::grepl [17:26:59.466] restarts <- computeRestarts(cond) [17:26:59.466] for (restart in restarts) { [17:26:59.466] name <- restart$name [17:26:59.466] if (is.null(name)) [17:26:59.466] next [17:26:59.466] if (!grepl(pattern, name)) [17:26:59.466] next [17:26:59.466] invokeRestart(restart) [17:26:59.466] muffled <- TRUE [17:26:59.466] break [17:26:59.466] } [17:26:59.466] } [17:26:59.466] } [17:26:59.466] invisible(muffled) [17:26:59.466] } [17:26:59.466] muffleCondition(cond, pattern = "^muffle") [17:26:59.466] } [17:26:59.466] } [17:26:59.466] else { [17:26:59.466] if (TRUE) { [17:26:59.466] muffleCondition <- function (cond, pattern = "^muffle") [17:26:59.466] { [17:26:59.466] inherits <- base::inherits [17:26:59.466] invokeRestart <- base::invokeRestart [17:26:59.466] is.null <- base::is.null [17:26:59.466] muffled <- FALSE [17:26:59.466] if (inherits(cond, "message")) { [17:26:59.466] muffled <- grepl(pattern, "muffleMessage") [17:26:59.466] if (muffled) [17:26:59.466] invokeRestart("muffleMessage") [17:26:59.466] } [17:26:59.466] else if (inherits(cond, "warning")) { [17:26:59.466] muffled <- grepl(pattern, "muffleWarning") [17:26:59.466] if (muffled) [17:26:59.466] invokeRestart("muffleWarning") [17:26:59.466] } [17:26:59.466] else if (inherits(cond, "condition")) { [17:26:59.466] if (!is.null(pattern)) { [17:26:59.466] computeRestarts <- base::computeRestarts [17:26:59.466] grepl <- base::grepl [17:26:59.466] restarts <- computeRestarts(cond) [17:26:59.466] for (restart in restarts) { [17:26:59.466] name <- restart$name [17:26:59.466] if (is.null(name)) [17:26:59.466] next [17:26:59.466] if (!grepl(pattern, name)) [17:26:59.466] next [17:26:59.466] invokeRestart(restart) [17:26:59.466] muffled <- TRUE [17:26:59.466] break [17:26:59.466] } [17:26:59.466] } [17:26:59.466] } [17:26:59.466] invisible(muffled) [17:26:59.466] } [17:26:59.466] muffleCondition(cond, pattern = "^muffle") [17:26:59.466] } [17:26:59.466] } [17:26:59.466] } [17:26:59.466] })) [17:26:59.466] }, error = function(ex) { [17:26:59.466] base::structure(base::list(value = NULL, visible = NULL, [17:26:59.466] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:59.466] ...future.rng), started = ...future.startTime, [17:26:59.466] finished = Sys.time(), session_uuid = NA_character_, [17:26:59.466] version = "1.8"), class = "FutureResult") [17:26:59.466] }, finally = { [17:26:59.466] if (!identical(...future.workdir, getwd())) [17:26:59.466] setwd(...future.workdir) [17:26:59.466] { [17:26:59.466] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:59.466] ...future.oldOptions$nwarnings <- NULL [17:26:59.466] } [17:26:59.466] base::options(...future.oldOptions) [17:26:59.466] if (.Platform$OS.type == "windows") { [17:26:59.466] old_names <- names(...future.oldEnvVars) [17:26:59.466] envs <- base::Sys.getenv() [17:26:59.466] names <- names(envs) [17:26:59.466] common <- intersect(names, old_names) [17:26:59.466] added <- setdiff(names, old_names) [17:26:59.466] removed <- setdiff(old_names, names) [17:26:59.466] changed <- common[...future.oldEnvVars[common] != [17:26:59.466] envs[common]] [17:26:59.466] NAMES <- toupper(changed) [17:26:59.466] args <- list() [17:26:59.466] for (kk in seq_along(NAMES)) { [17:26:59.466] name <- changed[[kk]] [17:26:59.466] NAME <- NAMES[[kk]] [17:26:59.466] if (name != NAME && is.element(NAME, old_names)) [17:26:59.466] next [17:26:59.466] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.466] } [17:26:59.466] NAMES <- toupper(added) [17:26:59.466] for (kk in seq_along(NAMES)) { [17:26:59.466] name <- added[[kk]] [17:26:59.466] NAME <- NAMES[[kk]] [17:26:59.466] if (name != NAME && is.element(NAME, old_names)) [17:26:59.466] next [17:26:59.466] args[[name]] <- "" [17:26:59.466] } [17:26:59.466] NAMES <- toupper(removed) [17:26:59.466] for (kk in seq_along(NAMES)) { [17:26:59.466] name <- removed[[kk]] [17:26:59.466] NAME <- NAMES[[kk]] [17:26:59.466] if (name != NAME && is.element(NAME, old_names)) [17:26:59.466] next [17:26:59.466] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:59.466] } [17:26:59.466] if (length(args) > 0) [17:26:59.466] base::do.call(base::Sys.setenv, args = args) [17:26:59.466] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:59.466] } [17:26:59.466] else { [17:26:59.466] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:59.466] } [17:26:59.466] { [17:26:59.466] if (base::length(...future.futureOptionsAdded) > [17:26:59.466] 0L) { [17:26:59.466] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:59.466] base::names(opts) <- ...future.futureOptionsAdded [17:26:59.466] base::options(opts) [17:26:59.466] } [17:26:59.466] { [17:26:59.466] { [17:26:59.466] NULL [17:26:59.466] RNGkind("Mersenne-Twister") [17:26:59.466] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:59.466] inherits = FALSE) [17:26:59.466] } [17:26:59.466] options(future.plan = NULL) [17:26:59.466] if (is.na(NA_character_)) [17:26:59.466] Sys.unsetenv("R_FUTURE_PLAN") [17:26:59.466] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:59.466] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:59.466] .init = FALSE) [17:26:59.466] } [17:26:59.466] } [17:26:59.466] } [17:26:59.466] }) [17:26:59.466] if (TRUE) { [17:26:59.466] base::sink(type = "output", split = FALSE) [17:26:59.466] if (TRUE) { [17:26:59.466] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:59.466] } [17:26:59.466] else { [17:26:59.466] ...future.result["stdout"] <- base::list(NULL) [17:26:59.466] } [17:26:59.466] base::close(...future.stdout) [17:26:59.466] ...future.stdout <- NULL [17:26:59.466] } [17:26:59.466] ...future.result$conditions <- ...future.conditions [17:26:59.466] ...future.result$finished <- base::Sys.time() [17:26:59.466] ...future.result [17:26:59.466] } [17:26:59.469] assign_globals() ... [17:26:59.469] List of 2 [17:26:59.469] $ x : list() [17:26:59.469] $ name: chr "a" [17:26:59.469] - attr(*, "where")=List of 2 [17:26:59.469] ..$ x : [17:26:59.469] ..$ name: [17:26:59.469] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:59.469] - attr(*, "resolved")= logi TRUE [17:26:59.469] - attr(*, "total_size")= num 112 [17:26:59.469] - attr(*, "already-done")= logi TRUE [17:26:59.473] - copied 'x' to environment [17:26:59.473] - copied 'name' to environment [17:26:59.473] assign_globals() ... done [17:26:59.473] plan(): Setting new future strategy stack: [17:26:59.474] List of future strategies: [17:26:59.474] 1. sequential: [17:26:59.474] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.474] - tweaked: FALSE [17:26:59.474] - call: NULL [17:26:59.474] plan(): nbrOfWorkers() = 1 [17:26:59.475] plan(): Setting new future strategy stack: [17:26:59.475] List of future strategies: [17:26:59.475] 1. sequential: [17:26:59.475] - args: function (..., envir = parent.frame(), workers = "") [17:26:59.475] - tweaked: FALSE [17:26:59.475] - call: plan(strategy) [17:26:59.476] plan(): nbrOfWorkers() = 1 [17:26:59.476] SequentialFuture started (and completed) [17:26:59.476] - Launch lazy future ... done [17:26:59.477] run() for 'SequentialFuture' ... done $a [1] 1 Testing with 1 cores ... DONE Testing with 2 cores ... availableCores(): 2 - plan('multisession') ... [17:26:59.485] plan(): Setting new future strategy stack: [17:26:59.485] List of future strategies: [17:26:59.485] 1. multisession: [17:26:59.485] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:26:59.485] - tweaked: FALSE [17:26:59.485] - call: plan(strategy) [17:26:59.485] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:26:59.486] multisession: [17:26:59.486] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:26:59.486] - tweaked: FALSE [17:26:59.486] - call: plan(strategy) Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:26:59.491] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:26:59.491] Not searching for globals [17:26:59.492] - globals: [0] [17:26:59.492] getGlobalsAndPackages() ... DONE [17:26:59.492] [local output] makeClusterPSOCK() ... [17:26:59.524] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:26:59.530] [local output] Base port: 39259 [17:26:59.530] [local output] Getting setup options for 2 cluster nodes ... [17:26:59.530] [local output] - Node 1 of 2 ... [17:26:59.531] [local output] localMachine=TRUE => revtunnel=FALSE [17:26:59.532] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpwZ5XTP/worker.rank=1.parallelly.parent=41660.a2bc36d52196.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpwZ5XTP/worker.rank=1.parallelly.parent=41660.a2bc36d52196.pid\")"' [17:26:59.863] - Possible to infer worker's PID: TRUE [17:26:59.864] [local output] Rscript port: 39259 [17:26:59.864] [local output] - Node 2 of 2 ... [17:26:59.865] [local output] localMachine=TRUE => revtunnel=FALSE [17:26:59.866] [local output] Rscript port: 39259 [17:26:59.867] [local output] Getting setup options for 2 cluster nodes ... done [17:26:59.867] [local output] - Parallel setup requested for some PSOCK nodes [17:26:59.867] [local output] Setting up PSOCK nodes in parallel [17:26:59.868] List of 36 [17:26:59.868] $ worker : chr "localhost" [17:26:59.868] ..- attr(*, "localhost")= logi TRUE [17:26:59.868] $ master : chr "localhost" [17:26:59.868] $ port : int 39259 [17:26:59.868] $ connectTimeout : num 120 [17:26:59.868] $ timeout : num 120 [17:26:59.868] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:26:59.868] $ homogeneous : logi TRUE [17:26:59.868] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=globals,subassignment.R:41660:CR"| __truncated__ [17:26:59.868] $ rscript_envs : NULL [17:26:59.868] $ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:26:59.868] $ rscript_startup : NULL [17:26:59.868] $ rscript_sh : chr "cmd" [17:26:59.868] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:26:59.868] $ methods : logi TRUE [17:26:59.868] $ socketOptions : chr "no-delay" [17:26:59.868] $ useXDR : logi FALSE [17:26:59.868] $ outfile : chr "/dev/null" [17:26:59.868] $ renice : int NA [17:26:59.868] $ rshcmd : NULL [17:26:59.868] $ user : chr(0) [17:26:59.868] $ revtunnel : logi FALSE [17:26:59.868] $ rshlogfile : NULL [17:26:59.868] $ rshopts : chr(0) [17:26:59.868] $ rank : int 1 [17:26:59.868] $ manual : logi FALSE [17:26:59.868] $ dryrun : logi FALSE [17:26:59.868] $ quiet : logi FALSE [17:26:59.868] $ setup_strategy : chr "parallel" [17:26:59.868] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:26:59.868] $ pidfile : chr "D:/temp/RtmpwZ5XTP/worker.rank=1.parallelly.parent=41660.a2bc36d52196.pid" [17:26:59.868] $ rshcmd_label : NULL [17:26:59.868] $ rsh_call : NULL [17:26:59.868] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:26:59.868] $ localMachine : logi TRUE [17:26:59.868] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:26:59.868] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:26:59.868] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:26:59.868] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:26:59.868] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:26:59.868] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:26:59.868] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:26:59.868] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:26:59.868] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:26:59.868] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:26:59.868] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:26:59.868] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:26:59.868] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:26:59.868] $ arguments :List of 28 [17:26:59.868] ..$ worker : chr "localhost" [17:26:59.868] ..$ master : NULL [17:26:59.868] ..$ port : int 39259 [17:26:59.868] ..$ connectTimeout : num 120 [17:26:59.868] ..$ timeout : num 120 [17:26:59.868] ..$ rscript : NULL [17:26:59.868] ..$ homogeneous : NULL [17:26:59.868] ..$ rscript_args : NULL [17:26:59.868] ..$ rscript_envs : NULL [17:26:59.868] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:26:59.868] ..$ rscript_startup : NULL [17:26:59.868] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:26:59.868] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:26:59.868] ..$ methods : logi TRUE [17:26:59.868] ..$ socketOptions : chr "no-delay" [17:26:59.868] ..$ useXDR : logi FALSE [17:26:59.868] ..$ outfile : chr "/dev/null" [17:26:59.868] ..$ renice : int NA [17:26:59.868] ..$ rshcmd : NULL [17:26:59.868] ..$ user : NULL [17:26:59.868] ..$ revtunnel : logi NA [17:26:59.868] ..$ rshlogfile : NULL [17:26:59.868] ..$ rshopts : NULL [17:26:59.868] ..$ rank : int 1 [17:26:59.868] ..$ manual : logi FALSE [17:26:59.868] ..$ dryrun : logi FALSE [17:26:59.868] ..$ quiet : logi FALSE [17:26:59.868] ..$ setup_strategy : chr "parallel" [17:26:59.868] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:26:59.889] [local output] System call to launch all workers: [17:26:59.889] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=globals,subassignment.R:41660:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpwZ5XTP/worker.rank=1.parallelly.parent=41660.a2bc36d52196.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=39259 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:26:59.889] [local output] Starting PSOCK main server [17:26:59.895] [local output] Workers launched [17:26:59.895] [local output] Waiting for workers to connect back [17:26:59.895] - [local output] 0 workers out of 2 ready [17:27:00.058] - [local output] 0 workers out of 2 ready [17:27:00.058] - [local output] 1 workers out of 2 ready [17:27:00.082] - [local output] 1 workers out of 2 ready [17:27:00.083] - [local output] 2 workers out of 2 ready [17:27:00.083] [local output] Launching of workers completed [17:27:00.083] [local output] Collecting session information from workers [17:27:00.084] [local output] - Worker #1 of 2 [17:27:00.085] [local output] - Worker #2 of 2 [17:27:00.085] [local output] makeClusterPSOCK() ... done [17:27:00.097] Packages needed by the future expression (n = 0): [17:27:00.098] Packages needed by future strategies (n = 0): [17:27:00.098] { [17:27:00.098] { [17:27:00.098] { [17:27:00.098] ...future.startTime <- base::Sys.time() [17:27:00.098] { [17:27:00.098] { [17:27:00.098] { [17:27:00.098] { [17:27:00.098] base::local({ [17:27:00.098] has_future <- base::requireNamespace("future", [17:27:00.098] quietly = TRUE) [17:27:00.098] if (has_future) { [17:27:00.098] ns <- base::getNamespace("future") [17:27:00.098] version <- ns[[".package"]][["version"]] [17:27:00.098] if (is.null(version)) [17:27:00.098] version <- utils::packageVersion("future") [17:27:00.098] } [17:27:00.098] else { [17:27:00.098] version <- NULL [17:27:00.098] } [17:27:00.098] if (!has_future || version < "1.8.0") { [17:27:00.098] info <- base::c(r_version = base::gsub("R version ", [17:27:00.098] "", base::R.version$version.string), [17:27:00.098] platform = base::sprintf("%s (%s-bit)", [17:27:00.098] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.098] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.098] "release", "version")], collapse = " "), [17:27:00.098] hostname = base::Sys.info()[["nodename"]]) [17:27:00.098] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.098] info) [17:27:00.098] info <- base::paste(info, collapse = "; ") [17:27:00.098] if (!has_future) { [17:27:00.098] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.098] info) [17:27:00.098] } [17:27:00.098] else { [17:27:00.098] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.098] info, version) [17:27:00.098] } [17:27:00.098] base::stop(msg) [17:27:00.098] } [17:27:00.098] }) [17:27:00.098] } [17:27:00.098] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.098] base::options(mc.cores = 1L) [17:27:00.098] } [17:27:00.098] ...future.strategy.old <- future::plan("list") [17:27:00.098] options(future.plan = NULL) [17:27:00.098] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.098] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.098] } [17:27:00.098] ...future.workdir <- getwd() [17:27:00.098] } [17:27:00.098] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.098] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.098] } [17:27:00.098] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.098] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.098] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.098] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.098] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.098] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.098] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.098] base::names(...future.oldOptions)) [17:27:00.098] } [17:27:00.098] if (FALSE) { [17:27:00.098] } [17:27:00.098] else { [17:27:00.098] if (TRUE) { [17:27:00.098] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.098] open = "w") [17:27:00.098] } [17:27:00.098] else { [17:27:00.098] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.098] windows = "NUL", "/dev/null"), open = "w") [17:27:00.098] } [17:27:00.098] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.098] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.098] base::sink(type = "output", split = FALSE) [17:27:00.098] base::close(...future.stdout) [17:27:00.098] }, add = TRUE) [17:27:00.098] } [17:27:00.098] ...future.frame <- base::sys.nframe() [17:27:00.098] ...future.conditions <- base::list() [17:27:00.098] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.098] if (FALSE) { [17:27:00.098] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.098] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.098] } [17:27:00.098] ...future.result <- base::tryCatch({ [17:27:00.098] base::withCallingHandlers({ [17:27:00.098] ...future.value <- base::withVisible(base::local({ [17:27:00.098] ...future.makeSendCondition <- base::local({ [17:27:00.098] sendCondition <- NULL [17:27:00.098] function(frame = 1L) { [17:27:00.098] if (is.function(sendCondition)) [17:27:00.098] return(sendCondition) [17:27:00.098] ns <- getNamespace("parallel") [17:27:00.098] if (exists("sendData", mode = "function", [17:27:00.098] envir = ns)) { [17:27:00.098] parallel_sendData <- get("sendData", mode = "function", [17:27:00.098] envir = ns) [17:27:00.098] envir <- sys.frame(frame) [17:27:00.098] master <- NULL [17:27:00.098] while (!identical(envir, .GlobalEnv) && [17:27:00.098] !identical(envir, emptyenv())) { [17:27:00.098] if (exists("master", mode = "list", envir = envir, [17:27:00.098] inherits = FALSE)) { [17:27:00.098] master <- get("master", mode = "list", [17:27:00.098] envir = envir, inherits = FALSE) [17:27:00.098] if (inherits(master, c("SOCKnode", [17:27:00.098] "SOCK0node"))) { [17:27:00.098] sendCondition <<- function(cond) { [17:27:00.098] data <- list(type = "VALUE", value = cond, [17:27:00.098] success = TRUE) [17:27:00.098] parallel_sendData(master, data) [17:27:00.098] } [17:27:00.098] return(sendCondition) [17:27:00.098] } [17:27:00.098] } [17:27:00.098] frame <- frame + 1L [17:27:00.098] envir <- sys.frame(frame) [17:27:00.098] } [17:27:00.098] } [17:27:00.098] sendCondition <<- function(cond) NULL [17:27:00.098] } [17:27:00.098] }) [17:27:00.098] withCallingHandlers({ [17:27:00.098] NA [17:27:00.098] }, immediateCondition = function(cond) { [17:27:00.098] sendCondition <- ...future.makeSendCondition() [17:27:00.098] sendCondition(cond) [17:27:00.098] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.098] { [17:27:00.098] inherits <- base::inherits [17:27:00.098] invokeRestart <- base::invokeRestart [17:27:00.098] is.null <- base::is.null [17:27:00.098] muffled <- FALSE [17:27:00.098] if (inherits(cond, "message")) { [17:27:00.098] muffled <- grepl(pattern, "muffleMessage") [17:27:00.098] if (muffled) [17:27:00.098] invokeRestart("muffleMessage") [17:27:00.098] } [17:27:00.098] else if (inherits(cond, "warning")) { [17:27:00.098] muffled <- grepl(pattern, "muffleWarning") [17:27:00.098] if (muffled) [17:27:00.098] invokeRestart("muffleWarning") [17:27:00.098] } [17:27:00.098] else if (inherits(cond, "condition")) { [17:27:00.098] if (!is.null(pattern)) { [17:27:00.098] computeRestarts <- base::computeRestarts [17:27:00.098] grepl <- base::grepl [17:27:00.098] restarts <- computeRestarts(cond) [17:27:00.098] for (restart in restarts) { [17:27:00.098] name <- restart$name [17:27:00.098] if (is.null(name)) [17:27:00.098] next [17:27:00.098] if (!grepl(pattern, name)) [17:27:00.098] next [17:27:00.098] invokeRestart(restart) [17:27:00.098] muffled <- TRUE [17:27:00.098] break [17:27:00.098] } [17:27:00.098] } [17:27:00.098] } [17:27:00.098] invisible(muffled) [17:27:00.098] } [17:27:00.098] muffleCondition(cond) [17:27:00.098] }) [17:27:00.098] })) [17:27:00.098] future::FutureResult(value = ...future.value$value, [17:27:00.098] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.098] ...future.rng), globalenv = if (FALSE) [17:27:00.098] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.098] ...future.globalenv.names)) [17:27:00.098] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.098] }, condition = base::local({ [17:27:00.098] c <- base::c [17:27:00.098] inherits <- base::inherits [17:27:00.098] invokeRestart <- base::invokeRestart [17:27:00.098] length <- base::length [17:27:00.098] list <- base::list [17:27:00.098] seq.int <- base::seq.int [17:27:00.098] signalCondition <- base::signalCondition [17:27:00.098] sys.calls <- base::sys.calls [17:27:00.098] `[[` <- base::`[[` [17:27:00.098] `+` <- base::`+` [17:27:00.098] `<<-` <- base::`<<-` [17:27:00.098] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.098] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.098] 3L)] [17:27:00.098] } [17:27:00.098] function(cond) { [17:27:00.098] is_error <- inherits(cond, "error") [17:27:00.098] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.098] NULL) [17:27:00.098] if (is_error) { [17:27:00.098] sessionInformation <- function() { [17:27:00.098] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.098] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.098] search = base::search(), system = base::Sys.info()) [17:27:00.098] } [17:27:00.098] ...future.conditions[[length(...future.conditions) + [17:27:00.098] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.098] cond$call), session = sessionInformation(), [17:27:00.098] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.098] signalCondition(cond) [17:27:00.098] } [17:27:00.098] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.098] "immediateCondition"))) { [17:27:00.098] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.098] ...future.conditions[[length(...future.conditions) + [17:27:00.098] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.098] if (TRUE && !signal) { [17:27:00.098] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.098] { [17:27:00.098] inherits <- base::inherits [17:27:00.098] invokeRestart <- base::invokeRestart [17:27:00.098] is.null <- base::is.null [17:27:00.098] muffled <- FALSE [17:27:00.098] if (inherits(cond, "message")) { [17:27:00.098] muffled <- grepl(pattern, "muffleMessage") [17:27:00.098] if (muffled) [17:27:00.098] invokeRestart("muffleMessage") [17:27:00.098] } [17:27:00.098] else if (inherits(cond, "warning")) { [17:27:00.098] muffled <- grepl(pattern, "muffleWarning") [17:27:00.098] if (muffled) [17:27:00.098] invokeRestart("muffleWarning") [17:27:00.098] } [17:27:00.098] else if (inherits(cond, "condition")) { [17:27:00.098] if (!is.null(pattern)) { [17:27:00.098] computeRestarts <- base::computeRestarts [17:27:00.098] grepl <- base::grepl [17:27:00.098] restarts <- computeRestarts(cond) [17:27:00.098] for (restart in restarts) { [17:27:00.098] name <- restart$name [17:27:00.098] if (is.null(name)) [17:27:00.098] next [17:27:00.098] if (!grepl(pattern, name)) [17:27:00.098] next [17:27:00.098] invokeRestart(restart) [17:27:00.098] muffled <- TRUE [17:27:00.098] break [17:27:00.098] } [17:27:00.098] } [17:27:00.098] } [17:27:00.098] invisible(muffled) [17:27:00.098] } [17:27:00.098] muffleCondition(cond, pattern = "^muffle") [17:27:00.098] } [17:27:00.098] } [17:27:00.098] else { [17:27:00.098] if (TRUE) { [17:27:00.098] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.098] { [17:27:00.098] inherits <- base::inherits [17:27:00.098] invokeRestart <- base::invokeRestart [17:27:00.098] is.null <- base::is.null [17:27:00.098] muffled <- FALSE [17:27:00.098] if (inherits(cond, "message")) { [17:27:00.098] muffled <- grepl(pattern, "muffleMessage") [17:27:00.098] if (muffled) [17:27:00.098] invokeRestart("muffleMessage") [17:27:00.098] } [17:27:00.098] else if (inherits(cond, "warning")) { [17:27:00.098] muffled <- grepl(pattern, "muffleWarning") [17:27:00.098] if (muffled) [17:27:00.098] invokeRestart("muffleWarning") [17:27:00.098] } [17:27:00.098] else if (inherits(cond, "condition")) { [17:27:00.098] if (!is.null(pattern)) { [17:27:00.098] computeRestarts <- base::computeRestarts [17:27:00.098] grepl <- base::grepl [17:27:00.098] restarts <- computeRestarts(cond) [17:27:00.098] for (restart in restarts) { [17:27:00.098] name <- restart$name [17:27:00.098] if (is.null(name)) [17:27:00.098] next [17:27:00.098] if (!grepl(pattern, name)) [17:27:00.098] next [17:27:00.098] invokeRestart(restart) [17:27:00.098] muffled <- TRUE [17:27:00.098] break [17:27:00.098] } [17:27:00.098] } [17:27:00.098] } [17:27:00.098] invisible(muffled) [17:27:00.098] } [17:27:00.098] muffleCondition(cond, pattern = "^muffle") [17:27:00.098] } [17:27:00.098] } [17:27:00.098] } [17:27:00.098] })) [17:27:00.098] }, error = function(ex) { [17:27:00.098] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.098] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.098] ...future.rng), started = ...future.startTime, [17:27:00.098] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.098] version = "1.8"), class = "FutureResult") [17:27:00.098] }, finally = { [17:27:00.098] if (!identical(...future.workdir, getwd())) [17:27:00.098] setwd(...future.workdir) [17:27:00.098] { [17:27:00.098] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.098] ...future.oldOptions$nwarnings <- NULL [17:27:00.098] } [17:27:00.098] base::options(...future.oldOptions) [17:27:00.098] if (.Platform$OS.type == "windows") { [17:27:00.098] old_names <- names(...future.oldEnvVars) [17:27:00.098] envs <- base::Sys.getenv() [17:27:00.098] names <- names(envs) [17:27:00.098] common <- intersect(names, old_names) [17:27:00.098] added <- setdiff(names, old_names) [17:27:00.098] removed <- setdiff(old_names, names) [17:27:00.098] changed <- common[...future.oldEnvVars[common] != [17:27:00.098] envs[common]] [17:27:00.098] NAMES <- toupper(changed) [17:27:00.098] args <- list() [17:27:00.098] for (kk in seq_along(NAMES)) { [17:27:00.098] name <- changed[[kk]] [17:27:00.098] NAME <- NAMES[[kk]] [17:27:00.098] if (name != NAME && is.element(NAME, old_names)) [17:27:00.098] next [17:27:00.098] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.098] } [17:27:00.098] NAMES <- toupper(added) [17:27:00.098] for (kk in seq_along(NAMES)) { [17:27:00.098] name <- added[[kk]] [17:27:00.098] NAME <- NAMES[[kk]] [17:27:00.098] if (name != NAME && is.element(NAME, old_names)) [17:27:00.098] next [17:27:00.098] args[[name]] <- "" [17:27:00.098] } [17:27:00.098] NAMES <- toupper(removed) [17:27:00.098] for (kk in seq_along(NAMES)) { [17:27:00.098] name <- removed[[kk]] [17:27:00.098] NAME <- NAMES[[kk]] [17:27:00.098] if (name != NAME && is.element(NAME, old_names)) [17:27:00.098] next [17:27:00.098] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.098] } [17:27:00.098] if (length(args) > 0) [17:27:00.098] base::do.call(base::Sys.setenv, args = args) [17:27:00.098] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.098] } [17:27:00.098] else { [17:27:00.098] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.098] } [17:27:00.098] { [17:27:00.098] if (base::length(...future.futureOptionsAdded) > [17:27:00.098] 0L) { [17:27:00.098] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.098] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.098] base::options(opts) [17:27:00.098] } [17:27:00.098] { [17:27:00.098] { [17:27:00.098] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.098] NULL [17:27:00.098] } [17:27:00.098] options(future.plan = NULL) [17:27:00.098] if (is.na(NA_character_)) [17:27:00.098] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.098] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.098] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.098] .init = FALSE) [17:27:00.098] } [17:27:00.098] } [17:27:00.098] } [17:27:00.098] }) [17:27:00.098] if (TRUE) { [17:27:00.098] base::sink(type = "output", split = FALSE) [17:27:00.098] if (TRUE) { [17:27:00.098] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.098] } [17:27:00.098] else { [17:27:00.098] ...future.result["stdout"] <- base::list(NULL) [17:27:00.098] } [17:27:00.098] base::close(...future.stdout) [17:27:00.098] ...future.stdout <- NULL [17:27:00.098] } [17:27:00.098] ...future.result$conditions <- ...future.conditions [17:27:00.098] ...future.result$finished <- base::Sys.time() [17:27:00.098] ...future.result [17:27:00.098] } [17:27:00.183] MultisessionFuture started [17:27:00.184] result() for ClusterFuture ... [17:27:00.184] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.184] - Validating connection of MultisessionFuture [17:27:00.235] - received message: FutureResult [17:27:00.235] - Received FutureResult [17:27:00.239] - Erased future from FutureRegistry [17:27:00.239] result() for ClusterFuture ... [17:27:00.239] - result already collected: FutureResult [17:27:00.240] result() for ClusterFuture ... done [17:27:00.240] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.240] result() for ClusterFuture ... done [17:27:00.241] result() for ClusterFuture ... [17:27:00.241] - result already collected: FutureResult [17:27:00.241] result() for ClusterFuture ... done [17:27:00.241] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:27:00.244] plan(): nbrOfWorkers() = 2 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:27:00.245] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:27:00.245] Searching for globals... [17:27:00.249] - globals found: [5] '{', 'x', '<-', '$', '$<-' [17:27:00.249] Searching for globals ... DONE [17:27:00.249] Resolving globals: TRUE [17:27:00.249] Resolving any globals that are futures ... [17:27:00.249] - globals: [5] '{', 'x', '<-', '$', '$<-' [17:27:00.250] Resolving any globals that are futures ... DONE [17:27:00.250] Resolving futures part of globals (recursively) ... [17:27:00.251] resolve() on list ... [17:27:00.251] recursive: 99 [17:27:00.251] length: 1 [17:27:00.251] elements: 'x' [17:27:00.252] length: 0 (resolved future 1) [17:27:00.252] resolve() on list ... DONE [17:27:00.252] - globals: [1] 'x' [17:27:00.252] Resolving futures part of globals (recursively) ... DONE [17:27:00.252] The total size of the 1 globals is 0 bytes (0 bytes) [17:27:00.253] The total size of the 1 globals exported for future expression ('{; x$a <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:27:00.253] - globals: [1] 'x' [17:27:00.253] [17:27:00.254] getGlobalsAndPackages() ... DONE [17:27:00.254] run() for 'Future' ... [17:27:00.254] - state: 'created' [17:27:00.255] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:00.269] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:00.269] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:00.269] - Field: 'node' [17:27:00.269] - Field: 'label' [17:27:00.270] - Field: 'local' [17:27:00.270] - Field: 'owner' [17:27:00.270] - Field: 'envir' [17:27:00.270] - Field: 'workers' [17:27:00.270] - Field: 'packages' [17:27:00.270] - Field: 'gc' [17:27:00.271] - Field: 'conditions' [17:27:00.271] - Field: 'persistent' [17:27:00.271] - Field: 'expr' [17:27:00.271] - Field: 'uuid' [17:27:00.271] - Field: 'seed' [17:27:00.272] - Field: 'version' [17:27:00.272] - Field: 'result' [17:27:00.272] - Field: 'asynchronous' [17:27:00.272] - Field: 'calls' [17:27:00.272] - Field: 'globals' [17:27:00.273] - Field: 'stdout' [17:27:00.273] - Field: 'earlySignal' [17:27:00.273] - Field: 'lazy' [17:27:00.273] - Field: 'state' [17:27:00.273] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:00.274] - Launch lazy future ... [17:27:00.274] Packages needed by the future expression (n = 0): [17:27:00.274] Packages needed by future strategies (n = 0): [17:27:00.275] { [17:27:00.275] { [17:27:00.275] { [17:27:00.275] ...future.startTime <- base::Sys.time() [17:27:00.275] { [17:27:00.275] { [17:27:00.275] { [17:27:00.275] { [17:27:00.275] base::local({ [17:27:00.275] has_future <- base::requireNamespace("future", [17:27:00.275] quietly = TRUE) [17:27:00.275] if (has_future) { [17:27:00.275] ns <- base::getNamespace("future") [17:27:00.275] version <- ns[[".package"]][["version"]] [17:27:00.275] if (is.null(version)) [17:27:00.275] version <- utils::packageVersion("future") [17:27:00.275] } [17:27:00.275] else { [17:27:00.275] version <- NULL [17:27:00.275] } [17:27:00.275] if (!has_future || version < "1.8.0") { [17:27:00.275] info <- base::c(r_version = base::gsub("R version ", [17:27:00.275] "", base::R.version$version.string), [17:27:00.275] platform = base::sprintf("%s (%s-bit)", [17:27:00.275] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.275] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.275] "release", "version")], collapse = " "), [17:27:00.275] hostname = base::Sys.info()[["nodename"]]) [17:27:00.275] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.275] info) [17:27:00.275] info <- base::paste(info, collapse = "; ") [17:27:00.275] if (!has_future) { [17:27:00.275] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.275] info) [17:27:00.275] } [17:27:00.275] else { [17:27:00.275] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.275] info, version) [17:27:00.275] } [17:27:00.275] base::stop(msg) [17:27:00.275] } [17:27:00.275] }) [17:27:00.275] } [17:27:00.275] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.275] base::options(mc.cores = 1L) [17:27:00.275] } [17:27:00.275] ...future.strategy.old <- future::plan("list") [17:27:00.275] options(future.plan = NULL) [17:27:00.275] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.275] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.275] } [17:27:00.275] ...future.workdir <- getwd() [17:27:00.275] } [17:27:00.275] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.275] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.275] } [17:27:00.275] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.275] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.275] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.275] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.275] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.275] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.275] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.275] base::names(...future.oldOptions)) [17:27:00.275] } [17:27:00.275] if (FALSE) { [17:27:00.275] } [17:27:00.275] else { [17:27:00.275] if (TRUE) { [17:27:00.275] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.275] open = "w") [17:27:00.275] } [17:27:00.275] else { [17:27:00.275] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.275] windows = "NUL", "/dev/null"), open = "w") [17:27:00.275] } [17:27:00.275] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.275] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.275] base::sink(type = "output", split = FALSE) [17:27:00.275] base::close(...future.stdout) [17:27:00.275] }, add = TRUE) [17:27:00.275] } [17:27:00.275] ...future.frame <- base::sys.nframe() [17:27:00.275] ...future.conditions <- base::list() [17:27:00.275] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.275] if (FALSE) { [17:27:00.275] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.275] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.275] } [17:27:00.275] ...future.result <- base::tryCatch({ [17:27:00.275] base::withCallingHandlers({ [17:27:00.275] ...future.value <- base::withVisible(base::local({ [17:27:00.275] ...future.makeSendCondition <- base::local({ [17:27:00.275] sendCondition <- NULL [17:27:00.275] function(frame = 1L) { [17:27:00.275] if (is.function(sendCondition)) [17:27:00.275] return(sendCondition) [17:27:00.275] ns <- getNamespace("parallel") [17:27:00.275] if (exists("sendData", mode = "function", [17:27:00.275] envir = ns)) { [17:27:00.275] parallel_sendData <- get("sendData", mode = "function", [17:27:00.275] envir = ns) [17:27:00.275] envir <- sys.frame(frame) [17:27:00.275] master <- NULL [17:27:00.275] while (!identical(envir, .GlobalEnv) && [17:27:00.275] !identical(envir, emptyenv())) { [17:27:00.275] if (exists("master", mode = "list", envir = envir, [17:27:00.275] inherits = FALSE)) { [17:27:00.275] master <- get("master", mode = "list", [17:27:00.275] envir = envir, inherits = FALSE) [17:27:00.275] if (inherits(master, c("SOCKnode", [17:27:00.275] "SOCK0node"))) { [17:27:00.275] sendCondition <<- function(cond) { [17:27:00.275] data <- list(type = "VALUE", value = cond, [17:27:00.275] success = TRUE) [17:27:00.275] parallel_sendData(master, data) [17:27:00.275] } [17:27:00.275] return(sendCondition) [17:27:00.275] } [17:27:00.275] } [17:27:00.275] frame <- frame + 1L [17:27:00.275] envir <- sys.frame(frame) [17:27:00.275] } [17:27:00.275] } [17:27:00.275] sendCondition <<- function(cond) NULL [17:27:00.275] } [17:27:00.275] }) [17:27:00.275] withCallingHandlers({ [17:27:00.275] { [17:27:00.275] x$a <- 1 [17:27:00.275] x [17:27:00.275] } [17:27:00.275] }, immediateCondition = function(cond) { [17:27:00.275] sendCondition <- ...future.makeSendCondition() [17:27:00.275] sendCondition(cond) [17:27:00.275] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.275] { [17:27:00.275] inherits <- base::inherits [17:27:00.275] invokeRestart <- base::invokeRestart [17:27:00.275] is.null <- base::is.null [17:27:00.275] muffled <- FALSE [17:27:00.275] if (inherits(cond, "message")) { [17:27:00.275] muffled <- grepl(pattern, "muffleMessage") [17:27:00.275] if (muffled) [17:27:00.275] invokeRestart("muffleMessage") [17:27:00.275] } [17:27:00.275] else if (inherits(cond, "warning")) { [17:27:00.275] muffled <- grepl(pattern, "muffleWarning") [17:27:00.275] if (muffled) [17:27:00.275] invokeRestart("muffleWarning") [17:27:00.275] } [17:27:00.275] else if (inherits(cond, "condition")) { [17:27:00.275] if (!is.null(pattern)) { [17:27:00.275] computeRestarts <- base::computeRestarts [17:27:00.275] grepl <- base::grepl [17:27:00.275] restarts <- computeRestarts(cond) [17:27:00.275] for (restart in restarts) { [17:27:00.275] name <- restart$name [17:27:00.275] if (is.null(name)) [17:27:00.275] next [17:27:00.275] if (!grepl(pattern, name)) [17:27:00.275] next [17:27:00.275] invokeRestart(restart) [17:27:00.275] muffled <- TRUE [17:27:00.275] break [17:27:00.275] } [17:27:00.275] } [17:27:00.275] } [17:27:00.275] invisible(muffled) [17:27:00.275] } [17:27:00.275] muffleCondition(cond) [17:27:00.275] }) [17:27:00.275] })) [17:27:00.275] future::FutureResult(value = ...future.value$value, [17:27:00.275] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.275] ...future.rng), globalenv = if (FALSE) [17:27:00.275] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.275] ...future.globalenv.names)) [17:27:00.275] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.275] }, condition = base::local({ [17:27:00.275] c <- base::c [17:27:00.275] inherits <- base::inherits [17:27:00.275] invokeRestart <- base::invokeRestart [17:27:00.275] length <- base::length [17:27:00.275] list <- base::list [17:27:00.275] seq.int <- base::seq.int [17:27:00.275] signalCondition <- base::signalCondition [17:27:00.275] sys.calls <- base::sys.calls [17:27:00.275] `[[` <- base::`[[` [17:27:00.275] `+` <- base::`+` [17:27:00.275] `<<-` <- base::`<<-` [17:27:00.275] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.275] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.275] 3L)] [17:27:00.275] } [17:27:00.275] function(cond) { [17:27:00.275] is_error <- inherits(cond, "error") [17:27:00.275] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.275] NULL) [17:27:00.275] if (is_error) { [17:27:00.275] sessionInformation <- function() { [17:27:00.275] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.275] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.275] search = base::search(), system = base::Sys.info()) [17:27:00.275] } [17:27:00.275] ...future.conditions[[length(...future.conditions) + [17:27:00.275] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.275] cond$call), session = sessionInformation(), [17:27:00.275] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.275] signalCondition(cond) [17:27:00.275] } [17:27:00.275] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.275] "immediateCondition"))) { [17:27:00.275] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.275] ...future.conditions[[length(...future.conditions) + [17:27:00.275] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.275] if (TRUE && !signal) { [17:27:00.275] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.275] { [17:27:00.275] inherits <- base::inherits [17:27:00.275] invokeRestart <- base::invokeRestart [17:27:00.275] is.null <- base::is.null [17:27:00.275] muffled <- FALSE [17:27:00.275] if (inherits(cond, "message")) { [17:27:00.275] muffled <- grepl(pattern, "muffleMessage") [17:27:00.275] if (muffled) [17:27:00.275] invokeRestart("muffleMessage") [17:27:00.275] } [17:27:00.275] else if (inherits(cond, "warning")) { [17:27:00.275] muffled <- grepl(pattern, "muffleWarning") [17:27:00.275] if (muffled) [17:27:00.275] invokeRestart("muffleWarning") [17:27:00.275] } [17:27:00.275] else if (inherits(cond, "condition")) { [17:27:00.275] if (!is.null(pattern)) { [17:27:00.275] computeRestarts <- base::computeRestarts [17:27:00.275] grepl <- base::grepl [17:27:00.275] restarts <- computeRestarts(cond) [17:27:00.275] for (restart in restarts) { [17:27:00.275] name <- restart$name [17:27:00.275] if (is.null(name)) [17:27:00.275] next [17:27:00.275] if (!grepl(pattern, name)) [17:27:00.275] next [17:27:00.275] invokeRestart(restart) [17:27:00.275] muffled <- TRUE [17:27:00.275] break [17:27:00.275] } [17:27:00.275] } [17:27:00.275] } [17:27:00.275] invisible(muffled) [17:27:00.275] } [17:27:00.275] muffleCondition(cond, pattern = "^muffle") [17:27:00.275] } [17:27:00.275] } [17:27:00.275] else { [17:27:00.275] if (TRUE) { [17:27:00.275] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.275] { [17:27:00.275] inherits <- base::inherits [17:27:00.275] invokeRestart <- base::invokeRestart [17:27:00.275] is.null <- base::is.null [17:27:00.275] muffled <- FALSE [17:27:00.275] if (inherits(cond, "message")) { [17:27:00.275] muffled <- grepl(pattern, "muffleMessage") [17:27:00.275] if (muffled) [17:27:00.275] invokeRestart("muffleMessage") [17:27:00.275] } [17:27:00.275] else if (inherits(cond, "warning")) { [17:27:00.275] muffled <- grepl(pattern, "muffleWarning") [17:27:00.275] if (muffled) [17:27:00.275] invokeRestart("muffleWarning") [17:27:00.275] } [17:27:00.275] else if (inherits(cond, "condition")) { [17:27:00.275] if (!is.null(pattern)) { [17:27:00.275] computeRestarts <- base::computeRestarts [17:27:00.275] grepl <- base::grepl [17:27:00.275] restarts <- computeRestarts(cond) [17:27:00.275] for (restart in restarts) { [17:27:00.275] name <- restart$name [17:27:00.275] if (is.null(name)) [17:27:00.275] next [17:27:00.275] if (!grepl(pattern, name)) [17:27:00.275] next [17:27:00.275] invokeRestart(restart) [17:27:00.275] muffled <- TRUE [17:27:00.275] break [17:27:00.275] } [17:27:00.275] } [17:27:00.275] } [17:27:00.275] invisible(muffled) [17:27:00.275] } [17:27:00.275] muffleCondition(cond, pattern = "^muffle") [17:27:00.275] } [17:27:00.275] } [17:27:00.275] } [17:27:00.275] })) [17:27:00.275] }, error = function(ex) { [17:27:00.275] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.275] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.275] ...future.rng), started = ...future.startTime, [17:27:00.275] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.275] version = "1.8"), class = "FutureResult") [17:27:00.275] }, finally = { [17:27:00.275] if (!identical(...future.workdir, getwd())) [17:27:00.275] setwd(...future.workdir) [17:27:00.275] { [17:27:00.275] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.275] ...future.oldOptions$nwarnings <- NULL [17:27:00.275] } [17:27:00.275] base::options(...future.oldOptions) [17:27:00.275] if (.Platform$OS.type == "windows") { [17:27:00.275] old_names <- names(...future.oldEnvVars) [17:27:00.275] envs <- base::Sys.getenv() [17:27:00.275] names <- names(envs) [17:27:00.275] common <- intersect(names, old_names) [17:27:00.275] added <- setdiff(names, old_names) [17:27:00.275] removed <- setdiff(old_names, names) [17:27:00.275] changed <- common[...future.oldEnvVars[common] != [17:27:00.275] envs[common]] [17:27:00.275] NAMES <- toupper(changed) [17:27:00.275] args <- list() [17:27:00.275] for (kk in seq_along(NAMES)) { [17:27:00.275] name <- changed[[kk]] [17:27:00.275] NAME <- NAMES[[kk]] [17:27:00.275] if (name != NAME && is.element(NAME, old_names)) [17:27:00.275] next [17:27:00.275] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.275] } [17:27:00.275] NAMES <- toupper(added) [17:27:00.275] for (kk in seq_along(NAMES)) { [17:27:00.275] name <- added[[kk]] [17:27:00.275] NAME <- NAMES[[kk]] [17:27:00.275] if (name != NAME && is.element(NAME, old_names)) [17:27:00.275] next [17:27:00.275] args[[name]] <- "" [17:27:00.275] } [17:27:00.275] NAMES <- toupper(removed) [17:27:00.275] for (kk in seq_along(NAMES)) { [17:27:00.275] name <- removed[[kk]] [17:27:00.275] NAME <- NAMES[[kk]] [17:27:00.275] if (name != NAME && is.element(NAME, old_names)) [17:27:00.275] next [17:27:00.275] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.275] } [17:27:00.275] if (length(args) > 0) [17:27:00.275] base::do.call(base::Sys.setenv, args = args) [17:27:00.275] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.275] } [17:27:00.275] else { [17:27:00.275] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.275] } [17:27:00.275] { [17:27:00.275] if (base::length(...future.futureOptionsAdded) > [17:27:00.275] 0L) { [17:27:00.275] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.275] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.275] base::options(opts) [17:27:00.275] } [17:27:00.275] { [17:27:00.275] { [17:27:00.275] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.275] NULL [17:27:00.275] } [17:27:00.275] options(future.plan = NULL) [17:27:00.275] if (is.na(NA_character_)) [17:27:00.275] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.275] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.275] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.275] .init = FALSE) [17:27:00.275] } [17:27:00.275] } [17:27:00.275] } [17:27:00.275] }) [17:27:00.275] if (TRUE) { [17:27:00.275] base::sink(type = "output", split = FALSE) [17:27:00.275] if (TRUE) { [17:27:00.275] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.275] } [17:27:00.275] else { [17:27:00.275] ...future.result["stdout"] <- base::list(NULL) [17:27:00.275] } [17:27:00.275] base::close(...future.stdout) [17:27:00.275] ...future.stdout <- NULL [17:27:00.275] } [17:27:00.275] ...future.result$conditions <- ...future.conditions [17:27:00.275] ...future.result$finished <- base::Sys.time() [17:27:00.275] ...future.result [17:27:00.275] } [17:27:00.280] Exporting 1 global objects (0 bytes) to cluster node #1 ... [17:27:00.280] Exporting 'x' (0 bytes) to cluster node #1 ... [17:27:00.281] Exporting 'x' (0 bytes) to cluster node #1 ... DONE [17:27:00.281] Exporting 1 global objects (0 bytes) to cluster node #1 ... DONE [17:27:00.282] MultisessionFuture started [17:27:00.282] - Launch lazy future ... done [17:27:00.282] run() for 'MultisessionFuture' ... done [17:27:00.282] result() for ClusterFuture ... [17:27:00.283] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.283] - Validating connection of MultisessionFuture [17:27:00.297] - received message: FutureResult [17:27:00.297] - Received FutureResult [17:27:00.297] - Erased future from FutureRegistry [17:27:00.297] result() for ClusterFuture ... [17:27:00.297] - result already collected: FutureResult [17:27:00.298] result() for ClusterFuture ... done [17:27:00.298] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.298] result() for ClusterFuture ... done [17:27:00.298] result() for ClusterFuture ... [17:27:00.298] - result already collected: FutureResult [17:27:00.299] result() for ClusterFuture ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:27:00.299] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:27:00.299] Searching for globals... [17:27:00.302] - globals found: [5] '{', 'x', '<-', '$', '$<-' [17:27:00.302] Searching for globals ... DONE [17:27:00.303] Resolving globals: TRUE [17:27:00.303] Resolving any globals that are futures ... [17:27:00.303] - globals: [5] '{', 'x', '<-', '$', '$<-' [17:27:00.303] Resolving any globals that are futures ... DONE [17:27:00.304] Resolving futures part of globals (recursively) ... [17:27:00.304] resolve() on list ... [17:27:00.304] recursive: 99 [17:27:00.304] length: 1 [17:27:00.305] elements: 'x' [17:27:00.305] length: 0 (resolved future 1) [17:27:00.305] resolve() on list ... DONE [17:27:00.305] - globals: [1] 'x' [17:27:00.305] Resolving futures part of globals (recursively) ... DONE [17:27:00.306] The total size of the 1 globals is 0 bytes (0 bytes) [17:27:00.306] The total size of the 1 globals exported for future expression ('{; x$a <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:27:00.306] - globals: [1] 'x' [17:27:00.307] [17:27:00.307] getGlobalsAndPackages() ... DONE [17:27:00.307] run() for 'Future' ... [17:27:00.307] - state: 'created' [17:27:00.308] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:00.322] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:00.322] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:00.322] - Field: 'node' [17:27:00.322] - Field: 'label' [17:27:00.323] - Field: 'local' [17:27:00.323] - Field: 'owner' [17:27:00.323] - Field: 'envir' [17:27:00.323] - Field: 'workers' [17:27:00.323] - Field: 'packages' [17:27:00.324] - Field: 'gc' [17:27:00.324] - Field: 'conditions' [17:27:00.324] - Field: 'persistent' [17:27:00.324] - Field: 'expr' [17:27:00.324] - Field: 'uuid' [17:27:00.324] - Field: 'seed' [17:27:00.325] - Field: 'version' [17:27:00.325] - Field: 'result' [17:27:00.325] - Field: 'asynchronous' [17:27:00.325] - Field: 'calls' [17:27:00.326] - Field: 'globals' [17:27:00.326] - Field: 'stdout' [17:27:00.326] - Field: 'earlySignal' [17:27:00.326] - Field: 'lazy' [17:27:00.326] - Field: 'state' [17:27:00.327] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:00.327] - Launch lazy future ... [17:27:00.327] Packages needed by the future expression (n = 0): [17:27:00.327] Packages needed by future strategies (n = 0): [17:27:00.328] { [17:27:00.328] { [17:27:00.328] { [17:27:00.328] ...future.startTime <- base::Sys.time() [17:27:00.328] { [17:27:00.328] { [17:27:00.328] { [17:27:00.328] { [17:27:00.328] base::local({ [17:27:00.328] has_future <- base::requireNamespace("future", [17:27:00.328] quietly = TRUE) [17:27:00.328] if (has_future) { [17:27:00.328] ns <- base::getNamespace("future") [17:27:00.328] version <- ns[[".package"]][["version"]] [17:27:00.328] if (is.null(version)) [17:27:00.328] version <- utils::packageVersion("future") [17:27:00.328] } [17:27:00.328] else { [17:27:00.328] version <- NULL [17:27:00.328] } [17:27:00.328] if (!has_future || version < "1.8.0") { [17:27:00.328] info <- base::c(r_version = base::gsub("R version ", [17:27:00.328] "", base::R.version$version.string), [17:27:00.328] platform = base::sprintf("%s (%s-bit)", [17:27:00.328] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.328] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.328] "release", "version")], collapse = " "), [17:27:00.328] hostname = base::Sys.info()[["nodename"]]) [17:27:00.328] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.328] info) [17:27:00.328] info <- base::paste(info, collapse = "; ") [17:27:00.328] if (!has_future) { [17:27:00.328] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.328] info) [17:27:00.328] } [17:27:00.328] else { [17:27:00.328] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.328] info, version) [17:27:00.328] } [17:27:00.328] base::stop(msg) [17:27:00.328] } [17:27:00.328] }) [17:27:00.328] } [17:27:00.328] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.328] base::options(mc.cores = 1L) [17:27:00.328] } [17:27:00.328] ...future.strategy.old <- future::plan("list") [17:27:00.328] options(future.plan = NULL) [17:27:00.328] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.328] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.328] } [17:27:00.328] ...future.workdir <- getwd() [17:27:00.328] } [17:27:00.328] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.328] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.328] } [17:27:00.328] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.328] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.328] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.328] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.328] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.328] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.328] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.328] base::names(...future.oldOptions)) [17:27:00.328] } [17:27:00.328] if (FALSE) { [17:27:00.328] } [17:27:00.328] else { [17:27:00.328] if (TRUE) { [17:27:00.328] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.328] open = "w") [17:27:00.328] } [17:27:00.328] else { [17:27:00.328] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.328] windows = "NUL", "/dev/null"), open = "w") [17:27:00.328] } [17:27:00.328] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.328] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.328] base::sink(type = "output", split = FALSE) [17:27:00.328] base::close(...future.stdout) [17:27:00.328] }, add = TRUE) [17:27:00.328] } [17:27:00.328] ...future.frame <- base::sys.nframe() [17:27:00.328] ...future.conditions <- base::list() [17:27:00.328] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.328] if (FALSE) { [17:27:00.328] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.328] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.328] } [17:27:00.328] ...future.result <- base::tryCatch({ [17:27:00.328] base::withCallingHandlers({ [17:27:00.328] ...future.value <- base::withVisible(base::local({ [17:27:00.328] ...future.makeSendCondition <- base::local({ [17:27:00.328] sendCondition <- NULL [17:27:00.328] function(frame = 1L) { [17:27:00.328] if (is.function(sendCondition)) [17:27:00.328] return(sendCondition) [17:27:00.328] ns <- getNamespace("parallel") [17:27:00.328] if (exists("sendData", mode = "function", [17:27:00.328] envir = ns)) { [17:27:00.328] parallel_sendData <- get("sendData", mode = "function", [17:27:00.328] envir = ns) [17:27:00.328] envir <- sys.frame(frame) [17:27:00.328] master <- NULL [17:27:00.328] while (!identical(envir, .GlobalEnv) && [17:27:00.328] !identical(envir, emptyenv())) { [17:27:00.328] if (exists("master", mode = "list", envir = envir, [17:27:00.328] inherits = FALSE)) { [17:27:00.328] master <- get("master", mode = "list", [17:27:00.328] envir = envir, inherits = FALSE) [17:27:00.328] if (inherits(master, c("SOCKnode", [17:27:00.328] "SOCK0node"))) { [17:27:00.328] sendCondition <<- function(cond) { [17:27:00.328] data <- list(type = "VALUE", value = cond, [17:27:00.328] success = TRUE) [17:27:00.328] parallel_sendData(master, data) [17:27:00.328] } [17:27:00.328] return(sendCondition) [17:27:00.328] } [17:27:00.328] } [17:27:00.328] frame <- frame + 1L [17:27:00.328] envir <- sys.frame(frame) [17:27:00.328] } [17:27:00.328] } [17:27:00.328] sendCondition <<- function(cond) NULL [17:27:00.328] } [17:27:00.328] }) [17:27:00.328] withCallingHandlers({ [17:27:00.328] { [17:27:00.328] x$a <- 1 [17:27:00.328] x [17:27:00.328] } [17:27:00.328] }, immediateCondition = function(cond) { [17:27:00.328] sendCondition <- ...future.makeSendCondition() [17:27:00.328] sendCondition(cond) [17:27:00.328] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.328] { [17:27:00.328] inherits <- base::inherits [17:27:00.328] invokeRestart <- base::invokeRestart [17:27:00.328] is.null <- base::is.null [17:27:00.328] muffled <- FALSE [17:27:00.328] if (inherits(cond, "message")) { [17:27:00.328] muffled <- grepl(pattern, "muffleMessage") [17:27:00.328] if (muffled) [17:27:00.328] invokeRestart("muffleMessage") [17:27:00.328] } [17:27:00.328] else if (inherits(cond, "warning")) { [17:27:00.328] muffled <- grepl(pattern, "muffleWarning") [17:27:00.328] if (muffled) [17:27:00.328] invokeRestart("muffleWarning") [17:27:00.328] } [17:27:00.328] else if (inherits(cond, "condition")) { [17:27:00.328] if (!is.null(pattern)) { [17:27:00.328] computeRestarts <- base::computeRestarts [17:27:00.328] grepl <- base::grepl [17:27:00.328] restarts <- computeRestarts(cond) [17:27:00.328] for (restart in restarts) { [17:27:00.328] name <- restart$name [17:27:00.328] if (is.null(name)) [17:27:00.328] next [17:27:00.328] if (!grepl(pattern, name)) [17:27:00.328] next [17:27:00.328] invokeRestart(restart) [17:27:00.328] muffled <- TRUE [17:27:00.328] break [17:27:00.328] } [17:27:00.328] } [17:27:00.328] } [17:27:00.328] invisible(muffled) [17:27:00.328] } [17:27:00.328] muffleCondition(cond) [17:27:00.328] }) [17:27:00.328] })) [17:27:00.328] future::FutureResult(value = ...future.value$value, [17:27:00.328] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.328] ...future.rng), globalenv = if (FALSE) [17:27:00.328] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.328] ...future.globalenv.names)) [17:27:00.328] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.328] }, condition = base::local({ [17:27:00.328] c <- base::c [17:27:00.328] inherits <- base::inherits [17:27:00.328] invokeRestart <- base::invokeRestart [17:27:00.328] length <- base::length [17:27:00.328] list <- base::list [17:27:00.328] seq.int <- base::seq.int [17:27:00.328] signalCondition <- base::signalCondition [17:27:00.328] sys.calls <- base::sys.calls [17:27:00.328] `[[` <- base::`[[` [17:27:00.328] `+` <- base::`+` [17:27:00.328] `<<-` <- base::`<<-` [17:27:00.328] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.328] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.328] 3L)] [17:27:00.328] } [17:27:00.328] function(cond) { [17:27:00.328] is_error <- inherits(cond, "error") [17:27:00.328] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.328] NULL) [17:27:00.328] if (is_error) { [17:27:00.328] sessionInformation <- function() { [17:27:00.328] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.328] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.328] search = base::search(), system = base::Sys.info()) [17:27:00.328] } [17:27:00.328] ...future.conditions[[length(...future.conditions) + [17:27:00.328] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.328] cond$call), session = sessionInformation(), [17:27:00.328] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.328] signalCondition(cond) [17:27:00.328] } [17:27:00.328] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.328] "immediateCondition"))) { [17:27:00.328] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.328] ...future.conditions[[length(...future.conditions) + [17:27:00.328] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.328] if (TRUE && !signal) { [17:27:00.328] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.328] { [17:27:00.328] inherits <- base::inherits [17:27:00.328] invokeRestart <- base::invokeRestart [17:27:00.328] is.null <- base::is.null [17:27:00.328] muffled <- FALSE [17:27:00.328] if (inherits(cond, "message")) { [17:27:00.328] muffled <- grepl(pattern, "muffleMessage") [17:27:00.328] if (muffled) [17:27:00.328] invokeRestart("muffleMessage") [17:27:00.328] } [17:27:00.328] else if (inherits(cond, "warning")) { [17:27:00.328] muffled <- grepl(pattern, "muffleWarning") [17:27:00.328] if (muffled) [17:27:00.328] invokeRestart("muffleWarning") [17:27:00.328] } [17:27:00.328] else if (inherits(cond, "condition")) { [17:27:00.328] if (!is.null(pattern)) { [17:27:00.328] computeRestarts <- base::computeRestarts [17:27:00.328] grepl <- base::grepl [17:27:00.328] restarts <- computeRestarts(cond) [17:27:00.328] for (restart in restarts) { [17:27:00.328] name <- restart$name [17:27:00.328] if (is.null(name)) [17:27:00.328] next [17:27:00.328] if (!grepl(pattern, name)) [17:27:00.328] next [17:27:00.328] invokeRestart(restart) [17:27:00.328] muffled <- TRUE [17:27:00.328] break [17:27:00.328] } [17:27:00.328] } [17:27:00.328] } [17:27:00.328] invisible(muffled) [17:27:00.328] } [17:27:00.328] muffleCondition(cond, pattern = "^muffle") [17:27:00.328] } [17:27:00.328] } [17:27:00.328] else { [17:27:00.328] if (TRUE) { [17:27:00.328] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.328] { [17:27:00.328] inherits <- base::inherits [17:27:00.328] invokeRestart <- base::invokeRestart [17:27:00.328] is.null <- base::is.null [17:27:00.328] muffled <- FALSE [17:27:00.328] if (inherits(cond, "message")) { [17:27:00.328] muffled <- grepl(pattern, "muffleMessage") [17:27:00.328] if (muffled) [17:27:00.328] invokeRestart("muffleMessage") [17:27:00.328] } [17:27:00.328] else if (inherits(cond, "warning")) { [17:27:00.328] muffled <- grepl(pattern, "muffleWarning") [17:27:00.328] if (muffled) [17:27:00.328] invokeRestart("muffleWarning") [17:27:00.328] } [17:27:00.328] else if (inherits(cond, "condition")) { [17:27:00.328] if (!is.null(pattern)) { [17:27:00.328] computeRestarts <- base::computeRestarts [17:27:00.328] grepl <- base::grepl [17:27:00.328] restarts <- computeRestarts(cond) [17:27:00.328] for (restart in restarts) { [17:27:00.328] name <- restart$name [17:27:00.328] if (is.null(name)) [17:27:00.328] next [17:27:00.328] if (!grepl(pattern, name)) [17:27:00.328] next [17:27:00.328] invokeRestart(restart) [17:27:00.328] muffled <- TRUE [17:27:00.328] break [17:27:00.328] } [17:27:00.328] } [17:27:00.328] } [17:27:00.328] invisible(muffled) [17:27:00.328] } [17:27:00.328] muffleCondition(cond, pattern = "^muffle") [17:27:00.328] } [17:27:00.328] } [17:27:00.328] } [17:27:00.328] })) [17:27:00.328] }, error = function(ex) { [17:27:00.328] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.328] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.328] ...future.rng), started = ...future.startTime, [17:27:00.328] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.328] version = "1.8"), class = "FutureResult") [17:27:00.328] }, finally = { [17:27:00.328] if (!identical(...future.workdir, getwd())) [17:27:00.328] setwd(...future.workdir) [17:27:00.328] { [17:27:00.328] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.328] ...future.oldOptions$nwarnings <- NULL [17:27:00.328] } [17:27:00.328] base::options(...future.oldOptions) [17:27:00.328] if (.Platform$OS.type == "windows") { [17:27:00.328] old_names <- names(...future.oldEnvVars) [17:27:00.328] envs <- base::Sys.getenv() [17:27:00.328] names <- names(envs) [17:27:00.328] common <- intersect(names, old_names) [17:27:00.328] added <- setdiff(names, old_names) [17:27:00.328] removed <- setdiff(old_names, names) [17:27:00.328] changed <- common[...future.oldEnvVars[common] != [17:27:00.328] envs[common]] [17:27:00.328] NAMES <- toupper(changed) [17:27:00.328] args <- list() [17:27:00.328] for (kk in seq_along(NAMES)) { [17:27:00.328] name <- changed[[kk]] [17:27:00.328] NAME <- NAMES[[kk]] [17:27:00.328] if (name != NAME && is.element(NAME, old_names)) [17:27:00.328] next [17:27:00.328] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.328] } [17:27:00.328] NAMES <- toupper(added) [17:27:00.328] for (kk in seq_along(NAMES)) { [17:27:00.328] name <- added[[kk]] [17:27:00.328] NAME <- NAMES[[kk]] [17:27:00.328] if (name != NAME && is.element(NAME, old_names)) [17:27:00.328] next [17:27:00.328] args[[name]] <- "" [17:27:00.328] } [17:27:00.328] NAMES <- toupper(removed) [17:27:00.328] for (kk in seq_along(NAMES)) { [17:27:00.328] name <- removed[[kk]] [17:27:00.328] NAME <- NAMES[[kk]] [17:27:00.328] if (name != NAME && is.element(NAME, old_names)) [17:27:00.328] next [17:27:00.328] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.328] } [17:27:00.328] if (length(args) > 0) [17:27:00.328] base::do.call(base::Sys.setenv, args = args) [17:27:00.328] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.328] } [17:27:00.328] else { [17:27:00.328] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.328] } [17:27:00.328] { [17:27:00.328] if (base::length(...future.futureOptionsAdded) > [17:27:00.328] 0L) { [17:27:00.328] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.328] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.328] base::options(opts) [17:27:00.328] } [17:27:00.328] { [17:27:00.328] { [17:27:00.328] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.328] NULL [17:27:00.328] } [17:27:00.328] options(future.plan = NULL) [17:27:00.328] if (is.na(NA_character_)) [17:27:00.328] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.328] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.328] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.328] .init = FALSE) [17:27:00.328] } [17:27:00.328] } [17:27:00.328] } [17:27:00.328] }) [17:27:00.328] if (TRUE) { [17:27:00.328] base::sink(type = "output", split = FALSE) [17:27:00.328] if (TRUE) { [17:27:00.328] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.328] } [17:27:00.328] else { [17:27:00.328] ...future.result["stdout"] <- base::list(NULL) [17:27:00.328] } [17:27:00.328] base::close(...future.stdout) [17:27:00.328] ...future.stdout <- NULL [17:27:00.328] } [17:27:00.328] ...future.result$conditions <- ...future.conditions [17:27:00.328] ...future.result$finished <- base::Sys.time() [17:27:00.328] ...future.result [17:27:00.328] } [17:27:00.333] Exporting 1 global objects (0 bytes) to cluster node #1 ... [17:27:00.334] Exporting 'x' (0 bytes) to cluster node #1 ... [17:27:00.334] Exporting 'x' (0 bytes) to cluster node #1 ... DONE [17:27:00.334] Exporting 1 global objects (0 bytes) to cluster node #1 ... DONE [17:27:00.335] MultisessionFuture started [17:27:00.335] - Launch lazy future ... done [17:27:00.335] run() for 'MultisessionFuture' ... done [17:27:00.336] result() for ClusterFuture ... [17:27:00.336] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.336] - Validating connection of MultisessionFuture [17:27:00.349] - received message: FutureResult [17:27:00.349] - Received FutureResult [17:27:00.349] - Erased future from FutureRegistry [17:27:00.349] result() for ClusterFuture ... [17:27:00.350] - result already collected: FutureResult [17:27:00.350] result() for ClusterFuture ... done [17:27:00.350] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.350] result() for ClusterFuture ... done [17:27:00.350] result() for ClusterFuture ... [17:27:00.350] - result already collected: FutureResult [17:27:00.351] result() for ClusterFuture ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:27:00.351] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:27:00.352] Searching for globals... [17:27:00.355] - globals found: [5] '{', 'x', '<-', '$', '$<-' [17:27:00.355] Searching for globals ... DONE [17:27:00.355] Resolving globals: TRUE [17:27:00.355] Resolving any globals that are futures ... [17:27:00.355] - globals: [5] '{', 'x', '<-', '$', '$<-' [17:27:00.356] Resolving any globals that are futures ... DONE [17:27:00.356] Resolving futures part of globals (recursively) ... [17:27:00.357] resolve() on list ... [17:27:00.357] recursive: 99 [17:27:00.357] length: 1 [17:27:00.357] elements: 'x' [17:27:00.357] length: 0 (resolved future 1) [17:27:00.358] resolve() on list ... DONE [17:27:00.358] - globals: [1] 'x' [17:27:00.358] Resolving futures part of globals (recursively) ... DONE [17:27:00.358] The total size of the 1 globals is 0 bytes (0 bytes) [17:27:00.359] The total size of the 1 globals exported for future expression ('{; x$a <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:27:00.359] - globals: [1] 'x' [17:27:00.359] [17:27:00.359] getGlobalsAndPackages() ... DONE [17:27:00.360] run() for 'Future' ... [17:27:00.360] - state: 'created' [17:27:00.360] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:00.376] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:00.376] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:00.376] - Field: 'node' [17:27:00.376] - Field: 'label' [17:27:00.377] - Field: 'local' [17:27:00.377] - Field: 'owner' [17:27:00.377] - Field: 'envir' [17:27:00.377] - Field: 'workers' [17:27:00.377] - Field: 'packages' [17:27:00.377] - Field: 'gc' [17:27:00.378] - Field: 'conditions' [17:27:00.378] - Field: 'persistent' [17:27:00.378] - Field: 'expr' [17:27:00.378] - Field: 'uuid' [17:27:00.378] - Field: 'seed' [17:27:00.379] - Field: 'version' [17:27:00.379] - Field: 'result' [17:27:00.379] - Field: 'asynchronous' [17:27:00.379] - Field: 'calls' [17:27:00.379] - Field: 'globals' [17:27:00.380] - Field: 'stdout' [17:27:00.380] - Field: 'earlySignal' [17:27:00.380] - Field: 'lazy' [17:27:00.380] - Field: 'state' [17:27:00.380] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:00.380] - Launch lazy future ... [17:27:00.381] Packages needed by the future expression (n = 0): [17:27:00.381] Packages needed by future strategies (n = 0): [17:27:00.381] { [17:27:00.381] { [17:27:00.381] { [17:27:00.381] ...future.startTime <- base::Sys.time() [17:27:00.381] { [17:27:00.381] { [17:27:00.381] { [17:27:00.381] { [17:27:00.381] base::local({ [17:27:00.381] has_future <- base::requireNamespace("future", [17:27:00.381] quietly = TRUE) [17:27:00.381] if (has_future) { [17:27:00.381] ns <- base::getNamespace("future") [17:27:00.381] version <- ns[[".package"]][["version"]] [17:27:00.381] if (is.null(version)) [17:27:00.381] version <- utils::packageVersion("future") [17:27:00.381] } [17:27:00.381] else { [17:27:00.381] version <- NULL [17:27:00.381] } [17:27:00.381] if (!has_future || version < "1.8.0") { [17:27:00.381] info <- base::c(r_version = base::gsub("R version ", [17:27:00.381] "", base::R.version$version.string), [17:27:00.381] platform = base::sprintf("%s (%s-bit)", [17:27:00.381] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.381] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.381] "release", "version")], collapse = " "), [17:27:00.381] hostname = base::Sys.info()[["nodename"]]) [17:27:00.381] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.381] info) [17:27:00.381] info <- base::paste(info, collapse = "; ") [17:27:00.381] if (!has_future) { [17:27:00.381] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.381] info) [17:27:00.381] } [17:27:00.381] else { [17:27:00.381] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.381] info, version) [17:27:00.381] } [17:27:00.381] base::stop(msg) [17:27:00.381] } [17:27:00.381] }) [17:27:00.381] } [17:27:00.381] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.381] base::options(mc.cores = 1L) [17:27:00.381] } [17:27:00.381] ...future.strategy.old <- future::plan("list") [17:27:00.381] options(future.plan = NULL) [17:27:00.381] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.381] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.381] } [17:27:00.381] ...future.workdir <- getwd() [17:27:00.381] } [17:27:00.381] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.381] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.381] } [17:27:00.381] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.381] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.381] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.381] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.381] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.381] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.381] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.381] base::names(...future.oldOptions)) [17:27:00.381] } [17:27:00.381] if (FALSE) { [17:27:00.381] } [17:27:00.381] else { [17:27:00.381] if (TRUE) { [17:27:00.381] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.381] open = "w") [17:27:00.381] } [17:27:00.381] else { [17:27:00.381] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.381] windows = "NUL", "/dev/null"), open = "w") [17:27:00.381] } [17:27:00.381] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.381] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.381] base::sink(type = "output", split = FALSE) [17:27:00.381] base::close(...future.stdout) [17:27:00.381] }, add = TRUE) [17:27:00.381] } [17:27:00.381] ...future.frame <- base::sys.nframe() [17:27:00.381] ...future.conditions <- base::list() [17:27:00.381] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.381] if (FALSE) { [17:27:00.381] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.381] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.381] } [17:27:00.381] ...future.result <- base::tryCatch({ [17:27:00.381] base::withCallingHandlers({ [17:27:00.381] ...future.value <- base::withVisible(base::local({ [17:27:00.381] ...future.makeSendCondition <- base::local({ [17:27:00.381] sendCondition <- NULL [17:27:00.381] function(frame = 1L) { [17:27:00.381] if (is.function(sendCondition)) [17:27:00.381] return(sendCondition) [17:27:00.381] ns <- getNamespace("parallel") [17:27:00.381] if (exists("sendData", mode = "function", [17:27:00.381] envir = ns)) { [17:27:00.381] parallel_sendData <- get("sendData", mode = "function", [17:27:00.381] envir = ns) [17:27:00.381] envir <- sys.frame(frame) [17:27:00.381] master <- NULL [17:27:00.381] while (!identical(envir, .GlobalEnv) && [17:27:00.381] !identical(envir, emptyenv())) { [17:27:00.381] if (exists("master", mode = "list", envir = envir, [17:27:00.381] inherits = FALSE)) { [17:27:00.381] master <- get("master", mode = "list", [17:27:00.381] envir = envir, inherits = FALSE) [17:27:00.381] if (inherits(master, c("SOCKnode", [17:27:00.381] "SOCK0node"))) { [17:27:00.381] sendCondition <<- function(cond) { [17:27:00.381] data <- list(type = "VALUE", value = cond, [17:27:00.381] success = TRUE) [17:27:00.381] parallel_sendData(master, data) [17:27:00.381] } [17:27:00.381] return(sendCondition) [17:27:00.381] } [17:27:00.381] } [17:27:00.381] frame <- frame + 1L [17:27:00.381] envir <- sys.frame(frame) [17:27:00.381] } [17:27:00.381] } [17:27:00.381] sendCondition <<- function(cond) NULL [17:27:00.381] } [17:27:00.381] }) [17:27:00.381] withCallingHandlers({ [17:27:00.381] { [17:27:00.381] x$a <- 1 [17:27:00.381] x [17:27:00.381] } [17:27:00.381] }, immediateCondition = function(cond) { [17:27:00.381] sendCondition <- ...future.makeSendCondition() [17:27:00.381] sendCondition(cond) [17:27:00.381] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.381] { [17:27:00.381] inherits <- base::inherits [17:27:00.381] invokeRestart <- base::invokeRestart [17:27:00.381] is.null <- base::is.null [17:27:00.381] muffled <- FALSE [17:27:00.381] if (inherits(cond, "message")) { [17:27:00.381] muffled <- grepl(pattern, "muffleMessage") [17:27:00.381] if (muffled) [17:27:00.381] invokeRestart("muffleMessage") [17:27:00.381] } [17:27:00.381] else if (inherits(cond, "warning")) { [17:27:00.381] muffled <- grepl(pattern, "muffleWarning") [17:27:00.381] if (muffled) [17:27:00.381] invokeRestart("muffleWarning") [17:27:00.381] } [17:27:00.381] else if (inherits(cond, "condition")) { [17:27:00.381] if (!is.null(pattern)) { [17:27:00.381] computeRestarts <- base::computeRestarts [17:27:00.381] grepl <- base::grepl [17:27:00.381] restarts <- computeRestarts(cond) [17:27:00.381] for (restart in restarts) { [17:27:00.381] name <- restart$name [17:27:00.381] if (is.null(name)) [17:27:00.381] next [17:27:00.381] if (!grepl(pattern, name)) [17:27:00.381] next [17:27:00.381] invokeRestart(restart) [17:27:00.381] muffled <- TRUE [17:27:00.381] break [17:27:00.381] } [17:27:00.381] } [17:27:00.381] } [17:27:00.381] invisible(muffled) [17:27:00.381] } [17:27:00.381] muffleCondition(cond) [17:27:00.381] }) [17:27:00.381] })) [17:27:00.381] future::FutureResult(value = ...future.value$value, [17:27:00.381] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.381] ...future.rng), globalenv = if (FALSE) [17:27:00.381] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.381] ...future.globalenv.names)) [17:27:00.381] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.381] }, condition = base::local({ [17:27:00.381] c <- base::c [17:27:00.381] inherits <- base::inherits [17:27:00.381] invokeRestart <- base::invokeRestart [17:27:00.381] length <- base::length [17:27:00.381] list <- base::list [17:27:00.381] seq.int <- base::seq.int [17:27:00.381] signalCondition <- base::signalCondition [17:27:00.381] sys.calls <- base::sys.calls [17:27:00.381] `[[` <- base::`[[` [17:27:00.381] `+` <- base::`+` [17:27:00.381] `<<-` <- base::`<<-` [17:27:00.381] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.381] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.381] 3L)] [17:27:00.381] } [17:27:00.381] function(cond) { [17:27:00.381] is_error <- inherits(cond, "error") [17:27:00.381] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.381] NULL) [17:27:00.381] if (is_error) { [17:27:00.381] sessionInformation <- function() { [17:27:00.381] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.381] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.381] search = base::search(), system = base::Sys.info()) [17:27:00.381] } [17:27:00.381] ...future.conditions[[length(...future.conditions) + [17:27:00.381] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.381] cond$call), session = sessionInformation(), [17:27:00.381] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.381] signalCondition(cond) [17:27:00.381] } [17:27:00.381] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.381] "immediateCondition"))) { [17:27:00.381] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.381] ...future.conditions[[length(...future.conditions) + [17:27:00.381] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.381] if (TRUE && !signal) { [17:27:00.381] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.381] { [17:27:00.381] inherits <- base::inherits [17:27:00.381] invokeRestart <- base::invokeRestart [17:27:00.381] is.null <- base::is.null [17:27:00.381] muffled <- FALSE [17:27:00.381] if (inherits(cond, "message")) { [17:27:00.381] muffled <- grepl(pattern, "muffleMessage") [17:27:00.381] if (muffled) [17:27:00.381] invokeRestart("muffleMessage") [17:27:00.381] } [17:27:00.381] else if (inherits(cond, "warning")) { [17:27:00.381] muffled <- grepl(pattern, "muffleWarning") [17:27:00.381] if (muffled) [17:27:00.381] invokeRestart("muffleWarning") [17:27:00.381] } [17:27:00.381] else if (inherits(cond, "condition")) { [17:27:00.381] if (!is.null(pattern)) { [17:27:00.381] computeRestarts <- base::computeRestarts [17:27:00.381] grepl <- base::grepl [17:27:00.381] restarts <- computeRestarts(cond) [17:27:00.381] for (restart in restarts) { [17:27:00.381] name <- restart$name [17:27:00.381] if (is.null(name)) [17:27:00.381] next [17:27:00.381] if (!grepl(pattern, name)) [17:27:00.381] next [17:27:00.381] invokeRestart(restart) [17:27:00.381] muffled <- TRUE [17:27:00.381] break [17:27:00.381] } [17:27:00.381] } [17:27:00.381] } [17:27:00.381] invisible(muffled) [17:27:00.381] } [17:27:00.381] muffleCondition(cond, pattern = "^muffle") [17:27:00.381] } [17:27:00.381] } [17:27:00.381] else { [17:27:00.381] if (TRUE) { [17:27:00.381] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.381] { [17:27:00.381] inherits <- base::inherits [17:27:00.381] invokeRestart <- base::invokeRestart [17:27:00.381] is.null <- base::is.null [17:27:00.381] muffled <- FALSE [17:27:00.381] if (inherits(cond, "message")) { [17:27:00.381] muffled <- grepl(pattern, "muffleMessage") [17:27:00.381] if (muffled) [17:27:00.381] invokeRestart("muffleMessage") [17:27:00.381] } [17:27:00.381] else if (inherits(cond, "warning")) { [17:27:00.381] muffled <- grepl(pattern, "muffleWarning") [17:27:00.381] if (muffled) [17:27:00.381] invokeRestart("muffleWarning") [17:27:00.381] } [17:27:00.381] else if (inherits(cond, "condition")) { [17:27:00.381] if (!is.null(pattern)) { [17:27:00.381] computeRestarts <- base::computeRestarts [17:27:00.381] grepl <- base::grepl [17:27:00.381] restarts <- computeRestarts(cond) [17:27:00.381] for (restart in restarts) { [17:27:00.381] name <- restart$name [17:27:00.381] if (is.null(name)) [17:27:00.381] next [17:27:00.381] if (!grepl(pattern, name)) [17:27:00.381] next [17:27:00.381] invokeRestart(restart) [17:27:00.381] muffled <- TRUE [17:27:00.381] break [17:27:00.381] } [17:27:00.381] } [17:27:00.381] } [17:27:00.381] invisible(muffled) [17:27:00.381] } [17:27:00.381] muffleCondition(cond, pattern = "^muffle") [17:27:00.381] } [17:27:00.381] } [17:27:00.381] } [17:27:00.381] })) [17:27:00.381] }, error = function(ex) { [17:27:00.381] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.381] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.381] ...future.rng), started = ...future.startTime, [17:27:00.381] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.381] version = "1.8"), class = "FutureResult") [17:27:00.381] }, finally = { [17:27:00.381] if (!identical(...future.workdir, getwd())) [17:27:00.381] setwd(...future.workdir) [17:27:00.381] { [17:27:00.381] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.381] ...future.oldOptions$nwarnings <- NULL [17:27:00.381] } [17:27:00.381] base::options(...future.oldOptions) [17:27:00.381] if (.Platform$OS.type == "windows") { [17:27:00.381] old_names <- names(...future.oldEnvVars) [17:27:00.381] envs <- base::Sys.getenv() [17:27:00.381] names <- names(envs) [17:27:00.381] common <- intersect(names, old_names) [17:27:00.381] added <- setdiff(names, old_names) [17:27:00.381] removed <- setdiff(old_names, names) [17:27:00.381] changed <- common[...future.oldEnvVars[common] != [17:27:00.381] envs[common]] [17:27:00.381] NAMES <- toupper(changed) [17:27:00.381] args <- list() [17:27:00.381] for (kk in seq_along(NAMES)) { [17:27:00.381] name <- changed[[kk]] [17:27:00.381] NAME <- NAMES[[kk]] [17:27:00.381] if (name != NAME && is.element(NAME, old_names)) [17:27:00.381] next [17:27:00.381] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.381] } [17:27:00.381] NAMES <- toupper(added) [17:27:00.381] for (kk in seq_along(NAMES)) { [17:27:00.381] name <- added[[kk]] [17:27:00.381] NAME <- NAMES[[kk]] [17:27:00.381] if (name != NAME && is.element(NAME, old_names)) [17:27:00.381] next [17:27:00.381] args[[name]] <- "" [17:27:00.381] } [17:27:00.381] NAMES <- toupper(removed) [17:27:00.381] for (kk in seq_along(NAMES)) { [17:27:00.381] name <- removed[[kk]] [17:27:00.381] NAME <- NAMES[[kk]] [17:27:00.381] if (name != NAME && is.element(NAME, old_names)) [17:27:00.381] next [17:27:00.381] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.381] } [17:27:00.381] if (length(args) > 0) [17:27:00.381] base::do.call(base::Sys.setenv, args = args) [17:27:00.381] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.381] } [17:27:00.381] else { [17:27:00.381] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.381] } [17:27:00.381] { [17:27:00.381] if (base::length(...future.futureOptionsAdded) > [17:27:00.381] 0L) { [17:27:00.381] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.381] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.381] base::options(opts) [17:27:00.381] } [17:27:00.381] { [17:27:00.381] { [17:27:00.381] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.381] NULL [17:27:00.381] } [17:27:00.381] options(future.plan = NULL) [17:27:00.381] if (is.na(NA_character_)) [17:27:00.381] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.381] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.381] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.381] .init = FALSE) [17:27:00.381] } [17:27:00.381] } [17:27:00.381] } [17:27:00.381] }) [17:27:00.381] if (TRUE) { [17:27:00.381] base::sink(type = "output", split = FALSE) [17:27:00.381] if (TRUE) { [17:27:00.381] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.381] } [17:27:00.381] else { [17:27:00.381] ...future.result["stdout"] <- base::list(NULL) [17:27:00.381] } [17:27:00.381] base::close(...future.stdout) [17:27:00.381] ...future.stdout <- NULL [17:27:00.381] } [17:27:00.381] ...future.result$conditions <- ...future.conditions [17:27:00.381] ...future.result$finished <- base::Sys.time() [17:27:00.381] ...future.result [17:27:00.381] } [17:27:00.386] Exporting 1 global objects (0 bytes) to cluster node #1 ... [17:27:00.387] Exporting 'x' (0 bytes) to cluster node #1 ... [17:27:00.387] Exporting 'x' (0 bytes) to cluster node #1 ... DONE [17:27:00.387] Exporting 1 global objects (0 bytes) to cluster node #1 ... DONE [17:27:00.388] MultisessionFuture started [17:27:00.388] - Launch lazy future ... done [17:27:00.388] run() for 'MultisessionFuture' ... done [17:27:00.389] result() for ClusterFuture ... [17:27:00.389] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.389] - Validating connection of MultisessionFuture [17:27:00.403] - received message: FutureResult [17:27:00.403] - Received FutureResult [17:27:00.403] - Erased future from FutureRegistry [17:27:00.403] result() for ClusterFuture ... [17:27:00.403] - result already collected: FutureResult [17:27:00.404] result() for ClusterFuture ... done [17:27:00.404] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.404] result() for ClusterFuture ... done [17:27:00.404] result() for ClusterFuture ... [17:27:00.404] - result already collected: FutureResult [17:27:00.404] result() for ClusterFuture ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:27:00.405] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:27:00.405] Searching for globals... [17:27:00.408] - globals found: [5] '{', 'x', '<-', '$', '$<-' [17:27:00.408] Searching for globals ... DONE [17:27:00.408] Resolving globals: TRUE [17:27:00.408] Resolving any globals that are futures ... [17:27:00.408] - globals: [5] '{', 'x', '<-', '$', '$<-' [17:27:00.408] Resolving any globals that are futures ... DONE [17:27:00.409] Resolving futures part of globals (recursively) ... [17:27:00.409] resolve() on list ... [17:27:00.409] recursive: 99 [17:27:00.410] length: 1 [17:27:00.410] elements: 'x' [17:27:00.410] length: 0 (resolved future 1) [17:27:00.410] resolve() on list ... DONE [17:27:00.410] - globals: [1] 'x' [17:27:00.410] Resolving futures part of globals (recursively) ... DONE [17:27:00.411] The total size of the 1 globals is 0 bytes (0 bytes) [17:27:00.411] The total size of the 1 globals exported for future expression ('{; x$a <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:27:00.411] - globals: [1] 'x' [17:27:00.412] [17:27:00.412] getGlobalsAndPackages() ... DONE [17:27:00.412] run() for 'Future' ... [17:27:00.412] - state: 'created' [17:27:00.412] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:00.426] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:00.426] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:00.426] - Field: 'node' [17:27:00.426] - Field: 'label' [17:27:00.427] - Field: 'local' [17:27:00.427] - Field: 'owner' [17:27:00.427] - Field: 'envir' [17:27:00.427] - Field: 'workers' [17:27:00.427] - Field: 'packages' [17:27:00.428] - Field: 'gc' [17:27:00.428] - Field: 'conditions' [17:27:00.428] - Field: 'persistent' [17:27:00.428] - Field: 'expr' [17:27:00.428] - Field: 'uuid' [17:27:00.428] - Field: 'seed' [17:27:00.429] - Field: 'version' [17:27:00.429] - Field: 'result' [17:27:00.429] - Field: 'asynchronous' [17:27:00.429] - Field: 'calls' [17:27:00.429] - Field: 'globals' [17:27:00.429] - Field: 'stdout' [17:27:00.430] - Field: 'earlySignal' [17:27:00.430] - Field: 'lazy' [17:27:00.430] - Field: 'state' [17:27:00.430] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:00.430] - Launch lazy future ... [17:27:00.431] Packages needed by the future expression (n = 0): [17:27:00.431] Packages needed by future strategies (n = 0): [17:27:00.431] { [17:27:00.431] { [17:27:00.431] { [17:27:00.431] ...future.startTime <- base::Sys.time() [17:27:00.431] { [17:27:00.431] { [17:27:00.431] { [17:27:00.431] { [17:27:00.431] base::local({ [17:27:00.431] has_future <- base::requireNamespace("future", [17:27:00.431] quietly = TRUE) [17:27:00.431] if (has_future) { [17:27:00.431] ns <- base::getNamespace("future") [17:27:00.431] version <- ns[[".package"]][["version"]] [17:27:00.431] if (is.null(version)) [17:27:00.431] version <- utils::packageVersion("future") [17:27:00.431] } [17:27:00.431] else { [17:27:00.431] version <- NULL [17:27:00.431] } [17:27:00.431] if (!has_future || version < "1.8.0") { [17:27:00.431] info <- base::c(r_version = base::gsub("R version ", [17:27:00.431] "", base::R.version$version.string), [17:27:00.431] platform = base::sprintf("%s (%s-bit)", [17:27:00.431] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.431] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.431] "release", "version")], collapse = " "), [17:27:00.431] hostname = base::Sys.info()[["nodename"]]) [17:27:00.431] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.431] info) [17:27:00.431] info <- base::paste(info, collapse = "; ") [17:27:00.431] if (!has_future) { [17:27:00.431] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.431] info) [17:27:00.431] } [17:27:00.431] else { [17:27:00.431] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.431] info, version) [17:27:00.431] } [17:27:00.431] base::stop(msg) [17:27:00.431] } [17:27:00.431] }) [17:27:00.431] } [17:27:00.431] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.431] base::options(mc.cores = 1L) [17:27:00.431] } [17:27:00.431] ...future.strategy.old <- future::plan("list") [17:27:00.431] options(future.plan = NULL) [17:27:00.431] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.431] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.431] } [17:27:00.431] ...future.workdir <- getwd() [17:27:00.431] } [17:27:00.431] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.431] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.431] } [17:27:00.431] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.431] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.431] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.431] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.431] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.431] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.431] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.431] base::names(...future.oldOptions)) [17:27:00.431] } [17:27:00.431] if (FALSE) { [17:27:00.431] } [17:27:00.431] else { [17:27:00.431] if (TRUE) { [17:27:00.431] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.431] open = "w") [17:27:00.431] } [17:27:00.431] else { [17:27:00.431] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.431] windows = "NUL", "/dev/null"), open = "w") [17:27:00.431] } [17:27:00.431] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.431] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.431] base::sink(type = "output", split = FALSE) [17:27:00.431] base::close(...future.stdout) [17:27:00.431] }, add = TRUE) [17:27:00.431] } [17:27:00.431] ...future.frame <- base::sys.nframe() [17:27:00.431] ...future.conditions <- base::list() [17:27:00.431] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.431] if (FALSE) { [17:27:00.431] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.431] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.431] } [17:27:00.431] ...future.result <- base::tryCatch({ [17:27:00.431] base::withCallingHandlers({ [17:27:00.431] ...future.value <- base::withVisible(base::local({ [17:27:00.431] ...future.makeSendCondition <- base::local({ [17:27:00.431] sendCondition <- NULL [17:27:00.431] function(frame = 1L) { [17:27:00.431] if (is.function(sendCondition)) [17:27:00.431] return(sendCondition) [17:27:00.431] ns <- getNamespace("parallel") [17:27:00.431] if (exists("sendData", mode = "function", [17:27:00.431] envir = ns)) { [17:27:00.431] parallel_sendData <- get("sendData", mode = "function", [17:27:00.431] envir = ns) [17:27:00.431] envir <- sys.frame(frame) [17:27:00.431] master <- NULL [17:27:00.431] while (!identical(envir, .GlobalEnv) && [17:27:00.431] !identical(envir, emptyenv())) { [17:27:00.431] if (exists("master", mode = "list", envir = envir, [17:27:00.431] inherits = FALSE)) { [17:27:00.431] master <- get("master", mode = "list", [17:27:00.431] envir = envir, inherits = FALSE) [17:27:00.431] if (inherits(master, c("SOCKnode", [17:27:00.431] "SOCK0node"))) { [17:27:00.431] sendCondition <<- function(cond) { [17:27:00.431] data <- list(type = "VALUE", value = cond, [17:27:00.431] success = TRUE) [17:27:00.431] parallel_sendData(master, data) [17:27:00.431] } [17:27:00.431] return(sendCondition) [17:27:00.431] } [17:27:00.431] } [17:27:00.431] frame <- frame + 1L [17:27:00.431] envir <- sys.frame(frame) [17:27:00.431] } [17:27:00.431] } [17:27:00.431] sendCondition <<- function(cond) NULL [17:27:00.431] } [17:27:00.431] }) [17:27:00.431] withCallingHandlers({ [17:27:00.431] { [17:27:00.431] x$a <- 1 [17:27:00.431] x [17:27:00.431] } [17:27:00.431] }, immediateCondition = function(cond) { [17:27:00.431] sendCondition <- ...future.makeSendCondition() [17:27:00.431] sendCondition(cond) [17:27:00.431] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.431] { [17:27:00.431] inherits <- base::inherits [17:27:00.431] invokeRestart <- base::invokeRestart [17:27:00.431] is.null <- base::is.null [17:27:00.431] muffled <- FALSE [17:27:00.431] if (inherits(cond, "message")) { [17:27:00.431] muffled <- grepl(pattern, "muffleMessage") [17:27:00.431] if (muffled) [17:27:00.431] invokeRestart("muffleMessage") [17:27:00.431] } [17:27:00.431] else if (inherits(cond, "warning")) { [17:27:00.431] muffled <- grepl(pattern, "muffleWarning") [17:27:00.431] if (muffled) [17:27:00.431] invokeRestart("muffleWarning") [17:27:00.431] } [17:27:00.431] else if (inherits(cond, "condition")) { [17:27:00.431] if (!is.null(pattern)) { [17:27:00.431] computeRestarts <- base::computeRestarts [17:27:00.431] grepl <- base::grepl [17:27:00.431] restarts <- computeRestarts(cond) [17:27:00.431] for (restart in restarts) { [17:27:00.431] name <- restart$name [17:27:00.431] if (is.null(name)) [17:27:00.431] next [17:27:00.431] if (!grepl(pattern, name)) [17:27:00.431] next [17:27:00.431] invokeRestart(restart) [17:27:00.431] muffled <- TRUE [17:27:00.431] break [17:27:00.431] } [17:27:00.431] } [17:27:00.431] } [17:27:00.431] invisible(muffled) [17:27:00.431] } [17:27:00.431] muffleCondition(cond) [17:27:00.431] }) [17:27:00.431] })) [17:27:00.431] future::FutureResult(value = ...future.value$value, [17:27:00.431] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.431] ...future.rng), globalenv = if (FALSE) [17:27:00.431] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.431] ...future.globalenv.names)) [17:27:00.431] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.431] }, condition = base::local({ [17:27:00.431] c <- base::c [17:27:00.431] inherits <- base::inherits [17:27:00.431] invokeRestart <- base::invokeRestart [17:27:00.431] length <- base::length [17:27:00.431] list <- base::list [17:27:00.431] seq.int <- base::seq.int [17:27:00.431] signalCondition <- base::signalCondition [17:27:00.431] sys.calls <- base::sys.calls [17:27:00.431] `[[` <- base::`[[` [17:27:00.431] `+` <- base::`+` [17:27:00.431] `<<-` <- base::`<<-` [17:27:00.431] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.431] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.431] 3L)] [17:27:00.431] } [17:27:00.431] function(cond) { [17:27:00.431] is_error <- inherits(cond, "error") [17:27:00.431] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.431] NULL) [17:27:00.431] if (is_error) { [17:27:00.431] sessionInformation <- function() { [17:27:00.431] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.431] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.431] search = base::search(), system = base::Sys.info()) [17:27:00.431] } [17:27:00.431] ...future.conditions[[length(...future.conditions) + [17:27:00.431] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.431] cond$call), session = sessionInformation(), [17:27:00.431] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.431] signalCondition(cond) [17:27:00.431] } [17:27:00.431] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.431] "immediateCondition"))) { [17:27:00.431] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.431] ...future.conditions[[length(...future.conditions) + [17:27:00.431] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.431] if (TRUE && !signal) { [17:27:00.431] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.431] { [17:27:00.431] inherits <- base::inherits [17:27:00.431] invokeRestart <- base::invokeRestart [17:27:00.431] is.null <- base::is.null [17:27:00.431] muffled <- FALSE [17:27:00.431] if (inherits(cond, "message")) { [17:27:00.431] muffled <- grepl(pattern, "muffleMessage") [17:27:00.431] if (muffled) [17:27:00.431] invokeRestart("muffleMessage") [17:27:00.431] } [17:27:00.431] else if (inherits(cond, "warning")) { [17:27:00.431] muffled <- grepl(pattern, "muffleWarning") [17:27:00.431] if (muffled) [17:27:00.431] invokeRestart("muffleWarning") [17:27:00.431] } [17:27:00.431] else if (inherits(cond, "condition")) { [17:27:00.431] if (!is.null(pattern)) { [17:27:00.431] computeRestarts <- base::computeRestarts [17:27:00.431] grepl <- base::grepl [17:27:00.431] restarts <- computeRestarts(cond) [17:27:00.431] for (restart in restarts) { [17:27:00.431] name <- restart$name [17:27:00.431] if (is.null(name)) [17:27:00.431] next [17:27:00.431] if (!grepl(pattern, name)) [17:27:00.431] next [17:27:00.431] invokeRestart(restart) [17:27:00.431] muffled <- TRUE [17:27:00.431] break [17:27:00.431] } [17:27:00.431] } [17:27:00.431] } [17:27:00.431] invisible(muffled) [17:27:00.431] } [17:27:00.431] muffleCondition(cond, pattern = "^muffle") [17:27:00.431] } [17:27:00.431] } [17:27:00.431] else { [17:27:00.431] if (TRUE) { [17:27:00.431] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.431] { [17:27:00.431] inherits <- base::inherits [17:27:00.431] invokeRestart <- base::invokeRestart [17:27:00.431] is.null <- base::is.null [17:27:00.431] muffled <- FALSE [17:27:00.431] if (inherits(cond, "message")) { [17:27:00.431] muffled <- grepl(pattern, "muffleMessage") [17:27:00.431] if (muffled) [17:27:00.431] invokeRestart("muffleMessage") [17:27:00.431] } [17:27:00.431] else if (inherits(cond, "warning")) { [17:27:00.431] muffled <- grepl(pattern, "muffleWarning") [17:27:00.431] if (muffled) [17:27:00.431] invokeRestart("muffleWarning") [17:27:00.431] } [17:27:00.431] else if (inherits(cond, "condition")) { [17:27:00.431] if (!is.null(pattern)) { [17:27:00.431] computeRestarts <- base::computeRestarts [17:27:00.431] grepl <- base::grepl [17:27:00.431] restarts <- computeRestarts(cond) [17:27:00.431] for (restart in restarts) { [17:27:00.431] name <- restart$name [17:27:00.431] if (is.null(name)) [17:27:00.431] next [17:27:00.431] if (!grepl(pattern, name)) [17:27:00.431] next [17:27:00.431] invokeRestart(restart) [17:27:00.431] muffled <- TRUE [17:27:00.431] break [17:27:00.431] } [17:27:00.431] } [17:27:00.431] } [17:27:00.431] invisible(muffled) [17:27:00.431] } [17:27:00.431] muffleCondition(cond, pattern = "^muffle") [17:27:00.431] } [17:27:00.431] } [17:27:00.431] } [17:27:00.431] })) [17:27:00.431] }, error = function(ex) { [17:27:00.431] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.431] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.431] ...future.rng), started = ...future.startTime, [17:27:00.431] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.431] version = "1.8"), class = "FutureResult") [17:27:00.431] }, finally = { [17:27:00.431] if (!identical(...future.workdir, getwd())) [17:27:00.431] setwd(...future.workdir) [17:27:00.431] { [17:27:00.431] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.431] ...future.oldOptions$nwarnings <- NULL [17:27:00.431] } [17:27:00.431] base::options(...future.oldOptions) [17:27:00.431] if (.Platform$OS.type == "windows") { [17:27:00.431] old_names <- names(...future.oldEnvVars) [17:27:00.431] envs <- base::Sys.getenv() [17:27:00.431] names <- names(envs) [17:27:00.431] common <- intersect(names, old_names) [17:27:00.431] added <- setdiff(names, old_names) [17:27:00.431] removed <- setdiff(old_names, names) [17:27:00.431] changed <- common[...future.oldEnvVars[common] != [17:27:00.431] envs[common]] [17:27:00.431] NAMES <- toupper(changed) [17:27:00.431] args <- list() [17:27:00.431] for (kk in seq_along(NAMES)) { [17:27:00.431] name <- changed[[kk]] [17:27:00.431] NAME <- NAMES[[kk]] [17:27:00.431] if (name != NAME && is.element(NAME, old_names)) [17:27:00.431] next [17:27:00.431] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.431] } [17:27:00.431] NAMES <- toupper(added) [17:27:00.431] for (kk in seq_along(NAMES)) { [17:27:00.431] name <- added[[kk]] [17:27:00.431] NAME <- NAMES[[kk]] [17:27:00.431] if (name != NAME && is.element(NAME, old_names)) [17:27:00.431] next [17:27:00.431] args[[name]] <- "" [17:27:00.431] } [17:27:00.431] NAMES <- toupper(removed) [17:27:00.431] for (kk in seq_along(NAMES)) { [17:27:00.431] name <- removed[[kk]] [17:27:00.431] NAME <- NAMES[[kk]] [17:27:00.431] if (name != NAME && is.element(NAME, old_names)) [17:27:00.431] next [17:27:00.431] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.431] } [17:27:00.431] if (length(args) > 0) [17:27:00.431] base::do.call(base::Sys.setenv, args = args) [17:27:00.431] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.431] } [17:27:00.431] else { [17:27:00.431] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.431] } [17:27:00.431] { [17:27:00.431] if (base::length(...future.futureOptionsAdded) > [17:27:00.431] 0L) { [17:27:00.431] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.431] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.431] base::options(opts) [17:27:00.431] } [17:27:00.431] { [17:27:00.431] { [17:27:00.431] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.431] NULL [17:27:00.431] } [17:27:00.431] options(future.plan = NULL) [17:27:00.431] if (is.na(NA_character_)) [17:27:00.431] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.431] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.431] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.431] .init = FALSE) [17:27:00.431] } [17:27:00.431] } [17:27:00.431] } [17:27:00.431] }) [17:27:00.431] if (TRUE) { [17:27:00.431] base::sink(type = "output", split = FALSE) [17:27:00.431] if (TRUE) { [17:27:00.431] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.431] } [17:27:00.431] else { [17:27:00.431] ...future.result["stdout"] <- base::list(NULL) [17:27:00.431] } [17:27:00.431] base::close(...future.stdout) [17:27:00.431] ...future.stdout <- NULL [17:27:00.431] } [17:27:00.431] ...future.result$conditions <- ...future.conditions [17:27:00.431] ...future.result$finished <- base::Sys.time() [17:27:00.431] ...future.result [17:27:00.431] } [17:27:00.436] Exporting 1 global objects (0 bytes) to cluster node #1 ... [17:27:00.437] Exporting 'x' (0 bytes) to cluster node #1 ... [17:27:00.437] Exporting 'x' (0 bytes) to cluster node #1 ... DONE [17:27:00.437] Exporting 1 global objects (0 bytes) to cluster node #1 ... DONE [17:27:00.438] MultisessionFuture started [17:27:00.438] - Launch lazy future ... done [17:27:00.438] run() for 'MultisessionFuture' ... done [17:27:00.438] result() for ClusterFuture ... [17:27:00.439] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.439] - Validating connection of MultisessionFuture [17:27:00.452] - received message: FutureResult [17:27:00.452] - Received FutureResult [17:27:00.452] - Erased future from FutureRegistry [17:27:00.453] result() for ClusterFuture ... [17:27:00.453] - result already collected: FutureResult [17:27:00.453] result() for ClusterFuture ... done [17:27:00.453] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.453] result() for ClusterFuture ... done [17:27:00.453] result() for ClusterFuture ... [17:27:00.454] - result already collected: FutureResult [17:27:00.454] result() for ClusterFuture ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:27:00.454] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:27:00.455] Searching for globals... [17:27:00.458] - globals found: [5] '{', '<-', 'list', '$', '$<-' [17:27:00.458] Searching for globals ... DONE [17:27:00.458] Resolving globals: TRUE [17:27:00.458] Resolving any globals that are futures ... [17:27:00.458] - globals: [5] '{', '<-', 'list', '$', '$<-' [17:27:00.459] Resolving any globals that are futures ... DONE [17:27:00.459] [17:27:00.459] [17:27:00.459] getGlobalsAndPackages() ... DONE [17:27:00.460] run() for 'Future' ... [17:27:00.460] - state: 'created' [17:27:00.460] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:00.473] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:00.474] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:00.474] - Field: 'node' [17:27:00.474] - Field: 'label' [17:27:00.474] - Field: 'local' [17:27:00.474] - Field: 'owner' [17:27:00.474] - Field: 'envir' [17:27:00.475] - Field: 'workers' [17:27:00.475] - Field: 'packages' [17:27:00.475] - Field: 'gc' [17:27:00.475] - Field: 'conditions' [17:27:00.475] - Field: 'persistent' [17:27:00.476] - Field: 'expr' [17:27:00.476] - Field: 'uuid' [17:27:00.476] - Field: 'seed' [17:27:00.476] - Field: 'version' [17:27:00.476] - Field: 'result' [17:27:00.476] - Field: 'asynchronous' [17:27:00.477] - Field: 'calls' [17:27:00.477] - Field: 'globals' [17:27:00.477] - Field: 'stdout' [17:27:00.477] - Field: 'earlySignal' [17:27:00.477] - Field: 'lazy' [17:27:00.477] - Field: 'state' [17:27:00.478] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:00.478] - Launch lazy future ... [17:27:00.478] Packages needed by the future expression (n = 0): [17:27:00.478] Packages needed by future strategies (n = 0): [17:27:00.479] { [17:27:00.479] { [17:27:00.479] { [17:27:00.479] ...future.startTime <- base::Sys.time() [17:27:00.479] { [17:27:00.479] { [17:27:00.479] { [17:27:00.479] { [17:27:00.479] base::local({ [17:27:00.479] has_future <- base::requireNamespace("future", [17:27:00.479] quietly = TRUE) [17:27:00.479] if (has_future) { [17:27:00.479] ns <- base::getNamespace("future") [17:27:00.479] version <- ns[[".package"]][["version"]] [17:27:00.479] if (is.null(version)) [17:27:00.479] version <- utils::packageVersion("future") [17:27:00.479] } [17:27:00.479] else { [17:27:00.479] version <- NULL [17:27:00.479] } [17:27:00.479] if (!has_future || version < "1.8.0") { [17:27:00.479] info <- base::c(r_version = base::gsub("R version ", [17:27:00.479] "", base::R.version$version.string), [17:27:00.479] platform = base::sprintf("%s (%s-bit)", [17:27:00.479] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.479] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.479] "release", "version")], collapse = " "), [17:27:00.479] hostname = base::Sys.info()[["nodename"]]) [17:27:00.479] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.479] info) [17:27:00.479] info <- base::paste(info, collapse = "; ") [17:27:00.479] if (!has_future) { [17:27:00.479] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.479] info) [17:27:00.479] } [17:27:00.479] else { [17:27:00.479] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.479] info, version) [17:27:00.479] } [17:27:00.479] base::stop(msg) [17:27:00.479] } [17:27:00.479] }) [17:27:00.479] } [17:27:00.479] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.479] base::options(mc.cores = 1L) [17:27:00.479] } [17:27:00.479] ...future.strategy.old <- future::plan("list") [17:27:00.479] options(future.plan = NULL) [17:27:00.479] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.479] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.479] } [17:27:00.479] ...future.workdir <- getwd() [17:27:00.479] } [17:27:00.479] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.479] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.479] } [17:27:00.479] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.479] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.479] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.479] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.479] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.479] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.479] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.479] base::names(...future.oldOptions)) [17:27:00.479] } [17:27:00.479] if (FALSE) { [17:27:00.479] } [17:27:00.479] else { [17:27:00.479] if (TRUE) { [17:27:00.479] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.479] open = "w") [17:27:00.479] } [17:27:00.479] else { [17:27:00.479] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.479] windows = "NUL", "/dev/null"), open = "w") [17:27:00.479] } [17:27:00.479] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.479] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.479] base::sink(type = "output", split = FALSE) [17:27:00.479] base::close(...future.stdout) [17:27:00.479] }, add = TRUE) [17:27:00.479] } [17:27:00.479] ...future.frame <- base::sys.nframe() [17:27:00.479] ...future.conditions <- base::list() [17:27:00.479] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.479] if (FALSE) { [17:27:00.479] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.479] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.479] } [17:27:00.479] ...future.result <- base::tryCatch({ [17:27:00.479] base::withCallingHandlers({ [17:27:00.479] ...future.value <- base::withVisible(base::local({ [17:27:00.479] ...future.makeSendCondition <- base::local({ [17:27:00.479] sendCondition <- NULL [17:27:00.479] function(frame = 1L) { [17:27:00.479] if (is.function(sendCondition)) [17:27:00.479] return(sendCondition) [17:27:00.479] ns <- getNamespace("parallel") [17:27:00.479] if (exists("sendData", mode = "function", [17:27:00.479] envir = ns)) { [17:27:00.479] parallel_sendData <- get("sendData", mode = "function", [17:27:00.479] envir = ns) [17:27:00.479] envir <- sys.frame(frame) [17:27:00.479] master <- NULL [17:27:00.479] while (!identical(envir, .GlobalEnv) && [17:27:00.479] !identical(envir, emptyenv())) { [17:27:00.479] if (exists("master", mode = "list", envir = envir, [17:27:00.479] inherits = FALSE)) { [17:27:00.479] master <- get("master", mode = "list", [17:27:00.479] envir = envir, inherits = FALSE) [17:27:00.479] if (inherits(master, c("SOCKnode", [17:27:00.479] "SOCK0node"))) { [17:27:00.479] sendCondition <<- function(cond) { [17:27:00.479] data <- list(type = "VALUE", value = cond, [17:27:00.479] success = TRUE) [17:27:00.479] parallel_sendData(master, data) [17:27:00.479] } [17:27:00.479] return(sendCondition) [17:27:00.479] } [17:27:00.479] } [17:27:00.479] frame <- frame + 1L [17:27:00.479] envir <- sys.frame(frame) [17:27:00.479] } [17:27:00.479] } [17:27:00.479] sendCondition <<- function(cond) NULL [17:27:00.479] } [17:27:00.479] }) [17:27:00.479] withCallingHandlers({ [17:27:00.479] { [17:27:00.479] x <- list(b = 2) [17:27:00.479] x$a <- 1 [17:27:00.479] x [17:27:00.479] } [17:27:00.479] }, immediateCondition = function(cond) { [17:27:00.479] sendCondition <- ...future.makeSendCondition() [17:27:00.479] sendCondition(cond) [17:27:00.479] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.479] { [17:27:00.479] inherits <- base::inherits [17:27:00.479] invokeRestart <- base::invokeRestart [17:27:00.479] is.null <- base::is.null [17:27:00.479] muffled <- FALSE [17:27:00.479] if (inherits(cond, "message")) { [17:27:00.479] muffled <- grepl(pattern, "muffleMessage") [17:27:00.479] if (muffled) [17:27:00.479] invokeRestart("muffleMessage") [17:27:00.479] } [17:27:00.479] else if (inherits(cond, "warning")) { [17:27:00.479] muffled <- grepl(pattern, "muffleWarning") [17:27:00.479] if (muffled) [17:27:00.479] invokeRestart("muffleWarning") [17:27:00.479] } [17:27:00.479] else if (inherits(cond, "condition")) { [17:27:00.479] if (!is.null(pattern)) { [17:27:00.479] computeRestarts <- base::computeRestarts [17:27:00.479] grepl <- base::grepl [17:27:00.479] restarts <- computeRestarts(cond) [17:27:00.479] for (restart in restarts) { [17:27:00.479] name <- restart$name [17:27:00.479] if (is.null(name)) [17:27:00.479] next [17:27:00.479] if (!grepl(pattern, name)) [17:27:00.479] next [17:27:00.479] invokeRestart(restart) [17:27:00.479] muffled <- TRUE [17:27:00.479] break [17:27:00.479] } [17:27:00.479] } [17:27:00.479] } [17:27:00.479] invisible(muffled) [17:27:00.479] } [17:27:00.479] muffleCondition(cond) [17:27:00.479] }) [17:27:00.479] })) [17:27:00.479] future::FutureResult(value = ...future.value$value, [17:27:00.479] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.479] ...future.rng), globalenv = if (FALSE) [17:27:00.479] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.479] ...future.globalenv.names)) [17:27:00.479] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.479] }, condition = base::local({ [17:27:00.479] c <- base::c [17:27:00.479] inherits <- base::inherits [17:27:00.479] invokeRestart <- base::invokeRestart [17:27:00.479] length <- base::length [17:27:00.479] list <- base::list [17:27:00.479] seq.int <- base::seq.int [17:27:00.479] signalCondition <- base::signalCondition [17:27:00.479] sys.calls <- base::sys.calls [17:27:00.479] `[[` <- base::`[[` [17:27:00.479] `+` <- base::`+` [17:27:00.479] `<<-` <- base::`<<-` [17:27:00.479] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.479] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.479] 3L)] [17:27:00.479] } [17:27:00.479] function(cond) { [17:27:00.479] is_error <- inherits(cond, "error") [17:27:00.479] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.479] NULL) [17:27:00.479] if (is_error) { [17:27:00.479] sessionInformation <- function() { [17:27:00.479] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.479] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.479] search = base::search(), system = base::Sys.info()) [17:27:00.479] } [17:27:00.479] ...future.conditions[[length(...future.conditions) + [17:27:00.479] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.479] cond$call), session = sessionInformation(), [17:27:00.479] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.479] signalCondition(cond) [17:27:00.479] } [17:27:00.479] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.479] "immediateCondition"))) { [17:27:00.479] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.479] ...future.conditions[[length(...future.conditions) + [17:27:00.479] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.479] if (TRUE && !signal) { [17:27:00.479] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.479] { [17:27:00.479] inherits <- base::inherits [17:27:00.479] invokeRestart <- base::invokeRestart [17:27:00.479] is.null <- base::is.null [17:27:00.479] muffled <- FALSE [17:27:00.479] if (inherits(cond, "message")) { [17:27:00.479] muffled <- grepl(pattern, "muffleMessage") [17:27:00.479] if (muffled) [17:27:00.479] invokeRestart("muffleMessage") [17:27:00.479] } [17:27:00.479] else if (inherits(cond, "warning")) { [17:27:00.479] muffled <- grepl(pattern, "muffleWarning") [17:27:00.479] if (muffled) [17:27:00.479] invokeRestart("muffleWarning") [17:27:00.479] } [17:27:00.479] else if (inherits(cond, "condition")) { [17:27:00.479] if (!is.null(pattern)) { [17:27:00.479] computeRestarts <- base::computeRestarts [17:27:00.479] grepl <- base::grepl [17:27:00.479] restarts <- computeRestarts(cond) [17:27:00.479] for (restart in restarts) { [17:27:00.479] name <- restart$name [17:27:00.479] if (is.null(name)) [17:27:00.479] next [17:27:00.479] if (!grepl(pattern, name)) [17:27:00.479] next [17:27:00.479] invokeRestart(restart) [17:27:00.479] muffled <- TRUE [17:27:00.479] break [17:27:00.479] } [17:27:00.479] } [17:27:00.479] } [17:27:00.479] invisible(muffled) [17:27:00.479] } [17:27:00.479] muffleCondition(cond, pattern = "^muffle") [17:27:00.479] } [17:27:00.479] } [17:27:00.479] else { [17:27:00.479] if (TRUE) { [17:27:00.479] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.479] { [17:27:00.479] inherits <- base::inherits [17:27:00.479] invokeRestart <- base::invokeRestart [17:27:00.479] is.null <- base::is.null [17:27:00.479] muffled <- FALSE [17:27:00.479] if (inherits(cond, "message")) { [17:27:00.479] muffled <- grepl(pattern, "muffleMessage") [17:27:00.479] if (muffled) [17:27:00.479] invokeRestart("muffleMessage") [17:27:00.479] } [17:27:00.479] else if (inherits(cond, "warning")) { [17:27:00.479] muffled <- grepl(pattern, "muffleWarning") [17:27:00.479] if (muffled) [17:27:00.479] invokeRestart("muffleWarning") [17:27:00.479] } [17:27:00.479] else if (inherits(cond, "condition")) { [17:27:00.479] if (!is.null(pattern)) { [17:27:00.479] computeRestarts <- base::computeRestarts [17:27:00.479] grepl <- base::grepl [17:27:00.479] restarts <- computeRestarts(cond) [17:27:00.479] for (restart in restarts) { [17:27:00.479] name <- restart$name [17:27:00.479] if (is.null(name)) [17:27:00.479] next [17:27:00.479] if (!grepl(pattern, name)) [17:27:00.479] next [17:27:00.479] invokeRestart(restart) [17:27:00.479] muffled <- TRUE [17:27:00.479] break [17:27:00.479] } [17:27:00.479] } [17:27:00.479] } [17:27:00.479] invisible(muffled) [17:27:00.479] } [17:27:00.479] muffleCondition(cond, pattern = "^muffle") [17:27:00.479] } [17:27:00.479] } [17:27:00.479] } [17:27:00.479] })) [17:27:00.479] }, error = function(ex) { [17:27:00.479] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.479] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.479] ...future.rng), started = ...future.startTime, [17:27:00.479] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.479] version = "1.8"), class = "FutureResult") [17:27:00.479] }, finally = { [17:27:00.479] if (!identical(...future.workdir, getwd())) [17:27:00.479] setwd(...future.workdir) [17:27:00.479] { [17:27:00.479] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.479] ...future.oldOptions$nwarnings <- NULL [17:27:00.479] } [17:27:00.479] base::options(...future.oldOptions) [17:27:00.479] if (.Platform$OS.type == "windows") { [17:27:00.479] old_names <- names(...future.oldEnvVars) [17:27:00.479] envs <- base::Sys.getenv() [17:27:00.479] names <- names(envs) [17:27:00.479] common <- intersect(names, old_names) [17:27:00.479] added <- setdiff(names, old_names) [17:27:00.479] removed <- setdiff(old_names, names) [17:27:00.479] changed <- common[...future.oldEnvVars[common] != [17:27:00.479] envs[common]] [17:27:00.479] NAMES <- toupper(changed) [17:27:00.479] args <- list() [17:27:00.479] for (kk in seq_along(NAMES)) { [17:27:00.479] name <- changed[[kk]] [17:27:00.479] NAME <- NAMES[[kk]] [17:27:00.479] if (name != NAME && is.element(NAME, old_names)) [17:27:00.479] next [17:27:00.479] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.479] } [17:27:00.479] NAMES <- toupper(added) [17:27:00.479] for (kk in seq_along(NAMES)) { [17:27:00.479] name <- added[[kk]] [17:27:00.479] NAME <- NAMES[[kk]] [17:27:00.479] if (name != NAME && is.element(NAME, old_names)) [17:27:00.479] next [17:27:00.479] args[[name]] <- "" [17:27:00.479] } [17:27:00.479] NAMES <- toupper(removed) [17:27:00.479] for (kk in seq_along(NAMES)) { [17:27:00.479] name <- removed[[kk]] [17:27:00.479] NAME <- NAMES[[kk]] [17:27:00.479] if (name != NAME && is.element(NAME, old_names)) [17:27:00.479] next [17:27:00.479] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.479] } [17:27:00.479] if (length(args) > 0) [17:27:00.479] base::do.call(base::Sys.setenv, args = args) [17:27:00.479] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.479] } [17:27:00.479] else { [17:27:00.479] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.479] } [17:27:00.479] { [17:27:00.479] if (base::length(...future.futureOptionsAdded) > [17:27:00.479] 0L) { [17:27:00.479] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.479] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.479] base::options(opts) [17:27:00.479] } [17:27:00.479] { [17:27:00.479] { [17:27:00.479] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.479] NULL [17:27:00.479] } [17:27:00.479] options(future.plan = NULL) [17:27:00.479] if (is.na(NA_character_)) [17:27:00.479] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.479] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.479] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.479] .init = FALSE) [17:27:00.479] } [17:27:00.479] } [17:27:00.479] } [17:27:00.479] }) [17:27:00.479] if (TRUE) { [17:27:00.479] base::sink(type = "output", split = FALSE) [17:27:00.479] if (TRUE) { [17:27:00.479] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.479] } [17:27:00.479] else { [17:27:00.479] ...future.result["stdout"] <- base::list(NULL) [17:27:00.479] } [17:27:00.479] base::close(...future.stdout) [17:27:00.479] ...future.stdout <- NULL [17:27:00.479] } [17:27:00.479] ...future.result$conditions <- ...future.conditions [17:27:00.479] ...future.result$finished <- base::Sys.time() [17:27:00.479] ...future.result [17:27:00.479] } [17:27:00.484] MultisessionFuture started [17:27:00.484] - Launch lazy future ... done [17:27:00.485] run() for 'MultisessionFuture' ... done [17:27:00.485] result() for ClusterFuture ... [17:27:00.485] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.485] - Validating connection of MultisessionFuture [17:27:00.498] - received message: FutureResult [17:27:00.498] - Received FutureResult [17:27:00.498] - Erased future from FutureRegistry [17:27:00.498] result() for ClusterFuture ... [17:27:00.498] - result already collected: FutureResult [17:27:00.498] result() for ClusterFuture ... done [17:27:00.499] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.499] result() for ClusterFuture ... done [17:27:00.499] result() for ClusterFuture ... [17:27:00.499] - result already collected: FutureResult [17:27:00.499] result() for ClusterFuture ... done $b [1] 2 $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:27:00.500] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:27:00.500] Searching for globals... [17:27:00.502] - globals found: [5] '{', 'x', '<-', '[[', '[[<-' [17:27:00.502] Searching for globals ... DONE [17:27:00.503] Resolving globals: TRUE [17:27:00.503] Resolving any globals that are futures ... [17:27:00.503] - globals: [5] '{', 'x', '<-', '[[', '[[<-' [17:27:00.503] Resolving any globals that are futures ... DONE [17:27:00.504] Resolving futures part of globals (recursively) ... [17:27:00.504] resolve() on list ... [17:27:00.504] recursive: 99 [17:27:00.504] length: 1 [17:27:00.504] elements: 'x' [17:27:00.505] length: 0 (resolved future 1) [17:27:00.505] resolve() on list ... DONE [17:27:00.505] - globals: [1] 'x' [17:27:00.505] Resolving futures part of globals (recursively) ... DONE [17:27:00.505] The total size of the 1 globals is 0 bytes (0 bytes) [17:27:00.506] The total size of the 1 globals exported for future expression ('{; x[["a"]] <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:27:00.506] - globals: [1] 'x' [17:27:00.506] [17:27:00.506] getGlobalsAndPackages() ... DONE [17:27:00.507] run() for 'Future' ... [17:27:00.507] - state: 'created' [17:27:00.507] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:00.520] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:00.521] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:00.521] - Field: 'node' [17:27:00.521] - Field: 'label' [17:27:00.521] - Field: 'local' [17:27:00.521] - Field: 'owner' [17:27:00.522] - Field: 'envir' [17:27:00.522] - Field: 'workers' [17:27:00.522] - Field: 'packages' [17:27:00.522] - Field: 'gc' [17:27:00.522] - Field: 'conditions' [17:27:00.522] - Field: 'persistent' [17:27:00.523] - Field: 'expr' [17:27:00.523] - Field: 'uuid' [17:27:00.523] - Field: 'seed' [17:27:00.523] - Field: 'version' [17:27:00.523] - Field: 'result' [17:27:00.523] - Field: 'asynchronous' [17:27:00.524] - Field: 'calls' [17:27:00.524] - Field: 'globals' [17:27:00.524] - Field: 'stdout' [17:27:00.524] - Field: 'earlySignal' [17:27:00.524] - Field: 'lazy' [17:27:00.524] - Field: 'state' [17:27:00.525] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:00.525] - Launch lazy future ... [17:27:00.525] Packages needed by the future expression (n = 0): [17:27:00.525] Packages needed by future strategies (n = 0): [17:27:00.526] { [17:27:00.526] { [17:27:00.526] { [17:27:00.526] ...future.startTime <- base::Sys.time() [17:27:00.526] { [17:27:00.526] { [17:27:00.526] { [17:27:00.526] { [17:27:00.526] base::local({ [17:27:00.526] has_future <- base::requireNamespace("future", [17:27:00.526] quietly = TRUE) [17:27:00.526] if (has_future) { [17:27:00.526] ns <- base::getNamespace("future") [17:27:00.526] version <- ns[[".package"]][["version"]] [17:27:00.526] if (is.null(version)) [17:27:00.526] version <- utils::packageVersion("future") [17:27:00.526] } [17:27:00.526] else { [17:27:00.526] version <- NULL [17:27:00.526] } [17:27:00.526] if (!has_future || version < "1.8.0") { [17:27:00.526] info <- base::c(r_version = base::gsub("R version ", [17:27:00.526] "", base::R.version$version.string), [17:27:00.526] platform = base::sprintf("%s (%s-bit)", [17:27:00.526] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.526] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.526] "release", "version")], collapse = " "), [17:27:00.526] hostname = base::Sys.info()[["nodename"]]) [17:27:00.526] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.526] info) [17:27:00.526] info <- base::paste(info, collapse = "; ") [17:27:00.526] if (!has_future) { [17:27:00.526] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.526] info) [17:27:00.526] } [17:27:00.526] else { [17:27:00.526] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.526] info, version) [17:27:00.526] } [17:27:00.526] base::stop(msg) [17:27:00.526] } [17:27:00.526] }) [17:27:00.526] } [17:27:00.526] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.526] base::options(mc.cores = 1L) [17:27:00.526] } [17:27:00.526] ...future.strategy.old <- future::plan("list") [17:27:00.526] options(future.plan = NULL) [17:27:00.526] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.526] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.526] } [17:27:00.526] ...future.workdir <- getwd() [17:27:00.526] } [17:27:00.526] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.526] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.526] } [17:27:00.526] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.526] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.526] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.526] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.526] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.526] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.526] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.526] base::names(...future.oldOptions)) [17:27:00.526] } [17:27:00.526] if (FALSE) { [17:27:00.526] } [17:27:00.526] else { [17:27:00.526] if (TRUE) { [17:27:00.526] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.526] open = "w") [17:27:00.526] } [17:27:00.526] else { [17:27:00.526] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.526] windows = "NUL", "/dev/null"), open = "w") [17:27:00.526] } [17:27:00.526] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.526] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.526] base::sink(type = "output", split = FALSE) [17:27:00.526] base::close(...future.stdout) [17:27:00.526] }, add = TRUE) [17:27:00.526] } [17:27:00.526] ...future.frame <- base::sys.nframe() [17:27:00.526] ...future.conditions <- base::list() [17:27:00.526] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.526] if (FALSE) { [17:27:00.526] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.526] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.526] } [17:27:00.526] ...future.result <- base::tryCatch({ [17:27:00.526] base::withCallingHandlers({ [17:27:00.526] ...future.value <- base::withVisible(base::local({ [17:27:00.526] ...future.makeSendCondition <- base::local({ [17:27:00.526] sendCondition <- NULL [17:27:00.526] function(frame = 1L) { [17:27:00.526] if (is.function(sendCondition)) [17:27:00.526] return(sendCondition) [17:27:00.526] ns <- getNamespace("parallel") [17:27:00.526] if (exists("sendData", mode = "function", [17:27:00.526] envir = ns)) { [17:27:00.526] parallel_sendData <- get("sendData", mode = "function", [17:27:00.526] envir = ns) [17:27:00.526] envir <- sys.frame(frame) [17:27:00.526] master <- NULL [17:27:00.526] while (!identical(envir, .GlobalEnv) && [17:27:00.526] !identical(envir, emptyenv())) { [17:27:00.526] if (exists("master", mode = "list", envir = envir, [17:27:00.526] inherits = FALSE)) { [17:27:00.526] master <- get("master", mode = "list", [17:27:00.526] envir = envir, inherits = FALSE) [17:27:00.526] if (inherits(master, c("SOCKnode", [17:27:00.526] "SOCK0node"))) { [17:27:00.526] sendCondition <<- function(cond) { [17:27:00.526] data <- list(type = "VALUE", value = cond, [17:27:00.526] success = TRUE) [17:27:00.526] parallel_sendData(master, data) [17:27:00.526] } [17:27:00.526] return(sendCondition) [17:27:00.526] } [17:27:00.526] } [17:27:00.526] frame <- frame + 1L [17:27:00.526] envir <- sys.frame(frame) [17:27:00.526] } [17:27:00.526] } [17:27:00.526] sendCondition <<- function(cond) NULL [17:27:00.526] } [17:27:00.526] }) [17:27:00.526] withCallingHandlers({ [17:27:00.526] { [17:27:00.526] x[["a"]] <- 1 [17:27:00.526] x [17:27:00.526] } [17:27:00.526] }, immediateCondition = function(cond) { [17:27:00.526] sendCondition <- ...future.makeSendCondition() [17:27:00.526] sendCondition(cond) [17:27:00.526] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.526] { [17:27:00.526] inherits <- base::inherits [17:27:00.526] invokeRestart <- base::invokeRestart [17:27:00.526] is.null <- base::is.null [17:27:00.526] muffled <- FALSE [17:27:00.526] if (inherits(cond, "message")) { [17:27:00.526] muffled <- grepl(pattern, "muffleMessage") [17:27:00.526] if (muffled) [17:27:00.526] invokeRestart("muffleMessage") [17:27:00.526] } [17:27:00.526] else if (inherits(cond, "warning")) { [17:27:00.526] muffled <- grepl(pattern, "muffleWarning") [17:27:00.526] if (muffled) [17:27:00.526] invokeRestart("muffleWarning") [17:27:00.526] } [17:27:00.526] else if (inherits(cond, "condition")) { [17:27:00.526] if (!is.null(pattern)) { [17:27:00.526] computeRestarts <- base::computeRestarts [17:27:00.526] grepl <- base::grepl [17:27:00.526] restarts <- computeRestarts(cond) [17:27:00.526] for (restart in restarts) { [17:27:00.526] name <- restart$name [17:27:00.526] if (is.null(name)) [17:27:00.526] next [17:27:00.526] if (!grepl(pattern, name)) [17:27:00.526] next [17:27:00.526] invokeRestart(restart) [17:27:00.526] muffled <- TRUE [17:27:00.526] break [17:27:00.526] } [17:27:00.526] } [17:27:00.526] } [17:27:00.526] invisible(muffled) [17:27:00.526] } [17:27:00.526] muffleCondition(cond) [17:27:00.526] }) [17:27:00.526] })) [17:27:00.526] future::FutureResult(value = ...future.value$value, [17:27:00.526] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.526] ...future.rng), globalenv = if (FALSE) [17:27:00.526] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.526] ...future.globalenv.names)) [17:27:00.526] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.526] }, condition = base::local({ [17:27:00.526] c <- base::c [17:27:00.526] inherits <- base::inherits [17:27:00.526] invokeRestart <- base::invokeRestart [17:27:00.526] length <- base::length [17:27:00.526] list <- base::list [17:27:00.526] seq.int <- base::seq.int [17:27:00.526] signalCondition <- base::signalCondition [17:27:00.526] sys.calls <- base::sys.calls [17:27:00.526] `[[` <- base::`[[` [17:27:00.526] `+` <- base::`+` [17:27:00.526] `<<-` <- base::`<<-` [17:27:00.526] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.526] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.526] 3L)] [17:27:00.526] } [17:27:00.526] function(cond) { [17:27:00.526] is_error <- inherits(cond, "error") [17:27:00.526] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.526] NULL) [17:27:00.526] if (is_error) { [17:27:00.526] sessionInformation <- function() { [17:27:00.526] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.526] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.526] search = base::search(), system = base::Sys.info()) [17:27:00.526] } [17:27:00.526] ...future.conditions[[length(...future.conditions) + [17:27:00.526] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.526] cond$call), session = sessionInformation(), [17:27:00.526] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.526] signalCondition(cond) [17:27:00.526] } [17:27:00.526] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.526] "immediateCondition"))) { [17:27:00.526] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.526] ...future.conditions[[length(...future.conditions) + [17:27:00.526] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.526] if (TRUE && !signal) { [17:27:00.526] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.526] { [17:27:00.526] inherits <- base::inherits [17:27:00.526] invokeRestart <- base::invokeRestart [17:27:00.526] is.null <- base::is.null [17:27:00.526] muffled <- FALSE [17:27:00.526] if (inherits(cond, "message")) { [17:27:00.526] muffled <- grepl(pattern, "muffleMessage") [17:27:00.526] if (muffled) [17:27:00.526] invokeRestart("muffleMessage") [17:27:00.526] } [17:27:00.526] else if (inherits(cond, "warning")) { [17:27:00.526] muffled <- grepl(pattern, "muffleWarning") [17:27:00.526] if (muffled) [17:27:00.526] invokeRestart("muffleWarning") [17:27:00.526] } [17:27:00.526] else if (inherits(cond, "condition")) { [17:27:00.526] if (!is.null(pattern)) { [17:27:00.526] computeRestarts <- base::computeRestarts [17:27:00.526] grepl <- base::grepl [17:27:00.526] restarts <- computeRestarts(cond) [17:27:00.526] for (restart in restarts) { [17:27:00.526] name <- restart$name [17:27:00.526] if (is.null(name)) [17:27:00.526] next [17:27:00.526] if (!grepl(pattern, name)) [17:27:00.526] next [17:27:00.526] invokeRestart(restart) [17:27:00.526] muffled <- TRUE [17:27:00.526] break [17:27:00.526] } [17:27:00.526] } [17:27:00.526] } [17:27:00.526] invisible(muffled) [17:27:00.526] } [17:27:00.526] muffleCondition(cond, pattern = "^muffle") [17:27:00.526] } [17:27:00.526] } [17:27:00.526] else { [17:27:00.526] if (TRUE) { [17:27:00.526] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.526] { [17:27:00.526] inherits <- base::inherits [17:27:00.526] invokeRestart <- base::invokeRestart [17:27:00.526] is.null <- base::is.null [17:27:00.526] muffled <- FALSE [17:27:00.526] if (inherits(cond, "message")) { [17:27:00.526] muffled <- grepl(pattern, "muffleMessage") [17:27:00.526] if (muffled) [17:27:00.526] invokeRestart("muffleMessage") [17:27:00.526] } [17:27:00.526] else if (inherits(cond, "warning")) { [17:27:00.526] muffled <- grepl(pattern, "muffleWarning") [17:27:00.526] if (muffled) [17:27:00.526] invokeRestart("muffleWarning") [17:27:00.526] } [17:27:00.526] else if (inherits(cond, "condition")) { [17:27:00.526] if (!is.null(pattern)) { [17:27:00.526] computeRestarts <- base::computeRestarts [17:27:00.526] grepl <- base::grepl [17:27:00.526] restarts <- computeRestarts(cond) [17:27:00.526] for (restart in restarts) { [17:27:00.526] name <- restart$name [17:27:00.526] if (is.null(name)) [17:27:00.526] next [17:27:00.526] if (!grepl(pattern, name)) [17:27:00.526] next [17:27:00.526] invokeRestart(restart) [17:27:00.526] muffled <- TRUE [17:27:00.526] break [17:27:00.526] } [17:27:00.526] } [17:27:00.526] } [17:27:00.526] invisible(muffled) [17:27:00.526] } [17:27:00.526] muffleCondition(cond, pattern = "^muffle") [17:27:00.526] } [17:27:00.526] } [17:27:00.526] } [17:27:00.526] })) [17:27:00.526] }, error = function(ex) { [17:27:00.526] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.526] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.526] ...future.rng), started = ...future.startTime, [17:27:00.526] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.526] version = "1.8"), class = "FutureResult") [17:27:00.526] }, finally = { [17:27:00.526] if (!identical(...future.workdir, getwd())) [17:27:00.526] setwd(...future.workdir) [17:27:00.526] { [17:27:00.526] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.526] ...future.oldOptions$nwarnings <- NULL [17:27:00.526] } [17:27:00.526] base::options(...future.oldOptions) [17:27:00.526] if (.Platform$OS.type == "windows") { [17:27:00.526] old_names <- names(...future.oldEnvVars) [17:27:00.526] envs <- base::Sys.getenv() [17:27:00.526] names <- names(envs) [17:27:00.526] common <- intersect(names, old_names) [17:27:00.526] added <- setdiff(names, old_names) [17:27:00.526] removed <- setdiff(old_names, names) [17:27:00.526] changed <- common[...future.oldEnvVars[common] != [17:27:00.526] envs[common]] [17:27:00.526] NAMES <- toupper(changed) [17:27:00.526] args <- list() [17:27:00.526] for (kk in seq_along(NAMES)) { [17:27:00.526] name <- changed[[kk]] [17:27:00.526] NAME <- NAMES[[kk]] [17:27:00.526] if (name != NAME && is.element(NAME, old_names)) [17:27:00.526] next [17:27:00.526] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.526] } [17:27:00.526] NAMES <- toupper(added) [17:27:00.526] for (kk in seq_along(NAMES)) { [17:27:00.526] name <- added[[kk]] [17:27:00.526] NAME <- NAMES[[kk]] [17:27:00.526] if (name != NAME && is.element(NAME, old_names)) [17:27:00.526] next [17:27:00.526] args[[name]] <- "" [17:27:00.526] } [17:27:00.526] NAMES <- toupper(removed) [17:27:00.526] for (kk in seq_along(NAMES)) { [17:27:00.526] name <- removed[[kk]] [17:27:00.526] NAME <- NAMES[[kk]] [17:27:00.526] if (name != NAME && is.element(NAME, old_names)) [17:27:00.526] next [17:27:00.526] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.526] } [17:27:00.526] if (length(args) > 0) [17:27:00.526] base::do.call(base::Sys.setenv, args = args) [17:27:00.526] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.526] } [17:27:00.526] else { [17:27:00.526] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.526] } [17:27:00.526] { [17:27:00.526] if (base::length(...future.futureOptionsAdded) > [17:27:00.526] 0L) { [17:27:00.526] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.526] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.526] base::options(opts) [17:27:00.526] } [17:27:00.526] { [17:27:00.526] { [17:27:00.526] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.526] NULL [17:27:00.526] } [17:27:00.526] options(future.plan = NULL) [17:27:00.526] if (is.na(NA_character_)) [17:27:00.526] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.526] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.526] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.526] .init = FALSE) [17:27:00.526] } [17:27:00.526] } [17:27:00.526] } [17:27:00.526] }) [17:27:00.526] if (TRUE) { [17:27:00.526] base::sink(type = "output", split = FALSE) [17:27:00.526] if (TRUE) { [17:27:00.526] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.526] } [17:27:00.526] else { [17:27:00.526] ...future.result["stdout"] <- base::list(NULL) [17:27:00.526] } [17:27:00.526] base::close(...future.stdout) [17:27:00.526] ...future.stdout <- NULL [17:27:00.526] } [17:27:00.526] ...future.result$conditions <- ...future.conditions [17:27:00.526] ...future.result$finished <- base::Sys.time() [17:27:00.526] ...future.result [17:27:00.526] } [17:27:00.531] Exporting 1 global objects (0 bytes) to cluster node #1 ... [17:27:00.531] Exporting 'x' (0 bytes) to cluster node #1 ... [17:27:00.531] Exporting 'x' (0 bytes) to cluster node #1 ... DONE [17:27:00.532] Exporting 1 global objects (0 bytes) to cluster node #1 ... DONE [17:27:00.532] MultisessionFuture started [17:27:00.532] - Launch lazy future ... done [17:27:00.533] run() for 'MultisessionFuture' ... done [17:27:00.533] result() for ClusterFuture ... [17:27:00.533] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.533] - Validating connection of MultisessionFuture [17:27:00.547] - received message: FutureResult [17:27:00.547] - Received FutureResult [17:27:00.547] - Erased future from FutureRegistry [17:27:00.547] result() for ClusterFuture ... [17:27:00.547] - result already collected: FutureResult [17:27:00.547] result() for ClusterFuture ... done [17:27:00.548] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.548] result() for ClusterFuture ... done [17:27:00.548] result() for ClusterFuture ... [17:27:00.548] - result already collected: FutureResult [17:27:00.548] result() for ClusterFuture ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:27:00.549] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:27:00.549] Searching for globals... [17:27:00.551] - globals found: [5] '{', 'x', '<-', '[[', '[[<-' [17:27:00.551] Searching for globals ... DONE [17:27:00.552] Resolving globals: TRUE [17:27:00.552] Resolving any globals that are futures ... [17:27:00.552] - globals: [5] '{', 'x', '<-', '[[', '[[<-' [17:27:00.552] Resolving any globals that are futures ... DONE [17:27:00.553] Resolving futures part of globals (recursively) ... [17:27:00.553] resolve() on list ... [17:27:00.553] recursive: 99 [17:27:00.553] length: 1 [17:27:00.553] elements: 'x' [17:27:00.554] length: 0 (resolved future 1) [17:27:00.554] resolve() on list ... DONE [17:27:00.554] - globals: [1] 'x' [17:27:00.554] Resolving futures part of globals (recursively) ... DONE [17:27:00.554] The total size of the 1 globals is 0 bytes (0 bytes) [17:27:00.555] The total size of the 1 globals exported for future expression ('{; x[["a"]] <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:27:00.555] - globals: [1] 'x' [17:27:00.555] [17:27:00.555] getGlobalsAndPackages() ... DONE [17:27:00.556] run() for 'Future' ... [17:27:00.556] - state: 'created' [17:27:00.556] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:00.569] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:00.570] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:00.570] - Field: 'node' [17:27:00.570] - Field: 'label' [17:27:00.570] - Field: 'local' [17:27:00.570] - Field: 'owner' [17:27:00.571] - Field: 'envir' [17:27:00.571] - Field: 'workers' [17:27:00.571] - Field: 'packages' [17:27:00.571] - Field: 'gc' [17:27:00.571] - Field: 'conditions' [17:27:00.571] - Field: 'persistent' [17:27:00.572] - Field: 'expr' [17:27:00.572] - Field: 'uuid' [17:27:00.572] - Field: 'seed' [17:27:00.572] - Field: 'version' [17:27:00.572] - Field: 'result' [17:27:00.572] - Field: 'asynchronous' [17:27:00.573] - Field: 'calls' [17:27:00.573] - Field: 'globals' [17:27:00.573] - Field: 'stdout' [17:27:00.573] - Field: 'earlySignal' [17:27:00.573] - Field: 'lazy' [17:27:00.574] - Field: 'state' [17:27:00.574] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:00.574] - Launch lazy future ... [17:27:00.574] Packages needed by the future expression (n = 0): [17:27:00.574] Packages needed by future strategies (n = 0): [17:27:00.575] { [17:27:00.575] { [17:27:00.575] { [17:27:00.575] ...future.startTime <- base::Sys.time() [17:27:00.575] { [17:27:00.575] { [17:27:00.575] { [17:27:00.575] { [17:27:00.575] base::local({ [17:27:00.575] has_future <- base::requireNamespace("future", [17:27:00.575] quietly = TRUE) [17:27:00.575] if (has_future) { [17:27:00.575] ns <- base::getNamespace("future") [17:27:00.575] version <- ns[[".package"]][["version"]] [17:27:00.575] if (is.null(version)) [17:27:00.575] version <- utils::packageVersion("future") [17:27:00.575] } [17:27:00.575] else { [17:27:00.575] version <- NULL [17:27:00.575] } [17:27:00.575] if (!has_future || version < "1.8.0") { [17:27:00.575] info <- base::c(r_version = base::gsub("R version ", [17:27:00.575] "", base::R.version$version.string), [17:27:00.575] platform = base::sprintf("%s (%s-bit)", [17:27:00.575] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.575] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.575] "release", "version")], collapse = " "), [17:27:00.575] hostname = base::Sys.info()[["nodename"]]) [17:27:00.575] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.575] info) [17:27:00.575] info <- base::paste(info, collapse = "; ") [17:27:00.575] if (!has_future) { [17:27:00.575] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.575] info) [17:27:00.575] } [17:27:00.575] else { [17:27:00.575] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.575] info, version) [17:27:00.575] } [17:27:00.575] base::stop(msg) [17:27:00.575] } [17:27:00.575] }) [17:27:00.575] } [17:27:00.575] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.575] base::options(mc.cores = 1L) [17:27:00.575] } [17:27:00.575] ...future.strategy.old <- future::plan("list") [17:27:00.575] options(future.plan = NULL) [17:27:00.575] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.575] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.575] } [17:27:00.575] ...future.workdir <- getwd() [17:27:00.575] } [17:27:00.575] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.575] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.575] } [17:27:00.575] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.575] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.575] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.575] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.575] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.575] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.575] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.575] base::names(...future.oldOptions)) [17:27:00.575] } [17:27:00.575] if (FALSE) { [17:27:00.575] } [17:27:00.575] else { [17:27:00.575] if (TRUE) { [17:27:00.575] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.575] open = "w") [17:27:00.575] } [17:27:00.575] else { [17:27:00.575] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.575] windows = "NUL", "/dev/null"), open = "w") [17:27:00.575] } [17:27:00.575] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.575] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.575] base::sink(type = "output", split = FALSE) [17:27:00.575] base::close(...future.stdout) [17:27:00.575] }, add = TRUE) [17:27:00.575] } [17:27:00.575] ...future.frame <- base::sys.nframe() [17:27:00.575] ...future.conditions <- base::list() [17:27:00.575] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.575] if (FALSE) { [17:27:00.575] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.575] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.575] } [17:27:00.575] ...future.result <- base::tryCatch({ [17:27:00.575] base::withCallingHandlers({ [17:27:00.575] ...future.value <- base::withVisible(base::local({ [17:27:00.575] ...future.makeSendCondition <- base::local({ [17:27:00.575] sendCondition <- NULL [17:27:00.575] function(frame = 1L) { [17:27:00.575] if (is.function(sendCondition)) [17:27:00.575] return(sendCondition) [17:27:00.575] ns <- getNamespace("parallel") [17:27:00.575] if (exists("sendData", mode = "function", [17:27:00.575] envir = ns)) { [17:27:00.575] parallel_sendData <- get("sendData", mode = "function", [17:27:00.575] envir = ns) [17:27:00.575] envir <- sys.frame(frame) [17:27:00.575] master <- NULL [17:27:00.575] while (!identical(envir, .GlobalEnv) && [17:27:00.575] !identical(envir, emptyenv())) { [17:27:00.575] if (exists("master", mode = "list", envir = envir, [17:27:00.575] inherits = FALSE)) { [17:27:00.575] master <- get("master", mode = "list", [17:27:00.575] envir = envir, inherits = FALSE) [17:27:00.575] if (inherits(master, c("SOCKnode", [17:27:00.575] "SOCK0node"))) { [17:27:00.575] sendCondition <<- function(cond) { [17:27:00.575] data <- list(type = "VALUE", value = cond, [17:27:00.575] success = TRUE) [17:27:00.575] parallel_sendData(master, data) [17:27:00.575] } [17:27:00.575] return(sendCondition) [17:27:00.575] } [17:27:00.575] } [17:27:00.575] frame <- frame + 1L [17:27:00.575] envir <- sys.frame(frame) [17:27:00.575] } [17:27:00.575] } [17:27:00.575] sendCondition <<- function(cond) NULL [17:27:00.575] } [17:27:00.575] }) [17:27:00.575] withCallingHandlers({ [17:27:00.575] { [17:27:00.575] x[["a"]] <- 1 [17:27:00.575] x [17:27:00.575] } [17:27:00.575] }, immediateCondition = function(cond) { [17:27:00.575] sendCondition <- ...future.makeSendCondition() [17:27:00.575] sendCondition(cond) [17:27:00.575] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.575] { [17:27:00.575] inherits <- base::inherits [17:27:00.575] invokeRestart <- base::invokeRestart [17:27:00.575] is.null <- base::is.null [17:27:00.575] muffled <- FALSE [17:27:00.575] if (inherits(cond, "message")) { [17:27:00.575] muffled <- grepl(pattern, "muffleMessage") [17:27:00.575] if (muffled) [17:27:00.575] invokeRestart("muffleMessage") [17:27:00.575] } [17:27:00.575] else if (inherits(cond, "warning")) { [17:27:00.575] muffled <- grepl(pattern, "muffleWarning") [17:27:00.575] if (muffled) [17:27:00.575] invokeRestart("muffleWarning") [17:27:00.575] } [17:27:00.575] else if (inherits(cond, "condition")) { [17:27:00.575] if (!is.null(pattern)) { [17:27:00.575] computeRestarts <- base::computeRestarts [17:27:00.575] grepl <- base::grepl [17:27:00.575] restarts <- computeRestarts(cond) [17:27:00.575] for (restart in restarts) { [17:27:00.575] name <- restart$name [17:27:00.575] if (is.null(name)) [17:27:00.575] next [17:27:00.575] if (!grepl(pattern, name)) [17:27:00.575] next [17:27:00.575] invokeRestart(restart) [17:27:00.575] muffled <- TRUE [17:27:00.575] break [17:27:00.575] } [17:27:00.575] } [17:27:00.575] } [17:27:00.575] invisible(muffled) [17:27:00.575] } [17:27:00.575] muffleCondition(cond) [17:27:00.575] }) [17:27:00.575] })) [17:27:00.575] future::FutureResult(value = ...future.value$value, [17:27:00.575] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.575] ...future.rng), globalenv = if (FALSE) [17:27:00.575] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.575] ...future.globalenv.names)) [17:27:00.575] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.575] }, condition = base::local({ [17:27:00.575] c <- base::c [17:27:00.575] inherits <- base::inherits [17:27:00.575] invokeRestart <- base::invokeRestart [17:27:00.575] length <- base::length [17:27:00.575] list <- base::list [17:27:00.575] seq.int <- base::seq.int [17:27:00.575] signalCondition <- base::signalCondition [17:27:00.575] sys.calls <- base::sys.calls [17:27:00.575] `[[` <- base::`[[` [17:27:00.575] `+` <- base::`+` [17:27:00.575] `<<-` <- base::`<<-` [17:27:00.575] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.575] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.575] 3L)] [17:27:00.575] } [17:27:00.575] function(cond) { [17:27:00.575] is_error <- inherits(cond, "error") [17:27:00.575] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.575] NULL) [17:27:00.575] if (is_error) { [17:27:00.575] sessionInformation <- function() { [17:27:00.575] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.575] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.575] search = base::search(), system = base::Sys.info()) [17:27:00.575] } [17:27:00.575] ...future.conditions[[length(...future.conditions) + [17:27:00.575] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.575] cond$call), session = sessionInformation(), [17:27:00.575] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.575] signalCondition(cond) [17:27:00.575] } [17:27:00.575] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.575] "immediateCondition"))) { [17:27:00.575] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.575] ...future.conditions[[length(...future.conditions) + [17:27:00.575] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.575] if (TRUE && !signal) { [17:27:00.575] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.575] { [17:27:00.575] inherits <- base::inherits [17:27:00.575] invokeRestart <- base::invokeRestart [17:27:00.575] is.null <- base::is.null [17:27:00.575] muffled <- FALSE [17:27:00.575] if (inherits(cond, "message")) { [17:27:00.575] muffled <- grepl(pattern, "muffleMessage") [17:27:00.575] if (muffled) [17:27:00.575] invokeRestart("muffleMessage") [17:27:00.575] } [17:27:00.575] else if (inherits(cond, "warning")) { [17:27:00.575] muffled <- grepl(pattern, "muffleWarning") [17:27:00.575] if (muffled) [17:27:00.575] invokeRestart("muffleWarning") [17:27:00.575] } [17:27:00.575] else if (inherits(cond, "condition")) { [17:27:00.575] if (!is.null(pattern)) { [17:27:00.575] computeRestarts <- base::computeRestarts [17:27:00.575] grepl <- base::grepl [17:27:00.575] restarts <- computeRestarts(cond) [17:27:00.575] for (restart in restarts) { [17:27:00.575] name <- restart$name [17:27:00.575] if (is.null(name)) [17:27:00.575] next [17:27:00.575] if (!grepl(pattern, name)) [17:27:00.575] next [17:27:00.575] invokeRestart(restart) [17:27:00.575] muffled <- TRUE [17:27:00.575] break [17:27:00.575] } [17:27:00.575] } [17:27:00.575] } [17:27:00.575] invisible(muffled) [17:27:00.575] } [17:27:00.575] muffleCondition(cond, pattern = "^muffle") [17:27:00.575] } [17:27:00.575] } [17:27:00.575] else { [17:27:00.575] if (TRUE) { [17:27:00.575] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.575] { [17:27:00.575] inherits <- base::inherits [17:27:00.575] invokeRestart <- base::invokeRestart [17:27:00.575] is.null <- base::is.null [17:27:00.575] muffled <- FALSE [17:27:00.575] if (inherits(cond, "message")) { [17:27:00.575] muffled <- grepl(pattern, "muffleMessage") [17:27:00.575] if (muffled) [17:27:00.575] invokeRestart("muffleMessage") [17:27:00.575] } [17:27:00.575] else if (inherits(cond, "warning")) { [17:27:00.575] muffled <- grepl(pattern, "muffleWarning") [17:27:00.575] if (muffled) [17:27:00.575] invokeRestart("muffleWarning") [17:27:00.575] } [17:27:00.575] else if (inherits(cond, "condition")) { [17:27:00.575] if (!is.null(pattern)) { [17:27:00.575] computeRestarts <- base::computeRestarts [17:27:00.575] grepl <- base::grepl [17:27:00.575] restarts <- computeRestarts(cond) [17:27:00.575] for (restart in restarts) { [17:27:00.575] name <- restart$name [17:27:00.575] if (is.null(name)) [17:27:00.575] next [17:27:00.575] if (!grepl(pattern, name)) [17:27:00.575] next [17:27:00.575] invokeRestart(restart) [17:27:00.575] muffled <- TRUE [17:27:00.575] break [17:27:00.575] } [17:27:00.575] } [17:27:00.575] } [17:27:00.575] invisible(muffled) [17:27:00.575] } [17:27:00.575] muffleCondition(cond, pattern = "^muffle") [17:27:00.575] } [17:27:00.575] } [17:27:00.575] } [17:27:00.575] })) [17:27:00.575] }, error = function(ex) { [17:27:00.575] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.575] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.575] ...future.rng), started = ...future.startTime, [17:27:00.575] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.575] version = "1.8"), class = "FutureResult") [17:27:00.575] }, finally = { [17:27:00.575] if (!identical(...future.workdir, getwd())) [17:27:00.575] setwd(...future.workdir) [17:27:00.575] { [17:27:00.575] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.575] ...future.oldOptions$nwarnings <- NULL [17:27:00.575] } [17:27:00.575] base::options(...future.oldOptions) [17:27:00.575] if (.Platform$OS.type == "windows") { [17:27:00.575] old_names <- names(...future.oldEnvVars) [17:27:00.575] envs <- base::Sys.getenv() [17:27:00.575] names <- names(envs) [17:27:00.575] common <- intersect(names, old_names) [17:27:00.575] added <- setdiff(names, old_names) [17:27:00.575] removed <- setdiff(old_names, names) [17:27:00.575] changed <- common[...future.oldEnvVars[common] != [17:27:00.575] envs[common]] [17:27:00.575] NAMES <- toupper(changed) [17:27:00.575] args <- list() [17:27:00.575] for (kk in seq_along(NAMES)) { [17:27:00.575] name <- changed[[kk]] [17:27:00.575] NAME <- NAMES[[kk]] [17:27:00.575] if (name != NAME && is.element(NAME, old_names)) [17:27:00.575] next [17:27:00.575] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.575] } [17:27:00.575] NAMES <- toupper(added) [17:27:00.575] for (kk in seq_along(NAMES)) { [17:27:00.575] name <- added[[kk]] [17:27:00.575] NAME <- NAMES[[kk]] [17:27:00.575] if (name != NAME && is.element(NAME, old_names)) [17:27:00.575] next [17:27:00.575] args[[name]] <- "" [17:27:00.575] } [17:27:00.575] NAMES <- toupper(removed) [17:27:00.575] for (kk in seq_along(NAMES)) { [17:27:00.575] name <- removed[[kk]] [17:27:00.575] NAME <- NAMES[[kk]] [17:27:00.575] if (name != NAME && is.element(NAME, old_names)) [17:27:00.575] next [17:27:00.575] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.575] } [17:27:00.575] if (length(args) > 0) [17:27:00.575] base::do.call(base::Sys.setenv, args = args) [17:27:00.575] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.575] } [17:27:00.575] else { [17:27:00.575] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.575] } [17:27:00.575] { [17:27:00.575] if (base::length(...future.futureOptionsAdded) > [17:27:00.575] 0L) { [17:27:00.575] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.575] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.575] base::options(opts) [17:27:00.575] } [17:27:00.575] { [17:27:00.575] { [17:27:00.575] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.575] NULL [17:27:00.575] } [17:27:00.575] options(future.plan = NULL) [17:27:00.575] if (is.na(NA_character_)) [17:27:00.575] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.575] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.575] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.575] .init = FALSE) [17:27:00.575] } [17:27:00.575] } [17:27:00.575] } [17:27:00.575] }) [17:27:00.575] if (TRUE) { [17:27:00.575] base::sink(type = "output", split = FALSE) [17:27:00.575] if (TRUE) { [17:27:00.575] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.575] } [17:27:00.575] else { [17:27:00.575] ...future.result["stdout"] <- base::list(NULL) [17:27:00.575] } [17:27:00.575] base::close(...future.stdout) [17:27:00.575] ...future.stdout <- NULL [17:27:00.575] } [17:27:00.575] ...future.result$conditions <- ...future.conditions [17:27:00.575] ...future.result$finished <- base::Sys.time() [17:27:00.575] ...future.result [17:27:00.575] } [17:27:00.580] Exporting 1 global objects (0 bytes) to cluster node #1 ... [17:27:00.580] Exporting 'x' (0 bytes) to cluster node #1 ... [17:27:00.581] Exporting 'x' (0 bytes) to cluster node #1 ... DONE [17:27:00.581] Exporting 1 global objects (0 bytes) to cluster node #1 ... DONE [17:27:00.582] MultisessionFuture started [17:27:00.582] - Launch lazy future ... done [17:27:00.582] run() for 'MultisessionFuture' ... done [17:27:00.582] result() for ClusterFuture ... [17:27:00.582] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.583] - Validating connection of MultisessionFuture [17:27:00.595] - received message: FutureResult [17:27:00.595] - Received FutureResult [17:27:00.595] - Erased future from FutureRegistry [17:27:00.595] result() for ClusterFuture ... [17:27:00.596] - result already collected: FutureResult [17:27:00.596] result() for ClusterFuture ... done [17:27:00.596] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.596] result() for ClusterFuture ... done [17:27:00.596] result() for ClusterFuture ... [17:27:00.596] - result already collected: FutureResult [17:27:00.597] result() for ClusterFuture ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:27:00.597] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:27:00.597] Searching for globals... [17:27:00.600] - globals found: [5] '{', 'x', '<-', '[[', '[[<-' [17:27:00.600] Searching for globals ... DONE [17:27:00.600] Resolving globals: TRUE [17:27:00.600] Resolving any globals that are futures ... [17:27:00.600] - globals: [5] '{', 'x', '<-', '[[', '[[<-' [17:27:00.601] Resolving any globals that are futures ... DONE [17:27:00.601] Resolving futures part of globals (recursively) ... [17:27:00.601] resolve() on list ... [17:27:00.602] recursive: 99 [17:27:00.602] length: 1 [17:27:00.602] elements: 'x' [17:27:00.602] length: 0 (resolved future 1) [17:27:00.602] resolve() on list ... DONE [17:27:00.603] - globals: [1] 'x' [17:27:00.603] Resolving futures part of globals (recursively) ... DONE [17:27:00.603] The total size of the 1 globals is 0 bytes (0 bytes) [17:27:00.603] The total size of the 1 globals exported for future expression ('{; x[["a"]] <- 1; x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:27:00.604] - globals: [1] 'x' [17:27:00.604] [17:27:00.604] getGlobalsAndPackages() ... DONE [17:27:00.604] run() for 'Future' ... [17:27:00.604] - state: 'created' [17:27:00.606] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:00.620] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:00.620] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:00.620] - Field: 'node' [17:27:00.620] - Field: 'label' [17:27:00.621] - Field: 'local' [17:27:00.621] - Field: 'owner' [17:27:00.621] - Field: 'envir' [17:27:00.621] - Field: 'workers' [17:27:00.621] - Field: 'packages' [17:27:00.621] - Field: 'gc' [17:27:00.622] - Field: 'conditions' [17:27:00.622] - Field: 'persistent' [17:27:00.622] - Field: 'expr' [17:27:00.622] - Field: 'uuid' [17:27:00.622] - Field: 'seed' [17:27:00.623] - Field: 'version' [17:27:00.623] - Field: 'result' [17:27:00.623] - Field: 'asynchronous' [17:27:00.623] - Field: 'calls' [17:27:00.623] - Field: 'globals' [17:27:00.623] - Field: 'stdout' [17:27:00.624] - Field: 'earlySignal' [17:27:00.624] - Field: 'lazy' [17:27:00.624] - Field: 'state' [17:27:00.624] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:00.624] - Launch lazy future ... [17:27:00.625] Packages needed by the future expression (n = 0): [17:27:00.625] Packages needed by future strategies (n = 0): [17:27:00.625] { [17:27:00.625] { [17:27:00.625] { [17:27:00.625] ...future.startTime <- base::Sys.time() [17:27:00.625] { [17:27:00.625] { [17:27:00.625] { [17:27:00.625] { [17:27:00.625] base::local({ [17:27:00.625] has_future <- base::requireNamespace("future", [17:27:00.625] quietly = TRUE) [17:27:00.625] if (has_future) { [17:27:00.625] ns <- base::getNamespace("future") [17:27:00.625] version <- ns[[".package"]][["version"]] [17:27:00.625] if (is.null(version)) [17:27:00.625] version <- utils::packageVersion("future") [17:27:00.625] } [17:27:00.625] else { [17:27:00.625] version <- NULL [17:27:00.625] } [17:27:00.625] if (!has_future || version < "1.8.0") { [17:27:00.625] info <- base::c(r_version = base::gsub("R version ", [17:27:00.625] "", base::R.version$version.string), [17:27:00.625] platform = base::sprintf("%s (%s-bit)", [17:27:00.625] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.625] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.625] "release", "version")], collapse = " "), [17:27:00.625] hostname = base::Sys.info()[["nodename"]]) [17:27:00.625] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.625] info) [17:27:00.625] info <- base::paste(info, collapse = "; ") [17:27:00.625] if (!has_future) { [17:27:00.625] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.625] info) [17:27:00.625] } [17:27:00.625] else { [17:27:00.625] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.625] info, version) [17:27:00.625] } [17:27:00.625] base::stop(msg) [17:27:00.625] } [17:27:00.625] }) [17:27:00.625] } [17:27:00.625] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.625] base::options(mc.cores = 1L) [17:27:00.625] } [17:27:00.625] ...future.strategy.old <- future::plan("list") [17:27:00.625] options(future.plan = NULL) [17:27:00.625] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.625] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.625] } [17:27:00.625] ...future.workdir <- getwd() [17:27:00.625] } [17:27:00.625] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.625] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.625] } [17:27:00.625] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.625] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.625] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.625] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.625] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.625] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.625] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.625] base::names(...future.oldOptions)) [17:27:00.625] } [17:27:00.625] if (FALSE) { [17:27:00.625] } [17:27:00.625] else { [17:27:00.625] if (TRUE) { [17:27:00.625] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.625] open = "w") [17:27:00.625] } [17:27:00.625] else { [17:27:00.625] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.625] windows = "NUL", "/dev/null"), open = "w") [17:27:00.625] } [17:27:00.625] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.625] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.625] base::sink(type = "output", split = FALSE) [17:27:00.625] base::close(...future.stdout) [17:27:00.625] }, add = TRUE) [17:27:00.625] } [17:27:00.625] ...future.frame <- base::sys.nframe() [17:27:00.625] ...future.conditions <- base::list() [17:27:00.625] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.625] if (FALSE) { [17:27:00.625] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.625] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.625] } [17:27:00.625] ...future.result <- base::tryCatch({ [17:27:00.625] base::withCallingHandlers({ [17:27:00.625] ...future.value <- base::withVisible(base::local({ [17:27:00.625] ...future.makeSendCondition <- base::local({ [17:27:00.625] sendCondition <- NULL [17:27:00.625] function(frame = 1L) { [17:27:00.625] if (is.function(sendCondition)) [17:27:00.625] return(sendCondition) [17:27:00.625] ns <- getNamespace("parallel") [17:27:00.625] if (exists("sendData", mode = "function", [17:27:00.625] envir = ns)) { [17:27:00.625] parallel_sendData <- get("sendData", mode = "function", [17:27:00.625] envir = ns) [17:27:00.625] envir <- sys.frame(frame) [17:27:00.625] master <- NULL [17:27:00.625] while (!identical(envir, .GlobalEnv) && [17:27:00.625] !identical(envir, emptyenv())) { [17:27:00.625] if (exists("master", mode = "list", envir = envir, [17:27:00.625] inherits = FALSE)) { [17:27:00.625] master <- get("master", mode = "list", [17:27:00.625] envir = envir, inherits = FALSE) [17:27:00.625] if (inherits(master, c("SOCKnode", [17:27:00.625] "SOCK0node"))) { [17:27:00.625] sendCondition <<- function(cond) { [17:27:00.625] data <- list(type = "VALUE", value = cond, [17:27:00.625] success = TRUE) [17:27:00.625] parallel_sendData(master, data) [17:27:00.625] } [17:27:00.625] return(sendCondition) [17:27:00.625] } [17:27:00.625] } [17:27:00.625] frame <- frame + 1L [17:27:00.625] envir <- sys.frame(frame) [17:27:00.625] } [17:27:00.625] } [17:27:00.625] sendCondition <<- function(cond) NULL [17:27:00.625] } [17:27:00.625] }) [17:27:00.625] withCallingHandlers({ [17:27:00.625] { [17:27:00.625] x[["a"]] <- 1 [17:27:00.625] x [17:27:00.625] } [17:27:00.625] }, immediateCondition = function(cond) { [17:27:00.625] sendCondition <- ...future.makeSendCondition() [17:27:00.625] sendCondition(cond) [17:27:00.625] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.625] { [17:27:00.625] inherits <- base::inherits [17:27:00.625] invokeRestart <- base::invokeRestart [17:27:00.625] is.null <- base::is.null [17:27:00.625] muffled <- FALSE [17:27:00.625] if (inherits(cond, "message")) { [17:27:00.625] muffled <- grepl(pattern, "muffleMessage") [17:27:00.625] if (muffled) [17:27:00.625] invokeRestart("muffleMessage") [17:27:00.625] } [17:27:00.625] else if (inherits(cond, "warning")) { [17:27:00.625] muffled <- grepl(pattern, "muffleWarning") [17:27:00.625] if (muffled) [17:27:00.625] invokeRestart("muffleWarning") [17:27:00.625] } [17:27:00.625] else if (inherits(cond, "condition")) { [17:27:00.625] if (!is.null(pattern)) { [17:27:00.625] computeRestarts <- base::computeRestarts [17:27:00.625] grepl <- base::grepl [17:27:00.625] restarts <- computeRestarts(cond) [17:27:00.625] for (restart in restarts) { [17:27:00.625] name <- restart$name [17:27:00.625] if (is.null(name)) [17:27:00.625] next [17:27:00.625] if (!grepl(pattern, name)) [17:27:00.625] next [17:27:00.625] invokeRestart(restart) [17:27:00.625] muffled <- TRUE [17:27:00.625] break [17:27:00.625] } [17:27:00.625] } [17:27:00.625] } [17:27:00.625] invisible(muffled) [17:27:00.625] } [17:27:00.625] muffleCondition(cond) [17:27:00.625] }) [17:27:00.625] })) [17:27:00.625] future::FutureResult(value = ...future.value$value, [17:27:00.625] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.625] ...future.rng), globalenv = if (FALSE) [17:27:00.625] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.625] ...future.globalenv.names)) [17:27:00.625] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.625] }, condition = base::local({ [17:27:00.625] c <- base::c [17:27:00.625] inherits <- base::inherits [17:27:00.625] invokeRestart <- base::invokeRestart [17:27:00.625] length <- base::length [17:27:00.625] list <- base::list [17:27:00.625] seq.int <- base::seq.int [17:27:00.625] signalCondition <- base::signalCondition [17:27:00.625] sys.calls <- base::sys.calls [17:27:00.625] `[[` <- base::`[[` [17:27:00.625] `+` <- base::`+` [17:27:00.625] `<<-` <- base::`<<-` [17:27:00.625] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.625] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.625] 3L)] [17:27:00.625] } [17:27:00.625] function(cond) { [17:27:00.625] is_error <- inherits(cond, "error") [17:27:00.625] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.625] NULL) [17:27:00.625] if (is_error) { [17:27:00.625] sessionInformation <- function() { [17:27:00.625] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.625] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.625] search = base::search(), system = base::Sys.info()) [17:27:00.625] } [17:27:00.625] ...future.conditions[[length(...future.conditions) + [17:27:00.625] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.625] cond$call), session = sessionInformation(), [17:27:00.625] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.625] signalCondition(cond) [17:27:00.625] } [17:27:00.625] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.625] "immediateCondition"))) { [17:27:00.625] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.625] ...future.conditions[[length(...future.conditions) + [17:27:00.625] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.625] if (TRUE && !signal) { [17:27:00.625] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.625] { [17:27:00.625] inherits <- base::inherits [17:27:00.625] invokeRestart <- base::invokeRestart [17:27:00.625] is.null <- base::is.null [17:27:00.625] muffled <- FALSE [17:27:00.625] if (inherits(cond, "message")) { [17:27:00.625] muffled <- grepl(pattern, "muffleMessage") [17:27:00.625] if (muffled) [17:27:00.625] invokeRestart("muffleMessage") [17:27:00.625] } [17:27:00.625] else if (inherits(cond, "warning")) { [17:27:00.625] muffled <- grepl(pattern, "muffleWarning") [17:27:00.625] if (muffled) [17:27:00.625] invokeRestart("muffleWarning") [17:27:00.625] } [17:27:00.625] else if (inherits(cond, "condition")) { [17:27:00.625] if (!is.null(pattern)) { [17:27:00.625] computeRestarts <- base::computeRestarts [17:27:00.625] grepl <- base::grepl [17:27:00.625] restarts <- computeRestarts(cond) [17:27:00.625] for (restart in restarts) { [17:27:00.625] name <- restart$name [17:27:00.625] if (is.null(name)) [17:27:00.625] next [17:27:00.625] if (!grepl(pattern, name)) [17:27:00.625] next [17:27:00.625] invokeRestart(restart) [17:27:00.625] muffled <- TRUE [17:27:00.625] break [17:27:00.625] } [17:27:00.625] } [17:27:00.625] } [17:27:00.625] invisible(muffled) [17:27:00.625] } [17:27:00.625] muffleCondition(cond, pattern = "^muffle") [17:27:00.625] } [17:27:00.625] } [17:27:00.625] else { [17:27:00.625] if (TRUE) { [17:27:00.625] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.625] { [17:27:00.625] inherits <- base::inherits [17:27:00.625] invokeRestart <- base::invokeRestart [17:27:00.625] is.null <- base::is.null [17:27:00.625] muffled <- FALSE [17:27:00.625] if (inherits(cond, "message")) { [17:27:00.625] muffled <- grepl(pattern, "muffleMessage") [17:27:00.625] if (muffled) [17:27:00.625] invokeRestart("muffleMessage") [17:27:00.625] } [17:27:00.625] else if (inherits(cond, "warning")) { [17:27:00.625] muffled <- grepl(pattern, "muffleWarning") [17:27:00.625] if (muffled) [17:27:00.625] invokeRestart("muffleWarning") [17:27:00.625] } [17:27:00.625] else if (inherits(cond, "condition")) { [17:27:00.625] if (!is.null(pattern)) { [17:27:00.625] computeRestarts <- base::computeRestarts [17:27:00.625] grepl <- base::grepl [17:27:00.625] restarts <- computeRestarts(cond) [17:27:00.625] for (restart in restarts) { [17:27:00.625] name <- restart$name [17:27:00.625] if (is.null(name)) [17:27:00.625] next [17:27:00.625] if (!grepl(pattern, name)) [17:27:00.625] next [17:27:00.625] invokeRestart(restart) [17:27:00.625] muffled <- TRUE [17:27:00.625] break [17:27:00.625] } [17:27:00.625] } [17:27:00.625] } [17:27:00.625] invisible(muffled) [17:27:00.625] } [17:27:00.625] muffleCondition(cond, pattern = "^muffle") [17:27:00.625] } [17:27:00.625] } [17:27:00.625] } [17:27:00.625] })) [17:27:00.625] }, error = function(ex) { [17:27:00.625] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.625] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.625] ...future.rng), started = ...future.startTime, [17:27:00.625] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.625] version = "1.8"), class = "FutureResult") [17:27:00.625] }, finally = { [17:27:00.625] if (!identical(...future.workdir, getwd())) [17:27:00.625] setwd(...future.workdir) [17:27:00.625] { [17:27:00.625] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.625] ...future.oldOptions$nwarnings <- NULL [17:27:00.625] } [17:27:00.625] base::options(...future.oldOptions) [17:27:00.625] if (.Platform$OS.type == "windows") { [17:27:00.625] old_names <- names(...future.oldEnvVars) [17:27:00.625] envs <- base::Sys.getenv() [17:27:00.625] names <- names(envs) [17:27:00.625] common <- intersect(names, old_names) [17:27:00.625] added <- setdiff(names, old_names) [17:27:00.625] removed <- setdiff(old_names, names) [17:27:00.625] changed <- common[...future.oldEnvVars[common] != [17:27:00.625] envs[common]] [17:27:00.625] NAMES <- toupper(changed) [17:27:00.625] args <- list() [17:27:00.625] for (kk in seq_along(NAMES)) { [17:27:00.625] name <- changed[[kk]] [17:27:00.625] NAME <- NAMES[[kk]] [17:27:00.625] if (name != NAME && is.element(NAME, old_names)) [17:27:00.625] next [17:27:00.625] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.625] } [17:27:00.625] NAMES <- toupper(added) [17:27:00.625] for (kk in seq_along(NAMES)) { [17:27:00.625] name <- added[[kk]] [17:27:00.625] NAME <- NAMES[[kk]] [17:27:00.625] if (name != NAME && is.element(NAME, old_names)) [17:27:00.625] next [17:27:00.625] args[[name]] <- "" [17:27:00.625] } [17:27:00.625] NAMES <- toupper(removed) [17:27:00.625] for (kk in seq_along(NAMES)) { [17:27:00.625] name <- removed[[kk]] [17:27:00.625] NAME <- NAMES[[kk]] [17:27:00.625] if (name != NAME && is.element(NAME, old_names)) [17:27:00.625] next [17:27:00.625] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.625] } [17:27:00.625] if (length(args) > 0) [17:27:00.625] base::do.call(base::Sys.setenv, args = args) [17:27:00.625] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.625] } [17:27:00.625] else { [17:27:00.625] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.625] } [17:27:00.625] { [17:27:00.625] if (base::length(...future.futureOptionsAdded) > [17:27:00.625] 0L) { [17:27:00.625] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.625] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.625] base::options(opts) [17:27:00.625] } [17:27:00.625] { [17:27:00.625] { [17:27:00.625] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.625] NULL [17:27:00.625] } [17:27:00.625] options(future.plan = NULL) [17:27:00.625] if (is.na(NA_character_)) [17:27:00.625] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.625] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.625] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.625] .init = FALSE) [17:27:00.625] } [17:27:00.625] } [17:27:00.625] } [17:27:00.625] }) [17:27:00.625] if (TRUE) { [17:27:00.625] base::sink(type = "output", split = FALSE) [17:27:00.625] if (TRUE) { [17:27:00.625] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.625] } [17:27:00.625] else { [17:27:00.625] ...future.result["stdout"] <- base::list(NULL) [17:27:00.625] } [17:27:00.625] base::close(...future.stdout) [17:27:00.625] ...future.stdout <- NULL [17:27:00.625] } [17:27:00.625] ...future.result$conditions <- ...future.conditions [17:27:00.625] ...future.result$finished <- base::Sys.time() [17:27:00.625] ...future.result [17:27:00.625] } [17:27:00.630] Exporting 1 global objects (0 bytes) to cluster node #1 ... [17:27:00.631] Exporting 'x' (0 bytes) to cluster node #1 ... [17:27:00.631] Exporting 'x' (0 bytes) to cluster node #1 ... DONE [17:27:00.631] Exporting 1 global objects (0 bytes) to cluster node #1 ... DONE [17:27:00.632] MultisessionFuture started [17:27:00.632] - Launch lazy future ... done [17:27:00.632] run() for 'MultisessionFuture' ... done [17:27:00.633] result() for ClusterFuture ... [17:27:00.633] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.633] - Validating connection of MultisessionFuture [17:27:00.646] - received message: FutureResult [17:27:00.646] - Received FutureResult [17:27:00.646] - Erased future from FutureRegistry [17:27:00.647] result() for ClusterFuture ... [17:27:00.647] - result already collected: FutureResult [17:27:00.647] result() for ClusterFuture ... done [17:27:00.647] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.647] result() for ClusterFuture ... done [17:27:00.647] result() for ClusterFuture ... [17:27:00.648] - result already collected: FutureResult [17:27:00.648] result() for ClusterFuture ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:27:00.648] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:27:00.649] Searching for globals... [17:27:00.651] - globals found: [6] '{', 'x', '<-', '[', '[<-', 'list' [17:27:00.651] Searching for globals ... DONE [17:27:00.651] Resolving globals: TRUE [17:27:00.652] Resolving any globals that are futures ... [17:27:00.652] - globals: [6] '{', 'x', '<-', '[', '[<-', 'list' [17:27:00.652] Resolving any globals that are futures ... DONE [17:27:00.652] Resolving futures part of globals (recursively) ... [17:27:00.653] resolve() on list ... [17:27:00.653] recursive: 99 [17:27:00.653] length: 1 [17:27:00.653] elements: 'x' [17:27:00.653] length: 0 (resolved future 1) [17:27:00.654] resolve() on list ... DONE [17:27:00.654] - globals: [1] 'x' [17:27:00.654] Resolving futures part of globals (recursively) ... DONE [17:27:00.654] The total size of the 1 globals is 0 bytes (0 bytes) [17:27:00.655] The total size of the 1 globals exported for future expression ('{; x["a"] <- list(1); x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:27:00.655] - globals: [1] 'x' [17:27:00.655] [17:27:00.655] getGlobalsAndPackages() ... DONE [17:27:00.655] run() for 'Future' ... [17:27:00.656] - state: 'created' [17:27:00.656] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:00.670] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:00.670] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:00.670] - Field: 'node' [17:27:00.670] - Field: 'label' [17:27:00.670] - Field: 'local' [17:27:00.671] - Field: 'owner' [17:27:00.671] - Field: 'envir' [17:27:00.671] - Field: 'workers' [17:27:00.671] - Field: 'packages' [17:27:00.671] - Field: 'gc' [17:27:00.671] - Field: 'conditions' [17:27:00.672] - Field: 'persistent' [17:27:00.672] - Field: 'expr' [17:27:00.672] - Field: 'uuid' [17:27:00.672] - Field: 'seed' [17:27:00.672] - Field: 'version' [17:27:00.673] - Field: 'result' [17:27:00.673] - Field: 'asynchronous' [17:27:00.673] - Field: 'calls' [17:27:00.673] - Field: 'globals' [17:27:00.673] - Field: 'stdout' [17:27:00.673] - Field: 'earlySignal' [17:27:00.674] - Field: 'lazy' [17:27:00.674] - Field: 'state' [17:27:00.674] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:00.674] - Launch lazy future ... [17:27:00.674] Packages needed by the future expression (n = 0): [17:27:00.675] Packages needed by future strategies (n = 0): [17:27:00.675] { [17:27:00.675] { [17:27:00.675] { [17:27:00.675] ...future.startTime <- base::Sys.time() [17:27:00.675] { [17:27:00.675] { [17:27:00.675] { [17:27:00.675] { [17:27:00.675] base::local({ [17:27:00.675] has_future <- base::requireNamespace("future", [17:27:00.675] quietly = TRUE) [17:27:00.675] if (has_future) { [17:27:00.675] ns <- base::getNamespace("future") [17:27:00.675] version <- ns[[".package"]][["version"]] [17:27:00.675] if (is.null(version)) [17:27:00.675] version <- utils::packageVersion("future") [17:27:00.675] } [17:27:00.675] else { [17:27:00.675] version <- NULL [17:27:00.675] } [17:27:00.675] if (!has_future || version < "1.8.0") { [17:27:00.675] info <- base::c(r_version = base::gsub("R version ", [17:27:00.675] "", base::R.version$version.string), [17:27:00.675] platform = base::sprintf("%s (%s-bit)", [17:27:00.675] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.675] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.675] "release", "version")], collapse = " "), [17:27:00.675] hostname = base::Sys.info()[["nodename"]]) [17:27:00.675] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.675] info) [17:27:00.675] info <- base::paste(info, collapse = "; ") [17:27:00.675] if (!has_future) { [17:27:00.675] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.675] info) [17:27:00.675] } [17:27:00.675] else { [17:27:00.675] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.675] info, version) [17:27:00.675] } [17:27:00.675] base::stop(msg) [17:27:00.675] } [17:27:00.675] }) [17:27:00.675] } [17:27:00.675] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.675] base::options(mc.cores = 1L) [17:27:00.675] } [17:27:00.675] ...future.strategy.old <- future::plan("list") [17:27:00.675] options(future.plan = NULL) [17:27:00.675] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.675] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.675] } [17:27:00.675] ...future.workdir <- getwd() [17:27:00.675] } [17:27:00.675] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.675] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.675] } [17:27:00.675] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.675] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.675] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.675] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.675] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.675] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.675] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.675] base::names(...future.oldOptions)) [17:27:00.675] } [17:27:00.675] if (FALSE) { [17:27:00.675] } [17:27:00.675] else { [17:27:00.675] if (TRUE) { [17:27:00.675] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.675] open = "w") [17:27:00.675] } [17:27:00.675] else { [17:27:00.675] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.675] windows = "NUL", "/dev/null"), open = "w") [17:27:00.675] } [17:27:00.675] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.675] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.675] base::sink(type = "output", split = FALSE) [17:27:00.675] base::close(...future.stdout) [17:27:00.675] }, add = TRUE) [17:27:00.675] } [17:27:00.675] ...future.frame <- base::sys.nframe() [17:27:00.675] ...future.conditions <- base::list() [17:27:00.675] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.675] if (FALSE) { [17:27:00.675] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.675] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.675] } [17:27:00.675] ...future.result <- base::tryCatch({ [17:27:00.675] base::withCallingHandlers({ [17:27:00.675] ...future.value <- base::withVisible(base::local({ [17:27:00.675] ...future.makeSendCondition <- base::local({ [17:27:00.675] sendCondition <- NULL [17:27:00.675] function(frame = 1L) { [17:27:00.675] if (is.function(sendCondition)) [17:27:00.675] return(sendCondition) [17:27:00.675] ns <- getNamespace("parallel") [17:27:00.675] if (exists("sendData", mode = "function", [17:27:00.675] envir = ns)) { [17:27:00.675] parallel_sendData <- get("sendData", mode = "function", [17:27:00.675] envir = ns) [17:27:00.675] envir <- sys.frame(frame) [17:27:00.675] master <- NULL [17:27:00.675] while (!identical(envir, .GlobalEnv) && [17:27:00.675] !identical(envir, emptyenv())) { [17:27:00.675] if (exists("master", mode = "list", envir = envir, [17:27:00.675] inherits = FALSE)) { [17:27:00.675] master <- get("master", mode = "list", [17:27:00.675] envir = envir, inherits = FALSE) [17:27:00.675] if (inherits(master, c("SOCKnode", [17:27:00.675] "SOCK0node"))) { [17:27:00.675] sendCondition <<- function(cond) { [17:27:00.675] data <- list(type = "VALUE", value = cond, [17:27:00.675] success = TRUE) [17:27:00.675] parallel_sendData(master, data) [17:27:00.675] } [17:27:00.675] return(sendCondition) [17:27:00.675] } [17:27:00.675] } [17:27:00.675] frame <- frame + 1L [17:27:00.675] envir <- sys.frame(frame) [17:27:00.675] } [17:27:00.675] } [17:27:00.675] sendCondition <<- function(cond) NULL [17:27:00.675] } [17:27:00.675] }) [17:27:00.675] withCallingHandlers({ [17:27:00.675] { [17:27:00.675] x["a"] <- list(1) [17:27:00.675] x [17:27:00.675] } [17:27:00.675] }, immediateCondition = function(cond) { [17:27:00.675] sendCondition <- ...future.makeSendCondition() [17:27:00.675] sendCondition(cond) [17:27:00.675] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.675] { [17:27:00.675] inherits <- base::inherits [17:27:00.675] invokeRestart <- base::invokeRestart [17:27:00.675] is.null <- base::is.null [17:27:00.675] muffled <- FALSE [17:27:00.675] if (inherits(cond, "message")) { [17:27:00.675] muffled <- grepl(pattern, "muffleMessage") [17:27:00.675] if (muffled) [17:27:00.675] invokeRestart("muffleMessage") [17:27:00.675] } [17:27:00.675] else if (inherits(cond, "warning")) { [17:27:00.675] muffled <- grepl(pattern, "muffleWarning") [17:27:00.675] if (muffled) [17:27:00.675] invokeRestart("muffleWarning") [17:27:00.675] } [17:27:00.675] else if (inherits(cond, "condition")) { [17:27:00.675] if (!is.null(pattern)) { [17:27:00.675] computeRestarts <- base::computeRestarts [17:27:00.675] grepl <- base::grepl [17:27:00.675] restarts <- computeRestarts(cond) [17:27:00.675] for (restart in restarts) { [17:27:00.675] name <- restart$name [17:27:00.675] if (is.null(name)) [17:27:00.675] next [17:27:00.675] if (!grepl(pattern, name)) [17:27:00.675] next [17:27:00.675] invokeRestart(restart) [17:27:00.675] muffled <- TRUE [17:27:00.675] break [17:27:00.675] } [17:27:00.675] } [17:27:00.675] } [17:27:00.675] invisible(muffled) [17:27:00.675] } [17:27:00.675] muffleCondition(cond) [17:27:00.675] }) [17:27:00.675] })) [17:27:00.675] future::FutureResult(value = ...future.value$value, [17:27:00.675] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.675] ...future.rng), globalenv = if (FALSE) [17:27:00.675] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.675] ...future.globalenv.names)) [17:27:00.675] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.675] }, condition = base::local({ [17:27:00.675] c <- base::c [17:27:00.675] inherits <- base::inherits [17:27:00.675] invokeRestart <- base::invokeRestart [17:27:00.675] length <- base::length [17:27:00.675] list <- base::list [17:27:00.675] seq.int <- base::seq.int [17:27:00.675] signalCondition <- base::signalCondition [17:27:00.675] sys.calls <- base::sys.calls [17:27:00.675] `[[` <- base::`[[` [17:27:00.675] `+` <- base::`+` [17:27:00.675] `<<-` <- base::`<<-` [17:27:00.675] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.675] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.675] 3L)] [17:27:00.675] } [17:27:00.675] function(cond) { [17:27:00.675] is_error <- inherits(cond, "error") [17:27:00.675] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.675] NULL) [17:27:00.675] if (is_error) { [17:27:00.675] sessionInformation <- function() { [17:27:00.675] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.675] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.675] search = base::search(), system = base::Sys.info()) [17:27:00.675] } [17:27:00.675] ...future.conditions[[length(...future.conditions) + [17:27:00.675] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.675] cond$call), session = sessionInformation(), [17:27:00.675] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.675] signalCondition(cond) [17:27:00.675] } [17:27:00.675] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.675] "immediateCondition"))) { [17:27:00.675] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.675] ...future.conditions[[length(...future.conditions) + [17:27:00.675] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.675] if (TRUE && !signal) { [17:27:00.675] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.675] { [17:27:00.675] inherits <- base::inherits [17:27:00.675] invokeRestart <- base::invokeRestart [17:27:00.675] is.null <- base::is.null [17:27:00.675] muffled <- FALSE [17:27:00.675] if (inherits(cond, "message")) { [17:27:00.675] muffled <- grepl(pattern, "muffleMessage") [17:27:00.675] if (muffled) [17:27:00.675] invokeRestart("muffleMessage") [17:27:00.675] } [17:27:00.675] else if (inherits(cond, "warning")) { [17:27:00.675] muffled <- grepl(pattern, "muffleWarning") [17:27:00.675] if (muffled) [17:27:00.675] invokeRestart("muffleWarning") [17:27:00.675] } [17:27:00.675] else if (inherits(cond, "condition")) { [17:27:00.675] if (!is.null(pattern)) { [17:27:00.675] computeRestarts <- base::computeRestarts [17:27:00.675] grepl <- base::grepl [17:27:00.675] restarts <- computeRestarts(cond) [17:27:00.675] for (restart in restarts) { [17:27:00.675] name <- restart$name [17:27:00.675] if (is.null(name)) [17:27:00.675] next [17:27:00.675] if (!grepl(pattern, name)) [17:27:00.675] next [17:27:00.675] invokeRestart(restart) [17:27:00.675] muffled <- TRUE [17:27:00.675] break [17:27:00.675] } [17:27:00.675] } [17:27:00.675] } [17:27:00.675] invisible(muffled) [17:27:00.675] } [17:27:00.675] muffleCondition(cond, pattern = "^muffle") [17:27:00.675] } [17:27:00.675] } [17:27:00.675] else { [17:27:00.675] if (TRUE) { [17:27:00.675] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.675] { [17:27:00.675] inherits <- base::inherits [17:27:00.675] invokeRestart <- base::invokeRestart [17:27:00.675] is.null <- base::is.null [17:27:00.675] muffled <- FALSE [17:27:00.675] if (inherits(cond, "message")) { [17:27:00.675] muffled <- grepl(pattern, "muffleMessage") [17:27:00.675] if (muffled) [17:27:00.675] invokeRestart("muffleMessage") [17:27:00.675] } [17:27:00.675] else if (inherits(cond, "warning")) { [17:27:00.675] muffled <- grepl(pattern, "muffleWarning") [17:27:00.675] if (muffled) [17:27:00.675] invokeRestart("muffleWarning") [17:27:00.675] } [17:27:00.675] else if (inherits(cond, "condition")) { [17:27:00.675] if (!is.null(pattern)) { [17:27:00.675] computeRestarts <- base::computeRestarts [17:27:00.675] grepl <- base::grepl [17:27:00.675] restarts <- computeRestarts(cond) [17:27:00.675] for (restart in restarts) { [17:27:00.675] name <- restart$name [17:27:00.675] if (is.null(name)) [17:27:00.675] next [17:27:00.675] if (!grepl(pattern, name)) [17:27:00.675] next [17:27:00.675] invokeRestart(restart) [17:27:00.675] muffled <- TRUE [17:27:00.675] break [17:27:00.675] } [17:27:00.675] } [17:27:00.675] } [17:27:00.675] invisible(muffled) [17:27:00.675] } [17:27:00.675] muffleCondition(cond, pattern = "^muffle") [17:27:00.675] } [17:27:00.675] } [17:27:00.675] } [17:27:00.675] })) [17:27:00.675] }, error = function(ex) { [17:27:00.675] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.675] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.675] ...future.rng), started = ...future.startTime, [17:27:00.675] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.675] version = "1.8"), class = "FutureResult") [17:27:00.675] }, finally = { [17:27:00.675] if (!identical(...future.workdir, getwd())) [17:27:00.675] setwd(...future.workdir) [17:27:00.675] { [17:27:00.675] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.675] ...future.oldOptions$nwarnings <- NULL [17:27:00.675] } [17:27:00.675] base::options(...future.oldOptions) [17:27:00.675] if (.Platform$OS.type == "windows") { [17:27:00.675] old_names <- names(...future.oldEnvVars) [17:27:00.675] envs <- base::Sys.getenv() [17:27:00.675] names <- names(envs) [17:27:00.675] common <- intersect(names, old_names) [17:27:00.675] added <- setdiff(names, old_names) [17:27:00.675] removed <- setdiff(old_names, names) [17:27:00.675] changed <- common[...future.oldEnvVars[common] != [17:27:00.675] envs[common]] [17:27:00.675] NAMES <- toupper(changed) [17:27:00.675] args <- list() [17:27:00.675] for (kk in seq_along(NAMES)) { [17:27:00.675] name <- changed[[kk]] [17:27:00.675] NAME <- NAMES[[kk]] [17:27:00.675] if (name != NAME && is.element(NAME, old_names)) [17:27:00.675] next [17:27:00.675] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.675] } [17:27:00.675] NAMES <- toupper(added) [17:27:00.675] for (kk in seq_along(NAMES)) { [17:27:00.675] name <- added[[kk]] [17:27:00.675] NAME <- NAMES[[kk]] [17:27:00.675] if (name != NAME && is.element(NAME, old_names)) [17:27:00.675] next [17:27:00.675] args[[name]] <- "" [17:27:00.675] } [17:27:00.675] NAMES <- toupper(removed) [17:27:00.675] for (kk in seq_along(NAMES)) { [17:27:00.675] name <- removed[[kk]] [17:27:00.675] NAME <- NAMES[[kk]] [17:27:00.675] if (name != NAME && is.element(NAME, old_names)) [17:27:00.675] next [17:27:00.675] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.675] } [17:27:00.675] if (length(args) > 0) [17:27:00.675] base::do.call(base::Sys.setenv, args = args) [17:27:00.675] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.675] } [17:27:00.675] else { [17:27:00.675] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.675] } [17:27:00.675] { [17:27:00.675] if (base::length(...future.futureOptionsAdded) > [17:27:00.675] 0L) { [17:27:00.675] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.675] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.675] base::options(opts) [17:27:00.675] } [17:27:00.675] { [17:27:00.675] { [17:27:00.675] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.675] NULL [17:27:00.675] } [17:27:00.675] options(future.plan = NULL) [17:27:00.675] if (is.na(NA_character_)) [17:27:00.675] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.675] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.675] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.675] .init = FALSE) [17:27:00.675] } [17:27:00.675] } [17:27:00.675] } [17:27:00.675] }) [17:27:00.675] if (TRUE) { [17:27:00.675] base::sink(type = "output", split = FALSE) [17:27:00.675] if (TRUE) { [17:27:00.675] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.675] } [17:27:00.675] else { [17:27:00.675] ...future.result["stdout"] <- base::list(NULL) [17:27:00.675] } [17:27:00.675] base::close(...future.stdout) [17:27:00.675] ...future.stdout <- NULL [17:27:00.675] } [17:27:00.675] ...future.result$conditions <- ...future.conditions [17:27:00.675] ...future.result$finished <- base::Sys.time() [17:27:00.675] ...future.result [17:27:00.675] } [17:27:00.680] Exporting 1 global objects (0 bytes) to cluster node #1 ... [17:27:00.680] Exporting 'x' (0 bytes) to cluster node #1 ... [17:27:00.681] Exporting 'x' (0 bytes) to cluster node #1 ... DONE [17:27:00.681] Exporting 1 global objects (0 bytes) to cluster node #1 ... DONE [17:27:00.682] MultisessionFuture started [17:27:00.682] - Launch lazy future ... done [17:27:00.682] run() for 'MultisessionFuture' ... done [17:27:00.682] result() for ClusterFuture ... [17:27:00.682] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.683] - Validating connection of MultisessionFuture [17:27:00.696] - received message: FutureResult [17:27:00.696] - Received FutureResult [17:27:00.696] - Erased future from FutureRegistry [17:27:00.696] result() for ClusterFuture ... [17:27:00.696] - result already collected: FutureResult [17:27:00.697] result() for ClusterFuture ... done [17:27:00.697] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.697] result() for ClusterFuture ... done [17:27:00.697] result() for ClusterFuture ... [17:27:00.697] - result already collected: FutureResult [17:27:00.697] result() for ClusterFuture ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:27:00.698] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:27:00.698] Searching for globals... [17:27:00.701] - globals found: [6] '{', 'x', '<-', '[', '[<-', 'list' [17:27:00.701] Searching for globals ... DONE [17:27:00.701] Resolving globals: TRUE [17:27:00.701] Resolving any globals that are futures ... [17:27:00.701] - globals: [6] '{', 'x', '<-', '[', '[<-', 'list' [17:27:00.702] Resolving any globals that are futures ... DONE [17:27:00.702] Resolving futures part of globals (recursively) ... [17:27:00.702] resolve() on list ... [17:27:00.703] recursive: 99 [17:27:00.703] length: 1 [17:27:00.703] elements: 'x' [17:27:00.703] length: 0 (resolved future 1) [17:27:00.703] resolve() on list ... DONE [17:27:00.703] - globals: [1] 'x' [17:27:00.704] Resolving futures part of globals (recursively) ... DONE [17:27:00.704] The total size of the 1 globals is 0 bytes (0 bytes) [17:27:00.704] The total size of the 1 globals exported for future expression ('{; x["a"] <- list(1); x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:27:00.704] - globals: [1] 'x' [17:27:00.705] [17:27:00.705] getGlobalsAndPackages() ... DONE [17:27:00.705] run() for 'Future' ... [17:27:00.705] - state: 'created' [17:27:00.705] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:00.719] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:00.719] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:00.719] - Field: 'node' [17:27:00.719] - Field: 'label' [17:27:00.720] - Field: 'local' [17:27:00.720] - Field: 'owner' [17:27:00.720] - Field: 'envir' [17:27:00.720] - Field: 'workers' [17:27:00.720] - Field: 'packages' [17:27:00.721] - Field: 'gc' [17:27:00.721] - Field: 'conditions' [17:27:00.721] - Field: 'persistent' [17:27:00.721] - Field: 'expr' [17:27:00.721] - Field: 'uuid' [17:27:00.721] - Field: 'seed' [17:27:00.722] - Field: 'version' [17:27:00.722] - Field: 'result' [17:27:00.722] - Field: 'asynchronous' [17:27:00.722] - Field: 'calls' [17:27:00.722] - Field: 'globals' [17:27:00.722] - Field: 'stdout' [17:27:00.723] - Field: 'earlySignal' [17:27:00.723] - Field: 'lazy' [17:27:00.723] - Field: 'state' [17:27:00.723] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:00.723] - Launch lazy future ... [17:27:00.724] Packages needed by the future expression (n = 0): [17:27:00.724] Packages needed by future strategies (n = 0): [17:27:00.724] { [17:27:00.724] { [17:27:00.724] { [17:27:00.724] ...future.startTime <- base::Sys.time() [17:27:00.724] { [17:27:00.724] { [17:27:00.724] { [17:27:00.724] { [17:27:00.724] base::local({ [17:27:00.724] has_future <- base::requireNamespace("future", [17:27:00.724] quietly = TRUE) [17:27:00.724] if (has_future) { [17:27:00.724] ns <- base::getNamespace("future") [17:27:00.724] version <- ns[[".package"]][["version"]] [17:27:00.724] if (is.null(version)) [17:27:00.724] version <- utils::packageVersion("future") [17:27:00.724] } [17:27:00.724] else { [17:27:00.724] version <- NULL [17:27:00.724] } [17:27:00.724] if (!has_future || version < "1.8.0") { [17:27:00.724] info <- base::c(r_version = base::gsub("R version ", [17:27:00.724] "", base::R.version$version.string), [17:27:00.724] platform = base::sprintf("%s (%s-bit)", [17:27:00.724] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.724] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.724] "release", "version")], collapse = " "), [17:27:00.724] hostname = base::Sys.info()[["nodename"]]) [17:27:00.724] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.724] info) [17:27:00.724] info <- base::paste(info, collapse = "; ") [17:27:00.724] if (!has_future) { [17:27:00.724] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.724] info) [17:27:00.724] } [17:27:00.724] else { [17:27:00.724] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.724] info, version) [17:27:00.724] } [17:27:00.724] base::stop(msg) [17:27:00.724] } [17:27:00.724] }) [17:27:00.724] } [17:27:00.724] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.724] base::options(mc.cores = 1L) [17:27:00.724] } [17:27:00.724] ...future.strategy.old <- future::plan("list") [17:27:00.724] options(future.plan = NULL) [17:27:00.724] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.724] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.724] } [17:27:00.724] ...future.workdir <- getwd() [17:27:00.724] } [17:27:00.724] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.724] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.724] } [17:27:00.724] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.724] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.724] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.724] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.724] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.724] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.724] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.724] base::names(...future.oldOptions)) [17:27:00.724] } [17:27:00.724] if (FALSE) { [17:27:00.724] } [17:27:00.724] else { [17:27:00.724] if (TRUE) { [17:27:00.724] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.724] open = "w") [17:27:00.724] } [17:27:00.724] else { [17:27:00.724] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.724] windows = "NUL", "/dev/null"), open = "w") [17:27:00.724] } [17:27:00.724] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.724] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.724] base::sink(type = "output", split = FALSE) [17:27:00.724] base::close(...future.stdout) [17:27:00.724] }, add = TRUE) [17:27:00.724] } [17:27:00.724] ...future.frame <- base::sys.nframe() [17:27:00.724] ...future.conditions <- base::list() [17:27:00.724] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.724] if (FALSE) { [17:27:00.724] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.724] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.724] } [17:27:00.724] ...future.result <- base::tryCatch({ [17:27:00.724] base::withCallingHandlers({ [17:27:00.724] ...future.value <- base::withVisible(base::local({ [17:27:00.724] ...future.makeSendCondition <- base::local({ [17:27:00.724] sendCondition <- NULL [17:27:00.724] function(frame = 1L) { [17:27:00.724] if (is.function(sendCondition)) [17:27:00.724] return(sendCondition) [17:27:00.724] ns <- getNamespace("parallel") [17:27:00.724] if (exists("sendData", mode = "function", [17:27:00.724] envir = ns)) { [17:27:00.724] parallel_sendData <- get("sendData", mode = "function", [17:27:00.724] envir = ns) [17:27:00.724] envir <- sys.frame(frame) [17:27:00.724] master <- NULL [17:27:00.724] while (!identical(envir, .GlobalEnv) && [17:27:00.724] !identical(envir, emptyenv())) { [17:27:00.724] if (exists("master", mode = "list", envir = envir, [17:27:00.724] inherits = FALSE)) { [17:27:00.724] master <- get("master", mode = "list", [17:27:00.724] envir = envir, inherits = FALSE) [17:27:00.724] if (inherits(master, c("SOCKnode", [17:27:00.724] "SOCK0node"))) { [17:27:00.724] sendCondition <<- function(cond) { [17:27:00.724] data <- list(type = "VALUE", value = cond, [17:27:00.724] success = TRUE) [17:27:00.724] parallel_sendData(master, data) [17:27:00.724] } [17:27:00.724] return(sendCondition) [17:27:00.724] } [17:27:00.724] } [17:27:00.724] frame <- frame + 1L [17:27:00.724] envir <- sys.frame(frame) [17:27:00.724] } [17:27:00.724] } [17:27:00.724] sendCondition <<- function(cond) NULL [17:27:00.724] } [17:27:00.724] }) [17:27:00.724] withCallingHandlers({ [17:27:00.724] { [17:27:00.724] x["a"] <- list(1) [17:27:00.724] x [17:27:00.724] } [17:27:00.724] }, immediateCondition = function(cond) { [17:27:00.724] sendCondition <- ...future.makeSendCondition() [17:27:00.724] sendCondition(cond) [17:27:00.724] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.724] { [17:27:00.724] inherits <- base::inherits [17:27:00.724] invokeRestart <- base::invokeRestart [17:27:00.724] is.null <- base::is.null [17:27:00.724] muffled <- FALSE [17:27:00.724] if (inherits(cond, "message")) { [17:27:00.724] muffled <- grepl(pattern, "muffleMessage") [17:27:00.724] if (muffled) [17:27:00.724] invokeRestart("muffleMessage") [17:27:00.724] } [17:27:00.724] else if (inherits(cond, "warning")) { [17:27:00.724] muffled <- grepl(pattern, "muffleWarning") [17:27:00.724] if (muffled) [17:27:00.724] invokeRestart("muffleWarning") [17:27:00.724] } [17:27:00.724] else if (inherits(cond, "condition")) { [17:27:00.724] if (!is.null(pattern)) { [17:27:00.724] computeRestarts <- base::computeRestarts [17:27:00.724] grepl <- base::grepl [17:27:00.724] restarts <- computeRestarts(cond) [17:27:00.724] for (restart in restarts) { [17:27:00.724] name <- restart$name [17:27:00.724] if (is.null(name)) [17:27:00.724] next [17:27:00.724] if (!grepl(pattern, name)) [17:27:00.724] next [17:27:00.724] invokeRestart(restart) [17:27:00.724] muffled <- TRUE [17:27:00.724] break [17:27:00.724] } [17:27:00.724] } [17:27:00.724] } [17:27:00.724] invisible(muffled) [17:27:00.724] } [17:27:00.724] muffleCondition(cond) [17:27:00.724] }) [17:27:00.724] })) [17:27:00.724] future::FutureResult(value = ...future.value$value, [17:27:00.724] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.724] ...future.rng), globalenv = if (FALSE) [17:27:00.724] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.724] ...future.globalenv.names)) [17:27:00.724] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.724] }, condition = base::local({ [17:27:00.724] c <- base::c [17:27:00.724] inherits <- base::inherits [17:27:00.724] invokeRestart <- base::invokeRestart [17:27:00.724] length <- base::length [17:27:00.724] list <- base::list [17:27:00.724] seq.int <- base::seq.int [17:27:00.724] signalCondition <- base::signalCondition [17:27:00.724] sys.calls <- base::sys.calls [17:27:00.724] `[[` <- base::`[[` [17:27:00.724] `+` <- base::`+` [17:27:00.724] `<<-` <- base::`<<-` [17:27:00.724] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.724] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.724] 3L)] [17:27:00.724] } [17:27:00.724] function(cond) { [17:27:00.724] is_error <- inherits(cond, "error") [17:27:00.724] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.724] NULL) [17:27:00.724] if (is_error) { [17:27:00.724] sessionInformation <- function() { [17:27:00.724] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.724] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.724] search = base::search(), system = base::Sys.info()) [17:27:00.724] } [17:27:00.724] ...future.conditions[[length(...future.conditions) + [17:27:00.724] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.724] cond$call), session = sessionInformation(), [17:27:00.724] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.724] signalCondition(cond) [17:27:00.724] } [17:27:00.724] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.724] "immediateCondition"))) { [17:27:00.724] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.724] ...future.conditions[[length(...future.conditions) + [17:27:00.724] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.724] if (TRUE && !signal) { [17:27:00.724] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.724] { [17:27:00.724] inherits <- base::inherits [17:27:00.724] invokeRestart <- base::invokeRestart [17:27:00.724] is.null <- base::is.null [17:27:00.724] muffled <- FALSE [17:27:00.724] if (inherits(cond, "message")) { [17:27:00.724] muffled <- grepl(pattern, "muffleMessage") [17:27:00.724] if (muffled) [17:27:00.724] invokeRestart("muffleMessage") [17:27:00.724] } [17:27:00.724] else if (inherits(cond, "warning")) { [17:27:00.724] muffled <- grepl(pattern, "muffleWarning") [17:27:00.724] if (muffled) [17:27:00.724] invokeRestart("muffleWarning") [17:27:00.724] } [17:27:00.724] else if (inherits(cond, "condition")) { [17:27:00.724] if (!is.null(pattern)) { [17:27:00.724] computeRestarts <- base::computeRestarts [17:27:00.724] grepl <- base::grepl [17:27:00.724] restarts <- computeRestarts(cond) [17:27:00.724] for (restart in restarts) { [17:27:00.724] name <- restart$name [17:27:00.724] if (is.null(name)) [17:27:00.724] next [17:27:00.724] if (!grepl(pattern, name)) [17:27:00.724] next [17:27:00.724] invokeRestart(restart) [17:27:00.724] muffled <- TRUE [17:27:00.724] break [17:27:00.724] } [17:27:00.724] } [17:27:00.724] } [17:27:00.724] invisible(muffled) [17:27:00.724] } [17:27:00.724] muffleCondition(cond, pattern = "^muffle") [17:27:00.724] } [17:27:00.724] } [17:27:00.724] else { [17:27:00.724] if (TRUE) { [17:27:00.724] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.724] { [17:27:00.724] inherits <- base::inherits [17:27:00.724] invokeRestart <- base::invokeRestart [17:27:00.724] is.null <- base::is.null [17:27:00.724] muffled <- FALSE [17:27:00.724] if (inherits(cond, "message")) { [17:27:00.724] muffled <- grepl(pattern, "muffleMessage") [17:27:00.724] if (muffled) [17:27:00.724] invokeRestart("muffleMessage") [17:27:00.724] } [17:27:00.724] else if (inherits(cond, "warning")) { [17:27:00.724] muffled <- grepl(pattern, "muffleWarning") [17:27:00.724] if (muffled) [17:27:00.724] invokeRestart("muffleWarning") [17:27:00.724] } [17:27:00.724] else if (inherits(cond, "condition")) { [17:27:00.724] if (!is.null(pattern)) { [17:27:00.724] computeRestarts <- base::computeRestarts [17:27:00.724] grepl <- base::grepl [17:27:00.724] restarts <- computeRestarts(cond) [17:27:00.724] for (restart in restarts) { [17:27:00.724] name <- restart$name [17:27:00.724] if (is.null(name)) [17:27:00.724] next [17:27:00.724] if (!grepl(pattern, name)) [17:27:00.724] next [17:27:00.724] invokeRestart(restart) [17:27:00.724] muffled <- TRUE [17:27:00.724] break [17:27:00.724] } [17:27:00.724] } [17:27:00.724] } [17:27:00.724] invisible(muffled) [17:27:00.724] } [17:27:00.724] muffleCondition(cond, pattern = "^muffle") [17:27:00.724] } [17:27:00.724] } [17:27:00.724] } [17:27:00.724] })) [17:27:00.724] }, error = function(ex) { [17:27:00.724] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.724] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.724] ...future.rng), started = ...future.startTime, [17:27:00.724] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.724] version = "1.8"), class = "FutureResult") [17:27:00.724] }, finally = { [17:27:00.724] if (!identical(...future.workdir, getwd())) [17:27:00.724] setwd(...future.workdir) [17:27:00.724] { [17:27:00.724] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.724] ...future.oldOptions$nwarnings <- NULL [17:27:00.724] } [17:27:00.724] base::options(...future.oldOptions) [17:27:00.724] if (.Platform$OS.type == "windows") { [17:27:00.724] old_names <- names(...future.oldEnvVars) [17:27:00.724] envs <- base::Sys.getenv() [17:27:00.724] names <- names(envs) [17:27:00.724] common <- intersect(names, old_names) [17:27:00.724] added <- setdiff(names, old_names) [17:27:00.724] removed <- setdiff(old_names, names) [17:27:00.724] changed <- common[...future.oldEnvVars[common] != [17:27:00.724] envs[common]] [17:27:00.724] NAMES <- toupper(changed) [17:27:00.724] args <- list() [17:27:00.724] for (kk in seq_along(NAMES)) { [17:27:00.724] name <- changed[[kk]] [17:27:00.724] NAME <- NAMES[[kk]] [17:27:00.724] if (name != NAME && is.element(NAME, old_names)) [17:27:00.724] next [17:27:00.724] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.724] } [17:27:00.724] NAMES <- toupper(added) [17:27:00.724] for (kk in seq_along(NAMES)) { [17:27:00.724] name <- added[[kk]] [17:27:00.724] NAME <- NAMES[[kk]] [17:27:00.724] if (name != NAME && is.element(NAME, old_names)) [17:27:00.724] next [17:27:00.724] args[[name]] <- "" [17:27:00.724] } [17:27:00.724] NAMES <- toupper(removed) [17:27:00.724] for (kk in seq_along(NAMES)) { [17:27:00.724] name <- removed[[kk]] [17:27:00.724] NAME <- NAMES[[kk]] [17:27:00.724] if (name != NAME && is.element(NAME, old_names)) [17:27:00.724] next [17:27:00.724] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.724] } [17:27:00.724] if (length(args) > 0) [17:27:00.724] base::do.call(base::Sys.setenv, args = args) [17:27:00.724] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.724] } [17:27:00.724] else { [17:27:00.724] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.724] } [17:27:00.724] { [17:27:00.724] if (base::length(...future.futureOptionsAdded) > [17:27:00.724] 0L) { [17:27:00.724] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.724] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.724] base::options(opts) [17:27:00.724] } [17:27:00.724] { [17:27:00.724] { [17:27:00.724] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.724] NULL [17:27:00.724] } [17:27:00.724] options(future.plan = NULL) [17:27:00.724] if (is.na(NA_character_)) [17:27:00.724] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.724] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.724] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.724] .init = FALSE) [17:27:00.724] } [17:27:00.724] } [17:27:00.724] } [17:27:00.724] }) [17:27:00.724] if (TRUE) { [17:27:00.724] base::sink(type = "output", split = FALSE) [17:27:00.724] if (TRUE) { [17:27:00.724] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.724] } [17:27:00.724] else { [17:27:00.724] ...future.result["stdout"] <- base::list(NULL) [17:27:00.724] } [17:27:00.724] base::close(...future.stdout) [17:27:00.724] ...future.stdout <- NULL [17:27:00.724] } [17:27:00.724] ...future.result$conditions <- ...future.conditions [17:27:00.724] ...future.result$finished <- base::Sys.time() [17:27:00.724] ...future.result [17:27:00.724] } [17:27:00.729] Exporting 1 global objects (0 bytes) to cluster node #1 ... [17:27:00.730] Exporting 'x' (0 bytes) to cluster node #1 ... [17:27:00.730] Exporting 'x' (0 bytes) to cluster node #1 ... DONE [17:27:00.730] Exporting 1 global objects (0 bytes) to cluster node #1 ... DONE [17:27:00.731] MultisessionFuture started [17:27:00.731] - Launch lazy future ... done [17:27:00.731] run() for 'MultisessionFuture' ... done [17:27:00.731] result() for ClusterFuture ... [17:27:00.732] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.732] - Validating connection of MultisessionFuture [17:27:00.744] - received message: FutureResult [17:27:00.745] - Received FutureResult [17:27:00.745] - Erased future from FutureRegistry [17:27:00.745] result() for ClusterFuture ... [17:27:00.745] - result already collected: FutureResult [17:27:00.745] result() for ClusterFuture ... done [17:27:00.745] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.746] result() for ClusterFuture ... done [17:27:00.746] result() for ClusterFuture ... [17:27:00.746] - result already collected: FutureResult [17:27:00.746] result() for ClusterFuture ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:27:00.747] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:27:00.747] Searching for globals... [17:27:00.749] - globals found: [6] '{', 'x', '<-', '[', '[<-', 'list' [17:27:00.750] Searching for globals ... DONE [17:27:00.750] Resolving globals: TRUE [17:27:00.750] Resolving any globals that are futures ... [17:27:00.750] - globals: [6] '{', 'x', '<-', '[', '[<-', 'list' [17:27:00.750] Resolving any globals that are futures ... DONE [17:27:00.751] Resolving futures part of globals (recursively) ... [17:27:00.751] resolve() on list ... [17:27:00.751] recursive: 99 [17:27:00.752] length: 1 [17:27:00.752] elements: 'x' [17:27:00.752] length: 0 (resolved future 1) [17:27:00.752] resolve() on list ... DONE [17:27:00.752] - globals: [1] 'x' [17:27:00.752] Resolving futures part of globals (recursively) ... DONE [17:27:00.753] The total size of the 1 globals is 0 bytes (0 bytes) [17:27:00.753] The total size of the 1 globals exported for future expression ('{; x["a"] <- list(1); x; }') is 0 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (0 bytes of class 'list') [17:27:00.753] - globals: [1] 'x' [17:27:00.753] [17:27:00.754] getGlobalsAndPackages() ... DONE [17:27:00.754] run() for 'Future' ... [17:27:00.754] - state: 'created' [17:27:00.754] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:00.768] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:00.768] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:00.768] - Field: 'node' [17:27:00.768] - Field: 'label' [17:27:00.768] - Field: 'local' [17:27:00.769] - Field: 'owner' [17:27:00.769] - Field: 'envir' [17:27:00.769] - Field: 'workers' [17:27:00.769] - Field: 'packages' [17:27:00.769] - Field: 'gc' [17:27:00.769] - Field: 'conditions' [17:27:00.770] - Field: 'persistent' [17:27:00.770] - Field: 'expr' [17:27:00.770] - Field: 'uuid' [17:27:00.770] - Field: 'seed' [17:27:00.770] - Field: 'version' [17:27:00.770] - Field: 'result' [17:27:00.771] - Field: 'asynchronous' [17:27:00.771] - Field: 'calls' [17:27:00.771] - Field: 'globals' [17:27:00.771] - Field: 'stdout' [17:27:00.771] - Field: 'earlySignal' [17:27:00.772] - Field: 'lazy' [17:27:00.772] - Field: 'state' [17:27:00.772] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:00.772] - Launch lazy future ... [17:27:00.772] Packages needed by the future expression (n = 0): [17:27:00.773] Packages needed by future strategies (n = 0): [17:27:00.773] { [17:27:00.773] { [17:27:00.773] { [17:27:00.773] ...future.startTime <- base::Sys.time() [17:27:00.773] { [17:27:00.773] { [17:27:00.773] { [17:27:00.773] { [17:27:00.773] base::local({ [17:27:00.773] has_future <- base::requireNamespace("future", [17:27:00.773] quietly = TRUE) [17:27:00.773] if (has_future) { [17:27:00.773] ns <- base::getNamespace("future") [17:27:00.773] version <- ns[[".package"]][["version"]] [17:27:00.773] if (is.null(version)) [17:27:00.773] version <- utils::packageVersion("future") [17:27:00.773] } [17:27:00.773] else { [17:27:00.773] version <- NULL [17:27:00.773] } [17:27:00.773] if (!has_future || version < "1.8.0") { [17:27:00.773] info <- base::c(r_version = base::gsub("R version ", [17:27:00.773] "", base::R.version$version.string), [17:27:00.773] platform = base::sprintf("%s (%s-bit)", [17:27:00.773] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.773] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.773] "release", "version")], collapse = " "), [17:27:00.773] hostname = base::Sys.info()[["nodename"]]) [17:27:00.773] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.773] info) [17:27:00.773] info <- base::paste(info, collapse = "; ") [17:27:00.773] if (!has_future) { [17:27:00.773] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.773] info) [17:27:00.773] } [17:27:00.773] else { [17:27:00.773] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.773] info, version) [17:27:00.773] } [17:27:00.773] base::stop(msg) [17:27:00.773] } [17:27:00.773] }) [17:27:00.773] } [17:27:00.773] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.773] base::options(mc.cores = 1L) [17:27:00.773] } [17:27:00.773] ...future.strategy.old <- future::plan("list") [17:27:00.773] options(future.plan = NULL) [17:27:00.773] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.773] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.773] } [17:27:00.773] ...future.workdir <- getwd() [17:27:00.773] } [17:27:00.773] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.773] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.773] } [17:27:00.773] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.773] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.773] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.773] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.773] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.773] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.773] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.773] base::names(...future.oldOptions)) [17:27:00.773] } [17:27:00.773] if (FALSE) { [17:27:00.773] } [17:27:00.773] else { [17:27:00.773] if (TRUE) { [17:27:00.773] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.773] open = "w") [17:27:00.773] } [17:27:00.773] else { [17:27:00.773] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.773] windows = "NUL", "/dev/null"), open = "w") [17:27:00.773] } [17:27:00.773] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.773] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.773] base::sink(type = "output", split = FALSE) [17:27:00.773] base::close(...future.stdout) [17:27:00.773] }, add = TRUE) [17:27:00.773] } [17:27:00.773] ...future.frame <- base::sys.nframe() [17:27:00.773] ...future.conditions <- base::list() [17:27:00.773] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.773] if (FALSE) { [17:27:00.773] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.773] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.773] } [17:27:00.773] ...future.result <- base::tryCatch({ [17:27:00.773] base::withCallingHandlers({ [17:27:00.773] ...future.value <- base::withVisible(base::local({ [17:27:00.773] ...future.makeSendCondition <- base::local({ [17:27:00.773] sendCondition <- NULL [17:27:00.773] function(frame = 1L) { [17:27:00.773] if (is.function(sendCondition)) [17:27:00.773] return(sendCondition) [17:27:00.773] ns <- getNamespace("parallel") [17:27:00.773] if (exists("sendData", mode = "function", [17:27:00.773] envir = ns)) { [17:27:00.773] parallel_sendData <- get("sendData", mode = "function", [17:27:00.773] envir = ns) [17:27:00.773] envir <- sys.frame(frame) [17:27:00.773] master <- NULL [17:27:00.773] while (!identical(envir, .GlobalEnv) && [17:27:00.773] !identical(envir, emptyenv())) { [17:27:00.773] if (exists("master", mode = "list", envir = envir, [17:27:00.773] inherits = FALSE)) { [17:27:00.773] master <- get("master", mode = "list", [17:27:00.773] envir = envir, inherits = FALSE) [17:27:00.773] if (inherits(master, c("SOCKnode", [17:27:00.773] "SOCK0node"))) { [17:27:00.773] sendCondition <<- function(cond) { [17:27:00.773] data <- list(type = "VALUE", value = cond, [17:27:00.773] success = TRUE) [17:27:00.773] parallel_sendData(master, data) [17:27:00.773] } [17:27:00.773] return(sendCondition) [17:27:00.773] } [17:27:00.773] } [17:27:00.773] frame <- frame + 1L [17:27:00.773] envir <- sys.frame(frame) [17:27:00.773] } [17:27:00.773] } [17:27:00.773] sendCondition <<- function(cond) NULL [17:27:00.773] } [17:27:00.773] }) [17:27:00.773] withCallingHandlers({ [17:27:00.773] { [17:27:00.773] x["a"] <- list(1) [17:27:00.773] x [17:27:00.773] } [17:27:00.773] }, immediateCondition = function(cond) { [17:27:00.773] sendCondition <- ...future.makeSendCondition() [17:27:00.773] sendCondition(cond) [17:27:00.773] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.773] { [17:27:00.773] inherits <- base::inherits [17:27:00.773] invokeRestart <- base::invokeRestart [17:27:00.773] is.null <- base::is.null [17:27:00.773] muffled <- FALSE [17:27:00.773] if (inherits(cond, "message")) { [17:27:00.773] muffled <- grepl(pattern, "muffleMessage") [17:27:00.773] if (muffled) [17:27:00.773] invokeRestart("muffleMessage") [17:27:00.773] } [17:27:00.773] else if (inherits(cond, "warning")) { [17:27:00.773] muffled <- grepl(pattern, "muffleWarning") [17:27:00.773] if (muffled) [17:27:00.773] invokeRestart("muffleWarning") [17:27:00.773] } [17:27:00.773] else if (inherits(cond, "condition")) { [17:27:00.773] if (!is.null(pattern)) { [17:27:00.773] computeRestarts <- base::computeRestarts [17:27:00.773] grepl <- base::grepl [17:27:00.773] restarts <- computeRestarts(cond) [17:27:00.773] for (restart in restarts) { [17:27:00.773] name <- restart$name [17:27:00.773] if (is.null(name)) [17:27:00.773] next [17:27:00.773] if (!grepl(pattern, name)) [17:27:00.773] next [17:27:00.773] invokeRestart(restart) [17:27:00.773] muffled <- TRUE [17:27:00.773] break [17:27:00.773] } [17:27:00.773] } [17:27:00.773] } [17:27:00.773] invisible(muffled) [17:27:00.773] } [17:27:00.773] muffleCondition(cond) [17:27:00.773] }) [17:27:00.773] })) [17:27:00.773] future::FutureResult(value = ...future.value$value, [17:27:00.773] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.773] ...future.rng), globalenv = if (FALSE) [17:27:00.773] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.773] ...future.globalenv.names)) [17:27:00.773] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.773] }, condition = base::local({ [17:27:00.773] c <- base::c [17:27:00.773] inherits <- base::inherits [17:27:00.773] invokeRestart <- base::invokeRestart [17:27:00.773] length <- base::length [17:27:00.773] list <- base::list [17:27:00.773] seq.int <- base::seq.int [17:27:00.773] signalCondition <- base::signalCondition [17:27:00.773] sys.calls <- base::sys.calls [17:27:00.773] `[[` <- base::`[[` [17:27:00.773] `+` <- base::`+` [17:27:00.773] `<<-` <- base::`<<-` [17:27:00.773] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.773] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.773] 3L)] [17:27:00.773] } [17:27:00.773] function(cond) { [17:27:00.773] is_error <- inherits(cond, "error") [17:27:00.773] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.773] NULL) [17:27:00.773] if (is_error) { [17:27:00.773] sessionInformation <- function() { [17:27:00.773] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.773] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.773] search = base::search(), system = base::Sys.info()) [17:27:00.773] } [17:27:00.773] ...future.conditions[[length(...future.conditions) + [17:27:00.773] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.773] cond$call), session = sessionInformation(), [17:27:00.773] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.773] signalCondition(cond) [17:27:00.773] } [17:27:00.773] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.773] "immediateCondition"))) { [17:27:00.773] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.773] ...future.conditions[[length(...future.conditions) + [17:27:00.773] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.773] if (TRUE && !signal) { [17:27:00.773] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.773] { [17:27:00.773] inherits <- base::inherits [17:27:00.773] invokeRestart <- base::invokeRestart [17:27:00.773] is.null <- base::is.null [17:27:00.773] muffled <- FALSE [17:27:00.773] if (inherits(cond, "message")) { [17:27:00.773] muffled <- grepl(pattern, "muffleMessage") [17:27:00.773] if (muffled) [17:27:00.773] invokeRestart("muffleMessage") [17:27:00.773] } [17:27:00.773] else if (inherits(cond, "warning")) { [17:27:00.773] muffled <- grepl(pattern, "muffleWarning") [17:27:00.773] if (muffled) [17:27:00.773] invokeRestart("muffleWarning") [17:27:00.773] } [17:27:00.773] else if (inherits(cond, "condition")) { [17:27:00.773] if (!is.null(pattern)) { [17:27:00.773] computeRestarts <- base::computeRestarts [17:27:00.773] grepl <- base::grepl [17:27:00.773] restarts <- computeRestarts(cond) [17:27:00.773] for (restart in restarts) { [17:27:00.773] name <- restart$name [17:27:00.773] if (is.null(name)) [17:27:00.773] next [17:27:00.773] if (!grepl(pattern, name)) [17:27:00.773] next [17:27:00.773] invokeRestart(restart) [17:27:00.773] muffled <- TRUE [17:27:00.773] break [17:27:00.773] } [17:27:00.773] } [17:27:00.773] } [17:27:00.773] invisible(muffled) [17:27:00.773] } [17:27:00.773] muffleCondition(cond, pattern = "^muffle") [17:27:00.773] } [17:27:00.773] } [17:27:00.773] else { [17:27:00.773] if (TRUE) { [17:27:00.773] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.773] { [17:27:00.773] inherits <- base::inherits [17:27:00.773] invokeRestart <- base::invokeRestart [17:27:00.773] is.null <- base::is.null [17:27:00.773] muffled <- FALSE [17:27:00.773] if (inherits(cond, "message")) { [17:27:00.773] muffled <- grepl(pattern, "muffleMessage") [17:27:00.773] if (muffled) [17:27:00.773] invokeRestart("muffleMessage") [17:27:00.773] } [17:27:00.773] else if (inherits(cond, "warning")) { [17:27:00.773] muffled <- grepl(pattern, "muffleWarning") [17:27:00.773] if (muffled) [17:27:00.773] invokeRestart("muffleWarning") [17:27:00.773] } [17:27:00.773] else if (inherits(cond, "condition")) { [17:27:00.773] if (!is.null(pattern)) { [17:27:00.773] computeRestarts <- base::computeRestarts [17:27:00.773] grepl <- base::grepl [17:27:00.773] restarts <- computeRestarts(cond) [17:27:00.773] for (restart in restarts) { [17:27:00.773] name <- restart$name [17:27:00.773] if (is.null(name)) [17:27:00.773] next [17:27:00.773] if (!grepl(pattern, name)) [17:27:00.773] next [17:27:00.773] invokeRestart(restart) [17:27:00.773] muffled <- TRUE [17:27:00.773] break [17:27:00.773] } [17:27:00.773] } [17:27:00.773] } [17:27:00.773] invisible(muffled) [17:27:00.773] } [17:27:00.773] muffleCondition(cond, pattern = "^muffle") [17:27:00.773] } [17:27:00.773] } [17:27:00.773] } [17:27:00.773] })) [17:27:00.773] }, error = function(ex) { [17:27:00.773] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.773] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.773] ...future.rng), started = ...future.startTime, [17:27:00.773] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.773] version = "1.8"), class = "FutureResult") [17:27:00.773] }, finally = { [17:27:00.773] if (!identical(...future.workdir, getwd())) [17:27:00.773] setwd(...future.workdir) [17:27:00.773] { [17:27:00.773] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.773] ...future.oldOptions$nwarnings <- NULL [17:27:00.773] } [17:27:00.773] base::options(...future.oldOptions) [17:27:00.773] if (.Platform$OS.type == "windows") { [17:27:00.773] old_names <- names(...future.oldEnvVars) [17:27:00.773] envs <- base::Sys.getenv() [17:27:00.773] names <- names(envs) [17:27:00.773] common <- intersect(names, old_names) [17:27:00.773] added <- setdiff(names, old_names) [17:27:00.773] removed <- setdiff(old_names, names) [17:27:00.773] changed <- common[...future.oldEnvVars[common] != [17:27:00.773] envs[common]] [17:27:00.773] NAMES <- toupper(changed) [17:27:00.773] args <- list() [17:27:00.773] for (kk in seq_along(NAMES)) { [17:27:00.773] name <- changed[[kk]] [17:27:00.773] NAME <- NAMES[[kk]] [17:27:00.773] if (name != NAME && is.element(NAME, old_names)) [17:27:00.773] next [17:27:00.773] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.773] } [17:27:00.773] NAMES <- toupper(added) [17:27:00.773] for (kk in seq_along(NAMES)) { [17:27:00.773] name <- added[[kk]] [17:27:00.773] NAME <- NAMES[[kk]] [17:27:00.773] if (name != NAME && is.element(NAME, old_names)) [17:27:00.773] next [17:27:00.773] args[[name]] <- "" [17:27:00.773] } [17:27:00.773] NAMES <- toupper(removed) [17:27:00.773] for (kk in seq_along(NAMES)) { [17:27:00.773] name <- removed[[kk]] [17:27:00.773] NAME <- NAMES[[kk]] [17:27:00.773] if (name != NAME && is.element(NAME, old_names)) [17:27:00.773] next [17:27:00.773] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.773] } [17:27:00.773] if (length(args) > 0) [17:27:00.773] base::do.call(base::Sys.setenv, args = args) [17:27:00.773] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.773] } [17:27:00.773] else { [17:27:00.773] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.773] } [17:27:00.773] { [17:27:00.773] if (base::length(...future.futureOptionsAdded) > [17:27:00.773] 0L) { [17:27:00.773] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.773] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.773] base::options(opts) [17:27:00.773] } [17:27:00.773] { [17:27:00.773] { [17:27:00.773] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.773] NULL [17:27:00.773] } [17:27:00.773] options(future.plan = NULL) [17:27:00.773] if (is.na(NA_character_)) [17:27:00.773] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.773] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.773] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.773] .init = FALSE) [17:27:00.773] } [17:27:00.773] } [17:27:00.773] } [17:27:00.773] }) [17:27:00.773] if (TRUE) { [17:27:00.773] base::sink(type = "output", split = FALSE) [17:27:00.773] if (TRUE) { [17:27:00.773] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.773] } [17:27:00.773] else { [17:27:00.773] ...future.result["stdout"] <- base::list(NULL) [17:27:00.773] } [17:27:00.773] base::close(...future.stdout) [17:27:00.773] ...future.stdout <- NULL [17:27:00.773] } [17:27:00.773] ...future.result$conditions <- ...future.conditions [17:27:00.773] ...future.result$finished <- base::Sys.time() [17:27:00.773] ...future.result [17:27:00.773] } [17:27:00.778] Exporting 1 global objects (0 bytes) to cluster node #1 ... [17:27:00.778] Exporting 'x' (0 bytes) to cluster node #1 ... [17:27:00.779] Exporting 'x' (0 bytes) to cluster node #1 ... DONE [17:27:00.779] Exporting 1 global objects (0 bytes) to cluster node #1 ... DONE [17:27:00.780] MultisessionFuture started [17:27:00.780] - Launch lazy future ... done [17:27:00.780] run() for 'MultisessionFuture' ... done [17:27:00.780] result() for ClusterFuture ... [17:27:00.780] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.780] - Validating connection of MultisessionFuture [17:27:00.794] - received message: FutureResult [17:27:00.794] - Received FutureResult [17:27:00.794] - Erased future from FutureRegistry [17:27:00.794] result() for ClusterFuture ... [17:27:00.794] - result already collected: FutureResult [17:27:00.795] result() for ClusterFuture ... done [17:27:00.795] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.795] result() for ClusterFuture ... done [17:27:00.795] result() for ClusterFuture ... [17:27:00.795] - result already collected: FutureResult [17:27:00.795] result() for ClusterFuture ... done $a [1] 1 Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.resolve' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'TRUE' [17:27:00.796] getGlobalsAndPackages() ... Warning in getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, : R option 'future.globals.onMissing' may only be used for troubleshooting. It must not be used in production since it changes how futures are evaluated and there is a great risk that the results cannot be reproduced elsewhere: 'error' [17:27:00.796] Searching for globals... [17:27:00.799] - globals found: [7] '{', 'x', '<-', '[', 'name', '[<-', 'list' [17:27:00.799] Searching for globals ... DONE [17:27:00.799] Resolving globals: TRUE [17:27:00.800] Resolving any globals that are futures ... [17:27:00.800] - globals: [7] '{', 'x', '<-', '[', 'name', '[<-', 'list' [17:27:00.800] Resolving any globals that are futures ... DONE [17:27:00.800] Resolving futures part of globals (recursively) ... [17:27:00.801] resolve() on list ... [17:27:00.801] recursive: 99 [17:27:00.801] length: 2 [17:27:00.801] elements: 'x', 'name' [17:27:00.801] length: 1 (resolved future 1) [17:27:00.802] length: 0 (resolved future 2) [17:27:00.802] resolve() on list ... DONE [17:27:00.802] - globals: [2] 'x', 'name' [17:27:00.802] Resolving futures part of globals (recursively) ... DONE [17:27:00.802] The total size of the 2 globals is 112 bytes (112 bytes) [17:27:00.803] The total size of the 2 globals exported for future expression ('{; x[name] <- list(1); x; }') is 112 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There are two globals: 'name' (112 bytes of class 'character') and 'x' (0 bytes of class 'list') [17:27:00.803] - globals: [2] 'x', 'name' [17:27:00.803] [17:27:00.803] getGlobalsAndPackages() ... DONE [17:27:00.804] run() for 'Future' ... [17:27:00.804] - state: 'created' [17:27:00.804] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:00.818] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:00.818] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:00.818] - Field: 'node' [17:27:00.818] - Field: 'label' [17:27:00.818] - Field: 'local' [17:27:00.819] - Field: 'owner' [17:27:00.819] - Field: 'envir' [17:27:00.819] - Field: 'workers' [17:27:00.819] - Field: 'packages' [17:27:00.819] - Field: 'gc' [17:27:00.819] - Field: 'conditions' [17:27:00.820] - Field: 'persistent' [17:27:00.820] - Field: 'expr' [17:27:00.820] - Field: 'uuid' [17:27:00.820] - Field: 'seed' [17:27:00.820] - Field: 'version' [17:27:00.820] - Field: 'result' [17:27:00.821] - Field: 'asynchronous' [17:27:00.821] - Field: 'calls' [17:27:00.821] - Field: 'globals' [17:27:00.821] - Field: 'stdout' [17:27:00.821] - Field: 'earlySignal' [17:27:00.822] - Field: 'lazy' [17:27:00.822] - Field: 'state' [17:27:00.822] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:00.822] - Launch lazy future ... [17:27:00.822] Packages needed by the future expression (n = 0): [17:27:00.823] Packages needed by future strategies (n = 0): [17:27:00.823] { [17:27:00.823] { [17:27:00.823] { [17:27:00.823] ...future.startTime <- base::Sys.time() [17:27:00.823] { [17:27:00.823] { [17:27:00.823] { [17:27:00.823] { [17:27:00.823] base::local({ [17:27:00.823] has_future <- base::requireNamespace("future", [17:27:00.823] quietly = TRUE) [17:27:00.823] if (has_future) { [17:27:00.823] ns <- base::getNamespace("future") [17:27:00.823] version <- ns[[".package"]][["version"]] [17:27:00.823] if (is.null(version)) [17:27:00.823] version <- utils::packageVersion("future") [17:27:00.823] } [17:27:00.823] else { [17:27:00.823] version <- NULL [17:27:00.823] } [17:27:00.823] if (!has_future || version < "1.8.0") { [17:27:00.823] info <- base::c(r_version = base::gsub("R version ", [17:27:00.823] "", base::R.version$version.string), [17:27:00.823] platform = base::sprintf("%s (%s-bit)", [17:27:00.823] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:00.823] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:00.823] "release", "version")], collapse = " "), [17:27:00.823] hostname = base::Sys.info()[["nodename"]]) [17:27:00.823] info <- base::sprintf("%s: %s", base::names(info), [17:27:00.823] info) [17:27:00.823] info <- base::paste(info, collapse = "; ") [17:27:00.823] if (!has_future) { [17:27:00.823] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:00.823] info) [17:27:00.823] } [17:27:00.823] else { [17:27:00.823] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:00.823] info, version) [17:27:00.823] } [17:27:00.823] base::stop(msg) [17:27:00.823] } [17:27:00.823] }) [17:27:00.823] } [17:27:00.823] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:00.823] base::options(mc.cores = 1L) [17:27:00.823] } [17:27:00.823] ...future.strategy.old <- future::plan("list") [17:27:00.823] options(future.plan = NULL) [17:27:00.823] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.823] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:00.823] } [17:27:00.823] ...future.workdir <- getwd() [17:27:00.823] } [17:27:00.823] ...future.oldOptions <- base::as.list(base::.Options) [17:27:00.823] ...future.oldEnvVars <- base::Sys.getenv() [17:27:00.823] } [17:27:00.823] base::options(future.startup.script = FALSE, future.globals.onMissing = "error", [17:27:00.823] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:00.823] future.globals.onMissing = "error", future.globals.onReference = NULL, [17:27:00.823] future.globals.resolve = TRUE, future.resolve.recursive = NULL, [17:27:00.823] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:00.823] future.stdout.windows.reencode = NULL, width = 80L) [17:27:00.823] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:00.823] base::names(...future.oldOptions)) [17:27:00.823] } [17:27:00.823] if (FALSE) { [17:27:00.823] } [17:27:00.823] else { [17:27:00.823] if (TRUE) { [17:27:00.823] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:00.823] open = "w") [17:27:00.823] } [17:27:00.823] else { [17:27:00.823] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:00.823] windows = "NUL", "/dev/null"), open = "w") [17:27:00.823] } [17:27:00.823] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:00.823] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:00.823] base::sink(type = "output", split = FALSE) [17:27:00.823] base::close(...future.stdout) [17:27:00.823] }, add = TRUE) [17:27:00.823] } [17:27:00.823] ...future.frame <- base::sys.nframe() [17:27:00.823] ...future.conditions <- base::list() [17:27:00.823] ...future.rng <- base::globalenv()$.Random.seed [17:27:00.823] if (FALSE) { [17:27:00.823] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:00.823] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:00.823] } [17:27:00.823] ...future.result <- base::tryCatch({ [17:27:00.823] base::withCallingHandlers({ [17:27:00.823] ...future.value <- base::withVisible(base::local({ [17:27:00.823] ...future.makeSendCondition <- base::local({ [17:27:00.823] sendCondition <- NULL [17:27:00.823] function(frame = 1L) { [17:27:00.823] if (is.function(sendCondition)) [17:27:00.823] return(sendCondition) [17:27:00.823] ns <- getNamespace("parallel") [17:27:00.823] if (exists("sendData", mode = "function", [17:27:00.823] envir = ns)) { [17:27:00.823] parallel_sendData <- get("sendData", mode = "function", [17:27:00.823] envir = ns) [17:27:00.823] envir <- sys.frame(frame) [17:27:00.823] master <- NULL [17:27:00.823] while (!identical(envir, .GlobalEnv) && [17:27:00.823] !identical(envir, emptyenv())) { [17:27:00.823] if (exists("master", mode = "list", envir = envir, [17:27:00.823] inherits = FALSE)) { [17:27:00.823] master <- get("master", mode = "list", [17:27:00.823] envir = envir, inherits = FALSE) [17:27:00.823] if (inherits(master, c("SOCKnode", [17:27:00.823] "SOCK0node"))) { [17:27:00.823] sendCondition <<- function(cond) { [17:27:00.823] data <- list(type = "VALUE", value = cond, [17:27:00.823] success = TRUE) [17:27:00.823] parallel_sendData(master, data) [17:27:00.823] } [17:27:00.823] return(sendCondition) [17:27:00.823] } [17:27:00.823] } [17:27:00.823] frame <- frame + 1L [17:27:00.823] envir <- sys.frame(frame) [17:27:00.823] } [17:27:00.823] } [17:27:00.823] sendCondition <<- function(cond) NULL [17:27:00.823] } [17:27:00.823] }) [17:27:00.823] withCallingHandlers({ [17:27:00.823] { [17:27:00.823] x[name] <- list(1) [17:27:00.823] x [17:27:00.823] } [17:27:00.823] }, immediateCondition = function(cond) { [17:27:00.823] sendCondition <- ...future.makeSendCondition() [17:27:00.823] sendCondition(cond) [17:27:00.823] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.823] { [17:27:00.823] inherits <- base::inherits [17:27:00.823] invokeRestart <- base::invokeRestart [17:27:00.823] is.null <- base::is.null [17:27:00.823] muffled <- FALSE [17:27:00.823] if (inherits(cond, "message")) { [17:27:00.823] muffled <- grepl(pattern, "muffleMessage") [17:27:00.823] if (muffled) [17:27:00.823] invokeRestart("muffleMessage") [17:27:00.823] } [17:27:00.823] else if (inherits(cond, "warning")) { [17:27:00.823] muffled <- grepl(pattern, "muffleWarning") [17:27:00.823] if (muffled) [17:27:00.823] invokeRestart("muffleWarning") [17:27:00.823] } [17:27:00.823] else if (inherits(cond, "condition")) { [17:27:00.823] if (!is.null(pattern)) { [17:27:00.823] computeRestarts <- base::computeRestarts [17:27:00.823] grepl <- base::grepl [17:27:00.823] restarts <- computeRestarts(cond) [17:27:00.823] for (restart in restarts) { [17:27:00.823] name <- restart$name [17:27:00.823] if (is.null(name)) [17:27:00.823] next [17:27:00.823] if (!grepl(pattern, name)) [17:27:00.823] next [17:27:00.823] invokeRestart(restart) [17:27:00.823] muffled <- TRUE [17:27:00.823] break [17:27:00.823] } [17:27:00.823] } [17:27:00.823] } [17:27:00.823] invisible(muffled) [17:27:00.823] } [17:27:00.823] muffleCondition(cond) [17:27:00.823] }) [17:27:00.823] })) [17:27:00.823] future::FutureResult(value = ...future.value$value, [17:27:00.823] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.823] ...future.rng), globalenv = if (FALSE) [17:27:00.823] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:00.823] ...future.globalenv.names)) [17:27:00.823] else NULL, started = ...future.startTime, version = "1.8") [17:27:00.823] }, condition = base::local({ [17:27:00.823] c <- base::c [17:27:00.823] inherits <- base::inherits [17:27:00.823] invokeRestart <- base::invokeRestart [17:27:00.823] length <- base::length [17:27:00.823] list <- base::list [17:27:00.823] seq.int <- base::seq.int [17:27:00.823] signalCondition <- base::signalCondition [17:27:00.823] sys.calls <- base::sys.calls [17:27:00.823] `[[` <- base::`[[` [17:27:00.823] `+` <- base::`+` [17:27:00.823] `<<-` <- base::`<<-` [17:27:00.823] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:00.823] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:00.823] 3L)] [17:27:00.823] } [17:27:00.823] function(cond) { [17:27:00.823] is_error <- inherits(cond, "error") [17:27:00.823] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:00.823] NULL) [17:27:00.823] if (is_error) { [17:27:00.823] sessionInformation <- function() { [17:27:00.823] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:00.823] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:00.823] search = base::search(), system = base::Sys.info()) [17:27:00.823] } [17:27:00.823] ...future.conditions[[length(...future.conditions) + [17:27:00.823] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:00.823] cond$call), session = sessionInformation(), [17:27:00.823] timestamp = base::Sys.time(), signaled = 0L) [17:27:00.823] signalCondition(cond) [17:27:00.823] } [17:27:00.823] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:00.823] "immediateCondition"))) { [17:27:00.823] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:00.823] ...future.conditions[[length(...future.conditions) + [17:27:00.823] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:00.823] if (TRUE && !signal) { [17:27:00.823] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.823] { [17:27:00.823] inherits <- base::inherits [17:27:00.823] invokeRestart <- base::invokeRestart [17:27:00.823] is.null <- base::is.null [17:27:00.823] muffled <- FALSE [17:27:00.823] if (inherits(cond, "message")) { [17:27:00.823] muffled <- grepl(pattern, "muffleMessage") [17:27:00.823] if (muffled) [17:27:00.823] invokeRestart("muffleMessage") [17:27:00.823] } [17:27:00.823] else if (inherits(cond, "warning")) { [17:27:00.823] muffled <- grepl(pattern, "muffleWarning") [17:27:00.823] if (muffled) [17:27:00.823] invokeRestart("muffleWarning") [17:27:00.823] } [17:27:00.823] else if (inherits(cond, "condition")) { [17:27:00.823] if (!is.null(pattern)) { [17:27:00.823] computeRestarts <- base::computeRestarts [17:27:00.823] grepl <- base::grepl [17:27:00.823] restarts <- computeRestarts(cond) [17:27:00.823] for (restart in restarts) { [17:27:00.823] name <- restart$name [17:27:00.823] if (is.null(name)) [17:27:00.823] next [17:27:00.823] if (!grepl(pattern, name)) [17:27:00.823] next [17:27:00.823] invokeRestart(restart) [17:27:00.823] muffled <- TRUE [17:27:00.823] break [17:27:00.823] } [17:27:00.823] } [17:27:00.823] } [17:27:00.823] invisible(muffled) [17:27:00.823] } [17:27:00.823] muffleCondition(cond, pattern = "^muffle") [17:27:00.823] } [17:27:00.823] } [17:27:00.823] else { [17:27:00.823] if (TRUE) { [17:27:00.823] muffleCondition <- function (cond, pattern = "^muffle") [17:27:00.823] { [17:27:00.823] inherits <- base::inherits [17:27:00.823] invokeRestart <- base::invokeRestart [17:27:00.823] is.null <- base::is.null [17:27:00.823] muffled <- FALSE [17:27:00.823] if (inherits(cond, "message")) { [17:27:00.823] muffled <- grepl(pattern, "muffleMessage") [17:27:00.823] if (muffled) [17:27:00.823] invokeRestart("muffleMessage") [17:27:00.823] } [17:27:00.823] else if (inherits(cond, "warning")) { [17:27:00.823] muffled <- grepl(pattern, "muffleWarning") [17:27:00.823] if (muffled) [17:27:00.823] invokeRestart("muffleWarning") [17:27:00.823] } [17:27:00.823] else if (inherits(cond, "condition")) { [17:27:00.823] if (!is.null(pattern)) { [17:27:00.823] computeRestarts <- base::computeRestarts [17:27:00.823] grepl <- base::grepl [17:27:00.823] restarts <- computeRestarts(cond) [17:27:00.823] for (restart in restarts) { [17:27:00.823] name <- restart$name [17:27:00.823] if (is.null(name)) [17:27:00.823] next [17:27:00.823] if (!grepl(pattern, name)) [17:27:00.823] next [17:27:00.823] invokeRestart(restart) [17:27:00.823] muffled <- TRUE [17:27:00.823] break [17:27:00.823] } [17:27:00.823] } [17:27:00.823] } [17:27:00.823] invisible(muffled) [17:27:00.823] } [17:27:00.823] muffleCondition(cond, pattern = "^muffle") [17:27:00.823] } [17:27:00.823] } [17:27:00.823] } [17:27:00.823] })) [17:27:00.823] }, error = function(ex) { [17:27:00.823] base::structure(base::list(value = NULL, visible = NULL, [17:27:00.823] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:00.823] ...future.rng), started = ...future.startTime, [17:27:00.823] finished = Sys.time(), session_uuid = NA_character_, [17:27:00.823] version = "1.8"), class = "FutureResult") [17:27:00.823] }, finally = { [17:27:00.823] if (!identical(...future.workdir, getwd())) [17:27:00.823] setwd(...future.workdir) [17:27:00.823] { [17:27:00.823] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:00.823] ...future.oldOptions$nwarnings <- NULL [17:27:00.823] } [17:27:00.823] base::options(...future.oldOptions) [17:27:00.823] if (.Platform$OS.type == "windows") { [17:27:00.823] old_names <- names(...future.oldEnvVars) [17:27:00.823] envs <- base::Sys.getenv() [17:27:00.823] names <- names(envs) [17:27:00.823] common <- intersect(names, old_names) [17:27:00.823] added <- setdiff(names, old_names) [17:27:00.823] removed <- setdiff(old_names, names) [17:27:00.823] changed <- common[...future.oldEnvVars[common] != [17:27:00.823] envs[common]] [17:27:00.823] NAMES <- toupper(changed) [17:27:00.823] args <- list() [17:27:00.823] for (kk in seq_along(NAMES)) { [17:27:00.823] name <- changed[[kk]] [17:27:00.823] NAME <- NAMES[[kk]] [17:27:00.823] if (name != NAME && is.element(NAME, old_names)) [17:27:00.823] next [17:27:00.823] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.823] } [17:27:00.823] NAMES <- toupper(added) [17:27:00.823] for (kk in seq_along(NAMES)) { [17:27:00.823] name <- added[[kk]] [17:27:00.823] NAME <- NAMES[[kk]] [17:27:00.823] if (name != NAME && is.element(NAME, old_names)) [17:27:00.823] next [17:27:00.823] args[[name]] <- "" [17:27:00.823] } [17:27:00.823] NAMES <- toupper(removed) [17:27:00.823] for (kk in seq_along(NAMES)) { [17:27:00.823] name <- removed[[kk]] [17:27:00.823] NAME <- NAMES[[kk]] [17:27:00.823] if (name != NAME && is.element(NAME, old_names)) [17:27:00.823] next [17:27:00.823] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:00.823] } [17:27:00.823] if (length(args) > 0) [17:27:00.823] base::do.call(base::Sys.setenv, args = args) [17:27:00.823] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:00.823] } [17:27:00.823] else { [17:27:00.823] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:00.823] } [17:27:00.823] { [17:27:00.823] if (base::length(...future.futureOptionsAdded) > [17:27:00.823] 0L) { [17:27:00.823] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:00.823] base::names(opts) <- ...future.futureOptionsAdded [17:27:00.823] base::options(opts) [17:27:00.823] } [17:27:00.823] { [17:27:00.823] { [17:27:00.823] base::options(mc.cores = ...future.mc.cores.old) [17:27:00.823] NULL [17:27:00.823] } [17:27:00.823] options(future.plan = NULL) [17:27:00.823] if (is.na(NA_character_)) [17:27:00.823] Sys.unsetenv("R_FUTURE_PLAN") [17:27:00.823] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:00.823] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:00.823] .init = FALSE) [17:27:00.823] } [17:27:00.823] } [17:27:00.823] } [17:27:00.823] }) [17:27:00.823] if (TRUE) { [17:27:00.823] base::sink(type = "output", split = FALSE) [17:27:00.823] if (TRUE) { [17:27:00.823] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:00.823] } [17:27:00.823] else { [17:27:00.823] ...future.result["stdout"] <- base::list(NULL) [17:27:00.823] } [17:27:00.823] base::close(...future.stdout) [17:27:00.823] ...future.stdout <- NULL [17:27:00.823] } [17:27:00.823] ...future.result$conditions <- ...future.conditions [17:27:00.823] ...future.result$finished <- base::Sys.time() [17:27:00.823] ...future.result [17:27:00.823] } [17:27:00.828] Exporting 2 global objects (112 bytes) to cluster node #1 ... [17:27:00.828] Exporting 'x' (0 bytes) to cluster node #1 ... [17:27:00.829] Exporting 'x' (0 bytes) to cluster node #1 ... DONE [17:27:00.829] Exporting 'name' (112 bytes) to cluster node #1 ... [17:27:00.829] Exporting 'name' (112 bytes) to cluster node #1 ... DONE [17:27:00.830] Exporting 2 global objects (112 bytes) to cluster node #1 ... DONE [17:27:00.830] MultisessionFuture started [17:27:00.830] - Launch lazy future ... done [17:27:00.831] run() for 'MultisessionFuture' ... done [17:27:00.831] result() for ClusterFuture ... [17:27:00.831] receiveMessageFromWorker() for ClusterFuture ... [17:27:00.831] - Validating connection of MultisessionFuture [17:27:00.844] - received message: FutureResult [17:27:00.844] - Received FutureResult [17:27:00.844] - Erased future from FutureRegistry [17:27:00.844] result() for ClusterFuture ... [17:27:00.844] - result already collected: FutureResult [17:27:00.844] result() for ClusterFuture ... done [17:27:00.845] receiveMessageFromWorker() for ClusterFuture ... done [17:27:00.845] result() for ClusterFuture ... done [17:27:00.845] result() for ClusterFuture ... [17:27:00.845] - result already collected: FutureResult [17:27:00.845] result() for ClusterFuture ... done $a [1] 1 Testing with 2 cores ... DONE > > message("*** Globals - subassignments w/ x$a <- value ... DONE") *** Globals - subassignments w/ x$a <- value ... DONE > > message("*** Globals - subassignments ... DONE") *** Globals - subassignments ... DONE > > source("incl/end.R") [17:27:00.846] plan(): Setting new future strategy stack: [17:27:00.847] List of future strategies: [17:27:00.847] 1. FutureStrategy: [17:27:00.847] - args: function (..., envir = parent.frame(), workers = "") [17:27:00.847] - tweaked: FALSE [17:27:00.847] - call: future::plan(oplan) [17:27:00.848] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=204] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', 'RTOOLS44_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS44_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 1.15 0.06 2.04