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:24.311] plan(): Setting new future strategy stack: [17:26:24.313] List of future strategies: [17:26:24.313] 1. sequential: [17:26:24.313] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.313] - tweaked: FALSE [17:26:24.313] - call: future::plan("sequential") [17:26:24.328] plan(): nbrOfWorkers() = 1 > library("listenv") > > 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("*** Global argument '...' ...") + + sum_fcns <- list() + + sum_fcns$A <- function(x, ...) { + message("Arguments '...' exists: ", exists("...", inherits = TRUE)) + y %<-% { sum(x, ...) } + y + } + + + sum_fcns$B <- function(x, ...) { + sumt <- function(x) { + message("Arguments '...' exists: ", exists("...", inherits = TRUE)) + y %<-% { sum(x, ...) } + y + } + sumt(x) + } + + sum_fcns$C <- function(x, y) { + message("Arguments '...' exists: ", exists("...", inherits = TRUE)) + y %<-% { sum(x, y) } + y + } + + sum_fcns$D <- function(x, y) { + message("Arguments '...' exists: ", exists("...", inherits = TRUE)) + y %<-% { sum(x, y, ...) } + y + } + + ## Issue/PR #400: Emulate how '...' may be used by the 'rlang' package + sum_fcns$E <- function(...) { + message("Arguments '...' exists: ", exists("...", inherits = TRUE)) + + ## Grab '...' into a Globals object + globals <- globals::globalsByName("...", envir=environment()) + + ## Evaluate an expression with '...' in an environment that does not + ## have an '...' object - hence the parent.frame(). This will produce + ## an error unless we pass 'globals' which contains '...' + f <- future({ + fcn <- function() sum(...) + fcn() + }, envir = parent.frame(), globals = globals) + y <- value(f) + y + } + + ## Issue: https://github.com/HenrikBengtsson/globals/issues/72 + sum_fcns$F <- function(x, y) { + message("Using '...' in a formula") + + fcn <- function(x, y) { + z = ~ list(...) + sum(x, y) + } + + f <- future(fcn(x, y)) + y <- value(f) + y + } + + + for (strategy in supportedStrategies(cores)) { + message(sprintf("- plan('%s') ...", strategy)) + plan(strategy, substitute = FALSE) + + for (name in names(sum_fcns)) { + message(sprintf("** Sum function '%s' with plan('%s') ...", name, strategy)) + sum_fcn <- sum_fcns[[name]] + print(sum_fcn) + y <- try(sum_fcn(1:2, 3)) + print(y) + if (name %in% c("D")) { + stopifnot(inherits(y, "try-error")) + } else { + stopifnot(y == 6) + } + } + } + + message(sprintf("Testing with %d cores ... DONE", cores)) + } ## for (cores ...) Testing with 1 cores ... *** Global argument '...' ... - plan('sequential') ... [17:26:24.385] plan(): Setting new future strategy stack: [17:26:24.386] List of future strategies: [17:26:24.386] 1. sequential: [17:26:24.386] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.386] - tweaked: FALSE [17:26:24.386] - call: plan(strategy, substitute = FALSE) [17:26:24.398] plan(): nbrOfWorkers() = 1 ** Sum function 'A' with plan('sequential') ... function (x, ...) { message("Arguments '...' exists: ", exists("...", inherits = TRUE)) y %<-% { sum(x, ...) } y } Arguments '...' exists: TRUE [17:26:24.400] getGlobalsAndPackages() ... [17:26:24.401] Searching for globals... [17:26:24.408] - globals found: [4] '{', 'sum', 'x', '...' [17:26:24.408] Searching for globals ... DONE [17:26:24.409] Resolving globals: FALSE [17:26:24.409] Tweak future expression to call with '...' arguments ... [17:26:24.409] { [17:26:24.409] do.call(function(...) { [17:26:24.409] sum(x, ...) [17:26:24.409] }, args = future.call.arguments) [17:26:24.409] } [17:26:24.409] Tweak future expression to call with '...' arguments ... DONE [17:26:24.411] The total size of the 2 globals is 112 bytes (112 bytes) [17:26:24.411] The total size of the 2 globals exported for future expression ('{; sum(x, ...); }') is 112 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There are two globals: 'x' (56 bytes of class 'numeric') and 'future.call.arguments' (56 bytes of class 'list') [17:26:24.412] - globals: [2] 'x', 'future.call.arguments' [17:26:24.412] [17:26:24.412] getGlobalsAndPackages() ... DONE [17:26:24.414] run() for 'Future' ... [17:26:24.414] - state: 'created' [17:26:24.415] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:24.415] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:24.415] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:24.415] - Field: 'label' [17:26:24.416] - Field: 'local' [17:26:24.416] - Field: 'owner' [17:26:24.416] - Field: 'envir' [17:26:24.416] - Field: 'packages' [17:26:24.416] - Field: 'gc' [17:26:24.416] - Field: 'conditions' [17:26:24.417] - Field: 'expr' [17:26:24.417] - Field: 'uuid' [17:26:24.417] - Field: 'seed' [17:26:24.417] - Field: 'version' [17:26:24.417] - Field: 'result' [17:26:24.417] - Field: 'asynchronous' [17:26:24.418] - Field: 'calls' [17:26:24.418] - Field: 'globals' [17:26:24.418] - Field: 'stdout' [17:26:24.418] - Field: 'earlySignal' [17:26:24.418] - Field: 'lazy' [17:26:24.419] - Field: 'state' [17:26:24.419] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:24.419] - Launch lazy future ... [17:26:24.420] Packages needed by the future expression (n = 0): [17:26:24.420] Packages needed by future strategies (n = 0): [17:26:24.421] { [17:26:24.421] { [17:26:24.421] { [17:26:24.421] ...future.startTime <- base::Sys.time() [17:26:24.421] { [17:26:24.421] { [17:26:24.421] { [17:26:24.421] base::local({ [17:26:24.421] has_future <- base::requireNamespace("future", [17:26:24.421] quietly = TRUE) [17:26:24.421] if (has_future) { [17:26:24.421] ns <- base::getNamespace("future") [17:26:24.421] version <- ns[[".package"]][["version"]] [17:26:24.421] if (is.null(version)) [17:26:24.421] version <- utils::packageVersion("future") [17:26:24.421] } [17:26:24.421] else { [17:26:24.421] version <- NULL [17:26:24.421] } [17:26:24.421] if (!has_future || version < "1.8.0") { [17:26:24.421] info <- base::c(r_version = base::gsub("R version ", [17:26:24.421] "", base::R.version$version.string), [17:26:24.421] platform = base::sprintf("%s (%s-bit)", [17:26:24.421] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:24.421] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:24.421] "release", "version")], collapse = " "), [17:26:24.421] hostname = base::Sys.info()[["nodename"]]) [17:26:24.421] info <- base::sprintf("%s: %s", base::names(info), [17:26:24.421] info) [17:26:24.421] info <- base::paste(info, collapse = "; ") [17:26:24.421] if (!has_future) { [17:26:24.421] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:24.421] info) [17:26:24.421] } [17:26:24.421] else { [17:26:24.421] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:24.421] info, version) [17:26:24.421] } [17:26:24.421] base::stop(msg) [17:26:24.421] } [17:26:24.421] }) [17:26:24.421] } [17:26:24.421] ...future.strategy.old <- future::plan("list") [17:26:24.421] options(future.plan = NULL) [17:26:24.421] Sys.unsetenv("R_FUTURE_PLAN") [17:26:24.421] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:24.421] } [17:26:24.421] ...future.workdir <- getwd() [17:26:24.421] } [17:26:24.421] ...future.oldOptions <- base::as.list(base::.Options) [17:26:24.421] ...future.oldEnvVars <- base::Sys.getenv() [17:26:24.421] } [17:26:24.421] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:24.421] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:24.421] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:24.421] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:24.421] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:24.421] future.stdout.windows.reencode = NULL, width = 80L) [17:26:24.421] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:24.421] base::names(...future.oldOptions)) [17:26:24.421] } [17:26:24.421] if (FALSE) { [17:26:24.421] } [17:26:24.421] else { [17:26:24.421] if (TRUE) { [17:26:24.421] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:24.421] open = "w") [17:26:24.421] } [17:26:24.421] else { [17:26:24.421] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:24.421] windows = "NUL", "/dev/null"), open = "w") [17:26:24.421] } [17:26:24.421] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:24.421] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:24.421] base::sink(type = "output", split = FALSE) [17:26:24.421] base::close(...future.stdout) [17:26:24.421] }, add = TRUE) [17:26:24.421] } [17:26:24.421] ...future.frame <- base::sys.nframe() [17:26:24.421] ...future.conditions <- base::list() [17:26:24.421] ...future.rng <- base::globalenv()$.Random.seed [17:26:24.421] if (FALSE) { [17:26:24.421] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:24.421] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:24.421] } [17:26:24.421] ...future.result <- base::tryCatch({ [17:26:24.421] base::withCallingHandlers({ [17:26:24.421] ...future.value <- base::withVisible(base::local({ [17:26:24.421] do.call(function(...) { [17:26:24.421] sum(x, ...) [17:26:24.421] }, args = future.call.arguments) [17:26:24.421] })) [17:26:24.421] future::FutureResult(value = ...future.value$value, [17:26:24.421] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:24.421] ...future.rng), globalenv = if (FALSE) [17:26:24.421] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:24.421] ...future.globalenv.names)) [17:26:24.421] else NULL, started = ...future.startTime, version = "1.8") [17:26:24.421] }, condition = base::local({ [17:26:24.421] c <- base::c [17:26:24.421] inherits <- base::inherits [17:26:24.421] invokeRestart <- base::invokeRestart [17:26:24.421] length <- base::length [17:26:24.421] list <- base::list [17:26:24.421] seq.int <- base::seq.int [17:26:24.421] signalCondition <- base::signalCondition [17:26:24.421] sys.calls <- base::sys.calls [17:26:24.421] `[[` <- base::`[[` [17:26:24.421] `+` <- base::`+` [17:26:24.421] `<<-` <- base::`<<-` [17:26:24.421] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:24.421] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:24.421] 3L)] [17:26:24.421] } [17:26:24.421] function(cond) { [17:26:24.421] is_error <- inherits(cond, "error") [17:26:24.421] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:24.421] NULL) [17:26:24.421] if (is_error) { [17:26:24.421] sessionInformation <- function() { [17:26:24.421] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:24.421] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:24.421] search = base::search(), system = base::Sys.info()) [17:26:24.421] } [17:26:24.421] ...future.conditions[[length(...future.conditions) + [17:26:24.421] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:24.421] cond$call), session = sessionInformation(), [17:26:24.421] timestamp = base::Sys.time(), signaled = 0L) [17:26:24.421] signalCondition(cond) [17:26:24.421] } [17:26:24.421] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:24.421] "immediateCondition"))) { [17:26:24.421] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:24.421] ...future.conditions[[length(...future.conditions) + [17:26:24.421] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:24.421] if (TRUE && !signal) { [17:26:24.421] muffleCondition <- function (cond, pattern = "^muffle") [17:26:24.421] { [17:26:24.421] inherits <- base::inherits [17:26:24.421] invokeRestart <- base::invokeRestart [17:26:24.421] is.null <- base::is.null [17:26:24.421] muffled <- FALSE [17:26:24.421] if (inherits(cond, "message")) { [17:26:24.421] muffled <- grepl(pattern, "muffleMessage") [17:26:24.421] if (muffled) [17:26:24.421] invokeRestart("muffleMessage") [17:26:24.421] } [17:26:24.421] else if (inherits(cond, "warning")) { [17:26:24.421] muffled <- grepl(pattern, "muffleWarning") [17:26:24.421] if (muffled) [17:26:24.421] invokeRestart("muffleWarning") [17:26:24.421] } [17:26:24.421] else if (inherits(cond, "condition")) { [17:26:24.421] if (!is.null(pattern)) { [17:26:24.421] computeRestarts <- base::computeRestarts [17:26:24.421] grepl <- base::grepl [17:26:24.421] restarts <- computeRestarts(cond) [17:26:24.421] for (restart in restarts) { [17:26:24.421] name <- restart$name [17:26:24.421] if (is.null(name)) [17:26:24.421] next [17:26:24.421] if (!grepl(pattern, name)) [17:26:24.421] next [17:26:24.421] invokeRestart(restart) [17:26:24.421] muffled <- TRUE [17:26:24.421] break [17:26:24.421] } [17:26:24.421] } [17:26:24.421] } [17:26:24.421] invisible(muffled) [17:26:24.421] } [17:26:24.421] muffleCondition(cond, pattern = "^muffle") [17:26:24.421] } [17:26:24.421] } [17:26:24.421] else { [17:26:24.421] if (TRUE) { [17:26:24.421] muffleCondition <- function (cond, pattern = "^muffle") [17:26:24.421] { [17:26:24.421] inherits <- base::inherits [17:26:24.421] invokeRestart <- base::invokeRestart [17:26:24.421] is.null <- base::is.null [17:26:24.421] muffled <- FALSE [17:26:24.421] if (inherits(cond, "message")) { [17:26:24.421] muffled <- grepl(pattern, "muffleMessage") [17:26:24.421] if (muffled) [17:26:24.421] invokeRestart("muffleMessage") [17:26:24.421] } [17:26:24.421] else if (inherits(cond, "warning")) { [17:26:24.421] muffled <- grepl(pattern, "muffleWarning") [17:26:24.421] if (muffled) [17:26:24.421] invokeRestart("muffleWarning") [17:26:24.421] } [17:26:24.421] else if (inherits(cond, "condition")) { [17:26:24.421] if (!is.null(pattern)) { [17:26:24.421] computeRestarts <- base::computeRestarts [17:26:24.421] grepl <- base::grepl [17:26:24.421] restarts <- computeRestarts(cond) [17:26:24.421] for (restart in restarts) { [17:26:24.421] name <- restart$name [17:26:24.421] if (is.null(name)) [17:26:24.421] next [17:26:24.421] if (!grepl(pattern, name)) [17:26:24.421] next [17:26:24.421] invokeRestart(restart) [17:26:24.421] muffled <- TRUE [17:26:24.421] break [17:26:24.421] } [17:26:24.421] } [17:26:24.421] } [17:26:24.421] invisible(muffled) [17:26:24.421] } [17:26:24.421] muffleCondition(cond, pattern = "^muffle") [17:26:24.421] } [17:26:24.421] } [17:26:24.421] } [17:26:24.421] })) [17:26:24.421] }, error = function(ex) { [17:26:24.421] base::structure(base::list(value = NULL, visible = NULL, [17:26:24.421] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:24.421] ...future.rng), started = ...future.startTime, [17:26:24.421] finished = Sys.time(), session_uuid = NA_character_, [17:26:24.421] version = "1.8"), class = "FutureResult") [17:26:24.421] }, finally = { [17:26:24.421] if (!identical(...future.workdir, getwd())) [17:26:24.421] setwd(...future.workdir) [17:26:24.421] { [17:26:24.421] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:24.421] ...future.oldOptions$nwarnings <- NULL [17:26:24.421] } [17:26:24.421] base::options(...future.oldOptions) [17:26:24.421] if (.Platform$OS.type == "windows") { [17:26:24.421] old_names <- names(...future.oldEnvVars) [17:26:24.421] envs <- base::Sys.getenv() [17:26:24.421] names <- names(envs) [17:26:24.421] common <- intersect(names, old_names) [17:26:24.421] added <- setdiff(names, old_names) [17:26:24.421] removed <- setdiff(old_names, names) [17:26:24.421] changed <- common[...future.oldEnvVars[common] != [17:26:24.421] envs[common]] [17:26:24.421] NAMES <- toupper(changed) [17:26:24.421] args <- list() [17:26:24.421] for (kk in seq_along(NAMES)) { [17:26:24.421] name <- changed[[kk]] [17:26:24.421] NAME <- NAMES[[kk]] [17:26:24.421] if (name != NAME && is.element(NAME, old_names)) [17:26:24.421] next [17:26:24.421] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:24.421] } [17:26:24.421] NAMES <- toupper(added) [17:26:24.421] for (kk in seq_along(NAMES)) { [17:26:24.421] name <- added[[kk]] [17:26:24.421] NAME <- NAMES[[kk]] [17:26:24.421] if (name != NAME && is.element(NAME, old_names)) [17:26:24.421] next [17:26:24.421] args[[name]] <- "" [17:26:24.421] } [17:26:24.421] NAMES <- toupper(removed) [17:26:24.421] for (kk in seq_along(NAMES)) { [17:26:24.421] name <- removed[[kk]] [17:26:24.421] NAME <- NAMES[[kk]] [17:26:24.421] if (name != NAME && is.element(NAME, old_names)) [17:26:24.421] next [17:26:24.421] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:24.421] } [17:26:24.421] if (length(args) > 0) [17:26:24.421] base::do.call(base::Sys.setenv, args = args) [17:26:24.421] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:24.421] } [17:26:24.421] else { [17:26:24.421] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:24.421] } [17:26:24.421] { [17:26:24.421] if (base::length(...future.futureOptionsAdded) > [17:26:24.421] 0L) { [17:26:24.421] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:24.421] base::names(opts) <- ...future.futureOptionsAdded [17:26:24.421] base::options(opts) [17:26:24.421] } [17:26:24.421] { [17:26:24.421] { [17:26:24.421] NULL [17:26:24.421] RNGkind("Mersenne-Twister") [17:26:24.421] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:24.421] inherits = FALSE) [17:26:24.421] } [17:26:24.421] options(future.plan = NULL) [17:26:24.421] if (is.na(NA_character_)) [17:26:24.421] Sys.unsetenv("R_FUTURE_PLAN") [17:26:24.421] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:24.421] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:24.421] .init = FALSE) [17:26:24.421] } [17:26:24.421] } [17:26:24.421] } [17:26:24.421] }) [17:26:24.421] if (TRUE) { [17:26:24.421] base::sink(type = "output", split = FALSE) [17:26:24.421] if (TRUE) { [17:26:24.421] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:24.421] } [17:26:24.421] else { [17:26:24.421] ...future.result["stdout"] <- base::list(NULL) [17:26:24.421] } [17:26:24.421] base::close(...future.stdout) [17:26:24.421] ...future.stdout <- NULL [17:26:24.421] } [17:26:24.421] ...future.result$conditions <- ...future.conditions [17:26:24.421] ...future.result$finished <- base::Sys.time() [17:26:24.421] ...future.result [17:26:24.421] } [17:26:24.425] assign_globals() ... [17:26:24.425] List of 2 [17:26:24.425] $ x : int [1:2] 1 2 [17:26:24.425] $ future.call.arguments:List of 1 [17:26:24.425] ..$ : num 3 [17:26:24.425] ..- attr(*, "class")= chr [1:2] "DotDotDotList" "list" [17:26:24.425] - attr(*, "where")=List of 2 [17:26:24.425] ..$ x : [17:26:24.425] ..$ future.call.arguments: [17:26:24.425] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:24.425] - attr(*, "resolved")= logi FALSE [17:26:24.425] - attr(*, "total_size")= num 112 [17:26:24.425] - attr(*, "already-done")= logi TRUE [17:26:24.431] - copied 'x' to environment [17:26:24.431] - copied 'future.call.arguments' to environment [17:26:24.432] assign_globals() ... done [17:26:24.432] plan(): Setting new future strategy stack: [17:26:24.432] List of future strategies: [17:26:24.432] 1. sequential: [17:26:24.432] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.432] - tweaked: FALSE [17:26:24.432] - call: NULL [17:26:24.433] plan(): nbrOfWorkers() = 1 [17:26:24.435] plan(): Setting new future strategy stack: [17:26:24.435] List of future strategies: [17:26:24.435] 1. sequential: [17:26:24.435] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.435] - tweaked: FALSE [17:26:24.435] - call: plan(strategy, substitute = FALSE) [17:26:24.436] plan(): nbrOfWorkers() = 1 [17:26:24.436] SequentialFuture started (and completed) [17:26:24.436] - Launch lazy future ... done [17:26:24.437] run() for 'SequentialFuture' ... done [1] 6 ** Sum function 'B' with plan('sequential') ... function (x, ...) { sumt <- function(x) { message("Arguments '...' exists: ", exists("...", inherits = TRUE)) y %<-% { sum(x, ...) } y } sumt(x) } Arguments '...' exists: TRUE [17:26:24.438] getGlobalsAndPackages() ... [17:26:24.438] Searching for globals... [17:26:24.440] - globals found: [4] '{', 'sum', 'x', '...' [17:26:24.440] Searching for globals ... DONE [17:26:24.440] Resolving globals: FALSE [17:26:24.440] Tweak future expression to call with '...' arguments ... [17:26:24.440] { [17:26:24.440] do.call(function(...) { [17:26:24.440] sum(x, ...) [17:26:24.440] }, args = future.call.arguments) [17:26:24.440] } [17:26:24.441] Tweak future expression to call with '...' arguments ... DONE [17:26:24.441] The total size of the 2 globals is 112 bytes (112 bytes) [17:26:24.442] The total size of the 2 globals exported for future expression ('{; sum(x, ...); }') is 112 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There are two globals: 'x' (56 bytes of class 'numeric') and 'future.call.arguments' (56 bytes of class 'list') [17:26:24.442] - globals: [2] 'x', 'future.call.arguments' [17:26:24.442] [17:26:24.442] getGlobalsAndPackages() ... DONE [17:26:24.443] run() for 'Future' ... [17:26:24.443] - state: 'created' [17:26:24.443] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:24.443] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:24.444] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:24.444] - Field: 'label' [17:26:24.444] - Field: 'local' [17:26:24.444] - Field: 'owner' [17:26:24.444] - Field: 'envir' [17:26:24.444] - Field: 'packages' [17:26:24.445] - Field: 'gc' [17:26:24.445] - Field: 'conditions' [17:26:24.445] - Field: 'expr' [17:26:24.445] - Field: 'uuid' [17:26:24.445] - Field: 'seed' [17:26:24.445] - Field: 'version' [17:26:24.446] - Field: 'result' [17:26:24.446] - Field: 'asynchronous' [17:26:24.446] - Field: 'calls' [17:26:24.446] - Field: 'globals' [17:26:24.446] - Field: 'stdout' [17:26:24.447] - Field: 'earlySignal' [17:26:24.447] - Field: 'lazy' [17:26:24.447] - Field: 'state' [17:26:24.447] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:24.447] - Launch lazy future ... [17:26:24.447] Packages needed by the future expression (n = 0): [17:26:24.448] Packages needed by future strategies (n = 0): [17:26:24.448] { [17:26:24.448] { [17:26:24.448] { [17:26:24.448] ...future.startTime <- base::Sys.time() [17:26:24.448] { [17:26:24.448] { [17:26:24.448] { [17:26:24.448] base::local({ [17:26:24.448] has_future <- base::requireNamespace("future", [17:26:24.448] quietly = TRUE) [17:26:24.448] if (has_future) { [17:26:24.448] ns <- base::getNamespace("future") [17:26:24.448] version <- ns[[".package"]][["version"]] [17:26:24.448] if (is.null(version)) [17:26:24.448] version <- utils::packageVersion("future") [17:26:24.448] } [17:26:24.448] else { [17:26:24.448] version <- NULL [17:26:24.448] } [17:26:24.448] if (!has_future || version < "1.8.0") { [17:26:24.448] info <- base::c(r_version = base::gsub("R version ", [17:26:24.448] "", base::R.version$version.string), [17:26:24.448] platform = base::sprintf("%s (%s-bit)", [17:26:24.448] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:24.448] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:24.448] "release", "version")], collapse = " "), [17:26:24.448] hostname = base::Sys.info()[["nodename"]]) [17:26:24.448] info <- base::sprintf("%s: %s", base::names(info), [17:26:24.448] info) [17:26:24.448] info <- base::paste(info, collapse = "; ") [17:26:24.448] if (!has_future) { [17:26:24.448] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:24.448] info) [17:26:24.448] } [17:26:24.448] else { [17:26:24.448] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:24.448] info, version) [17:26:24.448] } [17:26:24.448] base::stop(msg) [17:26:24.448] } [17:26:24.448] }) [17:26:24.448] } [17:26:24.448] ...future.strategy.old <- future::plan("list") [17:26:24.448] options(future.plan = NULL) [17:26:24.448] Sys.unsetenv("R_FUTURE_PLAN") [17:26:24.448] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:24.448] } [17:26:24.448] ...future.workdir <- getwd() [17:26:24.448] } [17:26:24.448] ...future.oldOptions <- base::as.list(base::.Options) [17:26:24.448] ...future.oldEnvVars <- base::Sys.getenv() [17:26:24.448] } [17:26:24.448] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:24.448] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:24.448] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:24.448] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:24.448] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:24.448] future.stdout.windows.reencode = NULL, width = 80L) [17:26:24.448] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:24.448] base::names(...future.oldOptions)) [17:26:24.448] } [17:26:24.448] if (FALSE) { [17:26:24.448] } [17:26:24.448] else { [17:26:24.448] if (TRUE) { [17:26:24.448] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:24.448] open = "w") [17:26:24.448] } [17:26:24.448] else { [17:26:24.448] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:24.448] windows = "NUL", "/dev/null"), open = "w") [17:26:24.448] } [17:26:24.448] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:24.448] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:24.448] base::sink(type = "output", split = FALSE) [17:26:24.448] base::close(...future.stdout) [17:26:24.448] }, add = TRUE) [17:26:24.448] } [17:26:24.448] ...future.frame <- base::sys.nframe() [17:26:24.448] ...future.conditions <- base::list() [17:26:24.448] ...future.rng <- base::globalenv()$.Random.seed [17:26:24.448] if (FALSE) { [17:26:24.448] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:24.448] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:24.448] } [17:26:24.448] ...future.result <- base::tryCatch({ [17:26:24.448] base::withCallingHandlers({ [17:26:24.448] ...future.value <- base::withVisible(base::local({ [17:26:24.448] do.call(function(...) { [17:26:24.448] sum(x, ...) [17:26:24.448] }, args = future.call.arguments) [17:26:24.448] })) [17:26:24.448] future::FutureResult(value = ...future.value$value, [17:26:24.448] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:24.448] ...future.rng), globalenv = if (FALSE) [17:26:24.448] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:24.448] ...future.globalenv.names)) [17:26:24.448] else NULL, started = ...future.startTime, version = "1.8") [17:26:24.448] }, condition = base::local({ [17:26:24.448] c <- base::c [17:26:24.448] inherits <- base::inherits [17:26:24.448] invokeRestart <- base::invokeRestart [17:26:24.448] length <- base::length [17:26:24.448] list <- base::list [17:26:24.448] seq.int <- base::seq.int [17:26:24.448] signalCondition <- base::signalCondition [17:26:24.448] sys.calls <- base::sys.calls [17:26:24.448] `[[` <- base::`[[` [17:26:24.448] `+` <- base::`+` [17:26:24.448] `<<-` <- base::`<<-` [17:26:24.448] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:24.448] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:24.448] 3L)] [17:26:24.448] } [17:26:24.448] function(cond) { [17:26:24.448] is_error <- inherits(cond, "error") [17:26:24.448] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:24.448] NULL) [17:26:24.448] if (is_error) { [17:26:24.448] sessionInformation <- function() { [17:26:24.448] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:24.448] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:24.448] search = base::search(), system = base::Sys.info()) [17:26:24.448] } [17:26:24.448] ...future.conditions[[length(...future.conditions) + [17:26:24.448] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:24.448] cond$call), session = sessionInformation(), [17:26:24.448] timestamp = base::Sys.time(), signaled = 0L) [17:26:24.448] signalCondition(cond) [17:26:24.448] } [17:26:24.448] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:24.448] "immediateCondition"))) { [17:26:24.448] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:24.448] ...future.conditions[[length(...future.conditions) + [17:26:24.448] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:24.448] if (TRUE && !signal) { [17:26:24.448] muffleCondition <- function (cond, pattern = "^muffle") [17:26:24.448] { [17:26:24.448] inherits <- base::inherits [17:26:24.448] invokeRestart <- base::invokeRestart [17:26:24.448] is.null <- base::is.null [17:26:24.448] muffled <- FALSE [17:26:24.448] if (inherits(cond, "message")) { [17:26:24.448] muffled <- grepl(pattern, "muffleMessage") [17:26:24.448] if (muffled) [17:26:24.448] invokeRestart("muffleMessage") [17:26:24.448] } [17:26:24.448] else if (inherits(cond, "warning")) { [17:26:24.448] muffled <- grepl(pattern, "muffleWarning") [17:26:24.448] if (muffled) [17:26:24.448] invokeRestart("muffleWarning") [17:26:24.448] } [17:26:24.448] else if (inherits(cond, "condition")) { [17:26:24.448] if (!is.null(pattern)) { [17:26:24.448] computeRestarts <- base::computeRestarts [17:26:24.448] grepl <- base::grepl [17:26:24.448] restarts <- computeRestarts(cond) [17:26:24.448] for (restart in restarts) { [17:26:24.448] name <- restart$name [17:26:24.448] if (is.null(name)) [17:26:24.448] next [17:26:24.448] if (!grepl(pattern, name)) [17:26:24.448] next [17:26:24.448] invokeRestart(restart) [17:26:24.448] muffled <- TRUE [17:26:24.448] break [17:26:24.448] } [17:26:24.448] } [17:26:24.448] } [17:26:24.448] invisible(muffled) [17:26:24.448] } [17:26:24.448] muffleCondition(cond, pattern = "^muffle") [17:26:24.448] } [17:26:24.448] } [17:26:24.448] else { [17:26:24.448] if (TRUE) { [17:26:24.448] muffleCondition <- function (cond, pattern = "^muffle") [17:26:24.448] { [17:26:24.448] inherits <- base::inherits [17:26:24.448] invokeRestart <- base::invokeRestart [17:26:24.448] is.null <- base::is.null [17:26:24.448] muffled <- FALSE [17:26:24.448] if (inherits(cond, "message")) { [17:26:24.448] muffled <- grepl(pattern, "muffleMessage") [17:26:24.448] if (muffled) [17:26:24.448] invokeRestart("muffleMessage") [17:26:24.448] } [17:26:24.448] else if (inherits(cond, "warning")) { [17:26:24.448] muffled <- grepl(pattern, "muffleWarning") [17:26:24.448] if (muffled) [17:26:24.448] invokeRestart("muffleWarning") [17:26:24.448] } [17:26:24.448] else if (inherits(cond, "condition")) { [17:26:24.448] if (!is.null(pattern)) { [17:26:24.448] computeRestarts <- base::computeRestarts [17:26:24.448] grepl <- base::grepl [17:26:24.448] restarts <- computeRestarts(cond) [17:26:24.448] for (restart in restarts) { [17:26:24.448] name <- restart$name [17:26:24.448] if (is.null(name)) [17:26:24.448] next [17:26:24.448] if (!grepl(pattern, name)) [17:26:24.448] next [17:26:24.448] invokeRestart(restart) [17:26:24.448] muffled <- TRUE [17:26:24.448] break [17:26:24.448] } [17:26:24.448] } [17:26:24.448] } [17:26:24.448] invisible(muffled) [17:26:24.448] } [17:26:24.448] muffleCondition(cond, pattern = "^muffle") [17:26:24.448] } [17:26:24.448] } [17:26:24.448] } [17:26:24.448] })) [17:26:24.448] }, error = function(ex) { [17:26:24.448] base::structure(base::list(value = NULL, visible = NULL, [17:26:24.448] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:24.448] ...future.rng), started = ...future.startTime, [17:26:24.448] finished = Sys.time(), session_uuid = NA_character_, [17:26:24.448] version = "1.8"), class = "FutureResult") [17:26:24.448] }, finally = { [17:26:24.448] if (!identical(...future.workdir, getwd())) [17:26:24.448] setwd(...future.workdir) [17:26:24.448] { [17:26:24.448] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:24.448] ...future.oldOptions$nwarnings <- NULL [17:26:24.448] } [17:26:24.448] base::options(...future.oldOptions) [17:26:24.448] if (.Platform$OS.type == "windows") { [17:26:24.448] old_names <- names(...future.oldEnvVars) [17:26:24.448] envs <- base::Sys.getenv() [17:26:24.448] names <- names(envs) [17:26:24.448] common <- intersect(names, old_names) [17:26:24.448] added <- setdiff(names, old_names) [17:26:24.448] removed <- setdiff(old_names, names) [17:26:24.448] changed <- common[...future.oldEnvVars[common] != [17:26:24.448] envs[common]] [17:26:24.448] NAMES <- toupper(changed) [17:26:24.448] args <- list() [17:26:24.448] for (kk in seq_along(NAMES)) { [17:26:24.448] name <- changed[[kk]] [17:26:24.448] NAME <- NAMES[[kk]] [17:26:24.448] if (name != NAME && is.element(NAME, old_names)) [17:26:24.448] next [17:26:24.448] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:24.448] } [17:26:24.448] NAMES <- toupper(added) [17:26:24.448] for (kk in seq_along(NAMES)) { [17:26:24.448] name <- added[[kk]] [17:26:24.448] NAME <- NAMES[[kk]] [17:26:24.448] if (name != NAME && is.element(NAME, old_names)) [17:26:24.448] next [17:26:24.448] args[[name]] <- "" [17:26:24.448] } [17:26:24.448] NAMES <- toupper(removed) [17:26:24.448] for (kk in seq_along(NAMES)) { [17:26:24.448] name <- removed[[kk]] [17:26:24.448] NAME <- NAMES[[kk]] [17:26:24.448] if (name != NAME && is.element(NAME, old_names)) [17:26:24.448] next [17:26:24.448] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:24.448] } [17:26:24.448] if (length(args) > 0) [17:26:24.448] base::do.call(base::Sys.setenv, args = args) [17:26:24.448] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:24.448] } [17:26:24.448] else { [17:26:24.448] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:24.448] } [17:26:24.448] { [17:26:24.448] if (base::length(...future.futureOptionsAdded) > [17:26:24.448] 0L) { [17:26:24.448] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:24.448] base::names(opts) <- ...future.futureOptionsAdded [17:26:24.448] base::options(opts) [17:26:24.448] } [17:26:24.448] { [17:26:24.448] { [17:26:24.448] NULL [17:26:24.448] RNGkind("Mersenne-Twister") [17:26:24.448] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:24.448] inherits = FALSE) [17:26:24.448] } [17:26:24.448] options(future.plan = NULL) [17:26:24.448] if (is.na(NA_character_)) [17:26:24.448] Sys.unsetenv("R_FUTURE_PLAN") [17:26:24.448] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:24.448] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:24.448] .init = FALSE) [17:26:24.448] } [17:26:24.448] } [17:26:24.448] } [17:26:24.448] }) [17:26:24.448] if (TRUE) { [17:26:24.448] base::sink(type = "output", split = FALSE) [17:26:24.448] if (TRUE) { [17:26:24.448] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:24.448] } [17:26:24.448] else { [17:26:24.448] ...future.result["stdout"] <- base::list(NULL) [17:26:24.448] } [17:26:24.448] base::close(...future.stdout) [17:26:24.448] ...future.stdout <- NULL [17:26:24.448] } [17:26:24.448] ...future.result$conditions <- ...future.conditions [17:26:24.448] ...future.result$finished <- base::Sys.time() [17:26:24.448] ...future.result [17:26:24.448] } [17:26:24.452] assign_globals() ... [17:26:24.452] List of 2 [17:26:24.452] $ x : int [1:2] 1 2 [17:26:24.452] $ future.call.arguments:List of 1 [17:26:24.452] ..$ : num 3 [17:26:24.452] ..- attr(*, "class")= chr [1:2] "DotDotDotList" "list" [17:26:24.452] - attr(*, "where")=List of 2 [17:26:24.452] ..$ x : [17:26:24.452] ..$ future.call.arguments: [17:26:24.452] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:24.452] - attr(*, "resolved")= logi FALSE [17:26:24.452] - attr(*, "total_size")= num 112 [17:26:24.452] - attr(*, "already-done")= logi TRUE [17:26:24.458] - copied 'x' to environment [17:26:24.458] - copied 'future.call.arguments' to environment [17:26:24.458] assign_globals() ... done [17:26:24.459] plan(): Setting new future strategy stack: [17:26:24.459] List of future strategies: [17:26:24.459] 1. sequential: [17:26:24.459] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.459] - tweaked: FALSE [17:26:24.459] - call: NULL [17:26:24.459] plan(): nbrOfWorkers() = 1 [17:26:24.460] plan(): Setting new future strategy stack: [17:26:24.461] List of future strategies: [17:26:24.461] 1. sequential: [17:26:24.461] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.461] - tweaked: FALSE [17:26:24.461] - call: plan(strategy, substitute = FALSE) [17:26:24.461] plan(): nbrOfWorkers() = 1 [17:26:24.461] SequentialFuture started (and completed) [17:26:24.462] - Launch lazy future ... done [17:26:24.462] run() for 'SequentialFuture' ... done [1] 6 ** Sum function 'C' with plan('sequential') ... function (x, y) { message("Arguments '...' exists: ", exists("...", inherits = TRUE)) y %<-% { sum(x, y) } y } Arguments '...' exists: FALSE [17:26:24.463] getGlobalsAndPackages() ... [17:26:24.463] Searching for globals... [17:26:24.464] - globals found: [4] '{', 'sum', 'x', 'y' [17:26:24.464] Searching for globals ... DONE [17:26:24.465] Resolving globals: FALSE [17:26:24.465] The total size of the 2 globals is 112 bytes (112 bytes) [17:26:24.466] The total size of the 2 globals exported for future expression ('{; sum(x, y); }') is 112 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There are two globals: 'x' (56 bytes of class 'numeric') and 'y' (56 bytes of class 'numeric') [17:26:24.466] - globals: [2] 'x', 'y' [17:26:24.466] [17:26:24.466] getGlobalsAndPackages() ... DONE [17:26:24.466] run() for 'Future' ... [17:26:24.467] - state: 'created' [17:26:24.467] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:24.467] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:24.467] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:24.468] - Field: 'label' [17:26:24.468] - Field: 'local' [17:26:24.468] - Field: 'owner' [17:26:24.468] - Field: 'envir' [17:26:24.468] - Field: 'packages' [17:26:24.468] - Field: 'gc' [17:26:24.469] - Field: 'conditions' [17:26:24.469] - Field: 'expr' [17:26:24.469] - Field: 'uuid' [17:26:24.469] - Field: 'seed' [17:26:24.469] - Field: 'version' [17:26:24.469] - Field: 'result' [17:26:24.470] - Field: 'asynchronous' [17:26:24.470] - Field: 'calls' [17:26:24.470] - Field: 'globals' [17:26:24.470] - Field: 'stdout' [17:26:24.470] - Field: 'earlySignal' [17:26:24.470] - Field: 'lazy' [17:26:24.471] - Field: 'state' [17:26:24.471] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:24.471] - Launch lazy future ... [17:26:24.471] Packages needed by the future expression (n = 0): [17:26:24.471] Packages needed by future strategies (n = 0): [17:26:24.472] { [17:26:24.472] { [17:26:24.472] { [17:26:24.472] ...future.startTime <- base::Sys.time() [17:26:24.472] { [17:26:24.472] { [17:26:24.472] { [17:26:24.472] base::local({ [17:26:24.472] has_future <- base::requireNamespace("future", [17:26:24.472] quietly = TRUE) [17:26:24.472] if (has_future) { [17:26:24.472] ns <- base::getNamespace("future") [17:26:24.472] version <- ns[[".package"]][["version"]] [17:26:24.472] if (is.null(version)) [17:26:24.472] version <- utils::packageVersion("future") [17:26:24.472] } [17:26:24.472] else { [17:26:24.472] version <- NULL [17:26:24.472] } [17:26:24.472] if (!has_future || version < "1.8.0") { [17:26:24.472] info <- base::c(r_version = base::gsub("R version ", [17:26:24.472] "", base::R.version$version.string), [17:26:24.472] platform = base::sprintf("%s (%s-bit)", [17:26:24.472] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:24.472] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:24.472] "release", "version")], collapse = " "), [17:26:24.472] hostname = base::Sys.info()[["nodename"]]) [17:26:24.472] info <- base::sprintf("%s: %s", base::names(info), [17:26:24.472] info) [17:26:24.472] info <- base::paste(info, collapse = "; ") [17:26:24.472] if (!has_future) { [17:26:24.472] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:24.472] info) [17:26:24.472] } [17:26:24.472] else { [17:26:24.472] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:24.472] info, version) [17:26:24.472] } [17:26:24.472] base::stop(msg) [17:26:24.472] } [17:26:24.472] }) [17:26:24.472] } [17:26:24.472] ...future.strategy.old <- future::plan("list") [17:26:24.472] options(future.plan = NULL) [17:26:24.472] Sys.unsetenv("R_FUTURE_PLAN") [17:26:24.472] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:24.472] } [17:26:24.472] ...future.workdir <- getwd() [17:26:24.472] } [17:26:24.472] ...future.oldOptions <- base::as.list(base::.Options) [17:26:24.472] ...future.oldEnvVars <- base::Sys.getenv() [17:26:24.472] } [17:26:24.472] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:24.472] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:24.472] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:24.472] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:24.472] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:24.472] future.stdout.windows.reencode = NULL, width = 80L) [17:26:24.472] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:24.472] base::names(...future.oldOptions)) [17:26:24.472] } [17:26:24.472] if (FALSE) { [17:26:24.472] } [17:26:24.472] else { [17:26:24.472] if (TRUE) { [17:26:24.472] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:24.472] open = "w") [17:26:24.472] } [17:26:24.472] else { [17:26:24.472] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:24.472] windows = "NUL", "/dev/null"), open = "w") [17:26:24.472] } [17:26:24.472] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:24.472] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:24.472] base::sink(type = "output", split = FALSE) [17:26:24.472] base::close(...future.stdout) [17:26:24.472] }, add = TRUE) [17:26:24.472] } [17:26:24.472] ...future.frame <- base::sys.nframe() [17:26:24.472] ...future.conditions <- base::list() [17:26:24.472] ...future.rng <- base::globalenv()$.Random.seed [17:26:24.472] if (FALSE) { [17:26:24.472] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:24.472] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:24.472] } [17:26:24.472] ...future.result <- base::tryCatch({ [17:26:24.472] base::withCallingHandlers({ [17:26:24.472] ...future.value <- base::withVisible(base::local({ [17:26:24.472] sum(x, y) [17:26:24.472] })) [17:26:24.472] future::FutureResult(value = ...future.value$value, [17:26:24.472] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:24.472] ...future.rng), globalenv = if (FALSE) [17:26:24.472] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:24.472] ...future.globalenv.names)) [17:26:24.472] else NULL, started = ...future.startTime, version = "1.8") [17:26:24.472] }, condition = base::local({ [17:26:24.472] c <- base::c [17:26:24.472] inherits <- base::inherits [17:26:24.472] invokeRestart <- base::invokeRestart [17:26:24.472] length <- base::length [17:26:24.472] list <- base::list [17:26:24.472] seq.int <- base::seq.int [17:26:24.472] signalCondition <- base::signalCondition [17:26:24.472] sys.calls <- base::sys.calls [17:26:24.472] `[[` <- base::`[[` [17:26:24.472] `+` <- base::`+` [17:26:24.472] `<<-` <- base::`<<-` [17:26:24.472] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:24.472] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:24.472] 3L)] [17:26:24.472] } [17:26:24.472] function(cond) { [17:26:24.472] is_error <- inherits(cond, "error") [17:26:24.472] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:24.472] NULL) [17:26:24.472] if (is_error) { [17:26:24.472] sessionInformation <- function() { [17:26:24.472] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:24.472] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:24.472] search = base::search(), system = base::Sys.info()) [17:26:24.472] } [17:26:24.472] ...future.conditions[[length(...future.conditions) + [17:26:24.472] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:24.472] cond$call), session = sessionInformation(), [17:26:24.472] timestamp = base::Sys.time(), signaled = 0L) [17:26:24.472] signalCondition(cond) [17:26:24.472] } [17:26:24.472] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:24.472] "immediateCondition"))) { [17:26:24.472] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:24.472] ...future.conditions[[length(...future.conditions) + [17:26:24.472] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:24.472] if (TRUE && !signal) { [17:26:24.472] muffleCondition <- function (cond, pattern = "^muffle") [17:26:24.472] { [17:26:24.472] inherits <- base::inherits [17:26:24.472] invokeRestart <- base::invokeRestart [17:26:24.472] is.null <- base::is.null [17:26:24.472] muffled <- FALSE [17:26:24.472] if (inherits(cond, "message")) { [17:26:24.472] muffled <- grepl(pattern, "muffleMessage") [17:26:24.472] if (muffled) [17:26:24.472] invokeRestart("muffleMessage") [17:26:24.472] } [17:26:24.472] else if (inherits(cond, "warning")) { [17:26:24.472] muffled <- grepl(pattern, "muffleWarning") [17:26:24.472] if (muffled) [17:26:24.472] invokeRestart("muffleWarning") [17:26:24.472] } [17:26:24.472] else if (inherits(cond, "condition")) { [17:26:24.472] if (!is.null(pattern)) { [17:26:24.472] computeRestarts <- base::computeRestarts [17:26:24.472] grepl <- base::grepl [17:26:24.472] restarts <- computeRestarts(cond) [17:26:24.472] for (restart in restarts) { [17:26:24.472] name <- restart$name [17:26:24.472] if (is.null(name)) [17:26:24.472] next [17:26:24.472] if (!grepl(pattern, name)) [17:26:24.472] next [17:26:24.472] invokeRestart(restart) [17:26:24.472] muffled <- TRUE [17:26:24.472] break [17:26:24.472] } [17:26:24.472] } [17:26:24.472] } [17:26:24.472] invisible(muffled) [17:26:24.472] } [17:26:24.472] muffleCondition(cond, pattern = "^muffle") [17:26:24.472] } [17:26:24.472] } [17:26:24.472] else { [17:26:24.472] if (TRUE) { [17:26:24.472] muffleCondition <- function (cond, pattern = "^muffle") [17:26:24.472] { [17:26:24.472] inherits <- base::inherits [17:26:24.472] invokeRestart <- base::invokeRestart [17:26:24.472] is.null <- base::is.null [17:26:24.472] muffled <- FALSE [17:26:24.472] if (inherits(cond, "message")) { [17:26:24.472] muffled <- grepl(pattern, "muffleMessage") [17:26:24.472] if (muffled) [17:26:24.472] invokeRestart("muffleMessage") [17:26:24.472] } [17:26:24.472] else if (inherits(cond, "warning")) { [17:26:24.472] muffled <- grepl(pattern, "muffleWarning") [17:26:24.472] if (muffled) [17:26:24.472] invokeRestart("muffleWarning") [17:26:24.472] } [17:26:24.472] else if (inherits(cond, "condition")) { [17:26:24.472] if (!is.null(pattern)) { [17:26:24.472] computeRestarts <- base::computeRestarts [17:26:24.472] grepl <- base::grepl [17:26:24.472] restarts <- computeRestarts(cond) [17:26:24.472] for (restart in restarts) { [17:26:24.472] name <- restart$name [17:26:24.472] if (is.null(name)) [17:26:24.472] next [17:26:24.472] if (!grepl(pattern, name)) [17:26:24.472] next [17:26:24.472] invokeRestart(restart) [17:26:24.472] muffled <- TRUE [17:26:24.472] break [17:26:24.472] } [17:26:24.472] } [17:26:24.472] } [17:26:24.472] invisible(muffled) [17:26:24.472] } [17:26:24.472] muffleCondition(cond, pattern = "^muffle") [17:26:24.472] } [17:26:24.472] } [17:26:24.472] } [17:26:24.472] })) [17:26:24.472] }, error = function(ex) { [17:26:24.472] base::structure(base::list(value = NULL, visible = NULL, [17:26:24.472] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:24.472] ...future.rng), started = ...future.startTime, [17:26:24.472] finished = Sys.time(), session_uuid = NA_character_, [17:26:24.472] version = "1.8"), class = "FutureResult") [17:26:24.472] }, finally = { [17:26:24.472] if (!identical(...future.workdir, getwd())) [17:26:24.472] setwd(...future.workdir) [17:26:24.472] { [17:26:24.472] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:24.472] ...future.oldOptions$nwarnings <- NULL [17:26:24.472] } [17:26:24.472] base::options(...future.oldOptions) [17:26:24.472] if (.Platform$OS.type == "windows") { [17:26:24.472] old_names <- names(...future.oldEnvVars) [17:26:24.472] envs <- base::Sys.getenv() [17:26:24.472] names <- names(envs) [17:26:24.472] common <- intersect(names, old_names) [17:26:24.472] added <- setdiff(names, old_names) [17:26:24.472] removed <- setdiff(old_names, names) [17:26:24.472] changed <- common[...future.oldEnvVars[common] != [17:26:24.472] envs[common]] [17:26:24.472] NAMES <- toupper(changed) [17:26:24.472] args <- list() [17:26:24.472] for (kk in seq_along(NAMES)) { [17:26:24.472] name <- changed[[kk]] [17:26:24.472] NAME <- NAMES[[kk]] [17:26:24.472] if (name != NAME && is.element(NAME, old_names)) [17:26:24.472] next [17:26:24.472] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:24.472] } [17:26:24.472] NAMES <- toupper(added) [17:26:24.472] for (kk in seq_along(NAMES)) { [17:26:24.472] name <- added[[kk]] [17:26:24.472] NAME <- NAMES[[kk]] [17:26:24.472] if (name != NAME && is.element(NAME, old_names)) [17:26:24.472] next [17:26:24.472] args[[name]] <- "" [17:26:24.472] } [17:26:24.472] NAMES <- toupper(removed) [17:26:24.472] for (kk in seq_along(NAMES)) { [17:26:24.472] name <- removed[[kk]] [17:26:24.472] NAME <- NAMES[[kk]] [17:26:24.472] if (name != NAME && is.element(NAME, old_names)) [17:26:24.472] next [17:26:24.472] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:24.472] } [17:26:24.472] if (length(args) > 0) [17:26:24.472] base::do.call(base::Sys.setenv, args = args) [17:26:24.472] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:24.472] } [17:26:24.472] else { [17:26:24.472] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:24.472] } [17:26:24.472] { [17:26:24.472] if (base::length(...future.futureOptionsAdded) > [17:26:24.472] 0L) { [17:26:24.472] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:24.472] base::names(opts) <- ...future.futureOptionsAdded [17:26:24.472] base::options(opts) [17:26:24.472] } [17:26:24.472] { [17:26:24.472] { [17:26:24.472] NULL [17:26:24.472] RNGkind("Mersenne-Twister") [17:26:24.472] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:24.472] inherits = FALSE) [17:26:24.472] } [17:26:24.472] options(future.plan = NULL) [17:26:24.472] if (is.na(NA_character_)) [17:26:24.472] Sys.unsetenv("R_FUTURE_PLAN") [17:26:24.472] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:24.472] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:24.472] .init = FALSE) [17:26:24.472] } [17:26:24.472] } [17:26:24.472] } [17:26:24.472] }) [17:26:24.472] if (TRUE) { [17:26:24.472] base::sink(type = "output", split = FALSE) [17:26:24.472] if (TRUE) { [17:26:24.472] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:24.472] } [17:26:24.472] else { [17:26:24.472] ...future.result["stdout"] <- base::list(NULL) [17:26:24.472] } [17:26:24.472] base::close(...future.stdout) [17:26:24.472] ...future.stdout <- NULL [17:26:24.472] } [17:26:24.472] ...future.result$conditions <- ...future.conditions [17:26:24.472] ...future.result$finished <- base::Sys.time() [17:26:24.472] ...future.result [17:26:24.472] } [17:26:24.476] assign_globals() ... [17:26:24.476] List of 2 [17:26:24.476] $ x: int [1:2] 1 2 [17:26:24.476] $ y: num 3 [17:26:24.476] - attr(*, "where")=List of 2 [17:26:24.476] ..$ x: [17:26:24.476] ..$ y: [17:26:24.476] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:24.476] - attr(*, "resolved")= logi FALSE [17:26:24.476] - attr(*, "total_size")= num 112 [17:26:24.476] - attr(*, "already-done")= logi TRUE [17:26:24.479] - copied 'x' to environment [17:26:24.480] - copied 'y' to environment [17:26:24.480] assign_globals() ... done [17:26:24.480] plan(): Setting new future strategy stack: [17:26:24.480] List of future strategies: [17:26:24.480] 1. sequential: [17:26:24.480] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.480] - tweaked: FALSE [17:26:24.480] - call: NULL [17:26:24.481] plan(): nbrOfWorkers() = 1 [17:26:24.482] plan(): Setting new future strategy stack: [17:26:24.482] List of future strategies: [17:26:24.482] 1. sequential: [17:26:24.482] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.482] - tweaked: FALSE [17:26:24.482] - call: plan(strategy, substitute = FALSE) [17:26:24.483] plan(): nbrOfWorkers() = 1 [17:26:24.483] SequentialFuture started (and completed) [17:26:24.483] - Launch lazy future ... done [17:26:24.483] run() for 'SequentialFuture' ... done [1] 6 ** Sum function 'D' with plan('sequential') ... function (x, y) { message("Arguments '...' exists: ", exists("...", inherits = TRUE)) y %<-% { sum(x, y, ...) } y } Arguments '...' exists: FALSE [17:26:24.484] getGlobalsAndPackages() ... [17:26:24.484] Searching for globals... [17:26:24.486] - globals found: [5] '{', 'sum', 'x', 'y', '...' [17:26:24.486] Searching for globals ... DONE [17:26:24.486] Resolving globals: FALSE [17:26:24.487] Tweak future expression to call with '...' arguments ... [17:26:24.488] The total size of the 2 globals is 112 bytes (112 bytes) [17:26:24.489] The total size of the 2 globals exported for future expression ('{; sum(x, y, ...); }') is 112 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There are two globals: 'x' (56 bytes of class 'numeric') and 'y' (56 bytes of class 'numeric') [17:26:24.489] - globals: [2] 'x', 'y' [17:26:24.489] [17:26:24.489] getGlobalsAndPackages() ... DONE [17:26:24.489] run() for 'Future' ... [17:26:24.490] - state: 'created' [17:26:24.490] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:24.490] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:24.490] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:24.491] - Field: 'label' [17:26:24.491] - Field: 'local' [17:26:24.491] - Field: 'owner' [17:26:24.491] - Field: 'envir' [17:26:24.491] - Field: 'packages' [17:26:24.491] - Field: 'gc' [17:26:24.492] - Field: 'conditions' [17:26:24.492] - Field: 'expr' [17:26:24.492] - Field: 'uuid' [17:26:24.492] - Field: 'seed' [17:26:24.492] - Field: 'version' [17:26:24.493] - Field: 'result' [17:26:24.493] - Field: 'asynchronous' [17:26:24.493] - Field: 'calls' [17:26:24.493] - Field: 'globals' [17:26:24.493] - Field: 'stdout' [17:26:24.493] - Field: 'earlySignal' [17:26:24.494] - Field: 'lazy' [17:26:24.494] - Field: 'state' [17:26:24.494] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:24.494] - Launch lazy future ... [17:26:24.494] Packages needed by the future expression (n = 0): [17:26:24.494] Packages needed by future strategies (n = 0): [17:26:24.495] { [17:26:24.495] { [17:26:24.495] { [17:26:24.495] ...future.startTime <- base::Sys.time() [17:26:24.495] { [17:26:24.495] { [17:26:24.495] { [17:26:24.495] base::local({ [17:26:24.495] has_future <- base::requireNamespace("future", [17:26:24.495] quietly = TRUE) [17:26:24.495] if (has_future) { [17:26:24.495] ns <- base::getNamespace("future") [17:26:24.495] version <- ns[[".package"]][["version"]] [17:26:24.495] if (is.null(version)) [17:26:24.495] version <- utils::packageVersion("future") [17:26:24.495] } [17:26:24.495] else { [17:26:24.495] version <- NULL [17:26:24.495] } [17:26:24.495] if (!has_future || version < "1.8.0") { [17:26:24.495] info <- base::c(r_version = base::gsub("R version ", [17:26:24.495] "", base::R.version$version.string), [17:26:24.495] platform = base::sprintf("%s (%s-bit)", [17:26:24.495] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:24.495] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:24.495] "release", "version")], collapse = " "), [17:26:24.495] hostname = base::Sys.info()[["nodename"]]) [17:26:24.495] info <- base::sprintf("%s: %s", base::names(info), [17:26:24.495] info) [17:26:24.495] info <- base::paste(info, collapse = "; ") [17:26:24.495] if (!has_future) { [17:26:24.495] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:24.495] info) [17:26:24.495] } [17:26:24.495] else { [17:26:24.495] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:24.495] info, version) [17:26:24.495] } [17:26:24.495] base::stop(msg) [17:26:24.495] } [17:26:24.495] }) [17:26:24.495] } [17:26:24.495] ...future.strategy.old <- future::plan("list") [17:26:24.495] options(future.plan = NULL) [17:26:24.495] Sys.unsetenv("R_FUTURE_PLAN") [17:26:24.495] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:24.495] } [17:26:24.495] ...future.workdir <- getwd() [17:26:24.495] } [17:26:24.495] ...future.oldOptions <- base::as.list(base::.Options) [17:26:24.495] ...future.oldEnvVars <- base::Sys.getenv() [17:26:24.495] } [17:26:24.495] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:24.495] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:24.495] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:24.495] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:24.495] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:24.495] future.stdout.windows.reencode = NULL, width = 80L) [17:26:24.495] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:24.495] base::names(...future.oldOptions)) [17:26:24.495] } [17:26:24.495] if (FALSE) { [17:26:24.495] } [17:26:24.495] else { [17:26:24.495] if (TRUE) { [17:26:24.495] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:24.495] open = "w") [17:26:24.495] } [17:26:24.495] else { [17:26:24.495] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:24.495] windows = "NUL", "/dev/null"), open = "w") [17:26:24.495] } [17:26:24.495] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:24.495] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:24.495] base::sink(type = "output", split = FALSE) [17:26:24.495] base::close(...future.stdout) [17:26:24.495] }, add = TRUE) [17:26:24.495] } [17:26:24.495] ...future.frame <- base::sys.nframe() [17:26:24.495] ...future.conditions <- base::list() [17:26:24.495] ...future.rng <- base::globalenv()$.Random.seed [17:26:24.495] if (FALSE) { [17:26:24.495] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:24.495] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:24.495] } [17:26:24.495] ...future.result <- base::tryCatch({ [17:26:24.495] base::withCallingHandlers({ [17:26:24.495] ...future.value <- base::withVisible(base::local({ [17:26:24.495] sum(x, y, ...) [17:26:24.495] })) [17:26:24.495] future::FutureResult(value = ...future.value$value, [17:26:24.495] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:24.495] ...future.rng), globalenv = if (FALSE) [17:26:24.495] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:24.495] ...future.globalenv.names)) [17:26:24.495] else NULL, started = ...future.startTime, version = "1.8") [17:26:24.495] }, condition = base::local({ [17:26:24.495] c <- base::c [17:26:24.495] inherits <- base::inherits [17:26:24.495] invokeRestart <- base::invokeRestart [17:26:24.495] length <- base::length [17:26:24.495] list <- base::list [17:26:24.495] seq.int <- base::seq.int [17:26:24.495] signalCondition <- base::signalCondition [17:26:24.495] sys.calls <- base::sys.calls [17:26:24.495] `[[` <- base::`[[` [17:26:24.495] `+` <- base::`+` [17:26:24.495] `<<-` <- base::`<<-` [17:26:24.495] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:24.495] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:24.495] 3L)] [17:26:24.495] } [17:26:24.495] function(cond) { [17:26:24.495] is_error <- inherits(cond, "error") [17:26:24.495] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:24.495] NULL) [17:26:24.495] if (is_error) { [17:26:24.495] sessionInformation <- function() { [17:26:24.495] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:24.495] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:24.495] search = base::search(), system = base::Sys.info()) [17:26:24.495] } [17:26:24.495] ...future.conditions[[length(...future.conditions) + [17:26:24.495] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:24.495] cond$call), session = sessionInformation(), [17:26:24.495] timestamp = base::Sys.time(), signaled = 0L) [17:26:24.495] signalCondition(cond) [17:26:24.495] } [17:26:24.495] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:24.495] "immediateCondition"))) { [17:26:24.495] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:24.495] ...future.conditions[[length(...future.conditions) + [17:26:24.495] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:24.495] if (TRUE && !signal) { [17:26:24.495] muffleCondition <- function (cond, pattern = "^muffle") [17:26:24.495] { [17:26:24.495] inherits <- base::inherits [17:26:24.495] invokeRestart <- base::invokeRestart [17:26:24.495] is.null <- base::is.null [17:26:24.495] muffled <- FALSE [17:26:24.495] if (inherits(cond, "message")) { [17:26:24.495] muffled <- grepl(pattern, "muffleMessage") [17:26:24.495] if (muffled) [17:26:24.495] invokeRestart("muffleMessage") [17:26:24.495] } [17:26:24.495] else if (inherits(cond, "warning")) { [17:26:24.495] muffled <- grepl(pattern, "muffleWarning") [17:26:24.495] if (muffled) [17:26:24.495] invokeRestart("muffleWarning") [17:26:24.495] } [17:26:24.495] else if (inherits(cond, "condition")) { [17:26:24.495] if (!is.null(pattern)) { [17:26:24.495] computeRestarts <- base::computeRestarts [17:26:24.495] grepl <- base::grepl [17:26:24.495] restarts <- computeRestarts(cond) [17:26:24.495] for (restart in restarts) { [17:26:24.495] name <- restart$name [17:26:24.495] if (is.null(name)) [17:26:24.495] next [17:26:24.495] if (!grepl(pattern, name)) [17:26:24.495] next [17:26:24.495] invokeRestart(restart) [17:26:24.495] muffled <- TRUE [17:26:24.495] break [17:26:24.495] } [17:26:24.495] } [17:26:24.495] } [17:26:24.495] invisible(muffled) [17:26:24.495] } [17:26:24.495] muffleCondition(cond, pattern = "^muffle") [17:26:24.495] } [17:26:24.495] } [17:26:24.495] else { [17:26:24.495] if (TRUE) { [17:26:24.495] muffleCondition <- function (cond, pattern = "^muffle") [17:26:24.495] { [17:26:24.495] inherits <- base::inherits [17:26:24.495] invokeRestart <- base::invokeRestart [17:26:24.495] is.null <- base::is.null [17:26:24.495] muffled <- FALSE [17:26:24.495] if (inherits(cond, "message")) { [17:26:24.495] muffled <- grepl(pattern, "muffleMessage") [17:26:24.495] if (muffled) [17:26:24.495] invokeRestart("muffleMessage") [17:26:24.495] } [17:26:24.495] else if (inherits(cond, "warning")) { [17:26:24.495] muffled <- grepl(pattern, "muffleWarning") [17:26:24.495] if (muffled) [17:26:24.495] invokeRestart("muffleWarning") [17:26:24.495] } [17:26:24.495] else if (inherits(cond, "condition")) { [17:26:24.495] if (!is.null(pattern)) { [17:26:24.495] computeRestarts <- base::computeRestarts [17:26:24.495] grepl <- base::grepl [17:26:24.495] restarts <- computeRestarts(cond) [17:26:24.495] for (restart in restarts) { [17:26:24.495] name <- restart$name [17:26:24.495] if (is.null(name)) [17:26:24.495] next [17:26:24.495] if (!grepl(pattern, name)) [17:26:24.495] next [17:26:24.495] invokeRestart(restart) [17:26:24.495] muffled <- TRUE [17:26:24.495] break [17:26:24.495] } [17:26:24.495] } [17:26:24.495] } [17:26:24.495] invisible(muffled) [17:26:24.495] } [17:26:24.495] muffleCondition(cond, pattern = "^muffle") [17:26:24.495] } [17:26:24.495] } [17:26:24.495] } [17:26:24.495] })) [17:26:24.495] }, error = function(ex) { [17:26:24.495] base::structure(base::list(value = NULL, visible = NULL, [17:26:24.495] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:24.495] ...future.rng), started = ...future.startTime, [17:26:24.495] finished = Sys.time(), session_uuid = NA_character_, [17:26:24.495] version = "1.8"), class = "FutureResult") [17:26:24.495] }, finally = { [17:26:24.495] if (!identical(...future.workdir, getwd())) [17:26:24.495] setwd(...future.workdir) [17:26:24.495] { [17:26:24.495] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:24.495] ...future.oldOptions$nwarnings <- NULL [17:26:24.495] } [17:26:24.495] base::options(...future.oldOptions) [17:26:24.495] if (.Platform$OS.type == "windows") { [17:26:24.495] old_names <- names(...future.oldEnvVars) [17:26:24.495] envs <- base::Sys.getenv() [17:26:24.495] names <- names(envs) [17:26:24.495] common <- intersect(names, old_names) [17:26:24.495] added <- setdiff(names, old_names) [17:26:24.495] removed <- setdiff(old_names, names) [17:26:24.495] changed <- common[...future.oldEnvVars[common] != [17:26:24.495] envs[common]] [17:26:24.495] NAMES <- toupper(changed) [17:26:24.495] args <- list() [17:26:24.495] for (kk in seq_along(NAMES)) { [17:26:24.495] name <- changed[[kk]] [17:26:24.495] NAME <- NAMES[[kk]] [17:26:24.495] if (name != NAME && is.element(NAME, old_names)) [17:26:24.495] next [17:26:24.495] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:24.495] } [17:26:24.495] NAMES <- toupper(added) [17:26:24.495] for (kk in seq_along(NAMES)) { [17:26:24.495] name <- added[[kk]] [17:26:24.495] NAME <- NAMES[[kk]] [17:26:24.495] if (name != NAME && is.element(NAME, old_names)) [17:26:24.495] next [17:26:24.495] args[[name]] <- "" [17:26:24.495] } [17:26:24.495] NAMES <- toupper(removed) [17:26:24.495] for (kk in seq_along(NAMES)) { [17:26:24.495] name <- removed[[kk]] [17:26:24.495] NAME <- NAMES[[kk]] [17:26:24.495] if (name != NAME && is.element(NAME, old_names)) [17:26:24.495] next [17:26:24.495] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:24.495] } [17:26:24.495] if (length(args) > 0) [17:26:24.495] base::do.call(base::Sys.setenv, args = args) [17:26:24.495] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:24.495] } [17:26:24.495] else { [17:26:24.495] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:24.495] } [17:26:24.495] { [17:26:24.495] if (base::length(...future.futureOptionsAdded) > [17:26:24.495] 0L) { [17:26:24.495] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:24.495] base::names(opts) <- ...future.futureOptionsAdded [17:26:24.495] base::options(opts) [17:26:24.495] } [17:26:24.495] { [17:26:24.495] { [17:26:24.495] NULL [17:26:24.495] RNGkind("Mersenne-Twister") [17:26:24.495] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:24.495] inherits = FALSE) [17:26:24.495] } [17:26:24.495] options(future.plan = NULL) [17:26:24.495] if (is.na(NA_character_)) [17:26:24.495] Sys.unsetenv("R_FUTURE_PLAN") [17:26:24.495] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:24.495] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:24.495] .init = FALSE) [17:26:24.495] } [17:26:24.495] } [17:26:24.495] } [17:26:24.495] }) [17:26:24.495] if (TRUE) { [17:26:24.495] base::sink(type = "output", split = FALSE) [17:26:24.495] if (TRUE) { [17:26:24.495] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:24.495] } [17:26:24.495] else { [17:26:24.495] ...future.result["stdout"] <- base::list(NULL) [17:26:24.495] } [17:26:24.495] base::close(...future.stdout) [17:26:24.495] ...future.stdout <- NULL [17:26:24.495] } [17:26:24.495] ...future.result$conditions <- ...future.conditions [17:26:24.495] ...future.result$finished <- base::Sys.time() [17:26:24.495] ...future.result [17:26:24.495] } [17:26:24.499] assign_globals() ... [17:26:24.499] List of 2 [17:26:24.499] $ x: int [1:2] 1 2 [17:26:24.499] $ y: num 3 [17:26:24.499] - attr(*, "where")=List of 2 [17:26:24.499] ..$ x: [17:26:24.499] ..$ y: [17:26:24.499] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:24.499] - attr(*, "resolved")= logi FALSE [17:26:24.499] - attr(*, "total_size")= num 112 [17:26:24.499] - attr(*, "already-done")= logi TRUE [17:26:24.502] - copied 'x' to environment [17:26:24.503] - copied 'y' to environment [17:26:24.503] assign_globals() ... done [17:26:24.503] plan(): Setting new future strategy stack: [17:26:24.503] List of future strategies: [17:26:24.503] 1. sequential: [17:26:24.503] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.503] - tweaked: FALSE [17:26:24.503] - call: NULL [17:26:24.504] plan(): nbrOfWorkers() = 1 [17:26:24.505] plan(): Setting new future strategy stack: [17:26:24.505] List of future strategies: [17:26:24.505] 1. sequential: [17:26:24.505] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.505] - tweaked: FALSE [17:26:24.505] - call: plan(strategy, substitute = FALSE) [17:26:24.506] plan(): nbrOfWorkers() = 1 [17:26:24.506] SequentialFuture started (and completed) [17:26:24.506] signalConditions() ... [17:26:24.507] - include = 'immediateCondition' [17:26:24.507] - exclude = [17:26:24.507] - resignal = FALSE [17:26:24.507] - Number of conditions: 1 [17:26:24.507] signalConditions() ... done [17:26:24.507] - Launch lazy future ... done [17:26:24.508] run() for 'SequentialFuture' ... done [17:26:24.508] signalConditions() ... [17:26:24.508] - include = 'immediateCondition' [17:26:24.508] - exclude = [17:26:24.508] - resignal = FALSE [17:26:24.509] - Number of conditions: 1 [17:26:24.509] signalConditions() ... done [17:26:24.509] Future state: 'finished' [17:26:24.509] signalConditions() ... [17:26:24.509] - include = 'condition' [17:26:24.509] - exclude = 'immediateCondition' [17:26:24.510] - resignal = TRUE [17:26:24.510] - Number of conditions: 1 [17:26:24.510] - Condition #1: 'simpleError', 'error', 'condition' [17:26:24.510] signalConditions() ... done Error in eval(quote({ : '...' used in an incorrect context [1] "Error in eval(quote({ : '...' used in an incorrect context\n" attr(,"class") [1] "try-error" attr(,"condition") ** Sum function 'E' with plan('sequential') ... function (...) { message("Arguments '...' exists: ", exists("...", inherits = TRUE)) globals <- globals::globalsByName("...", envir = environment()) f <- future({ fcn <- function() sum(...) fcn() }, envir = parent.frame(), globals = globals) y <- value(f) y } Arguments '...' exists: TRUE [17:26:24.511] getGlobalsAndPackages() ... [17:26:24.511] - globals passed as-is: [1] '...' [17:26:24.511] Resolving globals: FALSE [17:26:24.512] Tweak future expression to call with '...' arguments ... [17:26:24.512] { [17:26:24.512] do.call(function(...) { [17:26:24.512] fcn <- function() sum(...) [17:26:24.512] fcn() [17:26:24.512] }, args = future.call.arguments) [17:26:24.512] } [17:26:24.512] Tweak future expression to call with '...' arguments ... DONE [17:26:24.513] The total size of the 1 globals is 112 bytes (112 bytes) [17:26:24.513] The total size of the 1 globals exported for future expression ('{; fcn <- function() sum(...); fcn(); }') is 112 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'future.call.arguments' (112 bytes of class 'list') [17:26:24.513] - globals: [1] 'future.call.arguments' [17:26:24.513] [17:26:24.513] getGlobalsAndPackages() ... DONE [17:26:24.514] run() for 'Future' ... [17:26:24.514] - state: 'created' [17:26:24.514] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:24.515] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:24.515] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:24.515] - Field: 'label' [17:26:24.515] - Field: 'local' [17:26:24.515] - Field: 'owner' [17:26:24.516] - Field: 'envir' [17:26:24.516] - Field: 'packages' [17:26:24.516] - Field: 'gc' [17:26:24.516] - Field: 'conditions' [17:26:24.516] - Field: 'expr' [17:26:24.516] - Field: 'uuid' [17:26:24.517] - Field: 'seed' [17:26:24.517] - Field: 'version' [17:26:24.517] - Field: 'result' [17:26:24.517] - Field: 'asynchronous' [17:26:24.517] - Field: 'calls' [17:26:24.517] - Field: 'globals' [17:26:24.518] - Field: 'stdout' [17:26:24.518] - Field: 'earlySignal' [17:26:24.518] - Field: 'lazy' [17:26:24.518] - Field: 'state' [17:26:24.518] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:24.518] - Launch lazy future ... [17:26:24.519] Packages needed by the future expression (n = 0): [17:26:24.519] Packages needed by future strategies (n = 0): [17:26:24.519] { [17:26:24.519] { [17:26:24.519] { [17:26:24.519] ...future.startTime <- base::Sys.time() [17:26:24.519] { [17:26:24.519] { [17:26:24.519] { [17:26:24.519] base::local({ [17:26:24.519] has_future <- base::requireNamespace("future", [17:26:24.519] quietly = TRUE) [17:26:24.519] if (has_future) { [17:26:24.519] ns <- base::getNamespace("future") [17:26:24.519] version <- ns[[".package"]][["version"]] [17:26:24.519] if (is.null(version)) [17:26:24.519] version <- utils::packageVersion("future") [17:26:24.519] } [17:26:24.519] else { [17:26:24.519] version <- NULL [17:26:24.519] } [17:26:24.519] if (!has_future || version < "1.8.0") { [17:26:24.519] info <- base::c(r_version = base::gsub("R version ", [17:26:24.519] "", base::R.version$version.string), [17:26:24.519] platform = base::sprintf("%s (%s-bit)", [17:26:24.519] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:24.519] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:24.519] "release", "version")], collapse = " "), [17:26:24.519] hostname = base::Sys.info()[["nodename"]]) [17:26:24.519] info <- base::sprintf("%s: %s", base::names(info), [17:26:24.519] info) [17:26:24.519] info <- base::paste(info, collapse = "; ") [17:26:24.519] if (!has_future) { [17:26:24.519] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:24.519] info) [17:26:24.519] } [17:26:24.519] else { [17:26:24.519] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:24.519] info, version) [17:26:24.519] } [17:26:24.519] base::stop(msg) [17:26:24.519] } [17:26:24.519] }) [17:26:24.519] } [17:26:24.519] ...future.strategy.old <- future::plan("list") [17:26:24.519] options(future.plan = NULL) [17:26:24.519] Sys.unsetenv("R_FUTURE_PLAN") [17:26:24.519] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:24.519] } [17:26:24.519] ...future.workdir <- getwd() [17:26:24.519] } [17:26:24.519] ...future.oldOptions <- base::as.list(base::.Options) [17:26:24.519] ...future.oldEnvVars <- base::Sys.getenv() [17:26:24.519] } [17:26:24.519] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:24.519] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:24.519] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:24.519] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:24.519] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:24.519] future.stdout.windows.reencode = NULL, width = 80L) [17:26:24.519] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:24.519] base::names(...future.oldOptions)) [17:26:24.519] } [17:26:24.519] if (FALSE) { [17:26:24.519] } [17:26:24.519] else { [17:26:24.519] if (TRUE) { [17:26:24.519] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:24.519] open = "w") [17:26:24.519] } [17:26:24.519] else { [17:26:24.519] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:24.519] windows = "NUL", "/dev/null"), open = "w") [17:26:24.519] } [17:26:24.519] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:24.519] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:24.519] base::sink(type = "output", split = FALSE) [17:26:24.519] base::close(...future.stdout) [17:26:24.519] }, add = TRUE) [17:26:24.519] } [17:26:24.519] ...future.frame <- base::sys.nframe() [17:26:24.519] ...future.conditions <- base::list() [17:26:24.519] ...future.rng <- base::globalenv()$.Random.seed [17:26:24.519] if (FALSE) { [17:26:24.519] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:24.519] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:24.519] } [17:26:24.519] ...future.result <- base::tryCatch({ [17:26:24.519] base::withCallingHandlers({ [17:26:24.519] ...future.value <- base::withVisible(base::local({ [17:26:24.519] do.call(function(...) { [17:26:24.519] fcn <- function() sum(...) [17:26:24.519] fcn() [17:26:24.519] }, args = future.call.arguments) [17:26:24.519] })) [17:26:24.519] future::FutureResult(value = ...future.value$value, [17:26:24.519] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:24.519] ...future.rng), globalenv = if (FALSE) [17:26:24.519] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:24.519] ...future.globalenv.names)) [17:26:24.519] else NULL, started = ...future.startTime, version = "1.8") [17:26:24.519] }, condition = base::local({ [17:26:24.519] c <- base::c [17:26:24.519] inherits <- base::inherits [17:26:24.519] invokeRestart <- base::invokeRestart [17:26:24.519] length <- base::length [17:26:24.519] list <- base::list [17:26:24.519] seq.int <- base::seq.int [17:26:24.519] signalCondition <- base::signalCondition [17:26:24.519] sys.calls <- base::sys.calls [17:26:24.519] `[[` <- base::`[[` [17:26:24.519] `+` <- base::`+` [17:26:24.519] `<<-` <- base::`<<-` [17:26:24.519] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:24.519] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:24.519] 3L)] [17:26:24.519] } [17:26:24.519] function(cond) { [17:26:24.519] is_error <- inherits(cond, "error") [17:26:24.519] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:24.519] NULL) [17:26:24.519] if (is_error) { [17:26:24.519] sessionInformation <- function() { [17:26:24.519] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:24.519] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:24.519] search = base::search(), system = base::Sys.info()) [17:26:24.519] } [17:26:24.519] ...future.conditions[[length(...future.conditions) + [17:26:24.519] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:24.519] cond$call), session = sessionInformation(), [17:26:24.519] timestamp = base::Sys.time(), signaled = 0L) [17:26:24.519] signalCondition(cond) [17:26:24.519] } [17:26:24.519] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:24.519] "immediateCondition"))) { [17:26:24.519] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:24.519] ...future.conditions[[length(...future.conditions) + [17:26:24.519] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:24.519] if (TRUE && !signal) { [17:26:24.519] muffleCondition <- function (cond, pattern = "^muffle") [17:26:24.519] { [17:26:24.519] inherits <- base::inherits [17:26:24.519] invokeRestart <- base::invokeRestart [17:26:24.519] is.null <- base::is.null [17:26:24.519] muffled <- FALSE [17:26:24.519] if (inherits(cond, "message")) { [17:26:24.519] muffled <- grepl(pattern, "muffleMessage") [17:26:24.519] if (muffled) [17:26:24.519] invokeRestart("muffleMessage") [17:26:24.519] } [17:26:24.519] else if (inherits(cond, "warning")) { [17:26:24.519] muffled <- grepl(pattern, "muffleWarning") [17:26:24.519] if (muffled) [17:26:24.519] invokeRestart("muffleWarning") [17:26:24.519] } [17:26:24.519] else if (inherits(cond, "condition")) { [17:26:24.519] if (!is.null(pattern)) { [17:26:24.519] computeRestarts <- base::computeRestarts [17:26:24.519] grepl <- base::grepl [17:26:24.519] restarts <- computeRestarts(cond) [17:26:24.519] for (restart in restarts) { [17:26:24.519] name <- restart$name [17:26:24.519] if (is.null(name)) [17:26:24.519] next [17:26:24.519] if (!grepl(pattern, name)) [17:26:24.519] next [17:26:24.519] invokeRestart(restart) [17:26:24.519] muffled <- TRUE [17:26:24.519] break [17:26:24.519] } [17:26:24.519] } [17:26:24.519] } [17:26:24.519] invisible(muffled) [17:26:24.519] } [17:26:24.519] muffleCondition(cond, pattern = "^muffle") [17:26:24.519] } [17:26:24.519] } [17:26:24.519] else { [17:26:24.519] if (TRUE) { [17:26:24.519] muffleCondition <- function (cond, pattern = "^muffle") [17:26:24.519] { [17:26:24.519] inherits <- base::inherits [17:26:24.519] invokeRestart <- base::invokeRestart [17:26:24.519] is.null <- base::is.null [17:26:24.519] muffled <- FALSE [17:26:24.519] if (inherits(cond, "message")) { [17:26:24.519] muffled <- grepl(pattern, "muffleMessage") [17:26:24.519] if (muffled) [17:26:24.519] invokeRestart("muffleMessage") [17:26:24.519] } [17:26:24.519] else if (inherits(cond, "warning")) { [17:26:24.519] muffled <- grepl(pattern, "muffleWarning") [17:26:24.519] if (muffled) [17:26:24.519] invokeRestart("muffleWarning") [17:26:24.519] } [17:26:24.519] else if (inherits(cond, "condition")) { [17:26:24.519] if (!is.null(pattern)) { [17:26:24.519] computeRestarts <- base::computeRestarts [17:26:24.519] grepl <- base::grepl [17:26:24.519] restarts <- computeRestarts(cond) [17:26:24.519] for (restart in restarts) { [17:26:24.519] name <- restart$name [17:26:24.519] if (is.null(name)) [17:26:24.519] next [17:26:24.519] if (!grepl(pattern, name)) [17:26:24.519] next [17:26:24.519] invokeRestart(restart) [17:26:24.519] muffled <- TRUE [17:26:24.519] break [17:26:24.519] } [17:26:24.519] } [17:26:24.519] } [17:26:24.519] invisible(muffled) [17:26:24.519] } [17:26:24.519] muffleCondition(cond, pattern = "^muffle") [17:26:24.519] } [17:26:24.519] } [17:26:24.519] } [17:26:24.519] })) [17:26:24.519] }, error = function(ex) { [17:26:24.519] base::structure(base::list(value = NULL, visible = NULL, [17:26:24.519] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:24.519] ...future.rng), started = ...future.startTime, [17:26:24.519] finished = Sys.time(), session_uuid = NA_character_, [17:26:24.519] version = "1.8"), class = "FutureResult") [17:26:24.519] }, finally = { [17:26:24.519] if (!identical(...future.workdir, getwd())) [17:26:24.519] setwd(...future.workdir) [17:26:24.519] { [17:26:24.519] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:24.519] ...future.oldOptions$nwarnings <- NULL [17:26:24.519] } [17:26:24.519] base::options(...future.oldOptions) [17:26:24.519] if (.Platform$OS.type == "windows") { [17:26:24.519] old_names <- names(...future.oldEnvVars) [17:26:24.519] envs <- base::Sys.getenv() [17:26:24.519] names <- names(envs) [17:26:24.519] common <- intersect(names, old_names) [17:26:24.519] added <- setdiff(names, old_names) [17:26:24.519] removed <- setdiff(old_names, names) [17:26:24.519] changed <- common[...future.oldEnvVars[common] != [17:26:24.519] envs[common]] [17:26:24.519] NAMES <- toupper(changed) [17:26:24.519] args <- list() [17:26:24.519] for (kk in seq_along(NAMES)) { [17:26:24.519] name <- changed[[kk]] [17:26:24.519] NAME <- NAMES[[kk]] [17:26:24.519] if (name != NAME && is.element(NAME, old_names)) [17:26:24.519] next [17:26:24.519] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:24.519] } [17:26:24.519] NAMES <- toupper(added) [17:26:24.519] for (kk in seq_along(NAMES)) { [17:26:24.519] name <- added[[kk]] [17:26:24.519] NAME <- NAMES[[kk]] [17:26:24.519] if (name != NAME && is.element(NAME, old_names)) [17:26:24.519] next [17:26:24.519] args[[name]] <- "" [17:26:24.519] } [17:26:24.519] NAMES <- toupper(removed) [17:26:24.519] for (kk in seq_along(NAMES)) { [17:26:24.519] name <- removed[[kk]] [17:26:24.519] NAME <- NAMES[[kk]] [17:26:24.519] if (name != NAME && is.element(NAME, old_names)) [17:26:24.519] next [17:26:24.519] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:24.519] } [17:26:24.519] if (length(args) > 0) [17:26:24.519] base::do.call(base::Sys.setenv, args = args) [17:26:24.519] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:24.519] } [17:26:24.519] else { [17:26:24.519] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:24.519] } [17:26:24.519] { [17:26:24.519] if (base::length(...future.futureOptionsAdded) > [17:26:24.519] 0L) { [17:26:24.519] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:24.519] base::names(opts) <- ...future.futureOptionsAdded [17:26:24.519] base::options(opts) [17:26:24.519] } [17:26:24.519] { [17:26:24.519] { [17:26:24.519] NULL [17:26:24.519] RNGkind("Mersenne-Twister") [17:26:24.519] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:24.519] inherits = FALSE) [17:26:24.519] } [17:26:24.519] options(future.plan = NULL) [17:26:24.519] if (is.na(NA_character_)) [17:26:24.519] Sys.unsetenv("R_FUTURE_PLAN") [17:26:24.519] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:24.519] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:24.519] .init = FALSE) [17:26:24.519] } [17:26:24.519] } [17:26:24.519] } [17:26:24.519] }) [17:26:24.519] if (TRUE) { [17:26:24.519] base::sink(type = "output", split = FALSE) [17:26:24.519] if (TRUE) { [17:26:24.519] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:24.519] } [17:26:24.519] else { [17:26:24.519] ...future.result["stdout"] <- base::list(NULL) [17:26:24.519] } [17:26:24.519] base::close(...future.stdout) [17:26:24.519] ...future.stdout <- NULL [17:26:24.519] } [17:26:24.519] ...future.result$conditions <- ...future.conditions [17:26:24.519] ...future.result$finished <- base::Sys.time() [17:26:24.519] ...future.result [17:26:24.519] } [17:26:24.523] assign_globals() ... [17:26:24.523] List of 1 [17:26:24.523] $ future.call.arguments:List of 2 [17:26:24.523] ..$ : int [1:2] 1 2 [17:26:24.523] ..$ : num 3 [17:26:24.523] ..- attr(*, "class")= chr [1:2] "DotDotDotList" "list" [17:26:24.523] - attr(*, "where")=List of 1 [17:26:24.523] ..$ future.call.arguments: [17:26:24.523] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:24.523] - attr(*, "resolved")= logi FALSE [17:26:24.523] - attr(*, "total_size")= num 112 [17:26:24.523] - attr(*, "already-done")= logi TRUE [17:26:24.528] - copied 'future.call.arguments' to environment [17:26:24.528] assign_globals() ... done [17:26:24.529] plan(): Setting new future strategy stack: [17:26:24.529] List of future strategies: [17:26:24.529] 1. sequential: [17:26:24.529] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.529] - tweaked: FALSE [17:26:24.529] - call: NULL [17:26:24.529] plan(): nbrOfWorkers() = 1 [17:26:24.531] plan(): Setting new future strategy stack: [17:26:24.531] List of future strategies: [17:26:24.531] 1. sequential: [17:26:24.531] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.531] - tweaked: FALSE [17:26:24.531] - call: plan(strategy, substitute = FALSE) [17:26:24.531] plan(): nbrOfWorkers() = 1 [17:26:24.532] SequentialFuture started (and completed) [17:26:24.532] - Launch lazy future ... done [17:26:24.532] run() for 'SequentialFuture' ... done [1] 6 ** Sum function 'F' with plan('sequential') ... function (x, y) { message("Using '...' in a formula") fcn <- function(x, y) { z = ~list(...) sum(x, y) } f <- future(fcn(x, y)) y <- value(f) y } Using '...' in a formula [17:26:24.533] getGlobalsAndPackages() ... [17:26:24.533] Searching for globals... [17:26:24.536] - globals found: [9] 'fcn', 'x', 'y', '{', '=', '~', 'list', '...', 'sum' [17:26:24.536] Searching for globals ... DONE [17:26:24.537] Resolving globals: FALSE [17:26:24.537] Tweak future expression to call with '...' arguments ... [17:26:24.537] The total size of the 3 globals is 4.18 KiB (4280 bytes) [17:26:24.538] The total size of the 3 globals exported for future expression ('fcn(x, y)') is 4.18 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There are three globals: 'fcn' (4.07 KiB of class 'function'), 'x' (56 bytes of class 'numeric') and 'y' (56 bytes of class 'numeric') [17:26:24.538] - globals: [3] 'fcn', 'x', 'y' [17:26:24.538] [17:26:24.538] getGlobalsAndPackages() ... DONE [17:26:24.539] run() for 'Future' ... [17:26:24.539] - state: 'created' [17:26:24.539] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:24.539] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:24.540] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:24.540] - Field: 'label' [17:26:24.540] - Field: 'local' [17:26:24.540] - Field: 'owner' [17:26:24.540] - Field: 'envir' [17:26:24.541] - Field: 'packages' [17:26:24.541] - Field: 'gc' [17:26:24.541] - Field: 'conditions' [17:26:24.541] - Field: 'expr' [17:26:24.541] - Field: 'uuid' [17:26:24.542] - Field: 'seed' [17:26:24.542] - Field: 'version' [17:26:24.542] - Field: 'result' [17:26:24.542] - Field: 'asynchronous' [17:26:24.542] - Field: 'calls' [17:26:24.542] - Field: 'globals' [17:26:24.543] - Field: 'stdout' [17:26:24.543] - Field: 'earlySignal' [17:26:24.543] - Field: 'lazy' [17:26:24.543] - Field: 'state' [17:26:24.543] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:24.543] - Launch lazy future ... [17:26:24.544] Packages needed by the future expression (n = 0): [17:26:24.544] Packages needed by future strategies (n = 0): [17:26:24.544] { [17:26:24.544] { [17:26:24.544] { [17:26:24.544] ...future.startTime <- base::Sys.time() [17:26:24.544] { [17:26:24.544] { [17:26:24.544] { [17:26:24.544] base::local({ [17:26:24.544] has_future <- base::requireNamespace("future", [17:26:24.544] quietly = TRUE) [17:26:24.544] if (has_future) { [17:26:24.544] ns <- base::getNamespace("future") [17:26:24.544] version <- ns[[".package"]][["version"]] [17:26:24.544] if (is.null(version)) [17:26:24.544] version <- utils::packageVersion("future") [17:26:24.544] } [17:26:24.544] else { [17:26:24.544] version <- NULL [17:26:24.544] } [17:26:24.544] if (!has_future || version < "1.8.0") { [17:26:24.544] info <- base::c(r_version = base::gsub("R version ", [17:26:24.544] "", base::R.version$version.string), [17:26:24.544] platform = base::sprintf("%s (%s-bit)", [17:26:24.544] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:24.544] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:24.544] "release", "version")], collapse = " "), [17:26:24.544] hostname = base::Sys.info()[["nodename"]]) [17:26:24.544] info <- base::sprintf("%s: %s", base::names(info), [17:26:24.544] info) [17:26:24.544] info <- base::paste(info, collapse = "; ") [17:26:24.544] if (!has_future) { [17:26:24.544] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:24.544] info) [17:26:24.544] } [17:26:24.544] else { [17:26:24.544] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:24.544] info, version) [17:26:24.544] } [17:26:24.544] base::stop(msg) [17:26:24.544] } [17:26:24.544] }) [17:26:24.544] } [17:26:24.544] ...future.strategy.old <- future::plan("list") [17:26:24.544] options(future.plan = NULL) [17:26:24.544] Sys.unsetenv("R_FUTURE_PLAN") [17:26:24.544] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:24.544] } [17:26:24.544] ...future.workdir <- getwd() [17:26:24.544] } [17:26:24.544] ...future.oldOptions <- base::as.list(base::.Options) [17:26:24.544] ...future.oldEnvVars <- base::Sys.getenv() [17:26:24.544] } [17:26:24.544] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:24.544] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:24.544] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:24.544] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:24.544] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:24.544] future.stdout.windows.reencode = NULL, width = 80L) [17:26:24.544] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:24.544] base::names(...future.oldOptions)) [17:26:24.544] } [17:26:24.544] if (FALSE) { [17:26:24.544] } [17:26:24.544] else { [17:26:24.544] if (TRUE) { [17:26:24.544] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:24.544] open = "w") [17:26:24.544] } [17:26:24.544] else { [17:26:24.544] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:24.544] windows = "NUL", "/dev/null"), open = "w") [17:26:24.544] } [17:26:24.544] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:24.544] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:24.544] base::sink(type = "output", split = FALSE) [17:26:24.544] base::close(...future.stdout) [17:26:24.544] }, add = TRUE) [17:26:24.544] } [17:26:24.544] ...future.frame <- base::sys.nframe() [17:26:24.544] ...future.conditions <- base::list() [17:26:24.544] ...future.rng <- base::globalenv()$.Random.seed [17:26:24.544] if (FALSE) { [17:26:24.544] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:24.544] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:24.544] } [17:26:24.544] ...future.result <- base::tryCatch({ [17:26:24.544] base::withCallingHandlers({ [17:26:24.544] ...future.value <- base::withVisible(base::local(fcn(x, [17:26:24.544] y))) [17:26:24.544] future::FutureResult(value = ...future.value$value, [17:26:24.544] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:24.544] ...future.rng), globalenv = if (FALSE) [17:26:24.544] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:24.544] ...future.globalenv.names)) [17:26:24.544] else NULL, started = ...future.startTime, version = "1.8") [17:26:24.544] }, condition = base::local({ [17:26:24.544] c <- base::c [17:26:24.544] inherits <- base::inherits [17:26:24.544] invokeRestart <- base::invokeRestart [17:26:24.544] length <- base::length [17:26:24.544] list <- base::list [17:26:24.544] seq.int <- base::seq.int [17:26:24.544] signalCondition <- base::signalCondition [17:26:24.544] sys.calls <- base::sys.calls [17:26:24.544] `[[` <- base::`[[` [17:26:24.544] `+` <- base::`+` [17:26:24.544] `<<-` <- base::`<<-` [17:26:24.544] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:24.544] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:24.544] 3L)] [17:26:24.544] } [17:26:24.544] function(cond) { [17:26:24.544] is_error <- inherits(cond, "error") [17:26:24.544] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:24.544] NULL) [17:26:24.544] if (is_error) { [17:26:24.544] sessionInformation <- function() { [17:26:24.544] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:24.544] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:24.544] search = base::search(), system = base::Sys.info()) [17:26:24.544] } [17:26:24.544] ...future.conditions[[length(...future.conditions) + [17:26:24.544] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:24.544] cond$call), session = sessionInformation(), [17:26:24.544] timestamp = base::Sys.time(), signaled = 0L) [17:26:24.544] signalCondition(cond) [17:26:24.544] } [17:26:24.544] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:24.544] "immediateCondition"))) { [17:26:24.544] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:24.544] ...future.conditions[[length(...future.conditions) + [17:26:24.544] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:24.544] if (TRUE && !signal) { [17:26:24.544] muffleCondition <- function (cond, pattern = "^muffle") [17:26:24.544] { [17:26:24.544] inherits <- base::inherits [17:26:24.544] invokeRestart <- base::invokeRestart [17:26:24.544] is.null <- base::is.null [17:26:24.544] muffled <- FALSE [17:26:24.544] if (inherits(cond, "message")) { [17:26:24.544] muffled <- grepl(pattern, "muffleMessage") [17:26:24.544] if (muffled) [17:26:24.544] invokeRestart("muffleMessage") [17:26:24.544] } [17:26:24.544] else if (inherits(cond, "warning")) { [17:26:24.544] muffled <- grepl(pattern, "muffleWarning") [17:26:24.544] if (muffled) [17:26:24.544] invokeRestart("muffleWarning") [17:26:24.544] } [17:26:24.544] else if (inherits(cond, "condition")) { [17:26:24.544] if (!is.null(pattern)) { [17:26:24.544] computeRestarts <- base::computeRestarts [17:26:24.544] grepl <- base::grepl [17:26:24.544] restarts <- computeRestarts(cond) [17:26:24.544] for (restart in restarts) { [17:26:24.544] name <- restart$name [17:26:24.544] if (is.null(name)) [17:26:24.544] next [17:26:24.544] if (!grepl(pattern, name)) [17:26:24.544] next [17:26:24.544] invokeRestart(restart) [17:26:24.544] muffled <- TRUE [17:26:24.544] break [17:26:24.544] } [17:26:24.544] } [17:26:24.544] } [17:26:24.544] invisible(muffled) [17:26:24.544] } [17:26:24.544] muffleCondition(cond, pattern = "^muffle") [17:26:24.544] } [17:26:24.544] } [17:26:24.544] else { [17:26:24.544] if (TRUE) { [17:26:24.544] muffleCondition <- function (cond, pattern = "^muffle") [17:26:24.544] { [17:26:24.544] inherits <- base::inherits [17:26:24.544] invokeRestart <- base::invokeRestart [17:26:24.544] is.null <- base::is.null [17:26:24.544] muffled <- FALSE [17:26:24.544] if (inherits(cond, "message")) { [17:26:24.544] muffled <- grepl(pattern, "muffleMessage") [17:26:24.544] if (muffled) [17:26:24.544] invokeRestart("muffleMessage") [17:26:24.544] } [17:26:24.544] else if (inherits(cond, "warning")) { [17:26:24.544] muffled <- grepl(pattern, "muffleWarning") [17:26:24.544] if (muffled) [17:26:24.544] invokeRestart("muffleWarning") [17:26:24.544] } [17:26:24.544] else if (inherits(cond, "condition")) { [17:26:24.544] if (!is.null(pattern)) { [17:26:24.544] computeRestarts <- base::computeRestarts [17:26:24.544] grepl <- base::grepl [17:26:24.544] restarts <- computeRestarts(cond) [17:26:24.544] for (restart in restarts) { [17:26:24.544] name <- restart$name [17:26:24.544] if (is.null(name)) [17:26:24.544] next [17:26:24.544] if (!grepl(pattern, name)) [17:26:24.544] next [17:26:24.544] invokeRestart(restart) [17:26:24.544] muffled <- TRUE [17:26:24.544] break [17:26:24.544] } [17:26:24.544] } [17:26:24.544] } [17:26:24.544] invisible(muffled) [17:26:24.544] } [17:26:24.544] muffleCondition(cond, pattern = "^muffle") [17:26:24.544] } [17:26:24.544] } [17:26:24.544] } [17:26:24.544] })) [17:26:24.544] }, error = function(ex) { [17:26:24.544] base::structure(base::list(value = NULL, visible = NULL, [17:26:24.544] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:24.544] ...future.rng), started = ...future.startTime, [17:26:24.544] finished = Sys.time(), session_uuid = NA_character_, [17:26:24.544] version = "1.8"), class = "FutureResult") [17:26:24.544] }, finally = { [17:26:24.544] if (!identical(...future.workdir, getwd())) [17:26:24.544] setwd(...future.workdir) [17:26:24.544] { [17:26:24.544] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:24.544] ...future.oldOptions$nwarnings <- NULL [17:26:24.544] } [17:26:24.544] base::options(...future.oldOptions) [17:26:24.544] if (.Platform$OS.type == "windows") { [17:26:24.544] old_names <- names(...future.oldEnvVars) [17:26:24.544] envs <- base::Sys.getenv() [17:26:24.544] names <- names(envs) [17:26:24.544] common <- intersect(names, old_names) [17:26:24.544] added <- setdiff(names, old_names) [17:26:24.544] removed <- setdiff(old_names, names) [17:26:24.544] changed <- common[...future.oldEnvVars[common] != [17:26:24.544] envs[common]] [17:26:24.544] NAMES <- toupper(changed) [17:26:24.544] args <- list() [17:26:24.544] for (kk in seq_along(NAMES)) { [17:26:24.544] name <- changed[[kk]] [17:26:24.544] NAME <- NAMES[[kk]] [17:26:24.544] if (name != NAME && is.element(NAME, old_names)) [17:26:24.544] next [17:26:24.544] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:24.544] } [17:26:24.544] NAMES <- toupper(added) [17:26:24.544] for (kk in seq_along(NAMES)) { [17:26:24.544] name <- added[[kk]] [17:26:24.544] NAME <- NAMES[[kk]] [17:26:24.544] if (name != NAME && is.element(NAME, old_names)) [17:26:24.544] next [17:26:24.544] args[[name]] <- "" [17:26:24.544] } [17:26:24.544] NAMES <- toupper(removed) [17:26:24.544] for (kk in seq_along(NAMES)) { [17:26:24.544] name <- removed[[kk]] [17:26:24.544] NAME <- NAMES[[kk]] [17:26:24.544] if (name != NAME && is.element(NAME, old_names)) [17:26:24.544] next [17:26:24.544] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:24.544] } [17:26:24.544] if (length(args) > 0) [17:26:24.544] base::do.call(base::Sys.setenv, args = args) [17:26:24.544] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:24.544] } [17:26:24.544] else { [17:26:24.544] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:24.544] } [17:26:24.544] { [17:26:24.544] if (base::length(...future.futureOptionsAdded) > [17:26:24.544] 0L) { [17:26:24.544] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:24.544] base::names(opts) <- ...future.futureOptionsAdded [17:26:24.544] base::options(opts) [17:26:24.544] } [17:26:24.544] { [17:26:24.544] { [17:26:24.544] NULL [17:26:24.544] RNGkind("Mersenne-Twister") [17:26:24.544] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:24.544] inherits = FALSE) [17:26:24.544] } [17:26:24.544] options(future.plan = NULL) [17:26:24.544] if (is.na(NA_character_)) [17:26:24.544] Sys.unsetenv("R_FUTURE_PLAN") [17:26:24.544] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:24.544] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:24.544] .init = FALSE) [17:26:24.544] } [17:26:24.544] } [17:26:24.544] } [17:26:24.544] }) [17:26:24.544] if (TRUE) { [17:26:24.544] base::sink(type = "output", split = FALSE) [17:26:24.544] if (TRUE) { [17:26:24.544] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:24.544] } [17:26:24.544] else { [17:26:24.544] ...future.result["stdout"] <- base::list(NULL) [17:26:24.544] } [17:26:24.544] base::close(...future.stdout) [17:26:24.544] ...future.stdout <- NULL [17:26:24.544] } [17:26:24.544] ...future.result$conditions <- ...future.conditions [17:26:24.544] ...future.result$finished <- base::Sys.time() [17:26:24.544] ...future.result [17:26:24.544] } [17:26:24.548] assign_globals() ... [17:26:24.548] List of 3 [17:26:24.548] $ fcn:function (x, y) [17:26:24.548] $ x : int [1:2] 1 2 [17:26:24.548] $ y : num 3 [17:26:24.548] - attr(*, "where")=List of 3 [17:26:24.548] ..$ fcn: [17:26:24.548] ..$ x : [17:26:24.548] ..$ y : [17:26:24.548] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:24.548] - attr(*, "resolved")= logi FALSE [17:26:24.548] - attr(*, "total_size")= num 4280 [17:26:24.548] - attr(*, "already-done")= logi TRUE [17:26:24.552] - reassign environment for 'fcn' [17:26:24.553] - copied 'fcn' to environment [17:26:24.553] - copied 'x' to environment [17:26:24.553] - copied 'y' to environment [17:26:24.553] assign_globals() ... done [17:26:24.553] plan(): Setting new future strategy stack: [17:26:24.554] List of future strategies: [17:26:24.554] 1. sequential: [17:26:24.554] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.554] - tweaked: FALSE [17:26:24.554] - call: NULL [17:26:24.554] plan(): nbrOfWorkers() = 1 [17:26:24.556] plan(): Setting new future strategy stack: [17:26:24.556] List of future strategies: [17:26:24.556] 1. sequential: [17:26:24.556] - args: function (..., envir = parent.frame(), workers = "") [17:26:24.556] - tweaked: FALSE [17:26:24.556] - call: plan(strategy, substitute = FALSE) [17:26:24.557] plan(): nbrOfWorkers() = 1 [17:26:24.557] SequentialFuture started (and completed) [17:26:24.557] - Launch lazy future ... done [17:26:24.558] run() for 'SequentialFuture' ... done [1] 6 Testing with 1 cores ... DONE Testing with 2 cores ... *** Global argument '...' ... - plan('multisession') ... [17:26:24.564] plan(): Setting new future strategy stack: [17:26:24.564] List of future strategies: [17:26:24.564] 1. multisession: [17:26:24.564] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:26:24.564] - tweaked: FALSE [17:26:24.564] - call: plan(strategy, substitute = FALSE) [17:26:24.564] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:26:24.564] multisession: [17:26:24.564] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:26:24.564] - tweaked: FALSE [17:26:24.564] - call: plan(strategy, substitute = FALSE) [17:26:24.568] getGlobalsAndPackages() ... [17:26:24.569] Not searching for globals [17:26:24.569] - globals: [0] [17:26:24.569] getGlobalsAndPackages() ... DONE [17:26:24.570] [local output] makeClusterPSOCK() ... [17:26:24.601] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:26:24.608] [local output] Base port: 23136 [17:26:24.608] [local output] Getting setup options for 2 cluster nodes ... [17:26:24.608] [local output] - Node 1 of 2 ... [17:26:24.608] [local output] localMachine=TRUE => revtunnel=FALSE [17:26:24.610] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpsVo6AX/worker.rank=1.parallelly.parent=43420.a99c32c66e6.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpsVo6AX/worker.rank=1.parallelly.parent=43420.a99c32c66e6.pid\")"' [17:26:24.948] - Possible to infer worker's PID: TRUE [17:26:24.948] [local output] Rscript port: 23136 [17:26:24.949] [local output] - Node 2 of 2 ... [17:26:24.949] [local output] localMachine=TRUE => revtunnel=FALSE [17:26:24.950] [local output] Rscript port: 23136 [17:26:24.951] [local output] Getting setup options for 2 cluster nodes ... done [17:26:24.951] [local output] - Parallel setup requested for some PSOCK nodes [17:26:24.952] [local output] Setting up PSOCK nodes in parallel [17:26:24.952] List of 36 [17:26:24.952] $ worker : chr "localhost" [17:26:24.952] ..- attr(*, "localhost")= logi TRUE [17:26:24.952] $ master : chr "localhost" [17:26:24.952] $ port : int 23136 [17:26:24.952] $ connectTimeout : num 120 [17:26:24.952] $ timeout : num 120 [17:26:24.952] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:26:24.952] $ homogeneous : logi TRUE [17:26:24.952] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=dotdotdot.R:43420:CRANWIN3:CRAN\"| __truncated__ [17:26:24.952] $ rscript_envs : NULL [17:26:24.952] $ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:26:24.952] $ rscript_startup : NULL [17:26:24.952] $ rscript_sh : chr "cmd" [17:26:24.952] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:26:24.952] $ methods : logi TRUE [17:26:24.952] $ socketOptions : chr "no-delay" [17:26:24.952] $ useXDR : logi FALSE [17:26:24.952] $ outfile : chr "/dev/null" [17:26:24.952] $ renice : int NA [17:26:24.952] $ rshcmd : NULL [17:26:24.952] $ user : chr(0) [17:26:24.952] $ revtunnel : logi FALSE [17:26:24.952] $ rshlogfile : NULL [17:26:24.952] $ rshopts : chr(0) [17:26:24.952] $ rank : int 1 [17:26:24.952] $ manual : logi FALSE [17:26:24.952] $ dryrun : logi FALSE [17:26:24.952] $ quiet : logi FALSE [17:26:24.952] $ setup_strategy : chr "parallel" [17:26:24.952] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:26:24.952] $ pidfile : chr "D:/temp/RtmpsVo6AX/worker.rank=1.parallelly.parent=43420.a99c32c66e6.pid" [17:26:24.952] $ rshcmd_label : NULL [17:26:24.952] $ rsh_call : NULL [17:26:24.952] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:26:24.952] $ localMachine : logi TRUE [17:26:24.952] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:26:24.952] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:26:24.952] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:26:24.952] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:26:24.952] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:26:24.952] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:26:24.952] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:26:24.952] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:26:24.952] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:26:24.952] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:26:24.952] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:26:24.952] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:26:24.952] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:26:24.952] $ arguments :List of 28 [17:26:24.952] ..$ worker : chr "localhost" [17:26:24.952] ..$ master : NULL [17:26:24.952] ..$ port : int 23136 [17:26:24.952] ..$ connectTimeout : num 120 [17:26:24.952] ..$ timeout : num 120 [17:26:24.952] ..$ rscript : NULL [17:26:24.952] ..$ homogeneous : NULL [17:26:24.952] ..$ rscript_args : NULL [17:26:24.952] ..$ rscript_envs : NULL [17:26:24.952] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:26:24.952] ..$ rscript_startup : NULL [17:26:24.952] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:26:24.952] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:26:24.952] ..$ methods : logi TRUE [17:26:24.952] ..$ socketOptions : chr "no-delay" [17:26:24.952] ..$ useXDR : logi FALSE [17:26:24.952] ..$ outfile : chr "/dev/null" [17:26:24.952] ..$ renice : int NA [17:26:24.952] ..$ rshcmd : NULL [17:26:24.952] ..$ user : NULL [17:26:24.952] ..$ revtunnel : logi NA [17:26:24.952] ..$ rshlogfile : NULL [17:26:24.952] ..$ rshopts : NULL [17:26:24.952] ..$ rank : int 1 [17:26:24.952] ..$ manual : logi FALSE [17:26:24.952] ..$ dryrun : logi FALSE [17:26:24.952] ..$ quiet : logi FALSE [17:26:24.952] ..$ setup_strategy : chr "parallel" [17:26:24.952] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:26:24.973] [local output] System call to launch all workers: [17:26:24.973] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=dotdotdot.R:43420:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpsVo6AX/worker.rank=1.parallelly.parent=43420.a99c32c66e6.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=23136 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:26:24.974] [local output] Starting PSOCK main server [17:26:24.979] [local output] Workers launched [17:26:24.979] [local output] Waiting for workers to connect back [17:26:24.979] - [local output] 0 workers out of 2 ready [17:26:25.143] - [local output] 0 workers out of 2 ready [17:26:25.144] - [local output] 1 workers out of 2 ready [17:26:25.145] - [local output] 1 workers out of 2 ready [17:26:25.145] - [local output] 2 workers out of 2 ready [17:26:25.145] [local output] Launching of workers completed [17:26:25.146] [local output] Collecting session information from workers [17:26:25.147] [local output] - Worker #1 of 2 [17:26:25.147] [local output] - Worker #2 of 2 [17:26:25.148] [local output] makeClusterPSOCK() ... done [17:26:25.160] Packages needed by the future expression (n = 0): [17:26:25.161] Packages needed by future strategies (n = 0): [17:26:25.161] { [17:26:25.161] { [17:26:25.161] { [17:26:25.161] ...future.startTime <- base::Sys.time() [17:26:25.161] { [17:26:25.161] { [17:26:25.161] { [17:26:25.161] { [17:26:25.161] base::local({ [17:26:25.161] has_future <- base::requireNamespace("future", [17:26:25.161] quietly = TRUE) [17:26:25.161] if (has_future) { [17:26:25.161] ns <- base::getNamespace("future") [17:26:25.161] version <- ns[[".package"]][["version"]] [17:26:25.161] if (is.null(version)) [17:26:25.161] version <- utils::packageVersion("future") [17:26:25.161] } [17:26:25.161] else { [17:26:25.161] version <- NULL [17:26:25.161] } [17:26:25.161] if (!has_future || version < "1.8.0") { [17:26:25.161] info <- base::c(r_version = base::gsub("R version ", [17:26:25.161] "", base::R.version$version.string), [17:26:25.161] platform = base::sprintf("%s (%s-bit)", [17:26:25.161] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:25.161] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:25.161] "release", "version")], collapse = " "), [17:26:25.161] hostname = base::Sys.info()[["nodename"]]) [17:26:25.161] info <- base::sprintf("%s: %s", base::names(info), [17:26:25.161] info) [17:26:25.161] info <- base::paste(info, collapse = "; ") [17:26:25.161] if (!has_future) { [17:26:25.161] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:25.161] info) [17:26:25.161] } [17:26:25.161] else { [17:26:25.161] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:25.161] info, version) [17:26:25.161] } [17:26:25.161] base::stop(msg) [17:26:25.161] } [17:26:25.161] }) [17:26:25.161] } [17:26:25.161] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:25.161] base::options(mc.cores = 1L) [17:26:25.161] } [17:26:25.161] ...future.strategy.old <- future::plan("list") [17:26:25.161] options(future.plan = NULL) [17:26:25.161] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.161] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:25.161] } [17:26:25.161] ...future.workdir <- getwd() [17:26:25.161] } [17:26:25.161] ...future.oldOptions <- base::as.list(base::.Options) [17:26:25.161] ...future.oldEnvVars <- base::Sys.getenv() [17:26:25.161] } [17:26:25.161] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:25.161] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:25.161] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:25.161] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:25.161] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:25.161] future.stdout.windows.reencode = NULL, width = 80L) [17:26:25.161] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:25.161] base::names(...future.oldOptions)) [17:26:25.161] } [17:26:25.161] if (FALSE) { [17:26:25.161] } [17:26:25.161] else { [17:26:25.161] if (TRUE) { [17:26:25.161] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:25.161] open = "w") [17:26:25.161] } [17:26:25.161] else { [17:26:25.161] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:25.161] windows = "NUL", "/dev/null"), open = "w") [17:26:25.161] } [17:26:25.161] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:25.161] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:25.161] base::sink(type = "output", split = FALSE) [17:26:25.161] base::close(...future.stdout) [17:26:25.161] }, add = TRUE) [17:26:25.161] } [17:26:25.161] ...future.frame <- base::sys.nframe() [17:26:25.161] ...future.conditions <- base::list() [17:26:25.161] ...future.rng <- base::globalenv()$.Random.seed [17:26:25.161] if (FALSE) { [17:26:25.161] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:25.161] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:25.161] } [17:26:25.161] ...future.result <- base::tryCatch({ [17:26:25.161] base::withCallingHandlers({ [17:26:25.161] ...future.value <- base::withVisible(base::local({ [17:26:25.161] ...future.makeSendCondition <- base::local({ [17:26:25.161] sendCondition <- NULL [17:26:25.161] function(frame = 1L) { [17:26:25.161] if (is.function(sendCondition)) [17:26:25.161] return(sendCondition) [17:26:25.161] ns <- getNamespace("parallel") [17:26:25.161] if (exists("sendData", mode = "function", [17:26:25.161] envir = ns)) { [17:26:25.161] parallel_sendData <- get("sendData", mode = "function", [17:26:25.161] envir = ns) [17:26:25.161] envir <- sys.frame(frame) [17:26:25.161] master <- NULL [17:26:25.161] while (!identical(envir, .GlobalEnv) && [17:26:25.161] !identical(envir, emptyenv())) { [17:26:25.161] if (exists("master", mode = "list", envir = envir, [17:26:25.161] inherits = FALSE)) { [17:26:25.161] master <- get("master", mode = "list", [17:26:25.161] envir = envir, inherits = FALSE) [17:26:25.161] if (inherits(master, c("SOCKnode", [17:26:25.161] "SOCK0node"))) { [17:26:25.161] sendCondition <<- function(cond) { [17:26:25.161] data <- list(type = "VALUE", value = cond, [17:26:25.161] success = TRUE) [17:26:25.161] parallel_sendData(master, data) [17:26:25.161] } [17:26:25.161] return(sendCondition) [17:26:25.161] } [17:26:25.161] } [17:26:25.161] frame <- frame + 1L [17:26:25.161] envir <- sys.frame(frame) [17:26:25.161] } [17:26:25.161] } [17:26:25.161] sendCondition <<- function(cond) NULL [17:26:25.161] } [17:26:25.161] }) [17:26:25.161] withCallingHandlers({ [17:26:25.161] NA [17:26:25.161] }, immediateCondition = function(cond) { [17:26:25.161] sendCondition <- ...future.makeSendCondition() [17:26:25.161] sendCondition(cond) [17:26:25.161] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.161] { [17:26:25.161] inherits <- base::inherits [17:26:25.161] invokeRestart <- base::invokeRestart [17:26:25.161] is.null <- base::is.null [17:26:25.161] muffled <- FALSE [17:26:25.161] if (inherits(cond, "message")) { [17:26:25.161] muffled <- grepl(pattern, "muffleMessage") [17:26:25.161] if (muffled) [17:26:25.161] invokeRestart("muffleMessage") [17:26:25.161] } [17:26:25.161] else if (inherits(cond, "warning")) { [17:26:25.161] muffled <- grepl(pattern, "muffleWarning") [17:26:25.161] if (muffled) [17:26:25.161] invokeRestart("muffleWarning") [17:26:25.161] } [17:26:25.161] else if (inherits(cond, "condition")) { [17:26:25.161] if (!is.null(pattern)) { [17:26:25.161] computeRestarts <- base::computeRestarts [17:26:25.161] grepl <- base::grepl [17:26:25.161] restarts <- computeRestarts(cond) [17:26:25.161] for (restart in restarts) { [17:26:25.161] name <- restart$name [17:26:25.161] if (is.null(name)) [17:26:25.161] next [17:26:25.161] if (!grepl(pattern, name)) [17:26:25.161] next [17:26:25.161] invokeRestart(restart) [17:26:25.161] muffled <- TRUE [17:26:25.161] break [17:26:25.161] } [17:26:25.161] } [17:26:25.161] } [17:26:25.161] invisible(muffled) [17:26:25.161] } [17:26:25.161] muffleCondition(cond) [17:26:25.161] }) [17:26:25.161] })) [17:26:25.161] future::FutureResult(value = ...future.value$value, [17:26:25.161] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.161] ...future.rng), globalenv = if (FALSE) [17:26:25.161] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:25.161] ...future.globalenv.names)) [17:26:25.161] else NULL, started = ...future.startTime, version = "1.8") [17:26:25.161] }, condition = base::local({ [17:26:25.161] c <- base::c [17:26:25.161] inherits <- base::inherits [17:26:25.161] invokeRestart <- base::invokeRestart [17:26:25.161] length <- base::length [17:26:25.161] list <- base::list [17:26:25.161] seq.int <- base::seq.int [17:26:25.161] signalCondition <- base::signalCondition [17:26:25.161] sys.calls <- base::sys.calls [17:26:25.161] `[[` <- base::`[[` [17:26:25.161] `+` <- base::`+` [17:26:25.161] `<<-` <- base::`<<-` [17:26:25.161] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:25.161] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:25.161] 3L)] [17:26:25.161] } [17:26:25.161] function(cond) { [17:26:25.161] is_error <- inherits(cond, "error") [17:26:25.161] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:25.161] NULL) [17:26:25.161] if (is_error) { [17:26:25.161] sessionInformation <- function() { [17:26:25.161] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:25.161] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:25.161] search = base::search(), system = base::Sys.info()) [17:26:25.161] } [17:26:25.161] ...future.conditions[[length(...future.conditions) + [17:26:25.161] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:25.161] cond$call), session = sessionInformation(), [17:26:25.161] timestamp = base::Sys.time(), signaled = 0L) [17:26:25.161] signalCondition(cond) [17:26:25.161] } [17:26:25.161] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:25.161] "immediateCondition"))) { [17:26:25.161] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:25.161] ...future.conditions[[length(...future.conditions) + [17:26:25.161] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:25.161] if (TRUE && !signal) { [17:26:25.161] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.161] { [17:26:25.161] inherits <- base::inherits [17:26:25.161] invokeRestart <- base::invokeRestart [17:26:25.161] is.null <- base::is.null [17:26:25.161] muffled <- FALSE [17:26:25.161] if (inherits(cond, "message")) { [17:26:25.161] muffled <- grepl(pattern, "muffleMessage") [17:26:25.161] if (muffled) [17:26:25.161] invokeRestart("muffleMessage") [17:26:25.161] } [17:26:25.161] else if (inherits(cond, "warning")) { [17:26:25.161] muffled <- grepl(pattern, "muffleWarning") [17:26:25.161] if (muffled) [17:26:25.161] invokeRestart("muffleWarning") [17:26:25.161] } [17:26:25.161] else if (inherits(cond, "condition")) { [17:26:25.161] if (!is.null(pattern)) { [17:26:25.161] computeRestarts <- base::computeRestarts [17:26:25.161] grepl <- base::grepl [17:26:25.161] restarts <- computeRestarts(cond) [17:26:25.161] for (restart in restarts) { [17:26:25.161] name <- restart$name [17:26:25.161] if (is.null(name)) [17:26:25.161] next [17:26:25.161] if (!grepl(pattern, name)) [17:26:25.161] next [17:26:25.161] invokeRestart(restart) [17:26:25.161] muffled <- TRUE [17:26:25.161] break [17:26:25.161] } [17:26:25.161] } [17:26:25.161] } [17:26:25.161] invisible(muffled) [17:26:25.161] } [17:26:25.161] muffleCondition(cond, pattern = "^muffle") [17:26:25.161] } [17:26:25.161] } [17:26:25.161] else { [17:26:25.161] if (TRUE) { [17:26:25.161] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.161] { [17:26:25.161] inherits <- base::inherits [17:26:25.161] invokeRestart <- base::invokeRestart [17:26:25.161] is.null <- base::is.null [17:26:25.161] muffled <- FALSE [17:26:25.161] if (inherits(cond, "message")) { [17:26:25.161] muffled <- grepl(pattern, "muffleMessage") [17:26:25.161] if (muffled) [17:26:25.161] invokeRestart("muffleMessage") [17:26:25.161] } [17:26:25.161] else if (inherits(cond, "warning")) { [17:26:25.161] muffled <- grepl(pattern, "muffleWarning") [17:26:25.161] if (muffled) [17:26:25.161] invokeRestart("muffleWarning") [17:26:25.161] } [17:26:25.161] else if (inherits(cond, "condition")) { [17:26:25.161] if (!is.null(pattern)) { [17:26:25.161] computeRestarts <- base::computeRestarts [17:26:25.161] grepl <- base::grepl [17:26:25.161] restarts <- computeRestarts(cond) [17:26:25.161] for (restart in restarts) { [17:26:25.161] name <- restart$name [17:26:25.161] if (is.null(name)) [17:26:25.161] next [17:26:25.161] if (!grepl(pattern, name)) [17:26:25.161] next [17:26:25.161] invokeRestart(restart) [17:26:25.161] muffled <- TRUE [17:26:25.161] break [17:26:25.161] } [17:26:25.161] } [17:26:25.161] } [17:26:25.161] invisible(muffled) [17:26:25.161] } [17:26:25.161] muffleCondition(cond, pattern = "^muffle") [17:26:25.161] } [17:26:25.161] } [17:26:25.161] } [17:26:25.161] })) [17:26:25.161] }, error = function(ex) { [17:26:25.161] base::structure(base::list(value = NULL, visible = NULL, [17:26:25.161] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.161] ...future.rng), started = ...future.startTime, [17:26:25.161] finished = Sys.time(), session_uuid = NA_character_, [17:26:25.161] version = "1.8"), class = "FutureResult") [17:26:25.161] }, finally = { [17:26:25.161] if (!identical(...future.workdir, getwd())) [17:26:25.161] setwd(...future.workdir) [17:26:25.161] { [17:26:25.161] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:25.161] ...future.oldOptions$nwarnings <- NULL [17:26:25.161] } [17:26:25.161] base::options(...future.oldOptions) [17:26:25.161] if (.Platform$OS.type == "windows") { [17:26:25.161] old_names <- names(...future.oldEnvVars) [17:26:25.161] envs <- base::Sys.getenv() [17:26:25.161] names <- names(envs) [17:26:25.161] common <- intersect(names, old_names) [17:26:25.161] added <- setdiff(names, old_names) [17:26:25.161] removed <- setdiff(old_names, names) [17:26:25.161] changed <- common[...future.oldEnvVars[common] != [17:26:25.161] envs[common]] [17:26:25.161] NAMES <- toupper(changed) [17:26:25.161] args <- list() [17:26:25.161] for (kk in seq_along(NAMES)) { [17:26:25.161] name <- changed[[kk]] [17:26:25.161] NAME <- NAMES[[kk]] [17:26:25.161] if (name != NAME && is.element(NAME, old_names)) [17:26:25.161] next [17:26:25.161] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.161] } [17:26:25.161] NAMES <- toupper(added) [17:26:25.161] for (kk in seq_along(NAMES)) { [17:26:25.161] name <- added[[kk]] [17:26:25.161] NAME <- NAMES[[kk]] [17:26:25.161] if (name != NAME && is.element(NAME, old_names)) [17:26:25.161] next [17:26:25.161] args[[name]] <- "" [17:26:25.161] } [17:26:25.161] NAMES <- toupper(removed) [17:26:25.161] for (kk in seq_along(NAMES)) { [17:26:25.161] name <- removed[[kk]] [17:26:25.161] NAME <- NAMES[[kk]] [17:26:25.161] if (name != NAME && is.element(NAME, old_names)) [17:26:25.161] next [17:26:25.161] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.161] } [17:26:25.161] if (length(args) > 0) [17:26:25.161] base::do.call(base::Sys.setenv, args = args) [17:26:25.161] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:25.161] } [17:26:25.161] else { [17:26:25.161] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:25.161] } [17:26:25.161] { [17:26:25.161] if (base::length(...future.futureOptionsAdded) > [17:26:25.161] 0L) { [17:26:25.161] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:25.161] base::names(opts) <- ...future.futureOptionsAdded [17:26:25.161] base::options(opts) [17:26:25.161] } [17:26:25.161] { [17:26:25.161] { [17:26:25.161] base::options(mc.cores = ...future.mc.cores.old) [17:26:25.161] NULL [17:26:25.161] } [17:26:25.161] options(future.plan = NULL) [17:26:25.161] if (is.na(NA_character_)) [17:26:25.161] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.161] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:25.161] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:25.161] .init = FALSE) [17:26:25.161] } [17:26:25.161] } [17:26:25.161] } [17:26:25.161] }) [17:26:25.161] if (TRUE) { [17:26:25.161] base::sink(type = "output", split = FALSE) [17:26:25.161] if (TRUE) { [17:26:25.161] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:25.161] } [17:26:25.161] else { [17:26:25.161] ...future.result["stdout"] <- base::list(NULL) [17:26:25.161] } [17:26:25.161] base::close(...future.stdout) [17:26:25.161] ...future.stdout <- NULL [17:26:25.161] } [17:26:25.161] ...future.result$conditions <- ...future.conditions [17:26:25.161] ...future.result$finished <- base::Sys.time() [17:26:25.161] ...future.result [17:26:25.161] } [17:26:25.245] MultisessionFuture started [17:26:25.245] result() for ClusterFuture ... [17:26:25.246] receiveMessageFromWorker() for ClusterFuture ... [17:26:25.246] - Validating connection of MultisessionFuture [17:26:25.296] - received message: FutureResult [17:26:25.297] - Received FutureResult [17:26:25.300] - Erased future from FutureRegistry [17:26:25.300] result() for ClusterFuture ... [17:26:25.301] - result already collected: FutureResult [17:26:25.301] result() for ClusterFuture ... done [17:26:25.301] receiveMessageFromWorker() for ClusterFuture ... done [17:26:25.301] result() for ClusterFuture ... done [17:26:25.301] result() for ClusterFuture ... [17:26:25.302] - result already collected: FutureResult [17:26:25.302] result() for ClusterFuture ... done [17:26:25.302] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:26:25.305] plan(): nbrOfWorkers() = 2 ** Sum function 'A' with plan('multisession') ... function (x, ...) { message("Arguments '...' exists: ", exists("...", inherits = TRUE)) y %<-% { sum(x, ...) } y } Arguments '...' exists: TRUE [17:26:25.305] getGlobalsAndPackages() ... [17:26:25.306] Searching for globals... [17:26:25.308] - globals found: [4] '{', 'sum', 'x', '...' [17:26:25.308] Searching for globals ... DONE [17:26:25.308] Resolving globals: FALSE [17:26:25.308] Tweak future expression to call with '...' arguments ... [17:26:25.308] { [17:26:25.308] do.call(function(...) { [17:26:25.308] sum(x, ...) [17:26:25.308] }, args = future.call.arguments) [17:26:25.308] } [17:26:25.309] Tweak future expression to call with '...' arguments ... DONE [17:26:25.310] The total size of the 2 globals is 112 bytes (112 bytes) [17:26:25.310] The total size of the 2 globals exported for future expression ('{; sum(x, ...); }') is 112 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There are two globals: 'x' (56 bytes of class 'numeric') and 'future.call.arguments' (56 bytes of class 'list') [17:26:25.310] - globals: [2] 'x', 'future.call.arguments' [17:26:25.311] [17:26:25.311] getGlobalsAndPackages() ... DONE [17:26:25.311] run() for 'Future' ... [17:26:25.311] - state: 'created' [17:26:25.312] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:26:25.326] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:26:25.326] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:26:25.326] - Field: 'node' [17:26:25.327] - Field: 'label' [17:26:25.327] - Field: 'local' [17:26:25.327] - Field: 'owner' [17:26:25.327] - Field: 'envir' [17:26:25.327] - Field: 'workers' [17:26:25.328] - Field: 'packages' [17:26:25.328] - Field: 'gc' [17:26:25.328] - Field: 'conditions' [17:26:25.328] - Field: 'persistent' [17:26:25.328] - Field: 'expr' [17:26:25.328] - Field: 'uuid' [17:26:25.329] - Field: 'seed' [17:26:25.329] - Field: 'version' [17:26:25.329] - Field: 'result' [17:26:25.329] - Field: 'asynchronous' [17:26:25.329] - Field: 'calls' [17:26:25.330] - Field: 'globals' [17:26:25.330] - Field: 'stdout' [17:26:25.330] - Field: 'earlySignal' [17:26:25.330] - Field: 'lazy' [17:26:25.330] - Field: 'state' [17:26:25.331] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:26:25.331] - Launch lazy future ... [17:26:25.331] Packages needed by the future expression (n = 0): [17:26:25.332] Packages needed by future strategies (n = 0): [17:26:25.332] { [17:26:25.332] { [17:26:25.332] { [17:26:25.332] ...future.startTime <- base::Sys.time() [17:26:25.332] { [17:26:25.332] { [17:26:25.332] { [17:26:25.332] { [17:26:25.332] base::local({ [17:26:25.332] has_future <- base::requireNamespace("future", [17:26:25.332] quietly = TRUE) [17:26:25.332] if (has_future) { [17:26:25.332] ns <- base::getNamespace("future") [17:26:25.332] version <- ns[[".package"]][["version"]] [17:26:25.332] if (is.null(version)) [17:26:25.332] version <- utils::packageVersion("future") [17:26:25.332] } [17:26:25.332] else { [17:26:25.332] version <- NULL [17:26:25.332] } [17:26:25.332] if (!has_future || version < "1.8.0") { [17:26:25.332] info <- base::c(r_version = base::gsub("R version ", [17:26:25.332] "", base::R.version$version.string), [17:26:25.332] platform = base::sprintf("%s (%s-bit)", [17:26:25.332] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:25.332] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:25.332] "release", "version")], collapse = " "), [17:26:25.332] hostname = base::Sys.info()[["nodename"]]) [17:26:25.332] info <- base::sprintf("%s: %s", base::names(info), [17:26:25.332] info) [17:26:25.332] info <- base::paste(info, collapse = "; ") [17:26:25.332] if (!has_future) { [17:26:25.332] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:25.332] info) [17:26:25.332] } [17:26:25.332] else { [17:26:25.332] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:25.332] info, version) [17:26:25.332] } [17:26:25.332] base::stop(msg) [17:26:25.332] } [17:26:25.332] }) [17:26:25.332] } [17:26:25.332] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:25.332] base::options(mc.cores = 1L) [17:26:25.332] } [17:26:25.332] ...future.strategy.old <- future::plan("list") [17:26:25.332] options(future.plan = NULL) [17:26:25.332] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.332] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:25.332] } [17:26:25.332] ...future.workdir <- getwd() [17:26:25.332] } [17:26:25.332] ...future.oldOptions <- base::as.list(base::.Options) [17:26:25.332] ...future.oldEnvVars <- base::Sys.getenv() [17:26:25.332] } [17:26:25.332] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:25.332] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:25.332] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:25.332] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:25.332] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:25.332] future.stdout.windows.reencode = NULL, width = 80L) [17:26:25.332] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:25.332] base::names(...future.oldOptions)) [17:26:25.332] } [17:26:25.332] if (FALSE) { [17:26:25.332] } [17:26:25.332] else { [17:26:25.332] if (TRUE) { [17:26:25.332] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:25.332] open = "w") [17:26:25.332] } [17:26:25.332] else { [17:26:25.332] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:25.332] windows = "NUL", "/dev/null"), open = "w") [17:26:25.332] } [17:26:25.332] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:25.332] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:25.332] base::sink(type = "output", split = FALSE) [17:26:25.332] base::close(...future.stdout) [17:26:25.332] }, add = TRUE) [17:26:25.332] } [17:26:25.332] ...future.frame <- base::sys.nframe() [17:26:25.332] ...future.conditions <- base::list() [17:26:25.332] ...future.rng <- base::globalenv()$.Random.seed [17:26:25.332] if (FALSE) { [17:26:25.332] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:25.332] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:25.332] } [17:26:25.332] ...future.result <- base::tryCatch({ [17:26:25.332] base::withCallingHandlers({ [17:26:25.332] ...future.value <- base::withVisible(base::local({ [17:26:25.332] ...future.makeSendCondition <- base::local({ [17:26:25.332] sendCondition <- NULL [17:26:25.332] function(frame = 1L) { [17:26:25.332] if (is.function(sendCondition)) [17:26:25.332] return(sendCondition) [17:26:25.332] ns <- getNamespace("parallel") [17:26:25.332] if (exists("sendData", mode = "function", [17:26:25.332] envir = ns)) { [17:26:25.332] parallel_sendData <- get("sendData", mode = "function", [17:26:25.332] envir = ns) [17:26:25.332] envir <- sys.frame(frame) [17:26:25.332] master <- NULL [17:26:25.332] while (!identical(envir, .GlobalEnv) && [17:26:25.332] !identical(envir, emptyenv())) { [17:26:25.332] if (exists("master", mode = "list", envir = envir, [17:26:25.332] inherits = FALSE)) { [17:26:25.332] master <- get("master", mode = "list", [17:26:25.332] envir = envir, inherits = FALSE) [17:26:25.332] if (inherits(master, c("SOCKnode", [17:26:25.332] "SOCK0node"))) { [17:26:25.332] sendCondition <<- function(cond) { [17:26:25.332] data <- list(type = "VALUE", value = cond, [17:26:25.332] success = TRUE) [17:26:25.332] parallel_sendData(master, data) [17:26:25.332] } [17:26:25.332] return(sendCondition) [17:26:25.332] } [17:26:25.332] } [17:26:25.332] frame <- frame + 1L [17:26:25.332] envir <- sys.frame(frame) [17:26:25.332] } [17:26:25.332] } [17:26:25.332] sendCondition <<- function(cond) NULL [17:26:25.332] } [17:26:25.332] }) [17:26:25.332] withCallingHandlers({ [17:26:25.332] { [17:26:25.332] do.call(function(...) { [17:26:25.332] sum(x, ...) [17:26:25.332] }, args = future.call.arguments) [17:26:25.332] } [17:26:25.332] }, immediateCondition = function(cond) { [17:26:25.332] sendCondition <- ...future.makeSendCondition() [17:26:25.332] sendCondition(cond) [17:26:25.332] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.332] { [17:26:25.332] inherits <- base::inherits [17:26:25.332] invokeRestart <- base::invokeRestart [17:26:25.332] is.null <- base::is.null [17:26:25.332] muffled <- FALSE [17:26:25.332] if (inherits(cond, "message")) { [17:26:25.332] muffled <- grepl(pattern, "muffleMessage") [17:26:25.332] if (muffled) [17:26:25.332] invokeRestart("muffleMessage") [17:26:25.332] } [17:26:25.332] else if (inherits(cond, "warning")) { [17:26:25.332] muffled <- grepl(pattern, "muffleWarning") [17:26:25.332] if (muffled) [17:26:25.332] invokeRestart("muffleWarning") [17:26:25.332] } [17:26:25.332] else if (inherits(cond, "condition")) { [17:26:25.332] if (!is.null(pattern)) { [17:26:25.332] computeRestarts <- base::computeRestarts [17:26:25.332] grepl <- base::grepl [17:26:25.332] restarts <- computeRestarts(cond) [17:26:25.332] for (restart in restarts) { [17:26:25.332] name <- restart$name [17:26:25.332] if (is.null(name)) [17:26:25.332] next [17:26:25.332] if (!grepl(pattern, name)) [17:26:25.332] next [17:26:25.332] invokeRestart(restart) [17:26:25.332] muffled <- TRUE [17:26:25.332] break [17:26:25.332] } [17:26:25.332] } [17:26:25.332] } [17:26:25.332] invisible(muffled) [17:26:25.332] } [17:26:25.332] muffleCondition(cond) [17:26:25.332] }) [17:26:25.332] })) [17:26:25.332] future::FutureResult(value = ...future.value$value, [17:26:25.332] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.332] ...future.rng), globalenv = if (FALSE) [17:26:25.332] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:25.332] ...future.globalenv.names)) [17:26:25.332] else NULL, started = ...future.startTime, version = "1.8") [17:26:25.332] }, condition = base::local({ [17:26:25.332] c <- base::c [17:26:25.332] inherits <- base::inherits [17:26:25.332] invokeRestart <- base::invokeRestart [17:26:25.332] length <- base::length [17:26:25.332] list <- base::list [17:26:25.332] seq.int <- base::seq.int [17:26:25.332] signalCondition <- base::signalCondition [17:26:25.332] sys.calls <- base::sys.calls [17:26:25.332] `[[` <- base::`[[` [17:26:25.332] `+` <- base::`+` [17:26:25.332] `<<-` <- base::`<<-` [17:26:25.332] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:25.332] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:25.332] 3L)] [17:26:25.332] } [17:26:25.332] function(cond) { [17:26:25.332] is_error <- inherits(cond, "error") [17:26:25.332] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:25.332] NULL) [17:26:25.332] if (is_error) { [17:26:25.332] sessionInformation <- function() { [17:26:25.332] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:25.332] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:25.332] search = base::search(), system = base::Sys.info()) [17:26:25.332] } [17:26:25.332] ...future.conditions[[length(...future.conditions) + [17:26:25.332] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:25.332] cond$call), session = sessionInformation(), [17:26:25.332] timestamp = base::Sys.time(), signaled = 0L) [17:26:25.332] signalCondition(cond) [17:26:25.332] } [17:26:25.332] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:25.332] "immediateCondition"))) { [17:26:25.332] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:25.332] ...future.conditions[[length(...future.conditions) + [17:26:25.332] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:25.332] if (TRUE && !signal) { [17:26:25.332] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.332] { [17:26:25.332] inherits <- base::inherits [17:26:25.332] invokeRestart <- base::invokeRestart [17:26:25.332] is.null <- base::is.null [17:26:25.332] muffled <- FALSE [17:26:25.332] if (inherits(cond, "message")) { [17:26:25.332] muffled <- grepl(pattern, "muffleMessage") [17:26:25.332] if (muffled) [17:26:25.332] invokeRestart("muffleMessage") [17:26:25.332] } [17:26:25.332] else if (inherits(cond, "warning")) { [17:26:25.332] muffled <- grepl(pattern, "muffleWarning") [17:26:25.332] if (muffled) [17:26:25.332] invokeRestart("muffleWarning") [17:26:25.332] } [17:26:25.332] else if (inherits(cond, "condition")) { [17:26:25.332] if (!is.null(pattern)) { [17:26:25.332] computeRestarts <- base::computeRestarts [17:26:25.332] grepl <- base::grepl [17:26:25.332] restarts <- computeRestarts(cond) [17:26:25.332] for (restart in restarts) { [17:26:25.332] name <- restart$name [17:26:25.332] if (is.null(name)) [17:26:25.332] next [17:26:25.332] if (!grepl(pattern, name)) [17:26:25.332] next [17:26:25.332] invokeRestart(restart) [17:26:25.332] muffled <- TRUE [17:26:25.332] break [17:26:25.332] } [17:26:25.332] } [17:26:25.332] } [17:26:25.332] invisible(muffled) [17:26:25.332] } [17:26:25.332] muffleCondition(cond, pattern = "^muffle") [17:26:25.332] } [17:26:25.332] } [17:26:25.332] else { [17:26:25.332] if (TRUE) { [17:26:25.332] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.332] { [17:26:25.332] inherits <- base::inherits [17:26:25.332] invokeRestart <- base::invokeRestart [17:26:25.332] is.null <- base::is.null [17:26:25.332] muffled <- FALSE [17:26:25.332] if (inherits(cond, "message")) { [17:26:25.332] muffled <- grepl(pattern, "muffleMessage") [17:26:25.332] if (muffled) [17:26:25.332] invokeRestart("muffleMessage") [17:26:25.332] } [17:26:25.332] else if (inherits(cond, "warning")) { [17:26:25.332] muffled <- grepl(pattern, "muffleWarning") [17:26:25.332] if (muffled) [17:26:25.332] invokeRestart("muffleWarning") [17:26:25.332] } [17:26:25.332] else if (inherits(cond, "condition")) { [17:26:25.332] if (!is.null(pattern)) { [17:26:25.332] computeRestarts <- base::computeRestarts [17:26:25.332] grepl <- base::grepl [17:26:25.332] restarts <- computeRestarts(cond) [17:26:25.332] for (restart in restarts) { [17:26:25.332] name <- restart$name [17:26:25.332] if (is.null(name)) [17:26:25.332] next [17:26:25.332] if (!grepl(pattern, name)) [17:26:25.332] next [17:26:25.332] invokeRestart(restart) [17:26:25.332] muffled <- TRUE [17:26:25.332] break [17:26:25.332] } [17:26:25.332] } [17:26:25.332] } [17:26:25.332] invisible(muffled) [17:26:25.332] } [17:26:25.332] muffleCondition(cond, pattern = "^muffle") [17:26:25.332] } [17:26:25.332] } [17:26:25.332] } [17:26:25.332] })) [17:26:25.332] }, error = function(ex) { [17:26:25.332] base::structure(base::list(value = NULL, visible = NULL, [17:26:25.332] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.332] ...future.rng), started = ...future.startTime, [17:26:25.332] finished = Sys.time(), session_uuid = NA_character_, [17:26:25.332] version = "1.8"), class = "FutureResult") [17:26:25.332] }, finally = { [17:26:25.332] if (!identical(...future.workdir, getwd())) [17:26:25.332] setwd(...future.workdir) [17:26:25.332] { [17:26:25.332] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:25.332] ...future.oldOptions$nwarnings <- NULL [17:26:25.332] } [17:26:25.332] base::options(...future.oldOptions) [17:26:25.332] if (.Platform$OS.type == "windows") { [17:26:25.332] old_names <- names(...future.oldEnvVars) [17:26:25.332] envs <- base::Sys.getenv() [17:26:25.332] names <- names(envs) [17:26:25.332] common <- intersect(names, old_names) [17:26:25.332] added <- setdiff(names, old_names) [17:26:25.332] removed <- setdiff(old_names, names) [17:26:25.332] changed <- common[...future.oldEnvVars[common] != [17:26:25.332] envs[common]] [17:26:25.332] NAMES <- toupper(changed) [17:26:25.332] args <- list() [17:26:25.332] for (kk in seq_along(NAMES)) { [17:26:25.332] name <- changed[[kk]] [17:26:25.332] NAME <- NAMES[[kk]] [17:26:25.332] if (name != NAME && is.element(NAME, old_names)) [17:26:25.332] next [17:26:25.332] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.332] } [17:26:25.332] NAMES <- toupper(added) [17:26:25.332] for (kk in seq_along(NAMES)) { [17:26:25.332] name <- added[[kk]] [17:26:25.332] NAME <- NAMES[[kk]] [17:26:25.332] if (name != NAME && is.element(NAME, old_names)) [17:26:25.332] next [17:26:25.332] args[[name]] <- "" [17:26:25.332] } [17:26:25.332] NAMES <- toupper(removed) [17:26:25.332] for (kk in seq_along(NAMES)) { [17:26:25.332] name <- removed[[kk]] [17:26:25.332] NAME <- NAMES[[kk]] [17:26:25.332] if (name != NAME && is.element(NAME, old_names)) [17:26:25.332] next [17:26:25.332] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.332] } [17:26:25.332] if (length(args) > 0) [17:26:25.332] base::do.call(base::Sys.setenv, args = args) [17:26:25.332] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:25.332] } [17:26:25.332] else { [17:26:25.332] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:25.332] } [17:26:25.332] { [17:26:25.332] if (base::length(...future.futureOptionsAdded) > [17:26:25.332] 0L) { [17:26:25.332] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:25.332] base::names(opts) <- ...future.futureOptionsAdded [17:26:25.332] base::options(opts) [17:26:25.332] } [17:26:25.332] { [17:26:25.332] { [17:26:25.332] base::options(mc.cores = ...future.mc.cores.old) [17:26:25.332] NULL [17:26:25.332] } [17:26:25.332] options(future.plan = NULL) [17:26:25.332] if (is.na(NA_character_)) [17:26:25.332] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.332] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:25.332] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:25.332] .init = FALSE) [17:26:25.332] } [17:26:25.332] } [17:26:25.332] } [17:26:25.332] }) [17:26:25.332] if (TRUE) { [17:26:25.332] base::sink(type = "output", split = FALSE) [17:26:25.332] if (TRUE) { [17:26:25.332] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:25.332] } [17:26:25.332] else { [17:26:25.332] ...future.result["stdout"] <- base::list(NULL) [17:26:25.332] } [17:26:25.332] base::close(...future.stdout) [17:26:25.332] ...future.stdout <- NULL [17:26:25.332] } [17:26:25.332] ...future.result$conditions <- ...future.conditions [17:26:25.332] ...future.result$finished <- base::Sys.time() [17:26:25.332] ...future.result [17:26:25.332] } [17:26:25.338] Exporting 2 global objects (112 bytes) to cluster node #1 ... [17:26:25.338] Exporting 'x' (56 bytes) to cluster node #1 ... [17:26:25.339] Exporting 'x' (56 bytes) to cluster node #1 ... DONE [17:26:25.339] Exporting 'future.call.arguments' (56 bytes) to cluster node #1 ... [17:26:25.339] Exporting 'future.call.arguments' (56 bytes) to cluster node #1 ... DONE [17:26:25.340] Exporting 2 global objects (112 bytes) to cluster node #1 ... DONE [17:26:25.340] MultisessionFuture started [17:26:25.340] - Launch lazy future ... done [17:26:25.341] run() for 'MultisessionFuture' ... done [17:26:25.341] result() for ClusterFuture ... [17:26:25.341] receiveMessageFromWorker() for ClusterFuture ... [17:26:25.341] - Validating connection of MultisessionFuture [17:26:25.356] - received message: FutureResult [17:26:25.356] - Received FutureResult [17:26:25.356] - Erased future from FutureRegistry [17:26:25.356] result() for ClusterFuture ... [17:26:25.356] - result already collected: FutureResult [17:26:25.357] result() for ClusterFuture ... done [17:26:25.357] receiveMessageFromWorker() for ClusterFuture ... done [17:26:25.357] result() for ClusterFuture ... done [17:26:25.357] result() for ClusterFuture ... [17:26:25.357] - result already collected: FutureResult [17:26:25.358] result() for ClusterFuture ... done [1] 6 ** Sum function 'B' with plan('multisession') ... function (x, ...) { sumt <- function(x) { message("Arguments '...' exists: ", exists("...", inherits = TRUE)) y %<-% { sum(x, ...) } y } sumt(x) } Arguments '...' exists: TRUE [17:26:25.358] getGlobalsAndPackages() ... [17:26:25.359] Searching for globals... [17:26:25.361] - globals found: [4] '{', 'sum', 'x', '...' [17:26:25.361] Searching for globals ... DONE [17:26:25.361] Resolving globals: FALSE [17:26:25.361] Tweak future expression to call with '...' arguments ... [17:26:25.362] { [17:26:25.362] do.call(function(...) { [17:26:25.362] sum(x, ...) [17:26:25.362] }, args = future.call.arguments) [17:26:25.362] } [17:26:25.362] Tweak future expression to call with '...' arguments ... DONE [17:26:25.363] The total size of the 2 globals is 112 bytes (112 bytes) [17:26:25.363] The total size of the 2 globals exported for future expression ('{; sum(x, ...); }') is 112 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There are two globals: 'x' (56 bytes of class 'numeric') and 'future.call.arguments' (56 bytes of class 'list') [17:26:25.364] - globals: [2] 'x', 'future.call.arguments' [17:26:25.364] [17:26:25.364] getGlobalsAndPackages() ... DONE [17:26:25.364] run() for 'Future' ... [17:26:25.365] - state: 'created' [17:26:25.365] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:26:25.379] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:26:25.379] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:26:25.380] - Field: 'node' [17:26:25.380] - Field: 'label' [17:26:25.380] - Field: 'local' [17:26:25.380] - Field: 'owner' [17:26:25.381] - Field: 'envir' [17:26:25.381] - Field: 'workers' [17:26:25.381] - Field: 'packages' [17:26:25.381] - Field: 'gc' [17:26:25.381] - Field: 'conditions' [17:26:25.381] - Field: 'persistent' [17:26:25.382] - Field: 'expr' [17:26:25.382] - Field: 'uuid' [17:26:25.382] - Field: 'seed' [17:26:25.382] - Field: 'version' [17:26:25.382] - Field: 'result' [17:26:25.383] - Field: 'asynchronous' [17:26:25.383] - Field: 'calls' [17:26:25.383] - Field: 'globals' [17:26:25.383] - Field: 'stdout' [17:26:25.383] - Field: 'earlySignal' [17:26:25.384] - Field: 'lazy' [17:26:25.384] - Field: 'state' [17:26:25.384] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:26:25.384] - Launch lazy future ... [17:26:25.385] Packages needed by the future expression (n = 0): [17:26:25.385] Packages needed by future strategies (n = 0): [17:26:25.386] { [17:26:25.386] { [17:26:25.386] { [17:26:25.386] ...future.startTime <- base::Sys.time() [17:26:25.386] { [17:26:25.386] { [17:26:25.386] { [17:26:25.386] { [17:26:25.386] base::local({ [17:26:25.386] has_future <- base::requireNamespace("future", [17:26:25.386] quietly = TRUE) [17:26:25.386] if (has_future) { [17:26:25.386] ns <- base::getNamespace("future") [17:26:25.386] version <- ns[[".package"]][["version"]] [17:26:25.386] if (is.null(version)) [17:26:25.386] version <- utils::packageVersion("future") [17:26:25.386] } [17:26:25.386] else { [17:26:25.386] version <- NULL [17:26:25.386] } [17:26:25.386] if (!has_future || version < "1.8.0") { [17:26:25.386] info <- base::c(r_version = base::gsub("R version ", [17:26:25.386] "", base::R.version$version.string), [17:26:25.386] platform = base::sprintf("%s (%s-bit)", [17:26:25.386] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:25.386] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:25.386] "release", "version")], collapse = " "), [17:26:25.386] hostname = base::Sys.info()[["nodename"]]) [17:26:25.386] info <- base::sprintf("%s: %s", base::names(info), [17:26:25.386] info) [17:26:25.386] info <- base::paste(info, collapse = "; ") [17:26:25.386] if (!has_future) { [17:26:25.386] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:25.386] info) [17:26:25.386] } [17:26:25.386] else { [17:26:25.386] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:25.386] info, version) [17:26:25.386] } [17:26:25.386] base::stop(msg) [17:26:25.386] } [17:26:25.386] }) [17:26:25.386] } [17:26:25.386] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:25.386] base::options(mc.cores = 1L) [17:26:25.386] } [17:26:25.386] ...future.strategy.old <- future::plan("list") [17:26:25.386] options(future.plan = NULL) [17:26:25.386] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.386] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:25.386] } [17:26:25.386] ...future.workdir <- getwd() [17:26:25.386] } [17:26:25.386] ...future.oldOptions <- base::as.list(base::.Options) [17:26:25.386] ...future.oldEnvVars <- base::Sys.getenv() [17:26:25.386] } [17:26:25.386] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:25.386] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:25.386] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:25.386] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:25.386] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:25.386] future.stdout.windows.reencode = NULL, width = 80L) [17:26:25.386] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:25.386] base::names(...future.oldOptions)) [17:26:25.386] } [17:26:25.386] if (FALSE) { [17:26:25.386] } [17:26:25.386] else { [17:26:25.386] if (TRUE) { [17:26:25.386] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:25.386] open = "w") [17:26:25.386] } [17:26:25.386] else { [17:26:25.386] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:25.386] windows = "NUL", "/dev/null"), open = "w") [17:26:25.386] } [17:26:25.386] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:25.386] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:25.386] base::sink(type = "output", split = FALSE) [17:26:25.386] base::close(...future.stdout) [17:26:25.386] }, add = TRUE) [17:26:25.386] } [17:26:25.386] ...future.frame <- base::sys.nframe() [17:26:25.386] ...future.conditions <- base::list() [17:26:25.386] ...future.rng <- base::globalenv()$.Random.seed [17:26:25.386] if (FALSE) { [17:26:25.386] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:25.386] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:25.386] } [17:26:25.386] ...future.result <- base::tryCatch({ [17:26:25.386] base::withCallingHandlers({ [17:26:25.386] ...future.value <- base::withVisible(base::local({ [17:26:25.386] ...future.makeSendCondition <- base::local({ [17:26:25.386] sendCondition <- NULL [17:26:25.386] function(frame = 1L) { [17:26:25.386] if (is.function(sendCondition)) [17:26:25.386] return(sendCondition) [17:26:25.386] ns <- getNamespace("parallel") [17:26:25.386] if (exists("sendData", mode = "function", [17:26:25.386] envir = ns)) { [17:26:25.386] parallel_sendData <- get("sendData", mode = "function", [17:26:25.386] envir = ns) [17:26:25.386] envir <- sys.frame(frame) [17:26:25.386] master <- NULL [17:26:25.386] while (!identical(envir, .GlobalEnv) && [17:26:25.386] !identical(envir, emptyenv())) { [17:26:25.386] if (exists("master", mode = "list", envir = envir, [17:26:25.386] inherits = FALSE)) { [17:26:25.386] master <- get("master", mode = "list", [17:26:25.386] envir = envir, inherits = FALSE) [17:26:25.386] if (inherits(master, c("SOCKnode", [17:26:25.386] "SOCK0node"))) { [17:26:25.386] sendCondition <<- function(cond) { [17:26:25.386] data <- list(type = "VALUE", value = cond, [17:26:25.386] success = TRUE) [17:26:25.386] parallel_sendData(master, data) [17:26:25.386] } [17:26:25.386] return(sendCondition) [17:26:25.386] } [17:26:25.386] } [17:26:25.386] frame <- frame + 1L [17:26:25.386] envir <- sys.frame(frame) [17:26:25.386] } [17:26:25.386] } [17:26:25.386] sendCondition <<- function(cond) NULL [17:26:25.386] } [17:26:25.386] }) [17:26:25.386] withCallingHandlers({ [17:26:25.386] { [17:26:25.386] do.call(function(...) { [17:26:25.386] sum(x, ...) [17:26:25.386] }, args = future.call.arguments) [17:26:25.386] } [17:26:25.386] }, immediateCondition = function(cond) { [17:26:25.386] sendCondition <- ...future.makeSendCondition() [17:26:25.386] sendCondition(cond) [17:26:25.386] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.386] { [17:26:25.386] inherits <- base::inherits [17:26:25.386] invokeRestart <- base::invokeRestart [17:26:25.386] is.null <- base::is.null [17:26:25.386] muffled <- FALSE [17:26:25.386] if (inherits(cond, "message")) { [17:26:25.386] muffled <- grepl(pattern, "muffleMessage") [17:26:25.386] if (muffled) [17:26:25.386] invokeRestart("muffleMessage") [17:26:25.386] } [17:26:25.386] else if (inherits(cond, "warning")) { [17:26:25.386] muffled <- grepl(pattern, "muffleWarning") [17:26:25.386] if (muffled) [17:26:25.386] invokeRestart("muffleWarning") [17:26:25.386] } [17:26:25.386] else if (inherits(cond, "condition")) { [17:26:25.386] if (!is.null(pattern)) { [17:26:25.386] computeRestarts <- base::computeRestarts [17:26:25.386] grepl <- base::grepl [17:26:25.386] restarts <- computeRestarts(cond) [17:26:25.386] for (restart in restarts) { [17:26:25.386] name <- restart$name [17:26:25.386] if (is.null(name)) [17:26:25.386] next [17:26:25.386] if (!grepl(pattern, name)) [17:26:25.386] next [17:26:25.386] invokeRestart(restart) [17:26:25.386] muffled <- TRUE [17:26:25.386] break [17:26:25.386] } [17:26:25.386] } [17:26:25.386] } [17:26:25.386] invisible(muffled) [17:26:25.386] } [17:26:25.386] muffleCondition(cond) [17:26:25.386] }) [17:26:25.386] })) [17:26:25.386] future::FutureResult(value = ...future.value$value, [17:26:25.386] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.386] ...future.rng), globalenv = if (FALSE) [17:26:25.386] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:25.386] ...future.globalenv.names)) [17:26:25.386] else NULL, started = ...future.startTime, version = "1.8") [17:26:25.386] }, condition = base::local({ [17:26:25.386] c <- base::c [17:26:25.386] inherits <- base::inherits [17:26:25.386] invokeRestart <- base::invokeRestart [17:26:25.386] length <- base::length [17:26:25.386] list <- base::list [17:26:25.386] seq.int <- base::seq.int [17:26:25.386] signalCondition <- base::signalCondition [17:26:25.386] sys.calls <- base::sys.calls [17:26:25.386] `[[` <- base::`[[` [17:26:25.386] `+` <- base::`+` [17:26:25.386] `<<-` <- base::`<<-` [17:26:25.386] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:25.386] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:25.386] 3L)] [17:26:25.386] } [17:26:25.386] function(cond) { [17:26:25.386] is_error <- inherits(cond, "error") [17:26:25.386] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:25.386] NULL) [17:26:25.386] if (is_error) { [17:26:25.386] sessionInformation <- function() { [17:26:25.386] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:25.386] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:25.386] search = base::search(), system = base::Sys.info()) [17:26:25.386] } [17:26:25.386] ...future.conditions[[length(...future.conditions) + [17:26:25.386] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:25.386] cond$call), session = sessionInformation(), [17:26:25.386] timestamp = base::Sys.time(), signaled = 0L) [17:26:25.386] signalCondition(cond) [17:26:25.386] } [17:26:25.386] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:25.386] "immediateCondition"))) { [17:26:25.386] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:25.386] ...future.conditions[[length(...future.conditions) + [17:26:25.386] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:25.386] if (TRUE && !signal) { [17:26:25.386] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.386] { [17:26:25.386] inherits <- base::inherits [17:26:25.386] invokeRestart <- base::invokeRestart [17:26:25.386] is.null <- base::is.null [17:26:25.386] muffled <- FALSE [17:26:25.386] if (inherits(cond, "message")) { [17:26:25.386] muffled <- grepl(pattern, "muffleMessage") [17:26:25.386] if (muffled) [17:26:25.386] invokeRestart("muffleMessage") [17:26:25.386] } [17:26:25.386] else if (inherits(cond, "warning")) { [17:26:25.386] muffled <- grepl(pattern, "muffleWarning") [17:26:25.386] if (muffled) [17:26:25.386] invokeRestart("muffleWarning") [17:26:25.386] } [17:26:25.386] else if (inherits(cond, "condition")) { [17:26:25.386] if (!is.null(pattern)) { [17:26:25.386] computeRestarts <- base::computeRestarts [17:26:25.386] grepl <- base::grepl [17:26:25.386] restarts <- computeRestarts(cond) [17:26:25.386] for (restart in restarts) { [17:26:25.386] name <- restart$name [17:26:25.386] if (is.null(name)) [17:26:25.386] next [17:26:25.386] if (!grepl(pattern, name)) [17:26:25.386] next [17:26:25.386] invokeRestart(restart) [17:26:25.386] muffled <- TRUE [17:26:25.386] break [17:26:25.386] } [17:26:25.386] } [17:26:25.386] } [17:26:25.386] invisible(muffled) [17:26:25.386] } [17:26:25.386] muffleCondition(cond, pattern = "^muffle") [17:26:25.386] } [17:26:25.386] } [17:26:25.386] else { [17:26:25.386] if (TRUE) { [17:26:25.386] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.386] { [17:26:25.386] inherits <- base::inherits [17:26:25.386] invokeRestart <- base::invokeRestart [17:26:25.386] is.null <- base::is.null [17:26:25.386] muffled <- FALSE [17:26:25.386] if (inherits(cond, "message")) { [17:26:25.386] muffled <- grepl(pattern, "muffleMessage") [17:26:25.386] if (muffled) [17:26:25.386] invokeRestart("muffleMessage") [17:26:25.386] } [17:26:25.386] else if (inherits(cond, "warning")) { [17:26:25.386] muffled <- grepl(pattern, "muffleWarning") [17:26:25.386] if (muffled) [17:26:25.386] invokeRestart("muffleWarning") [17:26:25.386] } [17:26:25.386] else if (inherits(cond, "condition")) { [17:26:25.386] if (!is.null(pattern)) { [17:26:25.386] computeRestarts <- base::computeRestarts [17:26:25.386] grepl <- base::grepl [17:26:25.386] restarts <- computeRestarts(cond) [17:26:25.386] for (restart in restarts) { [17:26:25.386] name <- restart$name [17:26:25.386] if (is.null(name)) [17:26:25.386] next [17:26:25.386] if (!grepl(pattern, name)) [17:26:25.386] next [17:26:25.386] invokeRestart(restart) [17:26:25.386] muffled <- TRUE [17:26:25.386] break [17:26:25.386] } [17:26:25.386] } [17:26:25.386] } [17:26:25.386] invisible(muffled) [17:26:25.386] } [17:26:25.386] muffleCondition(cond, pattern = "^muffle") [17:26:25.386] } [17:26:25.386] } [17:26:25.386] } [17:26:25.386] })) [17:26:25.386] }, error = function(ex) { [17:26:25.386] base::structure(base::list(value = NULL, visible = NULL, [17:26:25.386] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.386] ...future.rng), started = ...future.startTime, [17:26:25.386] finished = Sys.time(), session_uuid = NA_character_, [17:26:25.386] version = "1.8"), class = "FutureResult") [17:26:25.386] }, finally = { [17:26:25.386] if (!identical(...future.workdir, getwd())) [17:26:25.386] setwd(...future.workdir) [17:26:25.386] { [17:26:25.386] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:25.386] ...future.oldOptions$nwarnings <- NULL [17:26:25.386] } [17:26:25.386] base::options(...future.oldOptions) [17:26:25.386] if (.Platform$OS.type == "windows") { [17:26:25.386] old_names <- names(...future.oldEnvVars) [17:26:25.386] envs <- base::Sys.getenv() [17:26:25.386] names <- names(envs) [17:26:25.386] common <- intersect(names, old_names) [17:26:25.386] added <- setdiff(names, old_names) [17:26:25.386] removed <- setdiff(old_names, names) [17:26:25.386] changed <- common[...future.oldEnvVars[common] != [17:26:25.386] envs[common]] [17:26:25.386] NAMES <- toupper(changed) [17:26:25.386] args <- list() [17:26:25.386] for (kk in seq_along(NAMES)) { [17:26:25.386] name <- changed[[kk]] [17:26:25.386] NAME <- NAMES[[kk]] [17:26:25.386] if (name != NAME && is.element(NAME, old_names)) [17:26:25.386] next [17:26:25.386] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.386] } [17:26:25.386] NAMES <- toupper(added) [17:26:25.386] for (kk in seq_along(NAMES)) { [17:26:25.386] name <- added[[kk]] [17:26:25.386] NAME <- NAMES[[kk]] [17:26:25.386] if (name != NAME && is.element(NAME, old_names)) [17:26:25.386] next [17:26:25.386] args[[name]] <- "" [17:26:25.386] } [17:26:25.386] NAMES <- toupper(removed) [17:26:25.386] for (kk in seq_along(NAMES)) { [17:26:25.386] name <- removed[[kk]] [17:26:25.386] NAME <- NAMES[[kk]] [17:26:25.386] if (name != NAME && is.element(NAME, old_names)) [17:26:25.386] next [17:26:25.386] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.386] } [17:26:25.386] if (length(args) > 0) [17:26:25.386] base::do.call(base::Sys.setenv, args = args) [17:26:25.386] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:25.386] } [17:26:25.386] else { [17:26:25.386] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:25.386] } [17:26:25.386] { [17:26:25.386] if (base::length(...future.futureOptionsAdded) > [17:26:25.386] 0L) { [17:26:25.386] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:25.386] base::names(opts) <- ...future.futureOptionsAdded [17:26:25.386] base::options(opts) [17:26:25.386] } [17:26:25.386] { [17:26:25.386] { [17:26:25.386] base::options(mc.cores = ...future.mc.cores.old) [17:26:25.386] NULL [17:26:25.386] } [17:26:25.386] options(future.plan = NULL) [17:26:25.386] if (is.na(NA_character_)) [17:26:25.386] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.386] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:25.386] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:25.386] .init = FALSE) [17:26:25.386] } [17:26:25.386] } [17:26:25.386] } [17:26:25.386] }) [17:26:25.386] if (TRUE) { [17:26:25.386] base::sink(type = "output", split = FALSE) [17:26:25.386] if (TRUE) { [17:26:25.386] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:25.386] } [17:26:25.386] else { [17:26:25.386] ...future.result["stdout"] <- base::list(NULL) [17:26:25.386] } [17:26:25.386] base::close(...future.stdout) [17:26:25.386] ...future.stdout <- NULL [17:26:25.386] } [17:26:25.386] ...future.result$conditions <- ...future.conditions [17:26:25.386] ...future.result$finished <- base::Sys.time() [17:26:25.386] ...future.result [17:26:25.386] } [17:26:25.391] Exporting 2 global objects (112 bytes) to cluster node #1 ... [17:26:25.391] Exporting 'x' (56 bytes) to cluster node #1 ... [17:26:25.391] Exporting 'x' (56 bytes) to cluster node #1 ... DONE [17:26:25.392] Exporting 'future.call.arguments' (56 bytes) to cluster node #1 ... [17:26:25.392] Exporting 'future.call.arguments' (56 bytes) to cluster node #1 ... DONE [17:26:25.393] Exporting 2 global objects (112 bytes) to cluster node #1 ... DONE [17:26:25.393] MultisessionFuture started [17:26:25.393] - Launch lazy future ... done [17:26:25.394] run() for 'MultisessionFuture' ... done [17:26:25.394] result() for ClusterFuture ... [17:26:25.394] receiveMessageFromWorker() for ClusterFuture ... [17:26:25.394] - Validating connection of MultisessionFuture [17:26:25.407] - received message: FutureResult [17:26:25.407] - Received FutureResult [17:26:25.407] - Erased future from FutureRegistry [17:26:25.408] result() for ClusterFuture ... [17:26:25.408] - result already collected: FutureResult [17:26:25.408] result() for ClusterFuture ... done [17:26:25.408] receiveMessageFromWorker() for ClusterFuture ... done [17:26:25.408] result() for ClusterFuture ... done [17:26:25.408] result() for ClusterFuture ... [17:26:25.409] - result already collected: FutureResult [17:26:25.409] result() for ClusterFuture ... done [1] 6 ** Sum function 'C' with plan('multisession') ... function (x, y) { message("Arguments '...' exists: ", exists("...", inherits = TRUE)) y %<-% { sum(x, y) } y } Arguments '...' exists: FALSE [17:26:25.410] getGlobalsAndPackages() ... [17:26:25.410] Searching for globals... [17:26:25.411] - globals found: [4] '{', 'sum', 'x', 'y' [17:26:25.412] Searching for globals ... DONE [17:26:25.412] Resolving globals: FALSE [17:26:25.413] The total size of the 2 globals is 112 bytes (112 bytes) [17:26:25.413] The total size of the 2 globals exported for future expression ('{; sum(x, y); }') is 112 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There are two globals: 'x' (56 bytes of class 'numeric') and 'y' (56 bytes of class 'numeric') [17:26:25.413] - globals: [2] 'x', 'y' [17:26:25.414] [17:26:25.414] getGlobalsAndPackages() ... DONE [17:26:25.414] run() for 'Future' ... [17:26:25.414] - state: 'created' [17:26:25.415] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:26:25.429] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:26:25.429] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:26:25.429] - Field: 'node' [17:26:25.429] - Field: 'label' [17:26:25.430] - Field: 'local' [17:26:25.430] - Field: 'owner' [17:26:25.430] - Field: 'envir' [17:26:25.430] - Field: 'workers' [17:26:25.430] - Field: 'packages' [17:26:25.431] - Field: 'gc' [17:26:25.431] - Field: 'conditions' [17:26:25.431] - Field: 'persistent' [17:26:25.431] - Field: 'expr' [17:26:25.431] - Field: 'uuid' [17:26:25.432] - Field: 'seed' [17:26:25.432] - Field: 'version' [17:26:25.432] - Field: 'result' [17:26:25.432] - Field: 'asynchronous' [17:26:25.432] - Field: 'calls' [17:26:25.433] - Field: 'globals' [17:26:25.433] - Field: 'stdout' [17:26:25.433] - Field: 'earlySignal' [17:26:25.433] - Field: 'lazy' [17:26:25.433] - Field: 'state' [17:26:25.434] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:26:25.434] - Launch lazy future ... [17:26:25.434] Packages needed by the future expression (n = 0): [17:26:25.434] Packages needed by future strategies (n = 0): [17:26:25.437] { [17:26:25.437] { [17:26:25.437] { [17:26:25.437] ...future.startTime <- base::Sys.time() [17:26:25.437] { [17:26:25.437] { [17:26:25.437] { [17:26:25.437] { [17:26:25.437] base::local({ [17:26:25.437] has_future <- base::requireNamespace("future", [17:26:25.437] quietly = TRUE) [17:26:25.437] if (has_future) { [17:26:25.437] ns <- base::getNamespace("future") [17:26:25.437] version <- ns[[".package"]][["version"]] [17:26:25.437] if (is.null(version)) [17:26:25.437] version <- utils::packageVersion("future") [17:26:25.437] } [17:26:25.437] else { [17:26:25.437] version <- NULL [17:26:25.437] } [17:26:25.437] if (!has_future || version < "1.8.0") { [17:26:25.437] info <- base::c(r_version = base::gsub("R version ", [17:26:25.437] "", base::R.version$version.string), [17:26:25.437] platform = base::sprintf("%s (%s-bit)", [17:26:25.437] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:25.437] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:25.437] "release", "version")], collapse = " "), [17:26:25.437] hostname = base::Sys.info()[["nodename"]]) [17:26:25.437] info <- base::sprintf("%s: %s", base::names(info), [17:26:25.437] info) [17:26:25.437] info <- base::paste(info, collapse = "; ") [17:26:25.437] if (!has_future) { [17:26:25.437] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:25.437] info) [17:26:25.437] } [17:26:25.437] else { [17:26:25.437] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:25.437] info, version) [17:26:25.437] } [17:26:25.437] base::stop(msg) [17:26:25.437] } [17:26:25.437] }) [17:26:25.437] } [17:26:25.437] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:25.437] base::options(mc.cores = 1L) [17:26:25.437] } [17:26:25.437] ...future.strategy.old <- future::plan("list") [17:26:25.437] options(future.plan = NULL) [17:26:25.437] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.437] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:25.437] } [17:26:25.437] ...future.workdir <- getwd() [17:26:25.437] } [17:26:25.437] ...future.oldOptions <- base::as.list(base::.Options) [17:26:25.437] ...future.oldEnvVars <- base::Sys.getenv() [17:26:25.437] } [17:26:25.437] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:25.437] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:25.437] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:25.437] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:25.437] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:25.437] future.stdout.windows.reencode = NULL, width = 80L) [17:26:25.437] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:25.437] base::names(...future.oldOptions)) [17:26:25.437] } [17:26:25.437] if (FALSE) { [17:26:25.437] } [17:26:25.437] else { [17:26:25.437] if (TRUE) { [17:26:25.437] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:25.437] open = "w") [17:26:25.437] } [17:26:25.437] else { [17:26:25.437] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:25.437] windows = "NUL", "/dev/null"), open = "w") [17:26:25.437] } [17:26:25.437] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:25.437] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:25.437] base::sink(type = "output", split = FALSE) [17:26:25.437] base::close(...future.stdout) [17:26:25.437] }, add = TRUE) [17:26:25.437] } [17:26:25.437] ...future.frame <- base::sys.nframe() [17:26:25.437] ...future.conditions <- base::list() [17:26:25.437] ...future.rng <- base::globalenv()$.Random.seed [17:26:25.437] if (FALSE) { [17:26:25.437] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:25.437] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:25.437] } [17:26:25.437] ...future.result <- base::tryCatch({ [17:26:25.437] base::withCallingHandlers({ [17:26:25.437] ...future.value <- base::withVisible(base::local({ [17:26:25.437] ...future.makeSendCondition <- base::local({ [17:26:25.437] sendCondition <- NULL [17:26:25.437] function(frame = 1L) { [17:26:25.437] if (is.function(sendCondition)) [17:26:25.437] return(sendCondition) [17:26:25.437] ns <- getNamespace("parallel") [17:26:25.437] if (exists("sendData", mode = "function", [17:26:25.437] envir = ns)) { [17:26:25.437] parallel_sendData <- get("sendData", mode = "function", [17:26:25.437] envir = ns) [17:26:25.437] envir <- sys.frame(frame) [17:26:25.437] master <- NULL [17:26:25.437] while (!identical(envir, .GlobalEnv) && [17:26:25.437] !identical(envir, emptyenv())) { [17:26:25.437] if (exists("master", mode = "list", envir = envir, [17:26:25.437] inherits = FALSE)) { [17:26:25.437] master <- get("master", mode = "list", [17:26:25.437] envir = envir, inherits = FALSE) [17:26:25.437] if (inherits(master, c("SOCKnode", [17:26:25.437] "SOCK0node"))) { [17:26:25.437] sendCondition <<- function(cond) { [17:26:25.437] data <- list(type = "VALUE", value = cond, [17:26:25.437] success = TRUE) [17:26:25.437] parallel_sendData(master, data) [17:26:25.437] } [17:26:25.437] return(sendCondition) [17:26:25.437] } [17:26:25.437] } [17:26:25.437] frame <- frame + 1L [17:26:25.437] envir <- sys.frame(frame) [17:26:25.437] } [17:26:25.437] } [17:26:25.437] sendCondition <<- function(cond) NULL [17:26:25.437] } [17:26:25.437] }) [17:26:25.437] withCallingHandlers({ [17:26:25.437] { [17:26:25.437] sum(x, y) [17:26:25.437] } [17:26:25.437] }, immediateCondition = function(cond) { [17:26:25.437] sendCondition <- ...future.makeSendCondition() [17:26:25.437] sendCondition(cond) [17:26:25.437] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.437] { [17:26:25.437] inherits <- base::inherits [17:26:25.437] invokeRestart <- base::invokeRestart [17:26:25.437] is.null <- base::is.null [17:26:25.437] muffled <- FALSE [17:26:25.437] if (inherits(cond, "message")) { [17:26:25.437] muffled <- grepl(pattern, "muffleMessage") [17:26:25.437] if (muffled) [17:26:25.437] invokeRestart("muffleMessage") [17:26:25.437] } [17:26:25.437] else if (inherits(cond, "warning")) { [17:26:25.437] muffled <- grepl(pattern, "muffleWarning") [17:26:25.437] if (muffled) [17:26:25.437] invokeRestart("muffleWarning") [17:26:25.437] } [17:26:25.437] else if (inherits(cond, "condition")) { [17:26:25.437] if (!is.null(pattern)) { [17:26:25.437] computeRestarts <- base::computeRestarts [17:26:25.437] grepl <- base::grepl [17:26:25.437] restarts <- computeRestarts(cond) [17:26:25.437] for (restart in restarts) { [17:26:25.437] name <- restart$name [17:26:25.437] if (is.null(name)) [17:26:25.437] next [17:26:25.437] if (!grepl(pattern, name)) [17:26:25.437] next [17:26:25.437] invokeRestart(restart) [17:26:25.437] muffled <- TRUE [17:26:25.437] break [17:26:25.437] } [17:26:25.437] } [17:26:25.437] } [17:26:25.437] invisible(muffled) [17:26:25.437] } [17:26:25.437] muffleCondition(cond) [17:26:25.437] }) [17:26:25.437] })) [17:26:25.437] future::FutureResult(value = ...future.value$value, [17:26:25.437] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.437] ...future.rng), globalenv = if (FALSE) [17:26:25.437] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:25.437] ...future.globalenv.names)) [17:26:25.437] else NULL, started = ...future.startTime, version = "1.8") [17:26:25.437] }, condition = base::local({ [17:26:25.437] c <- base::c [17:26:25.437] inherits <- base::inherits [17:26:25.437] invokeRestart <- base::invokeRestart [17:26:25.437] length <- base::length [17:26:25.437] list <- base::list [17:26:25.437] seq.int <- base::seq.int [17:26:25.437] signalCondition <- base::signalCondition [17:26:25.437] sys.calls <- base::sys.calls [17:26:25.437] `[[` <- base::`[[` [17:26:25.437] `+` <- base::`+` [17:26:25.437] `<<-` <- base::`<<-` [17:26:25.437] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:25.437] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:25.437] 3L)] [17:26:25.437] } [17:26:25.437] function(cond) { [17:26:25.437] is_error <- inherits(cond, "error") [17:26:25.437] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:25.437] NULL) [17:26:25.437] if (is_error) { [17:26:25.437] sessionInformation <- function() { [17:26:25.437] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:25.437] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:25.437] search = base::search(), system = base::Sys.info()) [17:26:25.437] } [17:26:25.437] ...future.conditions[[length(...future.conditions) + [17:26:25.437] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:25.437] cond$call), session = sessionInformation(), [17:26:25.437] timestamp = base::Sys.time(), signaled = 0L) [17:26:25.437] signalCondition(cond) [17:26:25.437] } [17:26:25.437] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:25.437] "immediateCondition"))) { [17:26:25.437] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:25.437] ...future.conditions[[length(...future.conditions) + [17:26:25.437] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:25.437] if (TRUE && !signal) { [17:26:25.437] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.437] { [17:26:25.437] inherits <- base::inherits [17:26:25.437] invokeRestart <- base::invokeRestart [17:26:25.437] is.null <- base::is.null [17:26:25.437] muffled <- FALSE [17:26:25.437] if (inherits(cond, "message")) { [17:26:25.437] muffled <- grepl(pattern, "muffleMessage") [17:26:25.437] if (muffled) [17:26:25.437] invokeRestart("muffleMessage") [17:26:25.437] } [17:26:25.437] else if (inherits(cond, "warning")) { [17:26:25.437] muffled <- grepl(pattern, "muffleWarning") [17:26:25.437] if (muffled) [17:26:25.437] invokeRestart("muffleWarning") [17:26:25.437] } [17:26:25.437] else if (inherits(cond, "condition")) { [17:26:25.437] if (!is.null(pattern)) { [17:26:25.437] computeRestarts <- base::computeRestarts [17:26:25.437] grepl <- base::grepl [17:26:25.437] restarts <- computeRestarts(cond) [17:26:25.437] for (restart in restarts) { [17:26:25.437] name <- restart$name [17:26:25.437] if (is.null(name)) [17:26:25.437] next [17:26:25.437] if (!grepl(pattern, name)) [17:26:25.437] next [17:26:25.437] invokeRestart(restart) [17:26:25.437] muffled <- TRUE [17:26:25.437] break [17:26:25.437] } [17:26:25.437] } [17:26:25.437] } [17:26:25.437] invisible(muffled) [17:26:25.437] } [17:26:25.437] muffleCondition(cond, pattern = "^muffle") [17:26:25.437] } [17:26:25.437] } [17:26:25.437] else { [17:26:25.437] if (TRUE) { [17:26:25.437] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.437] { [17:26:25.437] inherits <- base::inherits [17:26:25.437] invokeRestart <- base::invokeRestart [17:26:25.437] is.null <- base::is.null [17:26:25.437] muffled <- FALSE [17:26:25.437] if (inherits(cond, "message")) { [17:26:25.437] muffled <- grepl(pattern, "muffleMessage") [17:26:25.437] if (muffled) [17:26:25.437] invokeRestart("muffleMessage") [17:26:25.437] } [17:26:25.437] else if (inherits(cond, "warning")) { [17:26:25.437] muffled <- grepl(pattern, "muffleWarning") [17:26:25.437] if (muffled) [17:26:25.437] invokeRestart("muffleWarning") [17:26:25.437] } [17:26:25.437] else if (inherits(cond, "condition")) { [17:26:25.437] if (!is.null(pattern)) { [17:26:25.437] computeRestarts <- base::computeRestarts [17:26:25.437] grepl <- base::grepl [17:26:25.437] restarts <- computeRestarts(cond) [17:26:25.437] for (restart in restarts) { [17:26:25.437] name <- restart$name [17:26:25.437] if (is.null(name)) [17:26:25.437] next [17:26:25.437] if (!grepl(pattern, name)) [17:26:25.437] next [17:26:25.437] invokeRestart(restart) [17:26:25.437] muffled <- TRUE [17:26:25.437] break [17:26:25.437] } [17:26:25.437] } [17:26:25.437] } [17:26:25.437] invisible(muffled) [17:26:25.437] } [17:26:25.437] muffleCondition(cond, pattern = "^muffle") [17:26:25.437] } [17:26:25.437] } [17:26:25.437] } [17:26:25.437] })) [17:26:25.437] }, error = function(ex) { [17:26:25.437] base::structure(base::list(value = NULL, visible = NULL, [17:26:25.437] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.437] ...future.rng), started = ...future.startTime, [17:26:25.437] finished = Sys.time(), session_uuid = NA_character_, [17:26:25.437] version = "1.8"), class = "FutureResult") [17:26:25.437] }, finally = { [17:26:25.437] if (!identical(...future.workdir, getwd())) [17:26:25.437] setwd(...future.workdir) [17:26:25.437] { [17:26:25.437] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:25.437] ...future.oldOptions$nwarnings <- NULL [17:26:25.437] } [17:26:25.437] base::options(...future.oldOptions) [17:26:25.437] if (.Platform$OS.type == "windows") { [17:26:25.437] old_names <- names(...future.oldEnvVars) [17:26:25.437] envs <- base::Sys.getenv() [17:26:25.437] names <- names(envs) [17:26:25.437] common <- intersect(names, old_names) [17:26:25.437] added <- setdiff(names, old_names) [17:26:25.437] removed <- setdiff(old_names, names) [17:26:25.437] changed <- common[...future.oldEnvVars[common] != [17:26:25.437] envs[common]] [17:26:25.437] NAMES <- toupper(changed) [17:26:25.437] args <- list() [17:26:25.437] for (kk in seq_along(NAMES)) { [17:26:25.437] name <- changed[[kk]] [17:26:25.437] NAME <- NAMES[[kk]] [17:26:25.437] if (name != NAME && is.element(NAME, old_names)) [17:26:25.437] next [17:26:25.437] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.437] } [17:26:25.437] NAMES <- toupper(added) [17:26:25.437] for (kk in seq_along(NAMES)) { [17:26:25.437] name <- added[[kk]] [17:26:25.437] NAME <- NAMES[[kk]] [17:26:25.437] if (name != NAME && is.element(NAME, old_names)) [17:26:25.437] next [17:26:25.437] args[[name]] <- "" [17:26:25.437] } [17:26:25.437] NAMES <- toupper(removed) [17:26:25.437] for (kk in seq_along(NAMES)) { [17:26:25.437] name <- removed[[kk]] [17:26:25.437] NAME <- NAMES[[kk]] [17:26:25.437] if (name != NAME && is.element(NAME, old_names)) [17:26:25.437] next [17:26:25.437] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.437] } [17:26:25.437] if (length(args) > 0) [17:26:25.437] base::do.call(base::Sys.setenv, args = args) [17:26:25.437] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:25.437] } [17:26:25.437] else { [17:26:25.437] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:25.437] } [17:26:25.437] { [17:26:25.437] if (base::length(...future.futureOptionsAdded) > [17:26:25.437] 0L) { [17:26:25.437] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:25.437] base::names(opts) <- ...future.futureOptionsAdded [17:26:25.437] base::options(opts) [17:26:25.437] } [17:26:25.437] { [17:26:25.437] { [17:26:25.437] base::options(mc.cores = ...future.mc.cores.old) [17:26:25.437] NULL [17:26:25.437] } [17:26:25.437] options(future.plan = NULL) [17:26:25.437] if (is.na(NA_character_)) [17:26:25.437] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.437] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:25.437] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:25.437] .init = FALSE) [17:26:25.437] } [17:26:25.437] } [17:26:25.437] } [17:26:25.437] }) [17:26:25.437] if (TRUE) { [17:26:25.437] base::sink(type = "output", split = FALSE) [17:26:25.437] if (TRUE) { [17:26:25.437] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:25.437] } [17:26:25.437] else { [17:26:25.437] ...future.result["stdout"] <- base::list(NULL) [17:26:25.437] } [17:26:25.437] base::close(...future.stdout) [17:26:25.437] ...future.stdout <- NULL [17:26:25.437] } [17:26:25.437] ...future.result$conditions <- ...future.conditions [17:26:25.437] ...future.result$finished <- base::Sys.time() [17:26:25.437] ...future.result [17:26:25.437] } [17:26:25.442] Exporting 2 global objects (112 bytes) to cluster node #1 ... [17:26:25.443] Exporting 'x' (56 bytes) to cluster node #1 ... [17:26:25.443] Exporting 'x' (56 bytes) to cluster node #1 ... DONE [17:26:25.443] Exporting 'y' (56 bytes) to cluster node #1 ... [17:26:25.444] Exporting 'y' (56 bytes) to cluster node #1 ... DONE [17:26:25.444] Exporting 2 global objects (112 bytes) to cluster node #1 ... DONE [17:26:25.444] MultisessionFuture started [17:26:25.445] - Launch lazy future ... done [17:26:25.445] run() for 'MultisessionFuture' ... done [17:26:25.445] result() for ClusterFuture ... [17:26:25.445] receiveMessageFromWorker() for ClusterFuture ... [17:26:25.445] - Validating connection of MultisessionFuture [17:26:25.459] - received message: FutureResult [17:26:25.460] - Received FutureResult [17:26:25.460] - Erased future from FutureRegistry [17:26:25.460] result() for ClusterFuture ... [17:26:25.460] - result already collected: FutureResult [17:26:25.460] result() for ClusterFuture ... done [17:26:25.460] receiveMessageFromWorker() for ClusterFuture ... done [17:26:25.461] result() for ClusterFuture ... done [17:26:25.461] result() for ClusterFuture ... [17:26:25.461] - result already collected: FutureResult [17:26:25.461] result() for ClusterFuture ... done [1] 6 ** Sum function 'D' with plan('multisession') ... function (x, y) { message("Arguments '...' exists: ", exists("...", inherits = TRUE)) y %<-% { sum(x, y, ...) } y } Arguments '...' exists: FALSE [17:26:25.462] getGlobalsAndPackages() ... [17:26:25.462] Searching for globals... [17:26:25.464] - globals found: [5] '{', 'sum', 'x', 'y', '...' [17:26:25.464] Searching for globals ... DONE [17:26:25.464] Resolving globals: FALSE [17:26:25.464] Tweak future expression to call with '...' arguments ... [17:26:25.465] The total size of the 2 globals is 112 bytes (112 bytes) [17:26:25.465] The total size of the 2 globals exported for future expression ('{; sum(x, y, ...); }') is 112 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There are two globals: 'x' (56 bytes of class 'numeric') and 'y' (56 bytes of class 'numeric') [17:26:25.466] - globals: [2] 'x', 'y' [17:26:25.466] [17:26:25.466] getGlobalsAndPackages() ... DONE [17:26:25.466] run() for 'Future' ... [17:26:25.466] - state: 'created' [17:26:25.467] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:26:25.481] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:26:25.482] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:26:25.482] - Field: 'node' [17:26:25.482] - Field: 'label' [17:26:25.482] - Field: 'local' [17:26:25.482] - Field: 'owner' [17:26:25.482] - Field: 'envir' [17:26:25.483] - Field: 'workers' [17:26:25.483] - Field: 'packages' [17:26:25.483] - Field: 'gc' [17:26:25.483] - Field: 'conditions' [17:26:25.483] - Field: 'persistent' [17:26:25.484] - Field: 'expr' [17:26:25.484] - Field: 'uuid' [17:26:25.484] - Field: 'seed' [17:26:25.484] - Field: 'version' [17:26:25.484] - Field: 'result' [17:26:25.485] - Field: 'asynchronous' [17:26:25.485] - Field: 'calls' [17:26:25.485] - Field: 'globals' [17:26:25.485] - Field: 'stdout' [17:26:25.485] - Field: 'earlySignal' [17:26:25.486] - Field: 'lazy' [17:26:25.486] - Field: 'state' [17:26:25.486] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:26:25.486] - Launch lazy future ... [17:26:25.486] Packages needed by the future expression (n = 0): [17:26:25.487] Packages needed by future strategies (n = 0): [17:26:25.487] { [17:26:25.487] { [17:26:25.487] { [17:26:25.487] ...future.startTime <- base::Sys.time() [17:26:25.487] { [17:26:25.487] { [17:26:25.487] { [17:26:25.487] { [17:26:25.487] base::local({ [17:26:25.487] has_future <- base::requireNamespace("future", [17:26:25.487] quietly = TRUE) [17:26:25.487] if (has_future) { [17:26:25.487] ns <- base::getNamespace("future") [17:26:25.487] version <- ns[[".package"]][["version"]] [17:26:25.487] if (is.null(version)) [17:26:25.487] version <- utils::packageVersion("future") [17:26:25.487] } [17:26:25.487] else { [17:26:25.487] version <- NULL [17:26:25.487] } [17:26:25.487] if (!has_future || version < "1.8.0") { [17:26:25.487] info <- base::c(r_version = base::gsub("R version ", [17:26:25.487] "", base::R.version$version.string), [17:26:25.487] platform = base::sprintf("%s (%s-bit)", [17:26:25.487] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:25.487] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:25.487] "release", "version")], collapse = " "), [17:26:25.487] hostname = base::Sys.info()[["nodename"]]) [17:26:25.487] info <- base::sprintf("%s: %s", base::names(info), [17:26:25.487] info) [17:26:25.487] info <- base::paste(info, collapse = "; ") [17:26:25.487] if (!has_future) { [17:26:25.487] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:25.487] info) [17:26:25.487] } [17:26:25.487] else { [17:26:25.487] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:25.487] info, version) [17:26:25.487] } [17:26:25.487] base::stop(msg) [17:26:25.487] } [17:26:25.487] }) [17:26:25.487] } [17:26:25.487] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:25.487] base::options(mc.cores = 1L) [17:26:25.487] } [17:26:25.487] ...future.strategy.old <- future::plan("list") [17:26:25.487] options(future.plan = NULL) [17:26:25.487] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.487] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:25.487] } [17:26:25.487] ...future.workdir <- getwd() [17:26:25.487] } [17:26:25.487] ...future.oldOptions <- base::as.list(base::.Options) [17:26:25.487] ...future.oldEnvVars <- base::Sys.getenv() [17:26:25.487] } [17:26:25.487] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:25.487] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:25.487] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:25.487] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:25.487] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:25.487] future.stdout.windows.reencode = NULL, width = 80L) [17:26:25.487] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:25.487] base::names(...future.oldOptions)) [17:26:25.487] } [17:26:25.487] if (FALSE) { [17:26:25.487] } [17:26:25.487] else { [17:26:25.487] if (TRUE) { [17:26:25.487] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:25.487] open = "w") [17:26:25.487] } [17:26:25.487] else { [17:26:25.487] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:25.487] windows = "NUL", "/dev/null"), open = "w") [17:26:25.487] } [17:26:25.487] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:25.487] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:25.487] base::sink(type = "output", split = FALSE) [17:26:25.487] base::close(...future.stdout) [17:26:25.487] }, add = TRUE) [17:26:25.487] } [17:26:25.487] ...future.frame <- base::sys.nframe() [17:26:25.487] ...future.conditions <- base::list() [17:26:25.487] ...future.rng <- base::globalenv()$.Random.seed [17:26:25.487] if (FALSE) { [17:26:25.487] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:25.487] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:25.487] } [17:26:25.487] ...future.result <- base::tryCatch({ [17:26:25.487] base::withCallingHandlers({ [17:26:25.487] ...future.value <- base::withVisible(base::local({ [17:26:25.487] ...future.makeSendCondition <- base::local({ [17:26:25.487] sendCondition <- NULL [17:26:25.487] function(frame = 1L) { [17:26:25.487] if (is.function(sendCondition)) [17:26:25.487] return(sendCondition) [17:26:25.487] ns <- getNamespace("parallel") [17:26:25.487] if (exists("sendData", mode = "function", [17:26:25.487] envir = ns)) { [17:26:25.487] parallel_sendData <- get("sendData", mode = "function", [17:26:25.487] envir = ns) [17:26:25.487] envir <- sys.frame(frame) [17:26:25.487] master <- NULL [17:26:25.487] while (!identical(envir, .GlobalEnv) && [17:26:25.487] !identical(envir, emptyenv())) { [17:26:25.487] if (exists("master", mode = "list", envir = envir, [17:26:25.487] inherits = FALSE)) { [17:26:25.487] master <- get("master", mode = "list", [17:26:25.487] envir = envir, inherits = FALSE) [17:26:25.487] if (inherits(master, c("SOCKnode", [17:26:25.487] "SOCK0node"))) { [17:26:25.487] sendCondition <<- function(cond) { [17:26:25.487] data <- list(type = "VALUE", value = cond, [17:26:25.487] success = TRUE) [17:26:25.487] parallel_sendData(master, data) [17:26:25.487] } [17:26:25.487] return(sendCondition) [17:26:25.487] } [17:26:25.487] } [17:26:25.487] frame <- frame + 1L [17:26:25.487] envir <- sys.frame(frame) [17:26:25.487] } [17:26:25.487] } [17:26:25.487] sendCondition <<- function(cond) NULL [17:26:25.487] } [17:26:25.487] }) [17:26:25.487] withCallingHandlers({ [17:26:25.487] { [17:26:25.487] sum(x, y, ...) [17:26:25.487] } [17:26:25.487] }, immediateCondition = function(cond) { [17:26:25.487] sendCondition <- ...future.makeSendCondition() [17:26:25.487] sendCondition(cond) [17:26:25.487] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.487] { [17:26:25.487] inherits <- base::inherits [17:26:25.487] invokeRestart <- base::invokeRestart [17:26:25.487] is.null <- base::is.null [17:26:25.487] muffled <- FALSE [17:26:25.487] if (inherits(cond, "message")) { [17:26:25.487] muffled <- grepl(pattern, "muffleMessage") [17:26:25.487] if (muffled) [17:26:25.487] invokeRestart("muffleMessage") [17:26:25.487] } [17:26:25.487] else if (inherits(cond, "warning")) { [17:26:25.487] muffled <- grepl(pattern, "muffleWarning") [17:26:25.487] if (muffled) [17:26:25.487] invokeRestart("muffleWarning") [17:26:25.487] } [17:26:25.487] else if (inherits(cond, "condition")) { [17:26:25.487] if (!is.null(pattern)) { [17:26:25.487] computeRestarts <- base::computeRestarts [17:26:25.487] grepl <- base::grepl [17:26:25.487] restarts <- computeRestarts(cond) [17:26:25.487] for (restart in restarts) { [17:26:25.487] name <- restart$name [17:26:25.487] if (is.null(name)) [17:26:25.487] next [17:26:25.487] if (!grepl(pattern, name)) [17:26:25.487] next [17:26:25.487] invokeRestart(restart) [17:26:25.487] muffled <- TRUE [17:26:25.487] break [17:26:25.487] } [17:26:25.487] } [17:26:25.487] } [17:26:25.487] invisible(muffled) [17:26:25.487] } [17:26:25.487] muffleCondition(cond) [17:26:25.487] }) [17:26:25.487] })) [17:26:25.487] future::FutureResult(value = ...future.value$value, [17:26:25.487] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.487] ...future.rng), globalenv = if (FALSE) [17:26:25.487] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:25.487] ...future.globalenv.names)) [17:26:25.487] else NULL, started = ...future.startTime, version = "1.8") [17:26:25.487] }, condition = base::local({ [17:26:25.487] c <- base::c [17:26:25.487] inherits <- base::inherits [17:26:25.487] invokeRestart <- base::invokeRestart [17:26:25.487] length <- base::length [17:26:25.487] list <- base::list [17:26:25.487] seq.int <- base::seq.int [17:26:25.487] signalCondition <- base::signalCondition [17:26:25.487] sys.calls <- base::sys.calls [17:26:25.487] `[[` <- base::`[[` [17:26:25.487] `+` <- base::`+` [17:26:25.487] `<<-` <- base::`<<-` [17:26:25.487] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:25.487] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:25.487] 3L)] [17:26:25.487] } [17:26:25.487] function(cond) { [17:26:25.487] is_error <- inherits(cond, "error") [17:26:25.487] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:25.487] NULL) [17:26:25.487] if (is_error) { [17:26:25.487] sessionInformation <- function() { [17:26:25.487] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:25.487] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:25.487] search = base::search(), system = base::Sys.info()) [17:26:25.487] } [17:26:25.487] ...future.conditions[[length(...future.conditions) + [17:26:25.487] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:25.487] cond$call), session = sessionInformation(), [17:26:25.487] timestamp = base::Sys.time(), signaled = 0L) [17:26:25.487] signalCondition(cond) [17:26:25.487] } [17:26:25.487] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:25.487] "immediateCondition"))) { [17:26:25.487] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:25.487] ...future.conditions[[length(...future.conditions) + [17:26:25.487] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:25.487] if (TRUE && !signal) { [17:26:25.487] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.487] { [17:26:25.487] inherits <- base::inherits [17:26:25.487] invokeRestart <- base::invokeRestart [17:26:25.487] is.null <- base::is.null [17:26:25.487] muffled <- FALSE [17:26:25.487] if (inherits(cond, "message")) { [17:26:25.487] muffled <- grepl(pattern, "muffleMessage") [17:26:25.487] if (muffled) [17:26:25.487] invokeRestart("muffleMessage") [17:26:25.487] } [17:26:25.487] else if (inherits(cond, "warning")) { [17:26:25.487] muffled <- grepl(pattern, "muffleWarning") [17:26:25.487] if (muffled) [17:26:25.487] invokeRestart("muffleWarning") [17:26:25.487] } [17:26:25.487] else if (inherits(cond, "condition")) { [17:26:25.487] if (!is.null(pattern)) { [17:26:25.487] computeRestarts <- base::computeRestarts [17:26:25.487] grepl <- base::grepl [17:26:25.487] restarts <- computeRestarts(cond) [17:26:25.487] for (restart in restarts) { [17:26:25.487] name <- restart$name [17:26:25.487] if (is.null(name)) [17:26:25.487] next [17:26:25.487] if (!grepl(pattern, name)) [17:26:25.487] next [17:26:25.487] invokeRestart(restart) [17:26:25.487] muffled <- TRUE [17:26:25.487] break [17:26:25.487] } [17:26:25.487] } [17:26:25.487] } [17:26:25.487] invisible(muffled) [17:26:25.487] } [17:26:25.487] muffleCondition(cond, pattern = "^muffle") [17:26:25.487] } [17:26:25.487] } [17:26:25.487] else { [17:26:25.487] if (TRUE) { [17:26:25.487] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.487] { [17:26:25.487] inherits <- base::inherits [17:26:25.487] invokeRestart <- base::invokeRestart [17:26:25.487] is.null <- base::is.null [17:26:25.487] muffled <- FALSE [17:26:25.487] if (inherits(cond, "message")) { [17:26:25.487] muffled <- grepl(pattern, "muffleMessage") [17:26:25.487] if (muffled) [17:26:25.487] invokeRestart("muffleMessage") [17:26:25.487] } [17:26:25.487] else if (inherits(cond, "warning")) { [17:26:25.487] muffled <- grepl(pattern, "muffleWarning") [17:26:25.487] if (muffled) [17:26:25.487] invokeRestart("muffleWarning") [17:26:25.487] } [17:26:25.487] else if (inherits(cond, "condition")) { [17:26:25.487] if (!is.null(pattern)) { [17:26:25.487] computeRestarts <- base::computeRestarts [17:26:25.487] grepl <- base::grepl [17:26:25.487] restarts <- computeRestarts(cond) [17:26:25.487] for (restart in restarts) { [17:26:25.487] name <- restart$name [17:26:25.487] if (is.null(name)) [17:26:25.487] next [17:26:25.487] if (!grepl(pattern, name)) [17:26:25.487] next [17:26:25.487] invokeRestart(restart) [17:26:25.487] muffled <- TRUE [17:26:25.487] break [17:26:25.487] } [17:26:25.487] } [17:26:25.487] } [17:26:25.487] invisible(muffled) [17:26:25.487] } [17:26:25.487] muffleCondition(cond, pattern = "^muffle") [17:26:25.487] } [17:26:25.487] } [17:26:25.487] } [17:26:25.487] })) [17:26:25.487] }, error = function(ex) { [17:26:25.487] base::structure(base::list(value = NULL, visible = NULL, [17:26:25.487] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.487] ...future.rng), started = ...future.startTime, [17:26:25.487] finished = Sys.time(), session_uuid = NA_character_, [17:26:25.487] version = "1.8"), class = "FutureResult") [17:26:25.487] }, finally = { [17:26:25.487] if (!identical(...future.workdir, getwd())) [17:26:25.487] setwd(...future.workdir) [17:26:25.487] { [17:26:25.487] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:25.487] ...future.oldOptions$nwarnings <- NULL [17:26:25.487] } [17:26:25.487] base::options(...future.oldOptions) [17:26:25.487] if (.Platform$OS.type == "windows") { [17:26:25.487] old_names <- names(...future.oldEnvVars) [17:26:25.487] envs <- base::Sys.getenv() [17:26:25.487] names <- names(envs) [17:26:25.487] common <- intersect(names, old_names) [17:26:25.487] added <- setdiff(names, old_names) [17:26:25.487] removed <- setdiff(old_names, names) [17:26:25.487] changed <- common[...future.oldEnvVars[common] != [17:26:25.487] envs[common]] [17:26:25.487] NAMES <- toupper(changed) [17:26:25.487] args <- list() [17:26:25.487] for (kk in seq_along(NAMES)) { [17:26:25.487] name <- changed[[kk]] [17:26:25.487] NAME <- NAMES[[kk]] [17:26:25.487] if (name != NAME && is.element(NAME, old_names)) [17:26:25.487] next [17:26:25.487] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.487] } [17:26:25.487] NAMES <- toupper(added) [17:26:25.487] for (kk in seq_along(NAMES)) { [17:26:25.487] name <- added[[kk]] [17:26:25.487] NAME <- NAMES[[kk]] [17:26:25.487] if (name != NAME && is.element(NAME, old_names)) [17:26:25.487] next [17:26:25.487] args[[name]] <- "" [17:26:25.487] } [17:26:25.487] NAMES <- toupper(removed) [17:26:25.487] for (kk in seq_along(NAMES)) { [17:26:25.487] name <- removed[[kk]] [17:26:25.487] NAME <- NAMES[[kk]] [17:26:25.487] if (name != NAME && is.element(NAME, old_names)) [17:26:25.487] next [17:26:25.487] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.487] } [17:26:25.487] if (length(args) > 0) [17:26:25.487] base::do.call(base::Sys.setenv, args = args) [17:26:25.487] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:25.487] } [17:26:25.487] else { [17:26:25.487] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:25.487] } [17:26:25.487] { [17:26:25.487] if (base::length(...future.futureOptionsAdded) > [17:26:25.487] 0L) { [17:26:25.487] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:25.487] base::names(opts) <- ...future.futureOptionsAdded [17:26:25.487] base::options(opts) [17:26:25.487] } [17:26:25.487] { [17:26:25.487] { [17:26:25.487] base::options(mc.cores = ...future.mc.cores.old) [17:26:25.487] NULL [17:26:25.487] } [17:26:25.487] options(future.plan = NULL) [17:26:25.487] if (is.na(NA_character_)) [17:26:25.487] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.487] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:25.487] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:25.487] .init = FALSE) [17:26:25.487] } [17:26:25.487] } [17:26:25.487] } [17:26:25.487] }) [17:26:25.487] if (TRUE) { [17:26:25.487] base::sink(type = "output", split = FALSE) [17:26:25.487] if (TRUE) { [17:26:25.487] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:25.487] } [17:26:25.487] else { [17:26:25.487] ...future.result["stdout"] <- base::list(NULL) [17:26:25.487] } [17:26:25.487] base::close(...future.stdout) [17:26:25.487] ...future.stdout <- NULL [17:26:25.487] } [17:26:25.487] ...future.result$conditions <- ...future.conditions [17:26:25.487] ...future.result$finished <- base::Sys.time() [17:26:25.487] ...future.result [17:26:25.487] } [17:26:25.492] Exporting 2 global objects (112 bytes) to cluster node #1 ... [17:26:25.492] Exporting 'x' (56 bytes) to cluster node #1 ... [17:26:25.493] Exporting 'x' (56 bytes) to cluster node #1 ... DONE [17:26:25.493] Exporting 'y' (56 bytes) to cluster node #1 ... [17:26:25.493] Exporting 'y' (56 bytes) to cluster node #1 ... DONE [17:26:25.493] Exporting 2 global objects (112 bytes) to cluster node #1 ... DONE [17:26:25.494] MultisessionFuture started [17:26:25.494] - Launch lazy future ... done [17:26:25.494] run() for 'MultisessionFuture' ... done [17:26:25.495] result() for ClusterFuture ... [17:26:25.495] receiveMessageFromWorker() for ClusterFuture ... [17:26:25.495] - Validating connection of MultisessionFuture [17:26:25.510] - received message: FutureResult [17:26:25.510] - Received FutureResult [17:26:25.510] - Erased future from FutureRegistry [17:26:25.510] result() for ClusterFuture ... [17:26:25.511] - result already collected: FutureResult [17:26:25.511] result() for ClusterFuture ... done [17:26:25.511] signalConditions() ... [17:26:25.511] - include = 'immediateCondition' [17:26:25.511] - exclude = [17:26:25.511] - resignal = FALSE [17:26:25.512] - Number of conditions: 1 [17:26:25.512] signalConditions() ... done [17:26:25.512] receiveMessageFromWorker() for ClusterFuture ... done [17:26:25.512] result() for ClusterFuture ... done [17:26:25.512] result() for ClusterFuture ... [17:26:25.512] - result already collected: FutureResult [17:26:25.512] result() for ClusterFuture ... done [17:26:25.513] signalConditions() ... [17:26:25.513] - include = 'immediateCondition' [17:26:25.513] - exclude = [17:26:25.513] - resignal = FALSE [17:26:25.513] - Number of conditions: 1 [17:26:25.513] signalConditions() ... done [17:26:25.514] Future state: 'finished' [17:26:25.514] result() for ClusterFuture ... [17:26:25.514] - result already collected: FutureResult [17:26:25.514] result() for ClusterFuture ... done [17:26:25.514] signalConditions() ... [17:26:25.514] - include = 'condition' [17:26:25.515] - exclude = 'immediateCondition' [17:26:25.515] - resignal = TRUE [17:26:25.515] - Number of conditions: 1 [17:26:25.515] - Condition #1: 'simpleError', 'error', 'condition' [17:26:25.515] signalConditions() ... done Error in withCallingHandlers({ : '...' used in an incorrect context [1] "Error in withCallingHandlers({ : '...' used in an incorrect context\n" attr(,"class") [1] "try-error" attr(,"condition") ** Sum function 'E' with plan('multisession') ... function (...) { message("Arguments '...' exists: ", exists("...", inherits = TRUE)) globals <- globals::globalsByName("...", envir = environment()) f <- future({ fcn <- function() sum(...) fcn() }, envir = parent.frame(), globals = globals) y <- value(f) y } Arguments '...' exists: TRUE [17:26:25.517] getGlobalsAndPackages() ... [17:26:25.517] - globals passed as-is: [1] '...' [17:26:25.517] Resolving globals: FALSE [17:26:25.517] Tweak future expression to call with '...' arguments ... [17:26:25.517] { [17:26:25.517] do.call(function(...) { [17:26:25.517] fcn <- function() sum(...) [17:26:25.517] fcn() [17:26:25.517] }, args = future.call.arguments) [17:26:25.517] } [17:26:25.518] Tweak future expression to call with '...' arguments ... DONE [17:26:25.518] The total size of the 1 globals is 112 bytes (112 bytes) [17:26:25.519] The total size of the 1 globals exported for future expression ('{; fcn <- function() sum(...); fcn(); }') is 112 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'future.call.arguments' (112 bytes of class 'list') [17:26:25.519] - globals: [1] 'future.call.arguments' [17:26:25.519] [17:26:25.519] getGlobalsAndPackages() ... DONE [17:26:25.520] run() for 'Future' ... [17:26:25.520] - state: 'created' [17:26:25.520] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:26:25.536] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:26:25.536] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:26:25.536] - Field: 'node' [17:26:25.536] - Field: 'label' [17:26:25.537] - Field: 'local' [17:26:25.537] - Field: 'owner' [17:26:25.537] - Field: 'envir' [17:26:25.537] - Field: 'workers' [17:26:25.537] - Field: 'packages' [17:26:25.537] - Field: 'gc' [17:26:25.538] - Field: 'conditions' [17:26:25.538] - Field: 'persistent' [17:26:25.538] - Field: 'expr' [17:26:25.538] - Field: 'uuid' [17:26:25.538] - Field: 'seed' [17:26:25.539] - Field: 'version' [17:26:25.539] - Field: 'result' [17:26:25.539] - Field: 'asynchronous' [17:26:25.539] - Field: 'calls' [17:26:25.539] - Field: 'globals' [17:26:25.539] - Field: 'stdout' [17:26:25.540] - Field: 'earlySignal' [17:26:25.540] - Field: 'lazy' [17:26:25.540] - Field: 'state' [17:26:25.540] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:26:25.540] - Launch lazy future ... [17:26:25.541] Packages needed by the future expression (n = 0): [17:26:25.541] Packages needed by future strategies (n = 0): [17:26:25.542] { [17:26:25.542] { [17:26:25.542] { [17:26:25.542] ...future.startTime <- base::Sys.time() [17:26:25.542] { [17:26:25.542] { [17:26:25.542] { [17:26:25.542] { [17:26:25.542] base::local({ [17:26:25.542] has_future <- base::requireNamespace("future", [17:26:25.542] quietly = TRUE) [17:26:25.542] if (has_future) { [17:26:25.542] ns <- base::getNamespace("future") [17:26:25.542] version <- ns[[".package"]][["version"]] [17:26:25.542] if (is.null(version)) [17:26:25.542] version <- utils::packageVersion("future") [17:26:25.542] } [17:26:25.542] else { [17:26:25.542] version <- NULL [17:26:25.542] } [17:26:25.542] if (!has_future || version < "1.8.0") { [17:26:25.542] info <- base::c(r_version = base::gsub("R version ", [17:26:25.542] "", base::R.version$version.string), [17:26:25.542] platform = base::sprintf("%s (%s-bit)", [17:26:25.542] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:25.542] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:25.542] "release", "version")], collapse = " "), [17:26:25.542] hostname = base::Sys.info()[["nodename"]]) [17:26:25.542] info <- base::sprintf("%s: %s", base::names(info), [17:26:25.542] info) [17:26:25.542] info <- base::paste(info, collapse = "; ") [17:26:25.542] if (!has_future) { [17:26:25.542] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:25.542] info) [17:26:25.542] } [17:26:25.542] else { [17:26:25.542] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:25.542] info, version) [17:26:25.542] } [17:26:25.542] base::stop(msg) [17:26:25.542] } [17:26:25.542] }) [17:26:25.542] } [17:26:25.542] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:25.542] base::options(mc.cores = 1L) [17:26:25.542] } [17:26:25.542] ...future.strategy.old <- future::plan("list") [17:26:25.542] options(future.plan = NULL) [17:26:25.542] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.542] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:25.542] } [17:26:25.542] ...future.workdir <- getwd() [17:26:25.542] } [17:26:25.542] ...future.oldOptions <- base::as.list(base::.Options) [17:26:25.542] ...future.oldEnvVars <- base::Sys.getenv() [17:26:25.542] } [17:26:25.542] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:25.542] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:25.542] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:25.542] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:25.542] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:25.542] future.stdout.windows.reencode = NULL, width = 80L) [17:26:25.542] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:25.542] base::names(...future.oldOptions)) [17:26:25.542] } [17:26:25.542] if (FALSE) { [17:26:25.542] } [17:26:25.542] else { [17:26:25.542] if (TRUE) { [17:26:25.542] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:25.542] open = "w") [17:26:25.542] } [17:26:25.542] else { [17:26:25.542] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:25.542] windows = "NUL", "/dev/null"), open = "w") [17:26:25.542] } [17:26:25.542] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:25.542] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:25.542] base::sink(type = "output", split = FALSE) [17:26:25.542] base::close(...future.stdout) [17:26:25.542] }, add = TRUE) [17:26:25.542] } [17:26:25.542] ...future.frame <- base::sys.nframe() [17:26:25.542] ...future.conditions <- base::list() [17:26:25.542] ...future.rng <- base::globalenv()$.Random.seed [17:26:25.542] if (FALSE) { [17:26:25.542] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:25.542] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:25.542] } [17:26:25.542] ...future.result <- base::tryCatch({ [17:26:25.542] base::withCallingHandlers({ [17:26:25.542] ...future.value <- base::withVisible(base::local({ [17:26:25.542] ...future.makeSendCondition <- base::local({ [17:26:25.542] sendCondition <- NULL [17:26:25.542] function(frame = 1L) { [17:26:25.542] if (is.function(sendCondition)) [17:26:25.542] return(sendCondition) [17:26:25.542] ns <- getNamespace("parallel") [17:26:25.542] if (exists("sendData", mode = "function", [17:26:25.542] envir = ns)) { [17:26:25.542] parallel_sendData <- get("sendData", mode = "function", [17:26:25.542] envir = ns) [17:26:25.542] envir <- sys.frame(frame) [17:26:25.542] master <- NULL [17:26:25.542] while (!identical(envir, .GlobalEnv) && [17:26:25.542] !identical(envir, emptyenv())) { [17:26:25.542] if (exists("master", mode = "list", envir = envir, [17:26:25.542] inherits = FALSE)) { [17:26:25.542] master <- get("master", mode = "list", [17:26:25.542] envir = envir, inherits = FALSE) [17:26:25.542] if (inherits(master, c("SOCKnode", [17:26:25.542] "SOCK0node"))) { [17:26:25.542] sendCondition <<- function(cond) { [17:26:25.542] data <- list(type = "VALUE", value = cond, [17:26:25.542] success = TRUE) [17:26:25.542] parallel_sendData(master, data) [17:26:25.542] } [17:26:25.542] return(sendCondition) [17:26:25.542] } [17:26:25.542] } [17:26:25.542] frame <- frame + 1L [17:26:25.542] envir <- sys.frame(frame) [17:26:25.542] } [17:26:25.542] } [17:26:25.542] sendCondition <<- function(cond) NULL [17:26:25.542] } [17:26:25.542] }) [17:26:25.542] withCallingHandlers({ [17:26:25.542] { [17:26:25.542] do.call(function(...) { [17:26:25.542] fcn <- function() sum(...) [17:26:25.542] fcn() [17:26:25.542] }, args = future.call.arguments) [17:26:25.542] } [17:26:25.542] }, immediateCondition = function(cond) { [17:26:25.542] sendCondition <- ...future.makeSendCondition() [17:26:25.542] sendCondition(cond) [17:26:25.542] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.542] { [17:26:25.542] inherits <- base::inherits [17:26:25.542] invokeRestart <- base::invokeRestart [17:26:25.542] is.null <- base::is.null [17:26:25.542] muffled <- FALSE [17:26:25.542] if (inherits(cond, "message")) { [17:26:25.542] muffled <- grepl(pattern, "muffleMessage") [17:26:25.542] if (muffled) [17:26:25.542] invokeRestart("muffleMessage") [17:26:25.542] } [17:26:25.542] else if (inherits(cond, "warning")) { [17:26:25.542] muffled <- grepl(pattern, "muffleWarning") [17:26:25.542] if (muffled) [17:26:25.542] invokeRestart("muffleWarning") [17:26:25.542] } [17:26:25.542] else if (inherits(cond, "condition")) { [17:26:25.542] if (!is.null(pattern)) { [17:26:25.542] computeRestarts <- base::computeRestarts [17:26:25.542] grepl <- base::grepl [17:26:25.542] restarts <- computeRestarts(cond) [17:26:25.542] for (restart in restarts) { [17:26:25.542] name <- restart$name [17:26:25.542] if (is.null(name)) [17:26:25.542] next [17:26:25.542] if (!grepl(pattern, name)) [17:26:25.542] next [17:26:25.542] invokeRestart(restart) [17:26:25.542] muffled <- TRUE [17:26:25.542] break [17:26:25.542] } [17:26:25.542] } [17:26:25.542] } [17:26:25.542] invisible(muffled) [17:26:25.542] } [17:26:25.542] muffleCondition(cond) [17:26:25.542] }) [17:26:25.542] })) [17:26:25.542] future::FutureResult(value = ...future.value$value, [17:26:25.542] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.542] ...future.rng), globalenv = if (FALSE) [17:26:25.542] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:25.542] ...future.globalenv.names)) [17:26:25.542] else NULL, started = ...future.startTime, version = "1.8") [17:26:25.542] }, condition = base::local({ [17:26:25.542] c <- base::c [17:26:25.542] inherits <- base::inherits [17:26:25.542] invokeRestart <- base::invokeRestart [17:26:25.542] length <- base::length [17:26:25.542] list <- base::list [17:26:25.542] seq.int <- base::seq.int [17:26:25.542] signalCondition <- base::signalCondition [17:26:25.542] sys.calls <- base::sys.calls [17:26:25.542] `[[` <- base::`[[` [17:26:25.542] `+` <- base::`+` [17:26:25.542] `<<-` <- base::`<<-` [17:26:25.542] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:25.542] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:25.542] 3L)] [17:26:25.542] } [17:26:25.542] function(cond) { [17:26:25.542] is_error <- inherits(cond, "error") [17:26:25.542] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:25.542] NULL) [17:26:25.542] if (is_error) { [17:26:25.542] sessionInformation <- function() { [17:26:25.542] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:25.542] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:25.542] search = base::search(), system = base::Sys.info()) [17:26:25.542] } [17:26:25.542] ...future.conditions[[length(...future.conditions) + [17:26:25.542] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:25.542] cond$call), session = sessionInformation(), [17:26:25.542] timestamp = base::Sys.time(), signaled = 0L) [17:26:25.542] signalCondition(cond) [17:26:25.542] } [17:26:25.542] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:25.542] "immediateCondition"))) { [17:26:25.542] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:25.542] ...future.conditions[[length(...future.conditions) + [17:26:25.542] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:25.542] if (TRUE && !signal) { [17:26:25.542] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.542] { [17:26:25.542] inherits <- base::inherits [17:26:25.542] invokeRestart <- base::invokeRestart [17:26:25.542] is.null <- base::is.null [17:26:25.542] muffled <- FALSE [17:26:25.542] if (inherits(cond, "message")) { [17:26:25.542] muffled <- grepl(pattern, "muffleMessage") [17:26:25.542] if (muffled) [17:26:25.542] invokeRestart("muffleMessage") [17:26:25.542] } [17:26:25.542] else if (inherits(cond, "warning")) { [17:26:25.542] muffled <- grepl(pattern, "muffleWarning") [17:26:25.542] if (muffled) [17:26:25.542] invokeRestart("muffleWarning") [17:26:25.542] } [17:26:25.542] else if (inherits(cond, "condition")) { [17:26:25.542] if (!is.null(pattern)) { [17:26:25.542] computeRestarts <- base::computeRestarts [17:26:25.542] grepl <- base::grepl [17:26:25.542] restarts <- computeRestarts(cond) [17:26:25.542] for (restart in restarts) { [17:26:25.542] name <- restart$name [17:26:25.542] if (is.null(name)) [17:26:25.542] next [17:26:25.542] if (!grepl(pattern, name)) [17:26:25.542] next [17:26:25.542] invokeRestart(restart) [17:26:25.542] muffled <- TRUE [17:26:25.542] break [17:26:25.542] } [17:26:25.542] } [17:26:25.542] } [17:26:25.542] invisible(muffled) [17:26:25.542] } [17:26:25.542] muffleCondition(cond, pattern = "^muffle") [17:26:25.542] } [17:26:25.542] } [17:26:25.542] else { [17:26:25.542] if (TRUE) { [17:26:25.542] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.542] { [17:26:25.542] inherits <- base::inherits [17:26:25.542] invokeRestart <- base::invokeRestart [17:26:25.542] is.null <- base::is.null [17:26:25.542] muffled <- FALSE [17:26:25.542] if (inherits(cond, "message")) { [17:26:25.542] muffled <- grepl(pattern, "muffleMessage") [17:26:25.542] if (muffled) [17:26:25.542] invokeRestart("muffleMessage") [17:26:25.542] } [17:26:25.542] else if (inherits(cond, "warning")) { [17:26:25.542] muffled <- grepl(pattern, "muffleWarning") [17:26:25.542] if (muffled) [17:26:25.542] invokeRestart("muffleWarning") [17:26:25.542] } [17:26:25.542] else if (inherits(cond, "condition")) { [17:26:25.542] if (!is.null(pattern)) { [17:26:25.542] computeRestarts <- base::computeRestarts [17:26:25.542] grepl <- base::grepl [17:26:25.542] restarts <- computeRestarts(cond) [17:26:25.542] for (restart in restarts) { [17:26:25.542] name <- restart$name [17:26:25.542] if (is.null(name)) [17:26:25.542] next [17:26:25.542] if (!grepl(pattern, name)) [17:26:25.542] next [17:26:25.542] invokeRestart(restart) [17:26:25.542] muffled <- TRUE [17:26:25.542] break [17:26:25.542] } [17:26:25.542] } [17:26:25.542] } [17:26:25.542] invisible(muffled) [17:26:25.542] } [17:26:25.542] muffleCondition(cond, pattern = "^muffle") [17:26:25.542] } [17:26:25.542] } [17:26:25.542] } [17:26:25.542] })) [17:26:25.542] }, error = function(ex) { [17:26:25.542] base::structure(base::list(value = NULL, visible = NULL, [17:26:25.542] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.542] ...future.rng), started = ...future.startTime, [17:26:25.542] finished = Sys.time(), session_uuid = NA_character_, [17:26:25.542] version = "1.8"), class = "FutureResult") [17:26:25.542] }, finally = { [17:26:25.542] if (!identical(...future.workdir, getwd())) [17:26:25.542] setwd(...future.workdir) [17:26:25.542] { [17:26:25.542] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:25.542] ...future.oldOptions$nwarnings <- NULL [17:26:25.542] } [17:26:25.542] base::options(...future.oldOptions) [17:26:25.542] if (.Platform$OS.type == "windows") { [17:26:25.542] old_names <- names(...future.oldEnvVars) [17:26:25.542] envs <- base::Sys.getenv() [17:26:25.542] names <- names(envs) [17:26:25.542] common <- intersect(names, old_names) [17:26:25.542] added <- setdiff(names, old_names) [17:26:25.542] removed <- setdiff(old_names, names) [17:26:25.542] changed <- common[...future.oldEnvVars[common] != [17:26:25.542] envs[common]] [17:26:25.542] NAMES <- toupper(changed) [17:26:25.542] args <- list() [17:26:25.542] for (kk in seq_along(NAMES)) { [17:26:25.542] name <- changed[[kk]] [17:26:25.542] NAME <- NAMES[[kk]] [17:26:25.542] if (name != NAME && is.element(NAME, old_names)) [17:26:25.542] next [17:26:25.542] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.542] } [17:26:25.542] NAMES <- toupper(added) [17:26:25.542] for (kk in seq_along(NAMES)) { [17:26:25.542] name <- added[[kk]] [17:26:25.542] NAME <- NAMES[[kk]] [17:26:25.542] if (name != NAME && is.element(NAME, old_names)) [17:26:25.542] next [17:26:25.542] args[[name]] <- "" [17:26:25.542] } [17:26:25.542] NAMES <- toupper(removed) [17:26:25.542] for (kk in seq_along(NAMES)) { [17:26:25.542] name <- removed[[kk]] [17:26:25.542] NAME <- NAMES[[kk]] [17:26:25.542] if (name != NAME && is.element(NAME, old_names)) [17:26:25.542] next [17:26:25.542] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.542] } [17:26:25.542] if (length(args) > 0) [17:26:25.542] base::do.call(base::Sys.setenv, args = args) [17:26:25.542] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:25.542] } [17:26:25.542] else { [17:26:25.542] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:25.542] } [17:26:25.542] { [17:26:25.542] if (base::length(...future.futureOptionsAdded) > [17:26:25.542] 0L) { [17:26:25.542] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:25.542] base::names(opts) <- ...future.futureOptionsAdded [17:26:25.542] base::options(opts) [17:26:25.542] } [17:26:25.542] { [17:26:25.542] { [17:26:25.542] base::options(mc.cores = ...future.mc.cores.old) [17:26:25.542] NULL [17:26:25.542] } [17:26:25.542] options(future.plan = NULL) [17:26:25.542] if (is.na(NA_character_)) [17:26:25.542] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.542] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:25.542] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:25.542] .init = FALSE) [17:26:25.542] } [17:26:25.542] } [17:26:25.542] } [17:26:25.542] }) [17:26:25.542] if (TRUE) { [17:26:25.542] base::sink(type = "output", split = FALSE) [17:26:25.542] if (TRUE) { [17:26:25.542] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:25.542] } [17:26:25.542] else { [17:26:25.542] ...future.result["stdout"] <- base::list(NULL) [17:26:25.542] } [17:26:25.542] base::close(...future.stdout) [17:26:25.542] ...future.stdout <- NULL [17:26:25.542] } [17:26:25.542] ...future.result$conditions <- ...future.conditions [17:26:25.542] ...future.result$finished <- base::Sys.time() [17:26:25.542] ...future.result [17:26:25.542] } [17:26:25.547] Exporting 1 global objects (112 bytes) to cluster node #1 ... [17:26:25.547] Exporting 'future.call.arguments' (112 bytes) to cluster node #1 ... [17:26:25.547] Exporting 'future.call.arguments' (112 bytes) to cluster node #1 ... DONE [17:26:25.547] Exporting 1 global objects (112 bytes) to cluster node #1 ... DONE [17:26:25.548] MultisessionFuture started [17:26:25.548] - Launch lazy future ... done [17:26:25.548] run() for 'MultisessionFuture' ... done [17:26:25.549] result() for ClusterFuture ... [17:26:25.549] receiveMessageFromWorker() for ClusterFuture ... [17:26:25.549] - Validating connection of MultisessionFuture [17:26:25.562] - received message: FutureResult [17:26:25.562] - Received FutureResult [17:26:25.562] - Erased future from FutureRegistry [17:26:25.562] result() for ClusterFuture ... [17:26:25.562] - result already collected: FutureResult [17:26:25.563] result() for ClusterFuture ... done [17:26:25.563] receiveMessageFromWorker() for ClusterFuture ... done [17:26:25.563] result() for ClusterFuture ... done [17:26:25.563] result() for ClusterFuture ... [17:26:25.563] - result already collected: FutureResult [17:26:25.563] result() for ClusterFuture ... done [1] 6 ** Sum function 'F' with plan('multisession') ... function (x, y) { message("Using '...' in a formula") fcn <- function(x, y) { z = ~list(...) sum(x, y) } f <- future(fcn(x, y)) y <- value(f) y } Using '...' in a formula [17:26:25.564] getGlobalsAndPackages() ... [17:26:25.564] Searching for globals... [17:26:25.567] - globals found: [9] 'fcn', 'x', 'y', '{', '=', '~', 'list', '...', 'sum' [17:26:25.568] Searching for globals ... DONE [17:26:25.568] Resolving globals: FALSE [17:26:25.568] Tweak future expression to call with '...' arguments ... [17:26:25.569] The total size of the 3 globals is 4.18 KiB (4280 bytes) [17:26:25.569] The total size of the 3 globals exported for future expression ('fcn(x, y)') is 4.18 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There are three globals: 'fcn' (4.07 KiB of class 'function'), 'x' (56 bytes of class 'numeric') and 'y' (56 bytes of class 'numeric') [17:26:25.569] - globals: [3] 'fcn', 'x', 'y' [17:26:25.570] [17:26:25.570] getGlobalsAndPackages() ... DONE [17:26:25.570] run() for 'Future' ... [17:26:25.570] - state: 'created' [17:26:25.570] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:26:25.584] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:26:25.584] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:26:25.584] - Field: 'node' [17:26:25.584] - Field: 'label' [17:26:25.585] - Field: 'local' [17:26:25.585] - Field: 'owner' [17:26:25.585] - Field: 'envir' [17:26:25.585] - Field: 'workers' [17:26:25.585] - Field: 'packages' [17:26:25.585] - Field: 'gc' [17:26:25.586] - Field: 'conditions' [17:26:25.586] - Field: 'persistent' [17:26:25.586] - Field: 'expr' [17:26:25.586] - Field: 'uuid' [17:26:25.586] - Field: 'seed' [17:26:25.587] - Field: 'version' [17:26:25.587] - Field: 'result' [17:26:25.587] - Field: 'asynchronous' [17:26:25.587] - Field: 'calls' [17:26:25.587] - Field: 'globals' [17:26:25.587] - Field: 'stdout' [17:26:25.588] - Field: 'earlySignal' [17:26:25.588] - Field: 'lazy' [17:26:25.588] - Field: 'state' [17:26:25.588] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:26:25.588] - Launch lazy future ... [17:26:25.589] Packages needed by the future expression (n = 0): [17:26:25.589] Packages needed by future strategies (n = 0): [17:26:25.590] { [17:26:25.590] { [17:26:25.590] { [17:26:25.590] ...future.startTime <- base::Sys.time() [17:26:25.590] { [17:26:25.590] { [17:26:25.590] { [17:26:25.590] { [17:26:25.590] base::local({ [17:26:25.590] has_future <- base::requireNamespace("future", [17:26:25.590] quietly = TRUE) [17:26:25.590] if (has_future) { [17:26:25.590] ns <- base::getNamespace("future") [17:26:25.590] version <- ns[[".package"]][["version"]] [17:26:25.590] if (is.null(version)) [17:26:25.590] version <- utils::packageVersion("future") [17:26:25.590] } [17:26:25.590] else { [17:26:25.590] version <- NULL [17:26:25.590] } [17:26:25.590] if (!has_future || version < "1.8.0") { [17:26:25.590] info <- base::c(r_version = base::gsub("R version ", [17:26:25.590] "", base::R.version$version.string), [17:26:25.590] platform = base::sprintf("%s (%s-bit)", [17:26:25.590] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:25.590] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:25.590] "release", "version")], collapse = " "), [17:26:25.590] hostname = base::Sys.info()[["nodename"]]) [17:26:25.590] info <- base::sprintf("%s: %s", base::names(info), [17:26:25.590] info) [17:26:25.590] info <- base::paste(info, collapse = "; ") [17:26:25.590] if (!has_future) { [17:26:25.590] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:25.590] info) [17:26:25.590] } [17:26:25.590] else { [17:26:25.590] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:25.590] info, version) [17:26:25.590] } [17:26:25.590] base::stop(msg) [17:26:25.590] } [17:26:25.590] }) [17:26:25.590] } [17:26:25.590] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:25.590] base::options(mc.cores = 1L) [17:26:25.590] } [17:26:25.590] ...future.strategy.old <- future::plan("list") [17:26:25.590] options(future.plan = NULL) [17:26:25.590] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.590] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:25.590] } [17:26:25.590] ...future.workdir <- getwd() [17:26:25.590] } [17:26:25.590] ...future.oldOptions <- base::as.list(base::.Options) [17:26:25.590] ...future.oldEnvVars <- base::Sys.getenv() [17:26:25.590] } [17:26:25.590] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:25.590] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:25.590] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:25.590] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:25.590] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:25.590] future.stdout.windows.reencode = NULL, width = 80L) [17:26:25.590] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:25.590] base::names(...future.oldOptions)) [17:26:25.590] } [17:26:25.590] if (FALSE) { [17:26:25.590] } [17:26:25.590] else { [17:26:25.590] if (TRUE) { [17:26:25.590] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:25.590] open = "w") [17:26:25.590] } [17:26:25.590] else { [17:26:25.590] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:25.590] windows = "NUL", "/dev/null"), open = "w") [17:26:25.590] } [17:26:25.590] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:25.590] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:25.590] base::sink(type = "output", split = FALSE) [17:26:25.590] base::close(...future.stdout) [17:26:25.590] }, add = TRUE) [17:26:25.590] } [17:26:25.590] ...future.frame <- base::sys.nframe() [17:26:25.590] ...future.conditions <- base::list() [17:26:25.590] ...future.rng <- base::globalenv()$.Random.seed [17:26:25.590] if (FALSE) { [17:26:25.590] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:25.590] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:25.590] } [17:26:25.590] ...future.result <- base::tryCatch({ [17:26:25.590] base::withCallingHandlers({ [17:26:25.590] ...future.value <- base::withVisible(base::local({ [17:26:25.590] ...future.makeSendCondition <- base::local({ [17:26:25.590] sendCondition <- NULL [17:26:25.590] function(frame = 1L) { [17:26:25.590] if (is.function(sendCondition)) [17:26:25.590] return(sendCondition) [17:26:25.590] ns <- getNamespace("parallel") [17:26:25.590] if (exists("sendData", mode = "function", [17:26:25.590] envir = ns)) { [17:26:25.590] parallel_sendData <- get("sendData", mode = "function", [17:26:25.590] envir = ns) [17:26:25.590] envir <- sys.frame(frame) [17:26:25.590] master <- NULL [17:26:25.590] while (!identical(envir, .GlobalEnv) && [17:26:25.590] !identical(envir, emptyenv())) { [17:26:25.590] if (exists("master", mode = "list", envir = envir, [17:26:25.590] inherits = FALSE)) { [17:26:25.590] master <- get("master", mode = "list", [17:26:25.590] envir = envir, inherits = FALSE) [17:26:25.590] if (inherits(master, c("SOCKnode", [17:26:25.590] "SOCK0node"))) { [17:26:25.590] sendCondition <<- function(cond) { [17:26:25.590] data <- list(type = "VALUE", value = cond, [17:26:25.590] success = TRUE) [17:26:25.590] parallel_sendData(master, data) [17:26:25.590] } [17:26:25.590] return(sendCondition) [17:26:25.590] } [17:26:25.590] } [17:26:25.590] frame <- frame + 1L [17:26:25.590] envir <- sys.frame(frame) [17:26:25.590] } [17:26:25.590] } [17:26:25.590] sendCondition <<- function(cond) NULL [17:26:25.590] } [17:26:25.590] }) [17:26:25.590] withCallingHandlers({ [17:26:25.590] fcn(x, y) [17:26:25.590] }, immediateCondition = function(cond) { [17:26:25.590] sendCondition <- ...future.makeSendCondition() [17:26:25.590] sendCondition(cond) [17:26:25.590] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.590] { [17:26:25.590] inherits <- base::inherits [17:26:25.590] invokeRestart <- base::invokeRestart [17:26:25.590] is.null <- base::is.null [17:26:25.590] muffled <- FALSE [17:26:25.590] if (inherits(cond, "message")) { [17:26:25.590] muffled <- grepl(pattern, "muffleMessage") [17:26:25.590] if (muffled) [17:26:25.590] invokeRestart("muffleMessage") [17:26:25.590] } [17:26:25.590] else if (inherits(cond, "warning")) { [17:26:25.590] muffled <- grepl(pattern, "muffleWarning") [17:26:25.590] if (muffled) [17:26:25.590] invokeRestart("muffleWarning") [17:26:25.590] } [17:26:25.590] else if (inherits(cond, "condition")) { [17:26:25.590] if (!is.null(pattern)) { [17:26:25.590] computeRestarts <- base::computeRestarts [17:26:25.590] grepl <- base::grepl [17:26:25.590] restarts <- computeRestarts(cond) [17:26:25.590] for (restart in restarts) { [17:26:25.590] name <- restart$name [17:26:25.590] if (is.null(name)) [17:26:25.590] next [17:26:25.590] if (!grepl(pattern, name)) [17:26:25.590] next [17:26:25.590] invokeRestart(restart) [17:26:25.590] muffled <- TRUE [17:26:25.590] break [17:26:25.590] } [17:26:25.590] } [17:26:25.590] } [17:26:25.590] invisible(muffled) [17:26:25.590] } [17:26:25.590] muffleCondition(cond) [17:26:25.590] }) [17:26:25.590] })) [17:26:25.590] future::FutureResult(value = ...future.value$value, [17:26:25.590] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.590] ...future.rng), globalenv = if (FALSE) [17:26:25.590] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:25.590] ...future.globalenv.names)) [17:26:25.590] else NULL, started = ...future.startTime, version = "1.8") [17:26:25.590] }, condition = base::local({ [17:26:25.590] c <- base::c [17:26:25.590] inherits <- base::inherits [17:26:25.590] invokeRestart <- base::invokeRestart [17:26:25.590] length <- base::length [17:26:25.590] list <- base::list [17:26:25.590] seq.int <- base::seq.int [17:26:25.590] signalCondition <- base::signalCondition [17:26:25.590] sys.calls <- base::sys.calls [17:26:25.590] `[[` <- base::`[[` [17:26:25.590] `+` <- base::`+` [17:26:25.590] `<<-` <- base::`<<-` [17:26:25.590] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:25.590] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:25.590] 3L)] [17:26:25.590] } [17:26:25.590] function(cond) { [17:26:25.590] is_error <- inherits(cond, "error") [17:26:25.590] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:25.590] NULL) [17:26:25.590] if (is_error) { [17:26:25.590] sessionInformation <- function() { [17:26:25.590] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:25.590] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:25.590] search = base::search(), system = base::Sys.info()) [17:26:25.590] } [17:26:25.590] ...future.conditions[[length(...future.conditions) + [17:26:25.590] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:25.590] cond$call), session = sessionInformation(), [17:26:25.590] timestamp = base::Sys.time(), signaled = 0L) [17:26:25.590] signalCondition(cond) [17:26:25.590] } [17:26:25.590] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:25.590] "immediateCondition"))) { [17:26:25.590] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:25.590] ...future.conditions[[length(...future.conditions) + [17:26:25.590] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:25.590] if (TRUE && !signal) { [17:26:25.590] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.590] { [17:26:25.590] inherits <- base::inherits [17:26:25.590] invokeRestart <- base::invokeRestart [17:26:25.590] is.null <- base::is.null [17:26:25.590] muffled <- FALSE [17:26:25.590] if (inherits(cond, "message")) { [17:26:25.590] muffled <- grepl(pattern, "muffleMessage") [17:26:25.590] if (muffled) [17:26:25.590] invokeRestart("muffleMessage") [17:26:25.590] } [17:26:25.590] else if (inherits(cond, "warning")) { [17:26:25.590] muffled <- grepl(pattern, "muffleWarning") [17:26:25.590] if (muffled) [17:26:25.590] invokeRestart("muffleWarning") [17:26:25.590] } [17:26:25.590] else if (inherits(cond, "condition")) { [17:26:25.590] if (!is.null(pattern)) { [17:26:25.590] computeRestarts <- base::computeRestarts [17:26:25.590] grepl <- base::grepl [17:26:25.590] restarts <- computeRestarts(cond) [17:26:25.590] for (restart in restarts) { [17:26:25.590] name <- restart$name [17:26:25.590] if (is.null(name)) [17:26:25.590] next [17:26:25.590] if (!grepl(pattern, name)) [17:26:25.590] next [17:26:25.590] invokeRestart(restart) [17:26:25.590] muffled <- TRUE [17:26:25.590] break [17:26:25.590] } [17:26:25.590] } [17:26:25.590] } [17:26:25.590] invisible(muffled) [17:26:25.590] } [17:26:25.590] muffleCondition(cond, pattern = "^muffle") [17:26:25.590] } [17:26:25.590] } [17:26:25.590] else { [17:26:25.590] if (TRUE) { [17:26:25.590] muffleCondition <- function (cond, pattern = "^muffle") [17:26:25.590] { [17:26:25.590] inherits <- base::inherits [17:26:25.590] invokeRestart <- base::invokeRestart [17:26:25.590] is.null <- base::is.null [17:26:25.590] muffled <- FALSE [17:26:25.590] if (inherits(cond, "message")) { [17:26:25.590] muffled <- grepl(pattern, "muffleMessage") [17:26:25.590] if (muffled) [17:26:25.590] invokeRestart("muffleMessage") [17:26:25.590] } [17:26:25.590] else if (inherits(cond, "warning")) { [17:26:25.590] muffled <- grepl(pattern, "muffleWarning") [17:26:25.590] if (muffled) [17:26:25.590] invokeRestart("muffleWarning") [17:26:25.590] } [17:26:25.590] else if (inherits(cond, "condition")) { [17:26:25.590] if (!is.null(pattern)) { [17:26:25.590] computeRestarts <- base::computeRestarts [17:26:25.590] grepl <- base::grepl [17:26:25.590] restarts <- computeRestarts(cond) [17:26:25.590] for (restart in restarts) { [17:26:25.590] name <- restart$name [17:26:25.590] if (is.null(name)) [17:26:25.590] next [17:26:25.590] if (!grepl(pattern, name)) [17:26:25.590] next [17:26:25.590] invokeRestart(restart) [17:26:25.590] muffled <- TRUE [17:26:25.590] break [17:26:25.590] } [17:26:25.590] } [17:26:25.590] } [17:26:25.590] invisible(muffled) [17:26:25.590] } [17:26:25.590] muffleCondition(cond, pattern = "^muffle") [17:26:25.590] } [17:26:25.590] } [17:26:25.590] } [17:26:25.590] })) [17:26:25.590] }, error = function(ex) { [17:26:25.590] base::structure(base::list(value = NULL, visible = NULL, [17:26:25.590] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:25.590] ...future.rng), started = ...future.startTime, [17:26:25.590] finished = Sys.time(), session_uuid = NA_character_, [17:26:25.590] version = "1.8"), class = "FutureResult") [17:26:25.590] }, finally = { [17:26:25.590] if (!identical(...future.workdir, getwd())) [17:26:25.590] setwd(...future.workdir) [17:26:25.590] { [17:26:25.590] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:25.590] ...future.oldOptions$nwarnings <- NULL [17:26:25.590] } [17:26:25.590] base::options(...future.oldOptions) [17:26:25.590] if (.Platform$OS.type == "windows") { [17:26:25.590] old_names <- names(...future.oldEnvVars) [17:26:25.590] envs <- base::Sys.getenv() [17:26:25.590] names <- names(envs) [17:26:25.590] common <- intersect(names, old_names) [17:26:25.590] added <- setdiff(names, old_names) [17:26:25.590] removed <- setdiff(old_names, names) [17:26:25.590] changed <- common[...future.oldEnvVars[common] != [17:26:25.590] envs[common]] [17:26:25.590] NAMES <- toupper(changed) [17:26:25.590] args <- list() [17:26:25.590] for (kk in seq_along(NAMES)) { [17:26:25.590] name <- changed[[kk]] [17:26:25.590] NAME <- NAMES[[kk]] [17:26:25.590] if (name != NAME && is.element(NAME, old_names)) [17:26:25.590] next [17:26:25.590] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.590] } [17:26:25.590] NAMES <- toupper(added) [17:26:25.590] for (kk in seq_along(NAMES)) { [17:26:25.590] name <- added[[kk]] [17:26:25.590] NAME <- NAMES[[kk]] [17:26:25.590] if (name != NAME && is.element(NAME, old_names)) [17:26:25.590] next [17:26:25.590] args[[name]] <- "" [17:26:25.590] } [17:26:25.590] NAMES <- toupper(removed) [17:26:25.590] for (kk in seq_along(NAMES)) { [17:26:25.590] name <- removed[[kk]] [17:26:25.590] NAME <- NAMES[[kk]] [17:26:25.590] if (name != NAME && is.element(NAME, old_names)) [17:26:25.590] next [17:26:25.590] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:25.590] } [17:26:25.590] if (length(args) > 0) [17:26:25.590] base::do.call(base::Sys.setenv, args = args) [17:26:25.590] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:25.590] } [17:26:25.590] else { [17:26:25.590] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:25.590] } [17:26:25.590] { [17:26:25.590] if (base::length(...future.futureOptionsAdded) > [17:26:25.590] 0L) { [17:26:25.590] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:25.590] base::names(opts) <- ...future.futureOptionsAdded [17:26:25.590] base::options(opts) [17:26:25.590] } [17:26:25.590] { [17:26:25.590] { [17:26:25.590] base::options(mc.cores = ...future.mc.cores.old) [17:26:25.590] NULL [17:26:25.590] } [17:26:25.590] options(future.plan = NULL) [17:26:25.590] if (is.na(NA_character_)) [17:26:25.590] Sys.unsetenv("R_FUTURE_PLAN") [17:26:25.590] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:25.590] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:25.590] .init = FALSE) [17:26:25.590] } [17:26:25.590] } [17:26:25.590] } [17:26:25.590] }) [17:26:25.590] if (TRUE) { [17:26:25.590] base::sink(type = "output", split = FALSE) [17:26:25.590] if (TRUE) { [17:26:25.590] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:25.590] } [17:26:25.590] else { [17:26:25.590] ...future.result["stdout"] <- base::list(NULL) [17:26:25.590] } [17:26:25.590] base::close(...future.stdout) [17:26:25.590] ...future.stdout <- NULL [17:26:25.590] } [17:26:25.590] ...future.result$conditions <- ...future.conditions [17:26:25.590] ...future.result$finished <- base::Sys.time() [17:26:25.590] ...future.result [17:26:25.590] } [17:26:25.595] Exporting 3 global objects (4.18 KiB) to cluster node #1 ... [17:26:25.595] Exporting 'fcn' (4.07 KiB) to cluster node #1 ... [17:26:25.595] Exporting 'fcn' (4.07 KiB) to cluster node #1 ... DONE [17:26:25.596] Exporting 'x' (56 bytes) to cluster node #1 ... [17:26:25.596] Exporting 'x' (56 bytes) to cluster node #1 ... DONE [17:26:25.596] Exporting 'y' (56 bytes) to cluster node #1 ... [17:26:25.596] Exporting 'y' (56 bytes) to cluster node #1 ... DONE [17:26:25.597] Exporting 3 global objects (4.18 KiB) to cluster node #1 ... DONE [17:26:25.597] MultisessionFuture started [17:26:25.597] - Launch lazy future ... done [17:26:25.598] run() for 'MultisessionFuture' ... done [17:26:25.598] result() for ClusterFuture ... [17:26:25.598] receiveMessageFromWorker() for ClusterFuture ... [17:26:25.598] - Validating connection of MultisessionFuture [17:26:25.612] - received message: FutureResult [17:26:25.612] - Received FutureResult [17:26:25.613] - Erased future from FutureRegistry [17:26:25.613] result() for ClusterFuture ... [17:26:25.613] - result already collected: FutureResult [17:26:25.613] result() for ClusterFuture ... done [17:26:25.613] receiveMessageFromWorker() for ClusterFuture ... done [17:26:25.613] result() for ClusterFuture ... done [17:26:25.614] result() for ClusterFuture ... [17:26:25.614] - result already collected: FutureResult [17:26:25.614] result() for ClusterFuture ... done [1] 6 Testing with 2 cores ... DONE > > message("*** Global argument '...' ... DONE") *** Global argument '...' ... DONE > > source("incl/end.R") [17:26:25.615] plan(): Setting new future strategy stack: [17:26:25.615] List of future strategies: [17:26:25.615] 1. FutureStrategy: [17:26:25.615] - args: function (..., envir = parent.frame(), workers = "") [17:26:25.615] - tweaked: FALSE [17:26:25.615] - call: future::plan(oplan) [17:26:25.616] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=204] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', 'RTOOLS44_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS44_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 0.81 0.07 1.57