R Under development (unstable) (2024-07-28 r86931 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [17:27:14.186] plan(): Setting new future strategy stack: [17:27:14.189] List of future strategies: [17:27:14.189] 1. sequential: [17:27:14.189] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.189] - tweaked: FALSE [17:27:14.189] - call: future::plan("sequential") [17:27:14.215] plan(): nbrOfWorkers() = 1 > > message("*** Futures - labels ...") *** Futures - labels ... > > strategies <- supportedStrategies() > > ## Speed up CRAN checks: Skip on CRAN Windows 32-bit > if (!fullTest && isWin32) strategies <- NULL > > for (strategy in strategies) { + message(sprintf("- plan('%s') ...", strategy)) + plan(strategy) + + for (label in list(NULL, sprintf("strategy = %s", strategy))) { + fcn <- get(strategy, mode = "function") + stopifnot(inherits(fcn, strategy)) + f <- fcn(42, label = label) + print(f) + stopifnot(identical(f$label, label)) + v <- value(f) + stopifnot(v == 42) + + f <- future(42, label = label) + print(f) + stopifnot(identical(f$label, label)) + v <- value(f) + stopifnot(v == 42) + + v %<-% { 42 } %label% label + f <- futureOf(v) + print(f) + stopifnot(identical(f$label, label)) + stopifnot(v == 42) + + } ## for (label ...) + + message(sprintf("- plan('%s') ... DONE", strategy)) + } ## for (strategy ...) - plan('sequential') ... [17:27:14.255] plan(): Setting new future strategy stack: [17:27:14.255] List of future strategies: [17:27:14.255] 1. sequential: [17:27:14.255] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.255] - tweaked: FALSE [17:27:14.255] - call: plan(strategy) [17:27:14.272] plan(): nbrOfWorkers() = 1 [17:27:14.273] getGlobalsAndPackages() ... [17:27:14.273] Searching for globals... [17:27:14.276] [17:27:14.276] Searching for globals ... DONE [17:27:14.276] - globals: [0] [17:27:14.277] getGlobalsAndPackages() ... DONE [17:27:14.278] Packages needed by the future expression (n = 0): [17:27:14.278] Packages needed by future strategies (n = 0): [17:27:14.279] { [17:27:14.279] { [17:27:14.279] { [17:27:14.279] ...future.startTime <- base::Sys.time() [17:27:14.279] { [17:27:14.279] { [17:27:14.279] { [17:27:14.279] base::local({ [17:27:14.279] has_future <- base::requireNamespace("future", [17:27:14.279] quietly = TRUE) [17:27:14.279] if (has_future) { [17:27:14.279] ns <- base::getNamespace("future") [17:27:14.279] version <- ns[[".package"]][["version"]] [17:27:14.279] if (is.null(version)) [17:27:14.279] version <- utils::packageVersion("future") [17:27:14.279] } [17:27:14.279] else { [17:27:14.279] version <- NULL [17:27:14.279] } [17:27:14.279] if (!has_future || version < "1.8.0") { [17:27:14.279] info <- base::c(r_version = base::gsub("R version ", [17:27:14.279] "", base::R.version$version.string), [17:27:14.279] platform = base::sprintf("%s (%s-bit)", [17:27:14.279] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:14.279] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:14.279] "release", "version")], collapse = " "), [17:27:14.279] hostname = base::Sys.info()[["nodename"]]) [17:27:14.279] info <- base::sprintf("%s: %s", base::names(info), [17:27:14.279] info) [17:27:14.279] info <- base::paste(info, collapse = "; ") [17:27:14.279] if (!has_future) { [17:27:14.279] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:14.279] info) [17:27:14.279] } [17:27:14.279] else { [17:27:14.279] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:14.279] info, version) [17:27:14.279] } [17:27:14.279] base::stop(msg) [17:27:14.279] } [17:27:14.279] }) [17:27:14.279] } [17:27:14.279] ...future.strategy.old <- future::plan("list") [17:27:14.279] options(future.plan = NULL) [17:27:14.279] Sys.unsetenv("R_FUTURE_PLAN") [17:27:14.279] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:14.279] } [17:27:14.279] ...future.workdir <- getwd() [17:27:14.279] } [17:27:14.279] ...future.oldOptions <- base::as.list(base::.Options) [17:27:14.279] ...future.oldEnvVars <- base::Sys.getenv() [17:27:14.279] } [17:27:14.279] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:14.279] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:14.279] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:14.279] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:14.279] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:14.279] future.stdout.windows.reencode = NULL, width = 80L) [17:27:14.279] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:14.279] base::names(...future.oldOptions)) [17:27:14.279] } [17:27:14.279] if (FALSE) { [17:27:14.279] } [17:27:14.279] else { [17:27:14.279] if (TRUE) { [17:27:14.279] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:14.279] open = "w") [17:27:14.279] } [17:27:14.279] else { [17:27:14.279] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:14.279] windows = "NUL", "/dev/null"), open = "w") [17:27:14.279] } [17:27:14.279] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:14.279] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:14.279] base::sink(type = "output", split = FALSE) [17:27:14.279] base::close(...future.stdout) [17:27:14.279] }, add = TRUE) [17:27:14.279] } [17:27:14.279] ...future.frame <- base::sys.nframe() [17:27:14.279] ...future.conditions <- base::list() [17:27:14.279] ...future.rng <- base::globalenv()$.Random.seed [17:27:14.279] if (FALSE) { [17:27:14.279] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:14.279] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:14.279] } [17:27:14.279] ...future.result <- base::tryCatch({ [17:27:14.279] base::withCallingHandlers({ [17:27:14.279] ...future.value <- base::withVisible(base::local(42)) [17:27:14.279] future::FutureResult(value = ...future.value$value, [17:27:14.279] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:14.279] ...future.rng), globalenv = if (FALSE) [17:27:14.279] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:14.279] ...future.globalenv.names)) [17:27:14.279] else NULL, started = ...future.startTime, version = "1.8") [17:27:14.279] }, condition = base::local({ [17:27:14.279] c <- base::c [17:27:14.279] inherits <- base::inherits [17:27:14.279] invokeRestart <- base::invokeRestart [17:27:14.279] length <- base::length [17:27:14.279] list <- base::list [17:27:14.279] seq.int <- base::seq.int [17:27:14.279] signalCondition <- base::signalCondition [17:27:14.279] sys.calls <- base::sys.calls [17:27:14.279] `[[` <- base::`[[` [17:27:14.279] `+` <- base::`+` [17:27:14.279] `<<-` <- base::`<<-` [17:27:14.279] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:14.279] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:14.279] 3L)] [17:27:14.279] } [17:27:14.279] function(cond) { [17:27:14.279] is_error <- inherits(cond, "error") [17:27:14.279] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:14.279] NULL) [17:27:14.279] if (is_error) { [17:27:14.279] sessionInformation <- function() { [17:27:14.279] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:14.279] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:14.279] search = base::search(), system = base::Sys.info()) [17:27:14.279] } [17:27:14.279] ...future.conditions[[length(...future.conditions) + [17:27:14.279] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:14.279] cond$call), session = sessionInformation(), [17:27:14.279] timestamp = base::Sys.time(), signaled = 0L) [17:27:14.279] signalCondition(cond) [17:27:14.279] } [17:27:14.279] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:14.279] "immediateCondition"))) { [17:27:14.279] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:14.279] ...future.conditions[[length(...future.conditions) + [17:27:14.279] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:14.279] if (TRUE && !signal) { [17:27:14.279] muffleCondition <- function (cond, pattern = "^muffle") [17:27:14.279] { [17:27:14.279] inherits <- base::inherits [17:27:14.279] invokeRestart <- base::invokeRestart [17:27:14.279] is.null <- base::is.null [17:27:14.279] muffled <- FALSE [17:27:14.279] if (inherits(cond, "message")) { [17:27:14.279] muffled <- grepl(pattern, "muffleMessage") [17:27:14.279] if (muffled) [17:27:14.279] invokeRestart("muffleMessage") [17:27:14.279] } [17:27:14.279] else if (inherits(cond, "warning")) { [17:27:14.279] muffled <- grepl(pattern, "muffleWarning") [17:27:14.279] if (muffled) [17:27:14.279] invokeRestart("muffleWarning") [17:27:14.279] } [17:27:14.279] else if (inherits(cond, "condition")) { [17:27:14.279] if (!is.null(pattern)) { [17:27:14.279] computeRestarts <- base::computeRestarts [17:27:14.279] grepl <- base::grepl [17:27:14.279] restarts <- computeRestarts(cond) [17:27:14.279] for (restart in restarts) { [17:27:14.279] name <- restart$name [17:27:14.279] if (is.null(name)) [17:27:14.279] next [17:27:14.279] if (!grepl(pattern, name)) [17:27:14.279] next [17:27:14.279] invokeRestart(restart) [17:27:14.279] muffled <- TRUE [17:27:14.279] break [17:27:14.279] } [17:27:14.279] } [17:27:14.279] } [17:27:14.279] invisible(muffled) [17:27:14.279] } [17:27:14.279] muffleCondition(cond, pattern = "^muffle") [17:27:14.279] } [17:27:14.279] } [17:27:14.279] else { [17:27:14.279] if (TRUE) { [17:27:14.279] muffleCondition <- function (cond, pattern = "^muffle") [17:27:14.279] { [17:27:14.279] inherits <- base::inherits [17:27:14.279] invokeRestart <- base::invokeRestart [17:27:14.279] is.null <- base::is.null [17:27:14.279] muffled <- FALSE [17:27:14.279] if (inherits(cond, "message")) { [17:27:14.279] muffled <- grepl(pattern, "muffleMessage") [17:27:14.279] if (muffled) [17:27:14.279] invokeRestart("muffleMessage") [17:27:14.279] } [17:27:14.279] else if (inherits(cond, "warning")) { [17:27:14.279] muffled <- grepl(pattern, "muffleWarning") [17:27:14.279] if (muffled) [17:27:14.279] invokeRestart("muffleWarning") [17:27:14.279] } [17:27:14.279] else if (inherits(cond, "condition")) { [17:27:14.279] if (!is.null(pattern)) { [17:27:14.279] computeRestarts <- base::computeRestarts [17:27:14.279] grepl <- base::grepl [17:27:14.279] restarts <- computeRestarts(cond) [17:27:14.279] for (restart in restarts) { [17:27:14.279] name <- restart$name [17:27:14.279] if (is.null(name)) [17:27:14.279] next [17:27:14.279] if (!grepl(pattern, name)) [17:27:14.279] next [17:27:14.279] invokeRestart(restart) [17:27:14.279] muffled <- TRUE [17:27:14.279] break [17:27:14.279] } [17:27:14.279] } [17:27:14.279] } [17:27:14.279] invisible(muffled) [17:27:14.279] } [17:27:14.279] muffleCondition(cond, pattern = "^muffle") [17:27:14.279] } [17:27:14.279] } [17:27:14.279] } [17:27:14.279] })) [17:27:14.279] }, error = function(ex) { [17:27:14.279] base::structure(base::list(value = NULL, visible = NULL, [17:27:14.279] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:14.279] ...future.rng), started = ...future.startTime, [17:27:14.279] finished = Sys.time(), session_uuid = NA_character_, [17:27:14.279] version = "1.8"), class = "FutureResult") [17:27:14.279] }, finally = { [17:27:14.279] if (!identical(...future.workdir, getwd())) [17:27:14.279] setwd(...future.workdir) [17:27:14.279] { [17:27:14.279] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:14.279] ...future.oldOptions$nwarnings <- NULL [17:27:14.279] } [17:27:14.279] base::options(...future.oldOptions) [17:27:14.279] if (.Platform$OS.type == "windows") { [17:27:14.279] old_names <- names(...future.oldEnvVars) [17:27:14.279] envs <- base::Sys.getenv() [17:27:14.279] names <- names(envs) [17:27:14.279] common <- intersect(names, old_names) [17:27:14.279] added <- setdiff(names, old_names) [17:27:14.279] removed <- setdiff(old_names, names) [17:27:14.279] changed <- common[...future.oldEnvVars[common] != [17:27:14.279] envs[common]] [17:27:14.279] NAMES <- toupper(changed) [17:27:14.279] args <- list() [17:27:14.279] for (kk in seq_along(NAMES)) { [17:27:14.279] name <- changed[[kk]] [17:27:14.279] NAME <- NAMES[[kk]] [17:27:14.279] if (name != NAME && is.element(NAME, old_names)) [17:27:14.279] next [17:27:14.279] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:14.279] } [17:27:14.279] NAMES <- toupper(added) [17:27:14.279] for (kk in seq_along(NAMES)) { [17:27:14.279] name <- added[[kk]] [17:27:14.279] NAME <- NAMES[[kk]] [17:27:14.279] if (name != NAME && is.element(NAME, old_names)) [17:27:14.279] next [17:27:14.279] args[[name]] <- "" [17:27:14.279] } [17:27:14.279] NAMES <- toupper(removed) [17:27:14.279] for (kk in seq_along(NAMES)) { [17:27:14.279] name <- removed[[kk]] [17:27:14.279] NAME <- NAMES[[kk]] [17:27:14.279] if (name != NAME && is.element(NAME, old_names)) [17:27:14.279] next [17:27:14.279] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:14.279] } [17:27:14.279] if (length(args) > 0) [17:27:14.279] base::do.call(base::Sys.setenv, args = args) [17:27:14.279] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:14.279] } [17:27:14.279] else { [17:27:14.279] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:14.279] } [17:27:14.279] { [17:27:14.279] if (base::length(...future.futureOptionsAdded) > [17:27:14.279] 0L) { [17:27:14.279] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:14.279] base::names(opts) <- ...future.futureOptionsAdded [17:27:14.279] base::options(opts) [17:27:14.279] } [17:27:14.279] { [17:27:14.279] { [17:27:14.279] NULL [17:27:14.279] RNGkind("Mersenne-Twister") [17:27:14.279] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:14.279] inherits = FALSE) [17:27:14.279] } [17:27:14.279] options(future.plan = NULL) [17:27:14.279] if (is.na(NA_character_)) [17:27:14.279] Sys.unsetenv("R_FUTURE_PLAN") [17:27:14.279] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:14.279] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:14.279] .init = FALSE) [17:27:14.279] } [17:27:14.279] } [17:27:14.279] } [17:27:14.279] }) [17:27:14.279] if (TRUE) { [17:27:14.279] base::sink(type = "output", split = FALSE) [17:27:14.279] if (TRUE) { [17:27:14.279] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:14.279] } [17:27:14.279] else { [17:27:14.279] ...future.result["stdout"] <- base::list(NULL) [17:27:14.279] } [17:27:14.279] base::close(...future.stdout) [17:27:14.279] ...future.stdout <- NULL [17:27:14.279] } [17:27:14.279] ...future.result$conditions <- ...future.conditions [17:27:14.279] ...future.result$finished <- base::Sys.time() [17:27:14.279] ...future.result [17:27:14.279] } [17:27:14.285] plan(): Setting new future strategy stack: [17:27:14.285] List of future strategies: [17:27:14.285] 1. sequential: [17:27:14.285] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.285] - tweaked: FALSE [17:27:14.285] - call: NULL [17:27:14.291] plan(): nbrOfWorkers() = 1 [17:27:14.294] plan(): Setting new future strategy stack: [17:27:14.294] List of future strategies: [17:27:14.294] 1. sequential: [17:27:14.294] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.294] - tweaked: FALSE [17:27:14.294] - call: plan(strategy) [17:27:14.295] plan(): nbrOfWorkers() = 1 [17:27:14.296] SequentialFuture started (and completed) SequentialFuture: Label: '' Expression: [1] 42 Lazy evaluation: FALSE Asynchronous evaluation: FALSE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 39 bytes of class 'numeric' Early signaling: FALSE Owner process: 14db7dea-610a-8c8e-4c3b-ee2b7209ff96 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:14.299] getGlobalsAndPackages() ... [17:27:14.299] Searching for globals... [17:27:14.300] [17:27:14.300] Searching for globals ... DONE [17:27:14.300] - globals: [0] [17:27:14.301] getGlobalsAndPackages() ... DONE [17:27:14.301] run() for 'Future' ... [17:27:14.302] - state: 'created' [17:27:14.302] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:27:14.303] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:14.303] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:27:14.303] - Field: 'label' [17:27:14.304] - Field: 'local' [17:27:14.304] - Field: 'owner' [17:27:14.304] - Field: 'envir' [17:27:14.304] - Field: 'packages' [17:27:14.305] - Field: 'gc' [17:27:14.305] - Field: 'conditions' [17:27:14.305] - Field: 'expr' [17:27:14.306] - Field: 'uuid' [17:27:14.306] - Field: 'seed' [17:27:14.306] - Field: 'version' [17:27:14.306] - Field: 'result' [17:27:14.307] - Field: 'asynchronous' [17:27:14.307] - Field: 'calls' [17:27:14.307] - Field: 'globals' [17:27:14.307] - Field: 'stdout' [17:27:14.308] - Field: 'earlySignal' [17:27:14.308] - Field: 'lazy' [17:27:14.308] - Field: 'state' [17:27:14.309] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:27:14.309] - Launch lazy future ... [17:27:14.309] Packages needed by the future expression (n = 0): [17:27:14.310] Packages needed by future strategies (n = 0): [17:27:14.311] { [17:27:14.311] { [17:27:14.311] { [17:27:14.311] ...future.startTime <- base::Sys.time() [17:27:14.311] { [17:27:14.311] { [17:27:14.311] { [17:27:14.311] base::local({ [17:27:14.311] has_future <- base::requireNamespace("future", [17:27:14.311] quietly = TRUE) [17:27:14.311] if (has_future) { [17:27:14.311] ns <- base::getNamespace("future") [17:27:14.311] version <- ns[[".package"]][["version"]] [17:27:14.311] if (is.null(version)) [17:27:14.311] version <- utils::packageVersion("future") [17:27:14.311] } [17:27:14.311] else { [17:27:14.311] version <- NULL [17:27:14.311] } [17:27:14.311] if (!has_future || version < "1.8.0") { [17:27:14.311] info <- base::c(r_version = base::gsub("R version ", [17:27:14.311] "", base::R.version$version.string), [17:27:14.311] platform = base::sprintf("%s (%s-bit)", [17:27:14.311] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:14.311] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:14.311] "release", "version")], collapse = " "), [17:27:14.311] hostname = base::Sys.info()[["nodename"]]) [17:27:14.311] info <- base::sprintf("%s: %s", base::names(info), [17:27:14.311] info) [17:27:14.311] info <- base::paste(info, collapse = "; ") [17:27:14.311] if (!has_future) { [17:27:14.311] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:14.311] info) [17:27:14.311] } [17:27:14.311] else { [17:27:14.311] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:14.311] info, version) [17:27:14.311] } [17:27:14.311] base::stop(msg) [17:27:14.311] } [17:27:14.311] }) [17:27:14.311] } [17:27:14.311] ...future.strategy.old <- future::plan("list") [17:27:14.311] options(future.plan = NULL) [17:27:14.311] Sys.unsetenv("R_FUTURE_PLAN") [17:27:14.311] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:14.311] } [17:27:14.311] ...future.workdir <- getwd() [17:27:14.311] } [17:27:14.311] ...future.oldOptions <- base::as.list(base::.Options) [17:27:14.311] ...future.oldEnvVars <- base::Sys.getenv() [17:27:14.311] } [17:27:14.311] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:14.311] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:14.311] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:14.311] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:14.311] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:14.311] future.stdout.windows.reencode = NULL, width = 80L) [17:27:14.311] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:14.311] base::names(...future.oldOptions)) [17:27:14.311] } [17:27:14.311] if (FALSE) { [17:27:14.311] } [17:27:14.311] else { [17:27:14.311] if (TRUE) { [17:27:14.311] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:14.311] open = "w") [17:27:14.311] } [17:27:14.311] else { [17:27:14.311] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:14.311] windows = "NUL", "/dev/null"), open = "w") [17:27:14.311] } [17:27:14.311] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:14.311] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:14.311] base::sink(type = "output", split = FALSE) [17:27:14.311] base::close(...future.stdout) [17:27:14.311] }, add = TRUE) [17:27:14.311] } [17:27:14.311] ...future.frame <- base::sys.nframe() [17:27:14.311] ...future.conditions <- base::list() [17:27:14.311] ...future.rng <- base::globalenv()$.Random.seed [17:27:14.311] if (FALSE) { [17:27:14.311] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:14.311] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:14.311] } [17:27:14.311] ...future.result <- base::tryCatch({ [17:27:14.311] base::withCallingHandlers({ [17:27:14.311] ...future.value <- base::withVisible(base::local(42)) [17:27:14.311] future::FutureResult(value = ...future.value$value, [17:27:14.311] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:14.311] ...future.rng), globalenv = if (FALSE) [17:27:14.311] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:14.311] ...future.globalenv.names)) [17:27:14.311] else NULL, started = ...future.startTime, version = "1.8") [17:27:14.311] }, condition = base::local({ [17:27:14.311] c <- base::c [17:27:14.311] inherits <- base::inherits [17:27:14.311] invokeRestart <- base::invokeRestart [17:27:14.311] length <- base::length [17:27:14.311] list <- base::list [17:27:14.311] seq.int <- base::seq.int [17:27:14.311] signalCondition <- base::signalCondition [17:27:14.311] sys.calls <- base::sys.calls [17:27:14.311] `[[` <- base::`[[` [17:27:14.311] `+` <- base::`+` [17:27:14.311] `<<-` <- base::`<<-` [17:27:14.311] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:14.311] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:14.311] 3L)] [17:27:14.311] } [17:27:14.311] function(cond) { [17:27:14.311] is_error <- inherits(cond, "error") [17:27:14.311] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:14.311] NULL) [17:27:14.311] if (is_error) { [17:27:14.311] sessionInformation <- function() { [17:27:14.311] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:14.311] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:14.311] search = base::search(), system = base::Sys.info()) [17:27:14.311] } [17:27:14.311] ...future.conditions[[length(...future.conditions) + [17:27:14.311] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:14.311] cond$call), session = sessionInformation(), [17:27:14.311] timestamp = base::Sys.time(), signaled = 0L) [17:27:14.311] signalCondition(cond) [17:27:14.311] } [17:27:14.311] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:14.311] "immediateCondition"))) { [17:27:14.311] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:14.311] ...future.conditions[[length(...future.conditions) + [17:27:14.311] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:14.311] if (TRUE && !signal) { [17:27:14.311] muffleCondition <- function (cond, pattern = "^muffle") [17:27:14.311] { [17:27:14.311] inherits <- base::inherits [17:27:14.311] invokeRestart <- base::invokeRestart [17:27:14.311] is.null <- base::is.null [17:27:14.311] muffled <- FALSE [17:27:14.311] if (inherits(cond, "message")) { [17:27:14.311] muffled <- grepl(pattern, "muffleMessage") [17:27:14.311] if (muffled) [17:27:14.311] invokeRestart("muffleMessage") [17:27:14.311] } [17:27:14.311] else if (inherits(cond, "warning")) { [17:27:14.311] muffled <- grepl(pattern, "muffleWarning") [17:27:14.311] if (muffled) [17:27:14.311] invokeRestart("muffleWarning") [17:27:14.311] } [17:27:14.311] else if (inherits(cond, "condition")) { [17:27:14.311] if (!is.null(pattern)) { [17:27:14.311] computeRestarts <- base::computeRestarts [17:27:14.311] grepl <- base::grepl [17:27:14.311] restarts <- computeRestarts(cond) [17:27:14.311] for (restart in restarts) { [17:27:14.311] name <- restart$name [17:27:14.311] if (is.null(name)) [17:27:14.311] next [17:27:14.311] if (!grepl(pattern, name)) [17:27:14.311] next [17:27:14.311] invokeRestart(restart) [17:27:14.311] muffled <- TRUE [17:27:14.311] break [17:27:14.311] } [17:27:14.311] } [17:27:14.311] } [17:27:14.311] invisible(muffled) [17:27:14.311] } [17:27:14.311] muffleCondition(cond, pattern = "^muffle") [17:27:14.311] } [17:27:14.311] } [17:27:14.311] else { [17:27:14.311] if (TRUE) { [17:27:14.311] muffleCondition <- function (cond, pattern = "^muffle") [17:27:14.311] { [17:27:14.311] inherits <- base::inherits [17:27:14.311] invokeRestart <- base::invokeRestart [17:27:14.311] is.null <- base::is.null [17:27:14.311] muffled <- FALSE [17:27:14.311] if (inherits(cond, "message")) { [17:27:14.311] muffled <- grepl(pattern, "muffleMessage") [17:27:14.311] if (muffled) [17:27:14.311] invokeRestart("muffleMessage") [17:27:14.311] } [17:27:14.311] else if (inherits(cond, "warning")) { [17:27:14.311] muffled <- grepl(pattern, "muffleWarning") [17:27:14.311] if (muffled) [17:27:14.311] invokeRestart("muffleWarning") [17:27:14.311] } [17:27:14.311] else if (inherits(cond, "condition")) { [17:27:14.311] if (!is.null(pattern)) { [17:27:14.311] computeRestarts <- base::computeRestarts [17:27:14.311] grepl <- base::grepl [17:27:14.311] restarts <- computeRestarts(cond) [17:27:14.311] for (restart in restarts) { [17:27:14.311] name <- restart$name [17:27:14.311] if (is.null(name)) [17:27:14.311] next [17:27:14.311] if (!grepl(pattern, name)) [17:27:14.311] next [17:27:14.311] invokeRestart(restart) [17:27:14.311] muffled <- TRUE [17:27:14.311] break [17:27:14.311] } [17:27:14.311] } [17:27:14.311] } [17:27:14.311] invisible(muffled) [17:27:14.311] } [17:27:14.311] muffleCondition(cond, pattern = "^muffle") [17:27:14.311] } [17:27:14.311] } [17:27:14.311] } [17:27:14.311] })) [17:27:14.311] }, error = function(ex) { [17:27:14.311] base::structure(base::list(value = NULL, visible = NULL, [17:27:14.311] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:14.311] ...future.rng), started = ...future.startTime, [17:27:14.311] finished = Sys.time(), session_uuid = NA_character_, [17:27:14.311] version = "1.8"), class = "FutureResult") [17:27:14.311] }, finally = { [17:27:14.311] if (!identical(...future.workdir, getwd())) [17:27:14.311] setwd(...future.workdir) [17:27:14.311] { [17:27:14.311] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:14.311] ...future.oldOptions$nwarnings <- NULL [17:27:14.311] } [17:27:14.311] base::options(...future.oldOptions) [17:27:14.311] if (.Platform$OS.type == "windows") { [17:27:14.311] old_names <- names(...future.oldEnvVars) [17:27:14.311] envs <- base::Sys.getenv() [17:27:14.311] names <- names(envs) [17:27:14.311] common <- intersect(names, old_names) [17:27:14.311] added <- setdiff(names, old_names) [17:27:14.311] removed <- setdiff(old_names, names) [17:27:14.311] changed <- common[...future.oldEnvVars[common] != [17:27:14.311] envs[common]] [17:27:14.311] NAMES <- toupper(changed) [17:27:14.311] args <- list() [17:27:14.311] for (kk in seq_along(NAMES)) { [17:27:14.311] name <- changed[[kk]] [17:27:14.311] NAME <- NAMES[[kk]] [17:27:14.311] if (name != NAME && is.element(NAME, old_names)) [17:27:14.311] next [17:27:14.311] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:14.311] } [17:27:14.311] NAMES <- toupper(added) [17:27:14.311] for (kk in seq_along(NAMES)) { [17:27:14.311] name <- added[[kk]] [17:27:14.311] NAME <- NAMES[[kk]] [17:27:14.311] if (name != NAME && is.element(NAME, old_names)) [17:27:14.311] next [17:27:14.311] args[[name]] <- "" [17:27:14.311] } [17:27:14.311] NAMES <- toupper(removed) [17:27:14.311] for (kk in seq_along(NAMES)) { [17:27:14.311] name <- removed[[kk]] [17:27:14.311] NAME <- NAMES[[kk]] [17:27:14.311] if (name != NAME && is.element(NAME, old_names)) [17:27:14.311] next [17:27:14.311] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:14.311] } [17:27:14.311] if (length(args) > 0) [17:27:14.311] base::do.call(base::Sys.setenv, args = args) [17:27:14.311] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:14.311] } [17:27:14.311] else { [17:27:14.311] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:14.311] } [17:27:14.311] { [17:27:14.311] if (base::length(...future.futureOptionsAdded) > [17:27:14.311] 0L) { [17:27:14.311] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:14.311] base::names(opts) <- ...future.futureOptionsAdded [17:27:14.311] base::options(opts) [17:27:14.311] } [17:27:14.311] { [17:27:14.311] { [17:27:14.311] NULL [17:27:14.311] RNGkind("Mersenne-Twister") [17:27:14.311] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:14.311] inherits = FALSE) [17:27:14.311] } [17:27:14.311] options(future.plan = NULL) [17:27:14.311] if (is.na(NA_character_)) [17:27:14.311] Sys.unsetenv("R_FUTURE_PLAN") [17:27:14.311] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:14.311] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:14.311] .init = FALSE) [17:27:14.311] } [17:27:14.311] } [17:27:14.311] } [17:27:14.311] }) [17:27:14.311] if (TRUE) { [17:27:14.311] base::sink(type = "output", split = FALSE) [17:27:14.311] if (TRUE) { [17:27:14.311] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:14.311] } [17:27:14.311] else { [17:27:14.311] ...future.result["stdout"] <- base::list(NULL) [17:27:14.311] } [17:27:14.311] base::close(...future.stdout) [17:27:14.311] ...future.stdout <- NULL [17:27:14.311] } [17:27:14.311] ...future.result$conditions <- ...future.conditions [17:27:14.311] ...future.result$finished <- base::Sys.time() [17:27:14.311] ...future.result [17:27:14.311] } [17:27:14.317] plan(): Setting new future strategy stack: [17:27:14.317] List of future strategies: [17:27:14.317] 1. sequential: [17:27:14.317] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.317] - tweaked: FALSE [17:27:14.317] - call: NULL [17:27:14.318] plan(): nbrOfWorkers() = 1 [17:27:14.321] plan(): Setting new future strategy stack: [17:27:14.321] List of future strategies: [17:27:14.321] 1. sequential: [17:27:14.321] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.321] - tweaked: FALSE [17:27:14.321] - call: plan(strategy) [17:27:14.322] plan(): nbrOfWorkers() = 1 [17:27:14.322] SequentialFuture started (and completed) [17:27:14.323] - Launch lazy future ... done [17:27:14.323] run() for 'SequentialFuture' ... done SequentialFuture: Label: '' Expression: [1] 42 Lazy evaluation: FALSE Asynchronous evaluation: FALSE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 39 bytes of class 'numeric' Early signaling: FALSE Owner process: 14db7dea-610a-8c8e-4c3b-ee2b7209ff96 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:14.326] getGlobalsAndPackages() ... [17:27:14.326] Searching for globals... [17:27:14.329] - globals found: [1] '{' [17:27:14.329] Searching for globals ... DONE [17:27:14.330] Resolving globals: FALSE [17:27:14.331] [17:27:14.331] [17:27:14.331] getGlobalsAndPackages() ... DONE [17:27:14.332] run() for 'Future' ... [17:27:14.332] - state: 'created' [17:27:14.333] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:27:14.333] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:14.334] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:27:14.334] - Field: 'label' [17:27:14.334] - Field: 'local' [17:27:14.335] - Field: 'owner' [17:27:14.335] - Field: 'envir' [17:27:14.335] - Field: 'packages' [17:27:14.335] - Field: 'gc' [17:27:14.336] - Field: 'conditions' [17:27:14.336] - Field: 'expr' [17:27:14.336] - Field: 'uuid' [17:27:14.337] - Field: 'seed' [17:27:14.337] - Field: 'version' [17:27:14.337] - Field: 'result' [17:27:14.338] - Field: 'asynchronous' [17:27:14.338] - Field: 'calls' [17:27:14.338] - Field: 'globals' [17:27:14.339] - Field: 'stdout' [17:27:14.339] - Field: 'earlySignal' [17:27:14.339] - Field: 'lazy' [17:27:14.340] - Field: 'state' [17:27:14.340] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:27:14.340] - Launch lazy future ... [17:27:14.341] Packages needed by the future expression (n = 0): [17:27:14.341] Packages needed by future strategies (n = 0): [17:27:14.342] { [17:27:14.342] { [17:27:14.342] { [17:27:14.342] ...future.startTime <- base::Sys.time() [17:27:14.342] { [17:27:14.342] { [17:27:14.342] { [17:27:14.342] base::local({ [17:27:14.342] has_future <- base::requireNamespace("future", [17:27:14.342] quietly = TRUE) [17:27:14.342] if (has_future) { [17:27:14.342] ns <- base::getNamespace("future") [17:27:14.342] version <- ns[[".package"]][["version"]] [17:27:14.342] if (is.null(version)) [17:27:14.342] version <- utils::packageVersion("future") [17:27:14.342] } [17:27:14.342] else { [17:27:14.342] version <- NULL [17:27:14.342] } [17:27:14.342] if (!has_future || version < "1.8.0") { [17:27:14.342] info <- base::c(r_version = base::gsub("R version ", [17:27:14.342] "", base::R.version$version.string), [17:27:14.342] platform = base::sprintf("%s (%s-bit)", [17:27:14.342] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:14.342] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:14.342] "release", "version")], collapse = " "), [17:27:14.342] hostname = base::Sys.info()[["nodename"]]) [17:27:14.342] info <- base::sprintf("%s: %s", base::names(info), [17:27:14.342] info) [17:27:14.342] info <- base::paste(info, collapse = "; ") [17:27:14.342] if (!has_future) { [17:27:14.342] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:14.342] info) [17:27:14.342] } [17:27:14.342] else { [17:27:14.342] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:14.342] info, version) [17:27:14.342] } [17:27:14.342] base::stop(msg) [17:27:14.342] } [17:27:14.342] }) [17:27:14.342] } [17:27:14.342] ...future.strategy.old <- future::plan("list") [17:27:14.342] options(future.plan = NULL) [17:27:14.342] Sys.unsetenv("R_FUTURE_PLAN") [17:27:14.342] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:14.342] } [17:27:14.342] ...future.workdir <- getwd() [17:27:14.342] } [17:27:14.342] ...future.oldOptions <- base::as.list(base::.Options) [17:27:14.342] ...future.oldEnvVars <- base::Sys.getenv() [17:27:14.342] } [17:27:14.342] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:14.342] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:14.342] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:14.342] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:14.342] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:14.342] future.stdout.windows.reencode = NULL, width = 80L) [17:27:14.342] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:14.342] base::names(...future.oldOptions)) [17:27:14.342] } [17:27:14.342] if (FALSE) { [17:27:14.342] } [17:27:14.342] else { [17:27:14.342] if (TRUE) { [17:27:14.342] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:14.342] open = "w") [17:27:14.342] } [17:27:14.342] else { [17:27:14.342] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:14.342] windows = "NUL", "/dev/null"), open = "w") [17:27:14.342] } [17:27:14.342] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:14.342] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:14.342] base::sink(type = "output", split = FALSE) [17:27:14.342] base::close(...future.stdout) [17:27:14.342] }, add = TRUE) [17:27:14.342] } [17:27:14.342] ...future.frame <- base::sys.nframe() [17:27:14.342] ...future.conditions <- base::list() [17:27:14.342] ...future.rng <- base::globalenv()$.Random.seed [17:27:14.342] if (FALSE) { [17:27:14.342] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:14.342] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:14.342] } [17:27:14.342] ...future.result <- base::tryCatch({ [17:27:14.342] base::withCallingHandlers({ [17:27:14.342] ...future.value <- base::withVisible(base::local({ [17:27:14.342] 42 [17:27:14.342] })) [17:27:14.342] future::FutureResult(value = ...future.value$value, [17:27:14.342] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:14.342] ...future.rng), globalenv = if (FALSE) [17:27:14.342] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:14.342] ...future.globalenv.names)) [17:27:14.342] else NULL, started = ...future.startTime, version = "1.8") [17:27:14.342] }, condition = base::local({ [17:27:14.342] c <- base::c [17:27:14.342] inherits <- base::inherits [17:27:14.342] invokeRestart <- base::invokeRestart [17:27:14.342] length <- base::length [17:27:14.342] list <- base::list [17:27:14.342] seq.int <- base::seq.int [17:27:14.342] signalCondition <- base::signalCondition [17:27:14.342] sys.calls <- base::sys.calls [17:27:14.342] `[[` <- base::`[[` [17:27:14.342] `+` <- base::`+` [17:27:14.342] `<<-` <- base::`<<-` [17:27:14.342] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:14.342] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:14.342] 3L)] [17:27:14.342] } [17:27:14.342] function(cond) { [17:27:14.342] is_error <- inherits(cond, "error") [17:27:14.342] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:14.342] NULL) [17:27:14.342] if (is_error) { [17:27:14.342] sessionInformation <- function() { [17:27:14.342] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:14.342] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:14.342] search = base::search(), system = base::Sys.info()) [17:27:14.342] } [17:27:14.342] ...future.conditions[[length(...future.conditions) + [17:27:14.342] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:14.342] cond$call), session = sessionInformation(), [17:27:14.342] timestamp = base::Sys.time(), signaled = 0L) [17:27:14.342] signalCondition(cond) [17:27:14.342] } [17:27:14.342] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:14.342] "immediateCondition"))) { [17:27:14.342] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:14.342] ...future.conditions[[length(...future.conditions) + [17:27:14.342] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:14.342] if (TRUE && !signal) { [17:27:14.342] muffleCondition <- function (cond, pattern = "^muffle") [17:27:14.342] { [17:27:14.342] inherits <- base::inherits [17:27:14.342] invokeRestart <- base::invokeRestart [17:27:14.342] is.null <- base::is.null [17:27:14.342] muffled <- FALSE [17:27:14.342] if (inherits(cond, "message")) { [17:27:14.342] muffled <- grepl(pattern, "muffleMessage") [17:27:14.342] if (muffled) [17:27:14.342] invokeRestart("muffleMessage") [17:27:14.342] } [17:27:14.342] else if (inherits(cond, "warning")) { [17:27:14.342] muffled <- grepl(pattern, "muffleWarning") [17:27:14.342] if (muffled) [17:27:14.342] invokeRestart("muffleWarning") [17:27:14.342] } [17:27:14.342] else if (inherits(cond, "condition")) { [17:27:14.342] if (!is.null(pattern)) { [17:27:14.342] computeRestarts <- base::computeRestarts [17:27:14.342] grepl <- base::grepl [17:27:14.342] restarts <- computeRestarts(cond) [17:27:14.342] for (restart in restarts) { [17:27:14.342] name <- restart$name [17:27:14.342] if (is.null(name)) [17:27:14.342] next [17:27:14.342] if (!grepl(pattern, name)) [17:27:14.342] next [17:27:14.342] invokeRestart(restart) [17:27:14.342] muffled <- TRUE [17:27:14.342] break [17:27:14.342] } [17:27:14.342] } [17:27:14.342] } [17:27:14.342] invisible(muffled) [17:27:14.342] } [17:27:14.342] muffleCondition(cond, pattern = "^muffle") [17:27:14.342] } [17:27:14.342] } [17:27:14.342] else { [17:27:14.342] if (TRUE) { [17:27:14.342] muffleCondition <- function (cond, pattern = "^muffle") [17:27:14.342] { [17:27:14.342] inherits <- base::inherits [17:27:14.342] invokeRestart <- base::invokeRestart [17:27:14.342] is.null <- base::is.null [17:27:14.342] muffled <- FALSE [17:27:14.342] if (inherits(cond, "message")) { [17:27:14.342] muffled <- grepl(pattern, "muffleMessage") [17:27:14.342] if (muffled) [17:27:14.342] invokeRestart("muffleMessage") [17:27:14.342] } [17:27:14.342] else if (inherits(cond, "warning")) { [17:27:14.342] muffled <- grepl(pattern, "muffleWarning") [17:27:14.342] if (muffled) [17:27:14.342] invokeRestart("muffleWarning") [17:27:14.342] } [17:27:14.342] else if (inherits(cond, "condition")) { [17:27:14.342] if (!is.null(pattern)) { [17:27:14.342] computeRestarts <- base::computeRestarts [17:27:14.342] grepl <- base::grepl [17:27:14.342] restarts <- computeRestarts(cond) [17:27:14.342] for (restart in restarts) { [17:27:14.342] name <- restart$name [17:27:14.342] if (is.null(name)) [17:27:14.342] next [17:27:14.342] if (!grepl(pattern, name)) [17:27:14.342] next [17:27:14.342] invokeRestart(restart) [17:27:14.342] muffled <- TRUE [17:27:14.342] break [17:27:14.342] } [17:27:14.342] } [17:27:14.342] } [17:27:14.342] invisible(muffled) [17:27:14.342] } [17:27:14.342] muffleCondition(cond, pattern = "^muffle") [17:27:14.342] } [17:27:14.342] } [17:27:14.342] } [17:27:14.342] })) [17:27:14.342] }, error = function(ex) { [17:27:14.342] base::structure(base::list(value = NULL, visible = NULL, [17:27:14.342] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:14.342] ...future.rng), started = ...future.startTime, [17:27:14.342] finished = Sys.time(), session_uuid = NA_character_, [17:27:14.342] version = "1.8"), class = "FutureResult") [17:27:14.342] }, finally = { [17:27:14.342] if (!identical(...future.workdir, getwd())) [17:27:14.342] setwd(...future.workdir) [17:27:14.342] { [17:27:14.342] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:14.342] ...future.oldOptions$nwarnings <- NULL [17:27:14.342] } [17:27:14.342] base::options(...future.oldOptions) [17:27:14.342] if (.Platform$OS.type == "windows") { [17:27:14.342] old_names <- names(...future.oldEnvVars) [17:27:14.342] envs <- base::Sys.getenv() [17:27:14.342] names <- names(envs) [17:27:14.342] common <- intersect(names, old_names) [17:27:14.342] added <- setdiff(names, old_names) [17:27:14.342] removed <- setdiff(old_names, names) [17:27:14.342] changed <- common[...future.oldEnvVars[common] != [17:27:14.342] envs[common]] [17:27:14.342] NAMES <- toupper(changed) [17:27:14.342] args <- list() [17:27:14.342] for (kk in seq_along(NAMES)) { [17:27:14.342] name <- changed[[kk]] [17:27:14.342] NAME <- NAMES[[kk]] [17:27:14.342] if (name != NAME && is.element(NAME, old_names)) [17:27:14.342] next [17:27:14.342] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:14.342] } [17:27:14.342] NAMES <- toupper(added) [17:27:14.342] for (kk in seq_along(NAMES)) { [17:27:14.342] name <- added[[kk]] [17:27:14.342] NAME <- NAMES[[kk]] [17:27:14.342] if (name != NAME && is.element(NAME, old_names)) [17:27:14.342] next [17:27:14.342] args[[name]] <- "" [17:27:14.342] } [17:27:14.342] NAMES <- toupper(removed) [17:27:14.342] for (kk in seq_along(NAMES)) { [17:27:14.342] name <- removed[[kk]] [17:27:14.342] NAME <- NAMES[[kk]] [17:27:14.342] if (name != NAME && is.element(NAME, old_names)) [17:27:14.342] next [17:27:14.342] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:14.342] } [17:27:14.342] if (length(args) > 0) [17:27:14.342] base::do.call(base::Sys.setenv, args = args) [17:27:14.342] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:14.342] } [17:27:14.342] else { [17:27:14.342] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:14.342] } [17:27:14.342] { [17:27:14.342] if (base::length(...future.futureOptionsAdded) > [17:27:14.342] 0L) { [17:27:14.342] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:14.342] base::names(opts) <- ...future.futureOptionsAdded [17:27:14.342] base::options(opts) [17:27:14.342] } [17:27:14.342] { [17:27:14.342] { [17:27:14.342] NULL [17:27:14.342] RNGkind("Mersenne-Twister") [17:27:14.342] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:14.342] inherits = FALSE) [17:27:14.342] } [17:27:14.342] options(future.plan = NULL) [17:27:14.342] if (is.na(NA_character_)) [17:27:14.342] Sys.unsetenv("R_FUTURE_PLAN") [17:27:14.342] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:14.342] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:14.342] .init = FALSE) [17:27:14.342] } [17:27:14.342] } [17:27:14.342] } [17:27:14.342] }) [17:27:14.342] if (TRUE) { [17:27:14.342] base::sink(type = "output", split = FALSE) [17:27:14.342] if (TRUE) { [17:27:14.342] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:14.342] } [17:27:14.342] else { [17:27:14.342] ...future.result["stdout"] <- base::list(NULL) [17:27:14.342] } [17:27:14.342] base::close(...future.stdout) [17:27:14.342] ...future.stdout <- NULL [17:27:14.342] } [17:27:14.342] ...future.result$conditions <- ...future.conditions [17:27:14.342] ...future.result$finished <- base::Sys.time() [17:27:14.342] ...future.result [17:27:14.342] } [17:27:14.349] plan(): Setting new future strategy stack: [17:27:14.350] List of future strategies: [17:27:14.350] 1. sequential: [17:27:14.350] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.350] - tweaked: FALSE [17:27:14.350] - call: NULL [17:27:14.351] plan(): nbrOfWorkers() = 1 [17:27:14.353] plan(): Setting new future strategy stack: [17:27:14.353] List of future strategies: [17:27:14.353] 1. sequential: [17:27:14.353] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.353] - tweaked: FALSE [17:27:14.353] - call: plan(strategy) [17:27:14.354] plan(): nbrOfWorkers() = 1 [17:27:14.355] SequentialFuture started (and completed) [17:27:14.355] - Launch lazy future ... done [17:27:14.355] run() for 'SequentialFuture' ... done SequentialFuture: Label: '' Expression: { 42 } Lazy evaluation: FALSE Asynchronous evaluation: FALSE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 39 bytes of class 'numeric' Early signaling: FALSE Owner process: 14db7dea-610a-8c8e-4c3b-ee2b7209ff96 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:14.357] getGlobalsAndPackages() ... [17:27:14.358] Searching for globals... [17:27:14.358] [17:27:14.359] Searching for globals ... DONE [17:27:14.359] - globals: [0] [17:27:14.359] getGlobalsAndPackages() ... DONE [17:27:14.360] Packages needed by the future expression (n = 0): [17:27:14.360] Packages needed by future strategies (n = 0): [17:27:14.362] { [17:27:14.362] { [17:27:14.362] { [17:27:14.362] ...future.startTime <- base::Sys.time() [17:27:14.362] { [17:27:14.362] { [17:27:14.362] { [17:27:14.362] base::local({ [17:27:14.362] has_future <- base::requireNamespace("future", [17:27:14.362] quietly = TRUE) [17:27:14.362] if (has_future) { [17:27:14.362] ns <- base::getNamespace("future") [17:27:14.362] version <- ns[[".package"]][["version"]] [17:27:14.362] if (is.null(version)) [17:27:14.362] version <- utils::packageVersion("future") [17:27:14.362] } [17:27:14.362] else { [17:27:14.362] version <- NULL [17:27:14.362] } [17:27:14.362] if (!has_future || version < "1.8.0") { [17:27:14.362] info <- base::c(r_version = base::gsub("R version ", [17:27:14.362] "", base::R.version$version.string), [17:27:14.362] platform = base::sprintf("%s (%s-bit)", [17:27:14.362] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:14.362] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:14.362] "release", "version")], collapse = " "), [17:27:14.362] hostname = base::Sys.info()[["nodename"]]) [17:27:14.362] info <- base::sprintf("%s: %s", base::names(info), [17:27:14.362] info) [17:27:14.362] info <- base::paste(info, collapse = "; ") [17:27:14.362] if (!has_future) { [17:27:14.362] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:14.362] info) [17:27:14.362] } [17:27:14.362] else { [17:27:14.362] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:14.362] info, version) [17:27:14.362] } [17:27:14.362] base::stop(msg) [17:27:14.362] } [17:27:14.362] }) [17:27:14.362] } [17:27:14.362] ...future.strategy.old <- future::plan("list") [17:27:14.362] options(future.plan = NULL) [17:27:14.362] Sys.unsetenv("R_FUTURE_PLAN") [17:27:14.362] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:14.362] } [17:27:14.362] ...future.workdir <- getwd() [17:27:14.362] } [17:27:14.362] ...future.oldOptions <- base::as.list(base::.Options) [17:27:14.362] ...future.oldEnvVars <- base::Sys.getenv() [17:27:14.362] } [17:27:14.362] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:14.362] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:14.362] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:14.362] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:14.362] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:14.362] future.stdout.windows.reencode = NULL, width = 80L) [17:27:14.362] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:14.362] base::names(...future.oldOptions)) [17:27:14.362] } [17:27:14.362] if (FALSE) { [17:27:14.362] } [17:27:14.362] else { [17:27:14.362] if (TRUE) { [17:27:14.362] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:14.362] open = "w") [17:27:14.362] } [17:27:14.362] else { [17:27:14.362] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:14.362] windows = "NUL", "/dev/null"), open = "w") [17:27:14.362] } [17:27:14.362] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:14.362] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:14.362] base::sink(type = "output", split = FALSE) [17:27:14.362] base::close(...future.stdout) [17:27:14.362] }, add = TRUE) [17:27:14.362] } [17:27:14.362] ...future.frame <- base::sys.nframe() [17:27:14.362] ...future.conditions <- base::list() [17:27:14.362] ...future.rng <- base::globalenv()$.Random.seed [17:27:14.362] if (FALSE) { [17:27:14.362] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:14.362] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:14.362] } [17:27:14.362] ...future.result <- base::tryCatch({ [17:27:14.362] base::withCallingHandlers({ [17:27:14.362] ...future.value <- base::withVisible(base::local(42)) [17:27:14.362] future::FutureResult(value = ...future.value$value, [17:27:14.362] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:14.362] ...future.rng), globalenv = if (FALSE) [17:27:14.362] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:14.362] ...future.globalenv.names)) [17:27:14.362] else NULL, started = ...future.startTime, version = "1.8") [17:27:14.362] }, condition = base::local({ [17:27:14.362] c <- base::c [17:27:14.362] inherits <- base::inherits [17:27:14.362] invokeRestart <- base::invokeRestart [17:27:14.362] length <- base::length [17:27:14.362] list <- base::list [17:27:14.362] seq.int <- base::seq.int [17:27:14.362] signalCondition <- base::signalCondition [17:27:14.362] sys.calls <- base::sys.calls [17:27:14.362] `[[` <- base::`[[` [17:27:14.362] `+` <- base::`+` [17:27:14.362] `<<-` <- base::`<<-` [17:27:14.362] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:14.362] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:14.362] 3L)] [17:27:14.362] } [17:27:14.362] function(cond) { [17:27:14.362] is_error <- inherits(cond, "error") [17:27:14.362] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:14.362] NULL) [17:27:14.362] if (is_error) { [17:27:14.362] sessionInformation <- function() { [17:27:14.362] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:14.362] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:14.362] search = base::search(), system = base::Sys.info()) [17:27:14.362] } [17:27:14.362] ...future.conditions[[length(...future.conditions) + [17:27:14.362] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:14.362] cond$call), session = sessionInformation(), [17:27:14.362] timestamp = base::Sys.time(), signaled = 0L) [17:27:14.362] signalCondition(cond) [17:27:14.362] } [17:27:14.362] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:14.362] "immediateCondition"))) { [17:27:14.362] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:14.362] ...future.conditions[[length(...future.conditions) + [17:27:14.362] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:14.362] if (TRUE && !signal) { [17:27:14.362] muffleCondition <- function (cond, pattern = "^muffle") [17:27:14.362] { [17:27:14.362] inherits <- base::inherits [17:27:14.362] invokeRestart <- base::invokeRestart [17:27:14.362] is.null <- base::is.null [17:27:14.362] muffled <- FALSE [17:27:14.362] if (inherits(cond, "message")) { [17:27:14.362] muffled <- grepl(pattern, "muffleMessage") [17:27:14.362] if (muffled) [17:27:14.362] invokeRestart("muffleMessage") [17:27:14.362] } [17:27:14.362] else if (inherits(cond, "warning")) { [17:27:14.362] muffled <- grepl(pattern, "muffleWarning") [17:27:14.362] if (muffled) [17:27:14.362] invokeRestart("muffleWarning") [17:27:14.362] } [17:27:14.362] else if (inherits(cond, "condition")) { [17:27:14.362] if (!is.null(pattern)) { [17:27:14.362] computeRestarts <- base::computeRestarts [17:27:14.362] grepl <- base::grepl [17:27:14.362] restarts <- computeRestarts(cond) [17:27:14.362] for (restart in restarts) { [17:27:14.362] name <- restart$name [17:27:14.362] if (is.null(name)) [17:27:14.362] next [17:27:14.362] if (!grepl(pattern, name)) [17:27:14.362] next [17:27:14.362] invokeRestart(restart) [17:27:14.362] muffled <- TRUE [17:27:14.362] break [17:27:14.362] } [17:27:14.362] } [17:27:14.362] } [17:27:14.362] invisible(muffled) [17:27:14.362] } [17:27:14.362] muffleCondition(cond, pattern = "^muffle") [17:27:14.362] } [17:27:14.362] } [17:27:14.362] else { [17:27:14.362] if (TRUE) { [17:27:14.362] muffleCondition <- function (cond, pattern = "^muffle") [17:27:14.362] { [17:27:14.362] inherits <- base::inherits [17:27:14.362] invokeRestart <- base::invokeRestart [17:27:14.362] is.null <- base::is.null [17:27:14.362] muffled <- FALSE [17:27:14.362] if (inherits(cond, "message")) { [17:27:14.362] muffled <- grepl(pattern, "muffleMessage") [17:27:14.362] if (muffled) [17:27:14.362] invokeRestart("muffleMessage") [17:27:14.362] } [17:27:14.362] else if (inherits(cond, "warning")) { [17:27:14.362] muffled <- grepl(pattern, "muffleWarning") [17:27:14.362] if (muffled) [17:27:14.362] invokeRestart("muffleWarning") [17:27:14.362] } [17:27:14.362] else if (inherits(cond, "condition")) { [17:27:14.362] if (!is.null(pattern)) { [17:27:14.362] computeRestarts <- base::computeRestarts [17:27:14.362] grepl <- base::grepl [17:27:14.362] restarts <- computeRestarts(cond) [17:27:14.362] for (restart in restarts) { [17:27:14.362] name <- restart$name [17:27:14.362] if (is.null(name)) [17:27:14.362] next [17:27:14.362] if (!grepl(pattern, name)) [17:27:14.362] next [17:27:14.362] invokeRestart(restart) [17:27:14.362] muffled <- TRUE [17:27:14.362] break [17:27:14.362] } [17:27:14.362] } [17:27:14.362] } [17:27:14.362] invisible(muffled) [17:27:14.362] } [17:27:14.362] muffleCondition(cond, pattern = "^muffle") [17:27:14.362] } [17:27:14.362] } [17:27:14.362] } [17:27:14.362] })) [17:27:14.362] }, error = function(ex) { [17:27:14.362] base::structure(base::list(value = NULL, visible = NULL, [17:27:14.362] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:14.362] ...future.rng), started = ...future.startTime, [17:27:14.362] finished = Sys.time(), session_uuid = NA_character_, [17:27:14.362] version = "1.8"), class = "FutureResult") [17:27:14.362] }, finally = { [17:27:14.362] if (!identical(...future.workdir, getwd())) [17:27:14.362] setwd(...future.workdir) [17:27:14.362] { [17:27:14.362] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:14.362] ...future.oldOptions$nwarnings <- NULL [17:27:14.362] } [17:27:14.362] base::options(...future.oldOptions) [17:27:14.362] if (.Platform$OS.type == "windows") { [17:27:14.362] old_names <- names(...future.oldEnvVars) [17:27:14.362] envs <- base::Sys.getenv() [17:27:14.362] names <- names(envs) [17:27:14.362] common <- intersect(names, old_names) [17:27:14.362] added <- setdiff(names, old_names) [17:27:14.362] removed <- setdiff(old_names, names) [17:27:14.362] changed <- common[...future.oldEnvVars[common] != [17:27:14.362] envs[common]] [17:27:14.362] NAMES <- toupper(changed) [17:27:14.362] args <- list() [17:27:14.362] for (kk in seq_along(NAMES)) { [17:27:14.362] name <- changed[[kk]] [17:27:14.362] NAME <- NAMES[[kk]] [17:27:14.362] if (name != NAME && is.element(NAME, old_names)) [17:27:14.362] next [17:27:14.362] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:14.362] } [17:27:14.362] NAMES <- toupper(added) [17:27:14.362] for (kk in seq_along(NAMES)) { [17:27:14.362] name <- added[[kk]] [17:27:14.362] NAME <- NAMES[[kk]] [17:27:14.362] if (name != NAME && is.element(NAME, old_names)) [17:27:14.362] next [17:27:14.362] args[[name]] <- "" [17:27:14.362] } [17:27:14.362] NAMES <- toupper(removed) [17:27:14.362] for (kk in seq_along(NAMES)) { [17:27:14.362] name <- removed[[kk]] [17:27:14.362] NAME <- NAMES[[kk]] [17:27:14.362] if (name != NAME && is.element(NAME, old_names)) [17:27:14.362] next [17:27:14.362] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:14.362] } [17:27:14.362] if (length(args) > 0) [17:27:14.362] base::do.call(base::Sys.setenv, args = args) [17:27:14.362] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:14.362] } [17:27:14.362] else { [17:27:14.362] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:14.362] } [17:27:14.362] { [17:27:14.362] if (base::length(...future.futureOptionsAdded) > [17:27:14.362] 0L) { [17:27:14.362] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:14.362] base::names(opts) <- ...future.futureOptionsAdded [17:27:14.362] base::options(opts) [17:27:14.362] } [17:27:14.362] { [17:27:14.362] { [17:27:14.362] NULL [17:27:14.362] RNGkind("Mersenne-Twister") [17:27:14.362] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:14.362] inherits = FALSE) [17:27:14.362] } [17:27:14.362] options(future.plan = NULL) [17:27:14.362] if (is.na(NA_character_)) [17:27:14.362] Sys.unsetenv("R_FUTURE_PLAN") [17:27:14.362] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:14.362] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:14.362] .init = FALSE) [17:27:14.362] } [17:27:14.362] } [17:27:14.362] } [17:27:14.362] }) [17:27:14.362] if (TRUE) { [17:27:14.362] base::sink(type = "output", split = FALSE) [17:27:14.362] if (TRUE) { [17:27:14.362] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:14.362] } [17:27:14.362] else { [17:27:14.362] ...future.result["stdout"] <- base::list(NULL) [17:27:14.362] } [17:27:14.362] base::close(...future.stdout) [17:27:14.362] ...future.stdout <- NULL [17:27:14.362] } [17:27:14.362] ...future.result$conditions <- ...future.conditions [17:27:14.362] ...future.result$finished <- base::Sys.time() [17:27:14.362] ...future.result [17:27:14.362] } [17:27:14.368] plan(): Setting new future strategy stack: [17:27:14.369] List of future strategies: [17:27:14.369] 1. sequential: [17:27:14.369] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.369] - tweaked: FALSE [17:27:14.369] - call: NULL [17:27:14.370] plan(): nbrOfWorkers() = 1 [17:27:14.372] plan(): Setting new future strategy stack: [17:27:14.372] List of future strategies: [17:27:14.372] 1. sequential: [17:27:14.372] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.372] - tweaked: FALSE [17:27:14.372] - call: plan(strategy) [17:27:14.379] plan(): nbrOfWorkers() = 1 [17:27:14.379] SequentialFuture started (and completed) SequentialFuture: Label: 'strategy = sequential' Expression: [1] 42 Lazy evaluation: FALSE Asynchronous evaluation: FALSE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 39 bytes of class 'numeric' Early signaling: FALSE Owner process: 14db7dea-610a-8c8e-4c3b-ee2b7209ff96 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:14.381] getGlobalsAndPackages() ... [17:27:14.381] Searching for globals... [17:27:14.382] [17:27:14.382] Searching for globals ... DONE [17:27:14.382] - globals: [0] [17:27:14.383] getGlobalsAndPackages() ... DONE [17:27:14.383] run() for 'Future' ... [17:27:14.384] - state: 'created' [17:27:14.384] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:27:14.385] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:14.385] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:27:14.385] - Field: 'label' [17:27:14.385] - Field: 'local' [17:27:14.386] - Field: 'owner' [17:27:14.386] - Field: 'envir' [17:27:14.386] - Field: 'packages' [17:27:14.387] - Field: 'gc' [17:27:14.387] - Field: 'conditions' [17:27:14.387] - Field: 'expr' [17:27:14.388] - Field: 'uuid' [17:27:14.388] - Field: 'seed' [17:27:14.388] - Field: 'version' [17:27:14.389] - Field: 'result' [17:27:14.389] - Field: 'asynchronous' [17:27:14.389] - Field: 'calls' [17:27:14.390] - Field: 'globals' [17:27:14.390] - Field: 'stdout' [17:27:14.390] - Field: 'earlySignal' [17:27:14.391] - Field: 'lazy' [17:27:14.391] - Field: 'state' [17:27:14.391] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:27:14.392] - Launch lazy future ... [17:27:14.392] Packages needed by the future expression (n = 0): [17:27:14.393] Packages needed by future strategies (n = 0): [17:27:14.394] { [17:27:14.394] { [17:27:14.394] { [17:27:14.394] ...future.startTime <- base::Sys.time() [17:27:14.394] { [17:27:14.394] { [17:27:14.394] { [17:27:14.394] base::local({ [17:27:14.394] has_future <- base::requireNamespace("future", [17:27:14.394] quietly = TRUE) [17:27:14.394] if (has_future) { [17:27:14.394] ns <- base::getNamespace("future") [17:27:14.394] version <- ns[[".package"]][["version"]] [17:27:14.394] if (is.null(version)) [17:27:14.394] version <- utils::packageVersion("future") [17:27:14.394] } [17:27:14.394] else { [17:27:14.394] version <- NULL [17:27:14.394] } [17:27:14.394] if (!has_future || version < "1.8.0") { [17:27:14.394] info <- base::c(r_version = base::gsub("R version ", [17:27:14.394] "", base::R.version$version.string), [17:27:14.394] platform = base::sprintf("%s (%s-bit)", [17:27:14.394] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:14.394] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:14.394] "release", "version")], collapse = " "), [17:27:14.394] hostname = base::Sys.info()[["nodename"]]) [17:27:14.394] info <- base::sprintf("%s: %s", base::names(info), [17:27:14.394] info) [17:27:14.394] info <- base::paste(info, collapse = "; ") [17:27:14.394] if (!has_future) { [17:27:14.394] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:14.394] info) [17:27:14.394] } [17:27:14.394] else { [17:27:14.394] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:14.394] info, version) [17:27:14.394] } [17:27:14.394] base::stop(msg) [17:27:14.394] } [17:27:14.394] }) [17:27:14.394] } [17:27:14.394] ...future.strategy.old <- future::plan("list") [17:27:14.394] options(future.plan = NULL) [17:27:14.394] Sys.unsetenv("R_FUTURE_PLAN") [17:27:14.394] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:14.394] } [17:27:14.394] ...future.workdir <- getwd() [17:27:14.394] } [17:27:14.394] ...future.oldOptions <- base::as.list(base::.Options) [17:27:14.394] ...future.oldEnvVars <- base::Sys.getenv() [17:27:14.394] } [17:27:14.394] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:14.394] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:14.394] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:14.394] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:14.394] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:14.394] future.stdout.windows.reencode = NULL, width = 80L) [17:27:14.394] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:14.394] base::names(...future.oldOptions)) [17:27:14.394] } [17:27:14.394] if (FALSE) { [17:27:14.394] } [17:27:14.394] else { [17:27:14.394] if (TRUE) { [17:27:14.394] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:14.394] open = "w") [17:27:14.394] } [17:27:14.394] else { [17:27:14.394] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:14.394] windows = "NUL", "/dev/null"), open = "w") [17:27:14.394] } [17:27:14.394] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:14.394] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:14.394] base::sink(type = "output", split = FALSE) [17:27:14.394] base::close(...future.stdout) [17:27:14.394] }, add = TRUE) [17:27:14.394] } [17:27:14.394] ...future.frame <- base::sys.nframe() [17:27:14.394] ...future.conditions <- base::list() [17:27:14.394] ...future.rng <- base::globalenv()$.Random.seed [17:27:14.394] if (FALSE) { [17:27:14.394] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:14.394] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:14.394] } [17:27:14.394] ...future.result <- base::tryCatch({ [17:27:14.394] base::withCallingHandlers({ [17:27:14.394] ...future.value <- base::withVisible(base::local(42)) [17:27:14.394] future::FutureResult(value = ...future.value$value, [17:27:14.394] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:14.394] ...future.rng), globalenv = if (FALSE) [17:27:14.394] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:14.394] ...future.globalenv.names)) [17:27:14.394] else NULL, started = ...future.startTime, version = "1.8") [17:27:14.394] }, condition = base::local({ [17:27:14.394] c <- base::c [17:27:14.394] inherits <- base::inherits [17:27:14.394] invokeRestart <- base::invokeRestart [17:27:14.394] length <- base::length [17:27:14.394] list <- base::list [17:27:14.394] seq.int <- base::seq.int [17:27:14.394] signalCondition <- base::signalCondition [17:27:14.394] sys.calls <- base::sys.calls [17:27:14.394] `[[` <- base::`[[` [17:27:14.394] `+` <- base::`+` [17:27:14.394] `<<-` <- base::`<<-` [17:27:14.394] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:14.394] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:14.394] 3L)] [17:27:14.394] } [17:27:14.394] function(cond) { [17:27:14.394] is_error <- inherits(cond, "error") [17:27:14.394] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:14.394] NULL) [17:27:14.394] if (is_error) { [17:27:14.394] sessionInformation <- function() { [17:27:14.394] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:14.394] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:14.394] search = base::search(), system = base::Sys.info()) [17:27:14.394] } [17:27:14.394] ...future.conditions[[length(...future.conditions) + [17:27:14.394] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:14.394] cond$call), session = sessionInformation(), [17:27:14.394] timestamp = base::Sys.time(), signaled = 0L) [17:27:14.394] signalCondition(cond) [17:27:14.394] } [17:27:14.394] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:14.394] "immediateCondition"))) { [17:27:14.394] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:14.394] ...future.conditions[[length(...future.conditions) + [17:27:14.394] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:14.394] if (TRUE && !signal) { [17:27:14.394] muffleCondition <- function (cond, pattern = "^muffle") [17:27:14.394] { [17:27:14.394] inherits <- base::inherits [17:27:14.394] invokeRestart <- base::invokeRestart [17:27:14.394] is.null <- base::is.null [17:27:14.394] muffled <- FALSE [17:27:14.394] if (inherits(cond, "message")) { [17:27:14.394] muffled <- grepl(pattern, "muffleMessage") [17:27:14.394] if (muffled) [17:27:14.394] invokeRestart("muffleMessage") [17:27:14.394] } [17:27:14.394] else if (inherits(cond, "warning")) { [17:27:14.394] muffled <- grepl(pattern, "muffleWarning") [17:27:14.394] if (muffled) [17:27:14.394] invokeRestart("muffleWarning") [17:27:14.394] } [17:27:14.394] else if (inherits(cond, "condition")) { [17:27:14.394] if (!is.null(pattern)) { [17:27:14.394] computeRestarts <- base::computeRestarts [17:27:14.394] grepl <- base::grepl [17:27:14.394] restarts <- computeRestarts(cond) [17:27:14.394] for (restart in restarts) { [17:27:14.394] name <- restart$name [17:27:14.394] if (is.null(name)) [17:27:14.394] next [17:27:14.394] if (!grepl(pattern, name)) [17:27:14.394] next [17:27:14.394] invokeRestart(restart) [17:27:14.394] muffled <- TRUE [17:27:14.394] break [17:27:14.394] } [17:27:14.394] } [17:27:14.394] } [17:27:14.394] invisible(muffled) [17:27:14.394] } [17:27:14.394] muffleCondition(cond, pattern = "^muffle") [17:27:14.394] } [17:27:14.394] } [17:27:14.394] else { [17:27:14.394] if (TRUE) { [17:27:14.394] muffleCondition <- function (cond, pattern = "^muffle") [17:27:14.394] { [17:27:14.394] inherits <- base::inherits [17:27:14.394] invokeRestart <- base::invokeRestart [17:27:14.394] is.null <- base::is.null [17:27:14.394] muffled <- FALSE [17:27:14.394] if (inherits(cond, "message")) { [17:27:14.394] muffled <- grepl(pattern, "muffleMessage") [17:27:14.394] if (muffled) [17:27:14.394] invokeRestart("muffleMessage") [17:27:14.394] } [17:27:14.394] else if (inherits(cond, "warning")) { [17:27:14.394] muffled <- grepl(pattern, "muffleWarning") [17:27:14.394] if (muffled) [17:27:14.394] invokeRestart("muffleWarning") [17:27:14.394] } [17:27:14.394] else if (inherits(cond, "condition")) { [17:27:14.394] if (!is.null(pattern)) { [17:27:14.394] computeRestarts <- base::computeRestarts [17:27:14.394] grepl <- base::grepl [17:27:14.394] restarts <- computeRestarts(cond) [17:27:14.394] for (restart in restarts) { [17:27:14.394] name <- restart$name [17:27:14.394] if (is.null(name)) [17:27:14.394] next [17:27:14.394] if (!grepl(pattern, name)) [17:27:14.394] next [17:27:14.394] invokeRestart(restart) [17:27:14.394] muffled <- TRUE [17:27:14.394] break [17:27:14.394] } [17:27:14.394] } [17:27:14.394] } [17:27:14.394] invisible(muffled) [17:27:14.394] } [17:27:14.394] muffleCondition(cond, pattern = "^muffle") [17:27:14.394] } [17:27:14.394] } [17:27:14.394] } [17:27:14.394] })) [17:27:14.394] }, error = function(ex) { [17:27:14.394] base::structure(base::list(value = NULL, visible = NULL, [17:27:14.394] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:14.394] ...future.rng), started = ...future.startTime, [17:27:14.394] finished = Sys.time(), session_uuid = NA_character_, [17:27:14.394] version = "1.8"), class = "FutureResult") [17:27:14.394] }, finally = { [17:27:14.394] if (!identical(...future.workdir, getwd())) [17:27:14.394] setwd(...future.workdir) [17:27:14.394] { [17:27:14.394] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:14.394] ...future.oldOptions$nwarnings <- NULL [17:27:14.394] } [17:27:14.394] base::options(...future.oldOptions) [17:27:14.394] if (.Platform$OS.type == "windows") { [17:27:14.394] old_names <- names(...future.oldEnvVars) [17:27:14.394] envs <- base::Sys.getenv() [17:27:14.394] names <- names(envs) [17:27:14.394] common <- intersect(names, old_names) [17:27:14.394] added <- setdiff(names, old_names) [17:27:14.394] removed <- setdiff(old_names, names) [17:27:14.394] changed <- common[...future.oldEnvVars[common] != [17:27:14.394] envs[common]] [17:27:14.394] NAMES <- toupper(changed) [17:27:14.394] args <- list() [17:27:14.394] for (kk in seq_along(NAMES)) { [17:27:14.394] name <- changed[[kk]] [17:27:14.394] NAME <- NAMES[[kk]] [17:27:14.394] if (name != NAME && is.element(NAME, old_names)) [17:27:14.394] next [17:27:14.394] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:14.394] } [17:27:14.394] NAMES <- toupper(added) [17:27:14.394] for (kk in seq_along(NAMES)) { [17:27:14.394] name <- added[[kk]] [17:27:14.394] NAME <- NAMES[[kk]] [17:27:14.394] if (name != NAME && is.element(NAME, old_names)) [17:27:14.394] next [17:27:14.394] args[[name]] <- "" [17:27:14.394] } [17:27:14.394] NAMES <- toupper(removed) [17:27:14.394] for (kk in seq_along(NAMES)) { [17:27:14.394] name <- removed[[kk]] [17:27:14.394] NAME <- NAMES[[kk]] [17:27:14.394] if (name != NAME && is.element(NAME, old_names)) [17:27:14.394] next [17:27:14.394] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:14.394] } [17:27:14.394] if (length(args) > 0) [17:27:14.394] base::do.call(base::Sys.setenv, args = args) [17:27:14.394] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:14.394] } [17:27:14.394] else { [17:27:14.394] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:14.394] } [17:27:14.394] { [17:27:14.394] if (base::length(...future.futureOptionsAdded) > [17:27:14.394] 0L) { [17:27:14.394] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:14.394] base::names(opts) <- ...future.futureOptionsAdded [17:27:14.394] base::options(opts) [17:27:14.394] } [17:27:14.394] { [17:27:14.394] { [17:27:14.394] NULL [17:27:14.394] RNGkind("Mersenne-Twister") [17:27:14.394] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:14.394] inherits = FALSE) [17:27:14.394] } [17:27:14.394] options(future.plan = NULL) [17:27:14.394] if (is.na(NA_character_)) [17:27:14.394] Sys.unsetenv("R_FUTURE_PLAN") [17:27:14.394] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:14.394] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:14.394] .init = FALSE) [17:27:14.394] } [17:27:14.394] } [17:27:14.394] } [17:27:14.394] }) [17:27:14.394] if (TRUE) { [17:27:14.394] base::sink(type = "output", split = FALSE) [17:27:14.394] if (TRUE) { [17:27:14.394] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:14.394] } [17:27:14.394] else { [17:27:14.394] ...future.result["stdout"] <- base::list(NULL) [17:27:14.394] } [17:27:14.394] base::close(...future.stdout) [17:27:14.394] ...future.stdout <- NULL [17:27:14.394] } [17:27:14.394] ...future.result$conditions <- ...future.conditions [17:27:14.394] ...future.result$finished <- base::Sys.time() [17:27:14.394] ...future.result [17:27:14.394] } [17:27:14.401] plan(): Setting new future strategy stack: [17:27:14.401] List of future strategies: [17:27:14.401] 1. sequential: [17:27:14.401] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.401] - tweaked: FALSE [17:27:14.401] - call: NULL [17:27:14.402] plan(): nbrOfWorkers() = 1 [17:27:14.404] plan(): Setting new future strategy stack: [17:27:14.405] List of future strategies: [17:27:14.405] 1. sequential: [17:27:14.405] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.405] - tweaked: FALSE [17:27:14.405] - call: plan(strategy) [17:27:14.406] plan(): nbrOfWorkers() = 1 [17:27:14.406] SequentialFuture started (and completed) [17:27:14.406] - Launch lazy future ... done [17:27:14.407] run() for 'SequentialFuture' ... done SequentialFuture: Label: 'strategy = sequential' Expression: [1] 42 Lazy evaluation: FALSE Asynchronous evaluation: FALSE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 39 bytes of class 'numeric' Early signaling: FALSE Owner process: 14db7dea-610a-8c8e-4c3b-ee2b7209ff96 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:14.408] getGlobalsAndPackages() ... [17:27:14.409] Searching for globals... [17:27:14.410] - globals found: [1] '{' [17:27:14.411] Searching for globals ... DONE [17:27:14.411] Resolving globals: FALSE [17:27:14.412] [17:27:14.412] [17:27:14.412] getGlobalsAndPackages() ... DONE [17:27:14.413] run() for 'Future' ... [17:27:14.413] - state: 'created' [17:27:14.414] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:27:14.414] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:14.415] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:27:14.415] - Field: 'label' [17:27:14.415] - Field: 'local' [17:27:14.416] - Field: 'owner' [17:27:14.416] - Field: 'envir' [17:27:14.416] - Field: 'packages' [17:27:14.417] - Field: 'gc' [17:27:14.417] - Field: 'conditions' [17:27:14.417] - Field: 'expr' [17:27:14.418] - Field: 'uuid' [17:27:14.418] - Field: 'seed' [17:27:14.418] - Field: 'version' [17:27:14.418] - Field: 'result' [17:27:14.419] - Field: 'asynchronous' [17:27:14.419] - Field: 'calls' [17:27:14.419] - Field: 'globals' [17:27:14.420] - Field: 'stdout' [17:27:14.420] - Field: 'earlySignal' [17:27:14.420] - Field: 'lazy' [17:27:14.421] - Field: 'state' [17:27:14.421] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:27:14.421] - Launch lazy future ... [17:27:14.422] Packages needed by the future expression (n = 0): [17:27:14.422] Packages needed by future strategies (n = 0): [17:27:14.423] { [17:27:14.423] { [17:27:14.423] { [17:27:14.423] ...future.startTime <- base::Sys.time() [17:27:14.423] { [17:27:14.423] { [17:27:14.423] { [17:27:14.423] base::local({ [17:27:14.423] has_future <- base::requireNamespace("future", [17:27:14.423] quietly = TRUE) [17:27:14.423] if (has_future) { [17:27:14.423] ns <- base::getNamespace("future") [17:27:14.423] version <- ns[[".package"]][["version"]] [17:27:14.423] if (is.null(version)) [17:27:14.423] version <- utils::packageVersion("future") [17:27:14.423] } [17:27:14.423] else { [17:27:14.423] version <- NULL [17:27:14.423] } [17:27:14.423] if (!has_future || version < "1.8.0") { [17:27:14.423] info <- base::c(r_version = base::gsub("R version ", [17:27:14.423] "", base::R.version$version.string), [17:27:14.423] platform = base::sprintf("%s (%s-bit)", [17:27:14.423] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:14.423] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:14.423] "release", "version")], collapse = " "), [17:27:14.423] hostname = base::Sys.info()[["nodename"]]) [17:27:14.423] info <- base::sprintf("%s: %s", base::names(info), [17:27:14.423] info) [17:27:14.423] info <- base::paste(info, collapse = "; ") [17:27:14.423] if (!has_future) { [17:27:14.423] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:14.423] info) [17:27:14.423] } [17:27:14.423] else { [17:27:14.423] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:14.423] info, version) [17:27:14.423] } [17:27:14.423] base::stop(msg) [17:27:14.423] } [17:27:14.423] }) [17:27:14.423] } [17:27:14.423] ...future.strategy.old <- future::plan("list") [17:27:14.423] options(future.plan = NULL) [17:27:14.423] Sys.unsetenv("R_FUTURE_PLAN") [17:27:14.423] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:14.423] } [17:27:14.423] ...future.workdir <- getwd() [17:27:14.423] } [17:27:14.423] ...future.oldOptions <- base::as.list(base::.Options) [17:27:14.423] ...future.oldEnvVars <- base::Sys.getenv() [17:27:14.423] } [17:27:14.423] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:14.423] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:14.423] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:14.423] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:14.423] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:14.423] future.stdout.windows.reencode = NULL, width = 80L) [17:27:14.423] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:14.423] base::names(...future.oldOptions)) [17:27:14.423] } [17:27:14.423] if (FALSE) { [17:27:14.423] } [17:27:14.423] else { [17:27:14.423] if (TRUE) { [17:27:14.423] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:14.423] open = "w") [17:27:14.423] } [17:27:14.423] else { [17:27:14.423] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:14.423] windows = "NUL", "/dev/null"), open = "w") [17:27:14.423] } [17:27:14.423] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:14.423] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:14.423] base::sink(type = "output", split = FALSE) [17:27:14.423] base::close(...future.stdout) [17:27:14.423] }, add = TRUE) [17:27:14.423] } [17:27:14.423] ...future.frame <- base::sys.nframe() [17:27:14.423] ...future.conditions <- base::list() [17:27:14.423] ...future.rng <- base::globalenv()$.Random.seed [17:27:14.423] if (FALSE) { [17:27:14.423] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:14.423] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:14.423] } [17:27:14.423] ...future.result <- base::tryCatch({ [17:27:14.423] base::withCallingHandlers({ [17:27:14.423] ...future.value <- base::withVisible(base::local({ [17:27:14.423] 42 [17:27:14.423] })) [17:27:14.423] future::FutureResult(value = ...future.value$value, [17:27:14.423] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:14.423] ...future.rng), globalenv = if (FALSE) [17:27:14.423] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:14.423] ...future.globalenv.names)) [17:27:14.423] else NULL, started = ...future.startTime, version = "1.8") [17:27:14.423] }, condition = base::local({ [17:27:14.423] c <- base::c [17:27:14.423] inherits <- base::inherits [17:27:14.423] invokeRestart <- base::invokeRestart [17:27:14.423] length <- base::length [17:27:14.423] list <- base::list [17:27:14.423] seq.int <- base::seq.int [17:27:14.423] signalCondition <- base::signalCondition [17:27:14.423] sys.calls <- base::sys.calls [17:27:14.423] `[[` <- base::`[[` [17:27:14.423] `+` <- base::`+` [17:27:14.423] `<<-` <- base::`<<-` [17:27:14.423] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:14.423] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:14.423] 3L)] [17:27:14.423] } [17:27:14.423] function(cond) { [17:27:14.423] is_error <- inherits(cond, "error") [17:27:14.423] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:14.423] NULL) [17:27:14.423] if (is_error) { [17:27:14.423] sessionInformation <- function() { [17:27:14.423] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:14.423] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:14.423] search = base::search(), system = base::Sys.info()) [17:27:14.423] } [17:27:14.423] ...future.conditions[[length(...future.conditions) + [17:27:14.423] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:14.423] cond$call), session = sessionInformation(), [17:27:14.423] timestamp = base::Sys.time(), signaled = 0L) [17:27:14.423] signalCondition(cond) [17:27:14.423] } [17:27:14.423] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:14.423] "immediateCondition"))) { [17:27:14.423] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:14.423] ...future.conditions[[length(...future.conditions) + [17:27:14.423] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:14.423] if (TRUE && !signal) { [17:27:14.423] muffleCondition <- function (cond, pattern = "^muffle") [17:27:14.423] { [17:27:14.423] inherits <- base::inherits [17:27:14.423] invokeRestart <- base::invokeRestart [17:27:14.423] is.null <- base::is.null [17:27:14.423] muffled <- FALSE [17:27:14.423] if (inherits(cond, "message")) { [17:27:14.423] muffled <- grepl(pattern, "muffleMessage") [17:27:14.423] if (muffled) [17:27:14.423] invokeRestart("muffleMessage") [17:27:14.423] } [17:27:14.423] else if (inherits(cond, "warning")) { [17:27:14.423] muffled <- grepl(pattern, "muffleWarning") [17:27:14.423] if (muffled) [17:27:14.423] invokeRestart("muffleWarning") [17:27:14.423] } [17:27:14.423] else if (inherits(cond, "condition")) { [17:27:14.423] if (!is.null(pattern)) { [17:27:14.423] computeRestarts <- base::computeRestarts [17:27:14.423] grepl <- base::grepl [17:27:14.423] restarts <- computeRestarts(cond) [17:27:14.423] for (restart in restarts) { [17:27:14.423] name <- restart$name [17:27:14.423] if (is.null(name)) [17:27:14.423] next [17:27:14.423] if (!grepl(pattern, name)) [17:27:14.423] next [17:27:14.423] invokeRestart(restart) [17:27:14.423] muffled <- TRUE [17:27:14.423] break [17:27:14.423] } [17:27:14.423] } [17:27:14.423] } [17:27:14.423] invisible(muffled) [17:27:14.423] } [17:27:14.423] muffleCondition(cond, pattern = "^muffle") [17:27:14.423] } [17:27:14.423] } [17:27:14.423] else { [17:27:14.423] if (TRUE) { [17:27:14.423] muffleCondition <- function (cond, pattern = "^muffle") [17:27:14.423] { [17:27:14.423] inherits <- base::inherits [17:27:14.423] invokeRestart <- base::invokeRestart [17:27:14.423] is.null <- base::is.null [17:27:14.423] muffled <- FALSE [17:27:14.423] if (inherits(cond, "message")) { [17:27:14.423] muffled <- grepl(pattern, "muffleMessage") [17:27:14.423] if (muffled) [17:27:14.423] invokeRestart("muffleMessage") [17:27:14.423] } [17:27:14.423] else if (inherits(cond, "warning")) { [17:27:14.423] muffled <- grepl(pattern, "muffleWarning") [17:27:14.423] if (muffled) [17:27:14.423] invokeRestart("muffleWarning") [17:27:14.423] } [17:27:14.423] else if (inherits(cond, "condition")) { [17:27:14.423] if (!is.null(pattern)) { [17:27:14.423] computeRestarts <- base::computeRestarts [17:27:14.423] grepl <- base::grepl [17:27:14.423] restarts <- computeRestarts(cond) [17:27:14.423] for (restart in restarts) { [17:27:14.423] name <- restart$name [17:27:14.423] if (is.null(name)) [17:27:14.423] next [17:27:14.423] if (!grepl(pattern, name)) [17:27:14.423] next [17:27:14.423] invokeRestart(restart) [17:27:14.423] muffled <- TRUE [17:27:14.423] break [17:27:14.423] } [17:27:14.423] } [17:27:14.423] } [17:27:14.423] invisible(muffled) [17:27:14.423] } [17:27:14.423] muffleCondition(cond, pattern = "^muffle") [17:27:14.423] } [17:27:14.423] } [17:27:14.423] } [17:27:14.423] })) [17:27:14.423] }, error = function(ex) { [17:27:14.423] base::structure(base::list(value = NULL, visible = NULL, [17:27:14.423] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:14.423] ...future.rng), started = ...future.startTime, [17:27:14.423] finished = Sys.time(), session_uuid = NA_character_, [17:27:14.423] version = "1.8"), class = "FutureResult") [17:27:14.423] }, finally = { [17:27:14.423] if (!identical(...future.workdir, getwd())) [17:27:14.423] setwd(...future.workdir) [17:27:14.423] { [17:27:14.423] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:14.423] ...future.oldOptions$nwarnings <- NULL [17:27:14.423] } [17:27:14.423] base::options(...future.oldOptions) [17:27:14.423] if (.Platform$OS.type == "windows") { [17:27:14.423] old_names <- names(...future.oldEnvVars) [17:27:14.423] envs <- base::Sys.getenv() [17:27:14.423] names <- names(envs) [17:27:14.423] common <- intersect(names, old_names) [17:27:14.423] added <- setdiff(names, old_names) [17:27:14.423] removed <- setdiff(old_names, names) [17:27:14.423] changed <- common[...future.oldEnvVars[common] != [17:27:14.423] envs[common]] [17:27:14.423] NAMES <- toupper(changed) [17:27:14.423] args <- list() [17:27:14.423] for (kk in seq_along(NAMES)) { [17:27:14.423] name <- changed[[kk]] [17:27:14.423] NAME <- NAMES[[kk]] [17:27:14.423] if (name != NAME && is.element(NAME, old_names)) [17:27:14.423] next [17:27:14.423] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:14.423] } [17:27:14.423] NAMES <- toupper(added) [17:27:14.423] for (kk in seq_along(NAMES)) { [17:27:14.423] name <- added[[kk]] [17:27:14.423] NAME <- NAMES[[kk]] [17:27:14.423] if (name != NAME && is.element(NAME, old_names)) [17:27:14.423] next [17:27:14.423] args[[name]] <- "" [17:27:14.423] } [17:27:14.423] NAMES <- toupper(removed) [17:27:14.423] for (kk in seq_along(NAMES)) { [17:27:14.423] name <- removed[[kk]] [17:27:14.423] NAME <- NAMES[[kk]] [17:27:14.423] if (name != NAME && is.element(NAME, old_names)) [17:27:14.423] next [17:27:14.423] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:14.423] } [17:27:14.423] if (length(args) > 0) [17:27:14.423] base::do.call(base::Sys.setenv, args = args) [17:27:14.423] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:14.423] } [17:27:14.423] else { [17:27:14.423] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:14.423] } [17:27:14.423] { [17:27:14.423] if (base::length(...future.futureOptionsAdded) > [17:27:14.423] 0L) { [17:27:14.423] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:14.423] base::names(opts) <- ...future.futureOptionsAdded [17:27:14.423] base::options(opts) [17:27:14.423] } [17:27:14.423] { [17:27:14.423] { [17:27:14.423] NULL [17:27:14.423] RNGkind("Mersenne-Twister") [17:27:14.423] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:14.423] inherits = FALSE) [17:27:14.423] } [17:27:14.423] options(future.plan = NULL) [17:27:14.423] if (is.na(NA_character_)) [17:27:14.423] Sys.unsetenv("R_FUTURE_PLAN") [17:27:14.423] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:14.423] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:14.423] .init = FALSE) [17:27:14.423] } [17:27:14.423] } [17:27:14.423] } [17:27:14.423] }) [17:27:14.423] if (TRUE) { [17:27:14.423] base::sink(type = "output", split = FALSE) [17:27:14.423] if (TRUE) { [17:27:14.423] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:14.423] } [17:27:14.423] else { [17:27:14.423] ...future.result["stdout"] <- base::list(NULL) [17:27:14.423] } [17:27:14.423] base::close(...future.stdout) [17:27:14.423] ...future.stdout <- NULL [17:27:14.423] } [17:27:14.423] ...future.result$conditions <- ...future.conditions [17:27:14.423] ...future.result$finished <- base::Sys.time() [17:27:14.423] ...future.result [17:27:14.423] } [17:27:14.427] plan(): Setting new future strategy stack: [17:27:14.428] List of future strategies: [17:27:14.428] 1. sequential: [17:27:14.428] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.428] - tweaked: FALSE [17:27:14.428] - call: NULL [17:27:14.428] plan(): nbrOfWorkers() = 1 [17:27:14.430] plan(): Setting new future strategy stack: [17:27:14.430] List of future strategies: [17:27:14.430] 1. sequential: [17:27:14.430] - args: function (..., envir = parent.frame(), workers = "") [17:27:14.430] - tweaked: FALSE [17:27:14.430] - call: plan(strategy) [17:27:14.431] plan(): nbrOfWorkers() = 1 [17:27:14.431] SequentialFuture started (and completed) [17:27:14.431] - Launch lazy future ... done [17:27:14.432] run() for 'SequentialFuture' ... done SequentialFuture: Label: 'strategy = sequential' Expression: { 42 } Lazy evaluation: FALSE Asynchronous evaluation: FALSE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 39 bytes of class 'numeric' Early signaling: FALSE Owner process: 14db7dea-610a-8c8e-4c3b-ee2b7209ff96 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' - plan('sequential') ... DONE - plan('multisession') ... [17:27:14.433] plan(): Setting new future strategy stack: [17:27:14.433] List of future strategies: [17:27:14.433] 1. multisession: [17:27:14.433] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:27:14.433] - tweaked: FALSE [17:27:14.433] - call: plan(strategy) [17:27:14.434] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:27:14.434] multisession: [17:27:14.434] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:27:14.434] - tweaked: FALSE [17:27:14.434] - call: plan(strategy) [17:27:14.439] getGlobalsAndPackages() ... [17:27:14.439] Not searching for globals [17:27:14.440] - globals: [0] [17:27:14.440] getGlobalsAndPackages() ... DONE [17:27:14.441] [local output] makeClusterPSOCK() ... [17:27:14.515] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:27:14.524] [local output] Base port: 26080 [17:27:14.524] [local output] Getting setup options for 2 cluster nodes ... [17:27:14.524] [local output] - Node #1 of 2 ... [17:27:14.525] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:14.527] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpGCsaMX/worker.rank=1.parallelly.parent=152752.254b024892490.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpGCsaMX/worker.rank=1.parallelly.parent=152752.254b024892490.pid\")"' [17:27:15.079] - Possible to infer worker's PID: TRUE [17:27:15.080] [local output] Rscript port: 26080 [17:27:15.082] [local output] - Node #2 of 2 ... [17:27:15.082] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:15.084] [local output] Rscript port: 26080 [17:27:15.085] [local output] Getting setup options for 2 cluster nodes ... done [17:27:15.086] [local output] - Parallel setup requested for some PSOCK nodes [17:27:15.087] [local output] Setting up PSOCK nodes in parallel [17:27:15.087] List of 36 [17:27:15.087] $ worker : chr "localhost" [17:27:15.087] ..- attr(*, "localhost")= logi TRUE [17:27:15.087] $ master : chr "localhost" [17:27:15.087] $ port : int 26080 [17:27:15.087] $ connectTimeout : num 120 [17:27:15.087] $ timeout : num 120 [17:27:15.087] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:27:15.087] $ homogeneous : logi TRUE [17:27:15.087] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=future,labels.R:152752:CRANWIN3:"| __truncated__ [17:27:15.087] $ rscript_envs : NULL [17:27:15.087] $ rscript_libs : chr [1:2] "D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda" "D:/RCompile/recent/R/library" [17:27:15.087] $ rscript_startup : NULL [17:27:15.087] $ rscript_sh : chr [1:2] "cmd" "cmd" [17:27:15.087] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:15.087] $ methods : logi TRUE [17:27:15.087] $ socketOptions : chr "no-delay" [17:27:15.087] $ useXDR : logi FALSE [17:27:15.087] $ outfile : chr "/dev/null" [17:27:15.087] $ renice : int NA [17:27:15.087] $ rshcmd : NULL [17:27:15.087] $ user : chr(0) [17:27:15.087] $ revtunnel : logi FALSE [17:27:15.087] $ rshlogfile : NULL [17:27:15.087] $ rshopts : chr(0) [17:27:15.087] $ rank : int 1 [17:27:15.087] $ manual : logi FALSE [17:27:15.087] $ dryrun : logi FALSE [17:27:15.087] $ quiet : logi FALSE [17:27:15.087] $ setup_strategy : chr "parallel" [17:27:15.087] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:15.087] $ pidfile : chr "D:/temp/RtmpGCsaMX/worker.rank=1.parallelly.parent=152752.254b024892490.pid" [17:27:15.087] $ rshcmd_label : NULL [17:27:15.087] $ rsh_call : NULL [17:27:15.087] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:15.087] $ localMachine : logi TRUE [17:27:15.087] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:27:15.087] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:27:15.087] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:27:15.087] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:27:15.087] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:27:15.087] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [17:27:15.087] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [17:27:15.087] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:27:15.087] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:27:15.087] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:27:15.087] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:27:15.087] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:27:15.087] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:27:15.087] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:27:15.087] $ arguments :List of 28 [17:27:15.087] ..$ worker : chr "localhost" [17:27:15.087] ..$ master : NULL [17:27:15.087] ..$ port : int 26080 [17:27:15.087] ..$ connectTimeout : num 120 [17:27:15.087] ..$ timeout : num 120 [17:27:15.087] ..$ rscript : NULL [17:27:15.087] ..$ homogeneous : NULL [17:27:15.087] ..$ rscript_args : NULL [17:27:15.087] ..$ rscript_envs : NULL [17:27:15.087] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda" "D:/RCompile/recent/R/library" [17:27:15.087] ..$ rscript_startup : NULL [17:27:15.087] ..$ rscript_sh : chr "auto" [17:27:15.087] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:15.087] ..$ methods : logi TRUE [17:27:15.087] ..$ socketOptions : chr "no-delay" [17:27:15.087] ..$ useXDR : logi FALSE [17:27:15.087] ..$ outfile : chr "/dev/null" [17:27:15.087] ..$ renice : int NA [17:27:15.087] ..$ rshcmd : NULL [17:27:15.087] ..$ user : NULL [17:27:15.087] ..$ revtunnel : logi NA [17:27:15.087] ..$ rshlogfile : NULL [17:27:15.087] ..$ rshopts : NULL [17:27:15.087] ..$ rank : int 1 [17:27:15.087] ..$ manual : logi FALSE [17:27:15.087] ..$ dryrun : logi FALSE [17:27:15.087] ..$ quiet : logi FALSE [17:27:15.087] ..$ setup_strategy : chr "parallel" [17:27:15.087] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:27:15.131] [local output] System call to launch all workers: [17:27:15.131] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=future,labels.R:152752:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpGCsaMX/worker.rank=1.parallelly.parent=152752.254b024892490.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=26080 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:27:15.132] [local output] Starting PSOCK main server [17:27:15.142] [local output] Workers launched [17:27:15.143] [local output] Waiting for workers to connect back [17:27:15.143] - [local output] 0 workers out of 2 ready [17:27:15.392] - [local output] 0 workers out of 2 ready [17:27:15.393] - [local output] 1 workers out of 2 ready [17:27:15.408] - [local output] 1 workers out of 2 ready [17:27:15.409] - [local output] 2 workers out of 2 ready [17:27:15.409] [local output] Launching of 2 workers completed [17:27:15.409] [local output] Number of nodes in cluster: 2 [17:27:15.410] [local output] Collecting session information from 2 workers [17:27:15.411] [local output] - Worker #1 of 2 [17:27:15.412] [local output] - Worker #2 of 2 [17:27:15.413] [local output] makeClusterPSOCK() ... done [17:27:15.428] Packages needed by the future expression (n = 0): [17:27:15.428] Packages needed by future strategies (n = 0): [17:27:15.429] { [17:27:15.429] { [17:27:15.429] { [17:27:15.429] ...future.startTime <- base::Sys.time() [17:27:15.429] { [17:27:15.429] { [17:27:15.429] { [17:27:15.429] { [17:27:15.429] base::local({ [17:27:15.429] has_future <- base::requireNamespace("future", [17:27:15.429] quietly = TRUE) [17:27:15.429] if (has_future) { [17:27:15.429] ns <- base::getNamespace("future") [17:27:15.429] version <- ns[[".package"]][["version"]] [17:27:15.429] if (is.null(version)) [17:27:15.429] version <- utils::packageVersion("future") [17:27:15.429] } [17:27:15.429] else { [17:27:15.429] version <- NULL [17:27:15.429] } [17:27:15.429] if (!has_future || version < "1.8.0") { [17:27:15.429] info <- base::c(r_version = base::gsub("R version ", [17:27:15.429] "", base::R.version$version.string), [17:27:15.429] platform = base::sprintf("%s (%s-bit)", [17:27:15.429] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:15.429] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:15.429] "release", "version")], collapse = " "), [17:27:15.429] hostname = base::Sys.info()[["nodename"]]) [17:27:15.429] info <- base::sprintf("%s: %s", base::names(info), [17:27:15.429] info) [17:27:15.429] info <- base::paste(info, collapse = "; ") [17:27:15.429] if (!has_future) { [17:27:15.429] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:15.429] info) [17:27:15.429] } [17:27:15.429] else { [17:27:15.429] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:15.429] info, version) [17:27:15.429] } [17:27:15.429] base::stop(msg) [17:27:15.429] } [17:27:15.429] }) [17:27:15.429] } [17:27:15.429] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:15.429] base::options(mc.cores = 1L) [17:27:15.429] } [17:27:15.429] ...future.strategy.old <- future::plan("list") [17:27:15.429] options(future.plan = NULL) [17:27:15.429] Sys.unsetenv("R_FUTURE_PLAN") [17:27:15.429] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:15.429] } [17:27:15.429] ...future.workdir <- getwd() [17:27:15.429] } [17:27:15.429] ...future.oldOptions <- base::as.list(base::.Options) [17:27:15.429] ...future.oldEnvVars <- base::Sys.getenv() [17:27:15.429] } [17:27:15.429] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:15.429] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:15.429] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:15.429] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:15.429] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:15.429] future.stdout.windows.reencode = NULL, width = 80L) [17:27:15.429] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:15.429] base::names(...future.oldOptions)) [17:27:15.429] } [17:27:15.429] if (FALSE) { [17:27:15.429] } [17:27:15.429] else { [17:27:15.429] if (TRUE) { [17:27:15.429] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:15.429] open = "w") [17:27:15.429] } [17:27:15.429] else { [17:27:15.429] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:15.429] windows = "NUL", "/dev/null"), open = "w") [17:27:15.429] } [17:27:15.429] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:15.429] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:15.429] base::sink(type = "output", split = FALSE) [17:27:15.429] base::close(...future.stdout) [17:27:15.429] }, add = TRUE) [17:27:15.429] } [17:27:15.429] ...future.frame <- base::sys.nframe() [17:27:15.429] ...future.conditions <- base::list() [17:27:15.429] ...future.rng <- base::globalenv()$.Random.seed [17:27:15.429] if (FALSE) { [17:27:15.429] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:15.429] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:15.429] } [17:27:15.429] ...future.result <- base::tryCatch({ [17:27:15.429] base::withCallingHandlers({ [17:27:15.429] ...future.value <- base::withVisible(base::local({ [17:27:15.429] ...future.makeSendCondition <- base::local({ [17:27:15.429] sendCondition <- NULL [17:27:15.429] function(frame = 1L) { [17:27:15.429] if (is.function(sendCondition)) [17:27:15.429] return(sendCondition) [17:27:15.429] ns <- getNamespace("parallel") [17:27:15.429] if (exists("sendData", mode = "function", [17:27:15.429] envir = ns)) { [17:27:15.429] parallel_sendData <- get("sendData", mode = "function", [17:27:15.429] envir = ns) [17:27:15.429] envir <- sys.frame(frame) [17:27:15.429] master <- NULL [17:27:15.429] while (!identical(envir, .GlobalEnv) && [17:27:15.429] !identical(envir, emptyenv())) { [17:27:15.429] if (exists("master", mode = "list", envir = envir, [17:27:15.429] inherits = FALSE)) { [17:27:15.429] master <- get("master", mode = "list", [17:27:15.429] envir = envir, inherits = FALSE) [17:27:15.429] if (inherits(master, c("SOCKnode", [17:27:15.429] "SOCK0node"))) { [17:27:15.429] sendCondition <<- function(cond) { [17:27:15.429] data <- list(type = "VALUE", value = cond, [17:27:15.429] success = TRUE) [17:27:15.429] parallel_sendData(master, data) [17:27:15.429] } [17:27:15.429] return(sendCondition) [17:27:15.429] } [17:27:15.429] } [17:27:15.429] frame <- frame + 1L [17:27:15.429] envir <- sys.frame(frame) [17:27:15.429] } [17:27:15.429] } [17:27:15.429] sendCondition <<- function(cond) NULL [17:27:15.429] } [17:27:15.429] }) [17:27:15.429] withCallingHandlers({ [17:27:15.429] NA [17:27:15.429] }, immediateCondition = function(cond) { [17:27:15.429] sendCondition <- ...future.makeSendCondition() [17:27:15.429] sendCondition(cond) [17:27:15.429] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.429] { [17:27:15.429] inherits <- base::inherits [17:27:15.429] invokeRestart <- base::invokeRestart [17:27:15.429] is.null <- base::is.null [17:27:15.429] muffled <- FALSE [17:27:15.429] if (inherits(cond, "message")) { [17:27:15.429] muffled <- grepl(pattern, "muffleMessage") [17:27:15.429] if (muffled) [17:27:15.429] invokeRestart("muffleMessage") [17:27:15.429] } [17:27:15.429] else if (inherits(cond, "warning")) { [17:27:15.429] muffled <- grepl(pattern, "muffleWarning") [17:27:15.429] if (muffled) [17:27:15.429] invokeRestart("muffleWarning") [17:27:15.429] } [17:27:15.429] else if (inherits(cond, "condition")) { [17:27:15.429] if (!is.null(pattern)) { [17:27:15.429] computeRestarts <- base::computeRestarts [17:27:15.429] grepl <- base::grepl [17:27:15.429] restarts <- computeRestarts(cond) [17:27:15.429] for (restart in restarts) { [17:27:15.429] name <- restart$name [17:27:15.429] if (is.null(name)) [17:27:15.429] next [17:27:15.429] if (!grepl(pattern, name)) [17:27:15.429] next [17:27:15.429] invokeRestart(restart) [17:27:15.429] muffled <- TRUE [17:27:15.429] break [17:27:15.429] } [17:27:15.429] } [17:27:15.429] } [17:27:15.429] invisible(muffled) [17:27:15.429] } [17:27:15.429] muffleCondition(cond) [17:27:15.429] }) [17:27:15.429] })) [17:27:15.429] future::FutureResult(value = ...future.value$value, [17:27:15.429] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:15.429] ...future.rng), globalenv = if (FALSE) [17:27:15.429] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:15.429] ...future.globalenv.names)) [17:27:15.429] else NULL, started = ...future.startTime, version = "1.8") [17:27:15.429] }, condition = base::local({ [17:27:15.429] c <- base::c [17:27:15.429] inherits <- base::inherits [17:27:15.429] invokeRestart <- base::invokeRestart [17:27:15.429] length <- base::length [17:27:15.429] list <- base::list [17:27:15.429] seq.int <- base::seq.int [17:27:15.429] signalCondition <- base::signalCondition [17:27:15.429] sys.calls <- base::sys.calls [17:27:15.429] `[[` <- base::`[[` [17:27:15.429] `+` <- base::`+` [17:27:15.429] `<<-` <- base::`<<-` [17:27:15.429] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:15.429] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:15.429] 3L)] [17:27:15.429] } [17:27:15.429] function(cond) { [17:27:15.429] is_error <- inherits(cond, "error") [17:27:15.429] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:15.429] NULL) [17:27:15.429] if (is_error) { [17:27:15.429] sessionInformation <- function() { [17:27:15.429] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:15.429] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:15.429] search = base::search(), system = base::Sys.info()) [17:27:15.429] } [17:27:15.429] ...future.conditions[[length(...future.conditions) + [17:27:15.429] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:15.429] cond$call), session = sessionInformation(), [17:27:15.429] timestamp = base::Sys.time(), signaled = 0L) [17:27:15.429] signalCondition(cond) [17:27:15.429] } [17:27:15.429] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:15.429] "immediateCondition"))) { [17:27:15.429] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:15.429] ...future.conditions[[length(...future.conditions) + [17:27:15.429] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:15.429] if (TRUE && !signal) { [17:27:15.429] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.429] { [17:27:15.429] inherits <- base::inherits [17:27:15.429] invokeRestart <- base::invokeRestart [17:27:15.429] is.null <- base::is.null [17:27:15.429] muffled <- FALSE [17:27:15.429] if (inherits(cond, "message")) { [17:27:15.429] muffled <- grepl(pattern, "muffleMessage") [17:27:15.429] if (muffled) [17:27:15.429] invokeRestart("muffleMessage") [17:27:15.429] } [17:27:15.429] else if (inherits(cond, "warning")) { [17:27:15.429] muffled <- grepl(pattern, "muffleWarning") [17:27:15.429] if (muffled) [17:27:15.429] invokeRestart("muffleWarning") [17:27:15.429] } [17:27:15.429] else if (inherits(cond, "condition")) { [17:27:15.429] if (!is.null(pattern)) { [17:27:15.429] computeRestarts <- base::computeRestarts [17:27:15.429] grepl <- base::grepl [17:27:15.429] restarts <- computeRestarts(cond) [17:27:15.429] for (restart in restarts) { [17:27:15.429] name <- restart$name [17:27:15.429] if (is.null(name)) [17:27:15.429] next [17:27:15.429] if (!grepl(pattern, name)) [17:27:15.429] next [17:27:15.429] invokeRestart(restart) [17:27:15.429] muffled <- TRUE [17:27:15.429] break [17:27:15.429] } [17:27:15.429] } [17:27:15.429] } [17:27:15.429] invisible(muffled) [17:27:15.429] } [17:27:15.429] muffleCondition(cond, pattern = "^muffle") [17:27:15.429] } [17:27:15.429] } [17:27:15.429] else { [17:27:15.429] if (TRUE) { [17:27:15.429] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.429] { [17:27:15.429] inherits <- base::inherits [17:27:15.429] invokeRestart <- base::invokeRestart [17:27:15.429] is.null <- base::is.null [17:27:15.429] muffled <- FALSE [17:27:15.429] if (inherits(cond, "message")) { [17:27:15.429] muffled <- grepl(pattern, "muffleMessage") [17:27:15.429] if (muffled) [17:27:15.429] invokeRestart("muffleMessage") [17:27:15.429] } [17:27:15.429] else if (inherits(cond, "warning")) { [17:27:15.429] muffled <- grepl(pattern, "muffleWarning") [17:27:15.429] if (muffled) [17:27:15.429] invokeRestart("muffleWarning") [17:27:15.429] } [17:27:15.429] else if (inherits(cond, "condition")) { [17:27:15.429] if (!is.null(pattern)) { [17:27:15.429] computeRestarts <- base::computeRestarts [17:27:15.429] grepl <- base::grepl [17:27:15.429] restarts <- computeRestarts(cond) [17:27:15.429] for (restart in restarts) { [17:27:15.429] name <- restart$name [17:27:15.429] if (is.null(name)) [17:27:15.429] next [17:27:15.429] if (!grepl(pattern, name)) [17:27:15.429] next [17:27:15.429] invokeRestart(restart) [17:27:15.429] muffled <- TRUE [17:27:15.429] break [17:27:15.429] } [17:27:15.429] } [17:27:15.429] } [17:27:15.429] invisible(muffled) [17:27:15.429] } [17:27:15.429] muffleCondition(cond, pattern = "^muffle") [17:27:15.429] } [17:27:15.429] } [17:27:15.429] } [17:27:15.429] })) [17:27:15.429] }, error = function(ex) { [17:27:15.429] base::structure(base::list(value = NULL, visible = NULL, [17:27:15.429] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:15.429] ...future.rng), started = ...future.startTime, [17:27:15.429] finished = Sys.time(), session_uuid = NA_character_, [17:27:15.429] version = "1.8"), class = "FutureResult") [17:27:15.429] }, finally = { [17:27:15.429] if (!identical(...future.workdir, getwd())) [17:27:15.429] setwd(...future.workdir) [17:27:15.429] { [17:27:15.429] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:15.429] ...future.oldOptions$nwarnings <- NULL [17:27:15.429] } [17:27:15.429] base::options(...future.oldOptions) [17:27:15.429] if (.Platform$OS.type == "windows") { [17:27:15.429] old_names <- names(...future.oldEnvVars) [17:27:15.429] envs <- base::Sys.getenv() [17:27:15.429] names <- names(envs) [17:27:15.429] common <- intersect(names, old_names) [17:27:15.429] added <- setdiff(names, old_names) [17:27:15.429] removed <- setdiff(old_names, names) [17:27:15.429] changed <- common[...future.oldEnvVars[common] != [17:27:15.429] envs[common]] [17:27:15.429] NAMES <- toupper(changed) [17:27:15.429] args <- list() [17:27:15.429] for (kk in seq_along(NAMES)) { [17:27:15.429] name <- changed[[kk]] [17:27:15.429] NAME <- NAMES[[kk]] [17:27:15.429] if (name != NAME && is.element(NAME, old_names)) [17:27:15.429] next [17:27:15.429] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:15.429] } [17:27:15.429] NAMES <- toupper(added) [17:27:15.429] for (kk in seq_along(NAMES)) { [17:27:15.429] name <- added[[kk]] [17:27:15.429] NAME <- NAMES[[kk]] [17:27:15.429] if (name != NAME && is.element(NAME, old_names)) [17:27:15.429] next [17:27:15.429] args[[name]] <- "" [17:27:15.429] } [17:27:15.429] NAMES <- toupper(removed) [17:27:15.429] for (kk in seq_along(NAMES)) { [17:27:15.429] name <- removed[[kk]] [17:27:15.429] NAME <- NAMES[[kk]] [17:27:15.429] if (name != NAME && is.element(NAME, old_names)) [17:27:15.429] next [17:27:15.429] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:15.429] } [17:27:15.429] if (length(args) > 0) [17:27:15.429] base::do.call(base::Sys.setenv, args = args) [17:27:15.429] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:15.429] } [17:27:15.429] else { [17:27:15.429] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:15.429] } [17:27:15.429] { [17:27:15.429] if (base::length(...future.futureOptionsAdded) > [17:27:15.429] 0L) { [17:27:15.429] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:15.429] base::names(opts) <- ...future.futureOptionsAdded [17:27:15.429] base::options(opts) [17:27:15.429] } [17:27:15.429] { [17:27:15.429] { [17:27:15.429] base::options(mc.cores = ...future.mc.cores.old) [17:27:15.429] NULL [17:27:15.429] } [17:27:15.429] options(future.plan = NULL) [17:27:15.429] if (is.na(NA_character_)) [17:27:15.429] Sys.unsetenv("R_FUTURE_PLAN") [17:27:15.429] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:15.429] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:15.429] .init = FALSE) [17:27:15.429] } [17:27:15.429] } [17:27:15.429] } [17:27:15.429] }) [17:27:15.429] if (TRUE) { [17:27:15.429] base::sink(type = "output", split = FALSE) [17:27:15.429] if (TRUE) { [17:27:15.429] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:15.429] } [17:27:15.429] else { [17:27:15.429] ...future.result["stdout"] <- base::list(NULL) [17:27:15.429] } [17:27:15.429] base::close(...future.stdout) [17:27:15.429] ...future.stdout <- NULL [17:27:15.429] } [17:27:15.429] ...future.result$conditions <- ...future.conditions [17:27:15.429] ...future.result$finished <- base::Sys.time() [17:27:15.429] ...future.result [17:27:15.429] } [17:27:15.575] MultisessionFuture started [17:27:15.575] result() for ClusterFuture ... [17:27:15.576] receiveMessageFromWorker() for ClusterFuture ... [17:27:15.576] - Validating connection of MultisessionFuture [17:27:15.632] - received message: FutureResult [17:27:15.633] - Received FutureResult [17:27:15.639] - Erased future from FutureRegistry [17:27:15.639] result() for ClusterFuture ... [17:27:15.640] - result already collected: FutureResult [17:27:15.640] result() for ClusterFuture ... done [17:27:15.640] receiveMessageFromWorker() for ClusterFuture ... done [17:27:15.641] result() for ClusterFuture ... done [17:27:15.641] result() for ClusterFuture ... [17:27:15.641] - result already collected: FutureResult [17:27:15.642] result() for ClusterFuture ... done [17:27:15.642] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:27:15.647] plan(): nbrOfWorkers() = 2 [17:27:15.651] getGlobalsAndPackages() ... [17:27:15.652] [17:27:15.652] - globals: [0] [17:27:15.653] getGlobalsAndPackages() ... DONE [17:27:15.670] Packages needed by the future expression (n = 0): [17:27:15.670] Packages needed by future strategies (n = 0): [17:27:15.671] { [17:27:15.671] { [17:27:15.671] { [17:27:15.671] ...future.startTime <- base::Sys.time() [17:27:15.671] { [17:27:15.671] { [17:27:15.671] { [17:27:15.671] { [17:27:15.671] base::local({ [17:27:15.671] has_future <- base::requireNamespace("future", [17:27:15.671] quietly = TRUE) [17:27:15.671] if (has_future) { [17:27:15.671] ns <- base::getNamespace("future") [17:27:15.671] version <- ns[[".package"]][["version"]] [17:27:15.671] if (is.null(version)) [17:27:15.671] version <- utils::packageVersion("future") [17:27:15.671] } [17:27:15.671] else { [17:27:15.671] version <- NULL [17:27:15.671] } [17:27:15.671] if (!has_future || version < "1.8.0") { [17:27:15.671] info <- base::c(r_version = base::gsub("R version ", [17:27:15.671] "", base::R.version$version.string), [17:27:15.671] platform = base::sprintf("%s (%s-bit)", [17:27:15.671] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:15.671] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:15.671] "release", "version")], collapse = " "), [17:27:15.671] hostname = base::Sys.info()[["nodename"]]) [17:27:15.671] info <- base::sprintf("%s: %s", base::names(info), [17:27:15.671] info) [17:27:15.671] info <- base::paste(info, collapse = "; ") [17:27:15.671] if (!has_future) { [17:27:15.671] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:15.671] info) [17:27:15.671] } [17:27:15.671] else { [17:27:15.671] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:15.671] info, version) [17:27:15.671] } [17:27:15.671] base::stop(msg) [17:27:15.671] } [17:27:15.671] }) [17:27:15.671] } [17:27:15.671] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:15.671] base::options(mc.cores = 1L) [17:27:15.671] } [17:27:15.671] ...future.strategy.old <- future::plan("list") [17:27:15.671] options(future.plan = NULL) [17:27:15.671] Sys.unsetenv("R_FUTURE_PLAN") [17:27:15.671] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:15.671] } [17:27:15.671] ...future.workdir <- getwd() [17:27:15.671] } [17:27:15.671] ...future.oldOptions <- base::as.list(base::.Options) [17:27:15.671] ...future.oldEnvVars <- base::Sys.getenv() [17:27:15.671] } [17:27:15.671] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:15.671] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:15.671] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:15.671] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:15.671] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:15.671] future.stdout.windows.reencode = NULL, width = 80L) [17:27:15.671] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:15.671] base::names(...future.oldOptions)) [17:27:15.671] } [17:27:15.671] if (FALSE) { [17:27:15.671] } [17:27:15.671] else { [17:27:15.671] if (TRUE) { [17:27:15.671] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:15.671] open = "w") [17:27:15.671] } [17:27:15.671] else { [17:27:15.671] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:15.671] windows = "NUL", "/dev/null"), open = "w") [17:27:15.671] } [17:27:15.671] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:15.671] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:15.671] base::sink(type = "output", split = FALSE) [17:27:15.671] base::close(...future.stdout) [17:27:15.671] }, add = TRUE) [17:27:15.671] } [17:27:15.671] ...future.frame <- base::sys.nframe() [17:27:15.671] ...future.conditions <- base::list() [17:27:15.671] ...future.rng <- base::globalenv()$.Random.seed [17:27:15.671] if (FALSE) { [17:27:15.671] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:15.671] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:15.671] } [17:27:15.671] ...future.result <- base::tryCatch({ [17:27:15.671] base::withCallingHandlers({ [17:27:15.671] ...future.value <- base::withVisible(base::local({ [17:27:15.671] ...future.makeSendCondition <- base::local({ [17:27:15.671] sendCondition <- NULL [17:27:15.671] function(frame = 1L) { [17:27:15.671] if (is.function(sendCondition)) [17:27:15.671] return(sendCondition) [17:27:15.671] ns <- getNamespace("parallel") [17:27:15.671] if (exists("sendData", mode = "function", [17:27:15.671] envir = ns)) { [17:27:15.671] parallel_sendData <- get("sendData", mode = "function", [17:27:15.671] envir = ns) [17:27:15.671] envir <- sys.frame(frame) [17:27:15.671] master <- NULL [17:27:15.671] while (!identical(envir, .GlobalEnv) && [17:27:15.671] !identical(envir, emptyenv())) { [17:27:15.671] if (exists("master", mode = "list", envir = envir, [17:27:15.671] inherits = FALSE)) { [17:27:15.671] master <- get("master", mode = "list", [17:27:15.671] envir = envir, inherits = FALSE) [17:27:15.671] if (inherits(master, c("SOCKnode", [17:27:15.671] "SOCK0node"))) { [17:27:15.671] sendCondition <<- function(cond) { [17:27:15.671] data <- list(type = "VALUE", value = cond, [17:27:15.671] success = TRUE) [17:27:15.671] parallel_sendData(master, data) [17:27:15.671] } [17:27:15.671] return(sendCondition) [17:27:15.671] } [17:27:15.671] } [17:27:15.671] frame <- frame + 1L [17:27:15.671] envir <- sys.frame(frame) [17:27:15.671] } [17:27:15.671] } [17:27:15.671] sendCondition <<- function(cond) NULL [17:27:15.671] } [17:27:15.671] }) [17:27:15.671] withCallingHandlers({ [17:27:15.671] 42 [17:27:15.671] }, immediateCondition = function(cond) { [17:27:15.671] sendCondition <- ...future.makeSendCondition() [17:27:15.671] sendCondition(cond) [17:27:15.671] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.671] { [17:27:15.671] inherits <- base::inherits [17:27:15.671] invokeRestart <- base::invokeRestart [17:27:15.671] is.null <- base::is.null [17:27:15.671] muffled <- FALSE [17:27:15.671] if (inherits(cond, "message")) { [17:27:15.671] muffled <- grepl(pattern, "muffleMessage") [17:27:15.671] if (muffled) [17:27:15.671] invokeRestart("muffleMessage") [17:27:15.671] } [17:27:15.671] else if (inherits(cond, "warning")) { [17:27:15.671] muffled <- grepl(pattern, "muffleWarning") [17:27:15.671] if (muffled) [17:27:15.671] invokeRestart("muffleWarning") [17:27:15.671] } [17:27:15.671] else if (inherits(cond, "condition")) { [17:27:15.671] if (!is.null(pattern)) { [17:27:15.671] computeRestarts <- base::computeRestarts [17:27:15.671] grepl <- base::grepl [17:27:15.671] restarts <- computeRestarts(cond) [17:27:15.671] for (restart in restarts) { [17:27:15.671] name <- restart$name [17:27:15.671] if (is.null(name)) [17:27:15.671] next [17:27:15.671] if (!grepl(pattern, name)) [17:27:15.671] next [17:27:15.671] invokeRestart(restart) [17:27:15.671] muffled <- TRUE [17:27:15.671] break [17:27:15.671] } [17:27:15.671] } [17:27:15.671] } [17:27:15.671] invisible(muffled) [17:27:15.671] } [17:27:15.671] muffleCondition(cond) [17:27:15.671] }) [17:27:15.671] })) [17:27:15.671] future::FutureResult(value = ...future.value$value, [17:27:15.671] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:15.671] ...future.rng), globalenv = if (FALSE) [17:27:15.671] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:15.671] ...future.globalenv.names)) [17:27:15.671] else NULL, started = ...future.startTime, version = "1.8") [17:27:15.671] }, condition = base::local({ [17:27:15.671] c <- base::c [17:27:15.671] inherits <- base::inherits [17:27:15.671] invokeRestart <- base::invokeRestart [17:27:15.671] length <- base::length [17:27:15.671] list <- base::list [17:27:15.671] seq.int <- base::seq.int [17:27:15.671] signalCondition <- base::signalCondition [17:27:15.671] sys.calls <- base::sys.calls [17:27:15.671] `[[` <- base::`[[` [17:27:15.671] `+` <- base::`+` [17:27:15.671] `<<-` <- base::`<<-` [17:27:15.671] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:15.671] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:15.671] 3L)] [17:27:15.671] } [17:27:15.671] function(cond) { [17:27:15.671] is_error <- inherits(cond, "error") [17:27:15.671] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:15.671] NULL) [17:27:15.671] if (is_error) { [17:27:15.671] sessionInformation <- function() { [17:27:15.671] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:15.671] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:15.671] search = base::search(), system = base::Sys.info()) [17:27:15.671] } [17:27:15.671] ...future.conditions[[length(...future.conditions) + [17:27:15.671] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:15.671] cond$call), session = sessionInformation(), [17:27:15.671] timestamp = base::Sys.time(), signaled = 0L) [17:27:15.671] signalCondition(cond) [17:27:15.671] } [17:27:15.671] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:15.671] "immediateCondition"))) { [17:27:15.671] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:15.671] ...future.conditions[[length(...future.conditions) + [17:27:15.671] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:15.671] if (TRUE && !signal) { [17:27:15.671] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.671] { [17:27:15.671] inherits <- base::inherits [17:27:15.671] invokeRestart <- base::invokeRestart [17:27:15.671] is.null <- base::is.null [17:27:15.671] muffled <- FALSE [17:27:15.671] if (inherits(cond, "message")) { [17:27:15.671] muffled <- grepl(pattern, "muffleMessage") [17:27:15.671] if (muffled) [17:27:15.671] invokeRestart("muffleMessage") [17:27:15.671] } [17:27:15.671] else if (inherits(cond, "warning")) { [17:27:15.671] muffled <- grepl(pattern, "muffleWarning") [17:27:15.671] if (muffled) [17:27:15.671] invokeRestart("muffleWarning") [17:27:15.671] } [17:27:15.671] else if (inherits(cond, "condition")) { [17:27:15.671] if (!is.null(pattern)) { [17:27:15.671] computeRestarts <- base::computeRestarts [17:27:15.671] grepl <- base::grepl [17:27:15.671] restarts <- computeRestarts(cond) [17:27:15.671] for (restart in restarts) { [17:27:15.671] name <- restart$name [17:27:15.671] if (is.null(name)) [17:27:15.671] next [17:27:15.671] if (!grepl(pattern, name)) [17:27:15.671] next [17:27:15.671] invokeRestart(restart) [17:27:15.671] muffled <- TRUE [17:27:15.671] break [17:27:15.671] } [17:27:15.671] } [17:27:15.671] } [17:27:15.671] invisible(muffled) [17:27:15.671] } [17:27:15.671] muffleCondition(cond, pattern = "^muffle") [17:27:15.671] } [17:27:15.671] } [17:27:15.671] else { [17:27:15.671] if (TRUE) { [17:27:15.671] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.671] { [17:27:15.671] inherits <- base::inherits [17:27:15.671] invokeRestart <- base::invokeRestart [17:27:15.671] is.null <- base::is.null [17:27:15.671] muffled <- FALSE [17:27:15.671] if (inherits(cond, "message")) { [17:27:15.671] muffled <- grepl(pattern, "muffleMessage") [17:27:15.671] if (muffled) [17:27:15.671] invokeRestart("muffleMessage") [17:27:15.671] } [17:27:15.671] else if (inherits(cond, "warning")) { [17:27:15.671] muffled <- grepl(pattern, "muffleWarning") [17:27:15.671] if (muffled) [17:27:15.671] invokeRestart("muffleWarning") [17:27:15.671] } [17:27:15.671] else if (inherits(cond, "condition")) { [17:27:15.671] if (!is.null(pattern)) { [17:27:15.671] computeRestarts <- base::computeRestarts [17:27:15.671] grepl <- base::grepl [17:27:15.671] restarts <- computeRestarts(cond) [17:27:15.671] for (restart in restarts) { [17:27:15.671] name <- restart$name [17:27:15.671] if (is.null(name)) [17:27:15.671] next [17:27:15.671] if (!grepl(pattern, name)) [17:27:15.671] next [17:27:15.671] invokeRestart(restart) [17:27:15.671] muffled <- TRUE [17:27:15.671] break [17:27:15.671] } [17:27:15.671] } [17:27:15.671] } [17:27:15.671] invisible(muffled) [17:27:15.671] } [17:27:15.671] muffleCondition(cond, pattern = "^muffle") [17:27:15.671] } [17:27:15.671] } [17:27:15.671] } [17:27:15.671] })) [17:27:15.671] }, error = function(ex) { [17:27:15.671] base::structure(base::list(value = NULL, visible = NULL, [17:27:15.671] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:15.671] ...future.rng), started = ...future.startTime, [17:27:15.671] finished = Sys.time(), session_uuid = NA_character_, [17:27:15.671] version = "1.8"), class = "FutureResult") [17:27:15.671] }, finally = { [17:27:15.671] if (!identical(...future.workdir, getwd())) [17:27:15.671] setwd(...future.workdir) [17:27:15.671] { [17:27:15.671] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:15.671] ...future.oldOptions$nwarnings <- NULL [17:27:15.671] } [17:27:15.671] base::options(...future.oldOptions) [17:27:15.671] if (.Platform$OS.type == "windows") { [17:27:15.671] old_names <- names(...future.oldEnvVars) [17:27:15.671] envs <- base::Sys.getenv() [17:27:15.671] names <- names(envs) [17:27:15.671] common <- intersect(names, old_names) [17:27:15.671] added <- setdiff(names, old_names) [17:27:15.671] removed <- setdiff(old_names, names) [17:27:15.671] changed <- common[...future.oldEnvVars[common] != [17:27:15.671] envs[common]] [17:27:15.671] NAMES <- toupper(changed) [17:27:15.671] args <- list() [17:27:15.671] for (kk in seq_along(NAMES)) { [17:27:15.671] name <- changed[[kk]] [17:27:15.671] NAME <- NAMES[[kk]] [17:27:15.671] if (name != NAME && is.element(NAME, old_names)) [17:27:15.671] next [17:27:15.671] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:15.671] } [17:27:15.671] NAMES <- toupper(added) [17:27:15.671] for (kk in seq_along(NAMES)) { [17:27:15.671] name <- added[[kk]] [17:27:15.671] NAME <- NAMES[[kk]] [17:27:15.671] if (name != NAME && is.element(NAME, old_names)) [17:27:15.671] next [17:27:15.671] args[[name]] <- "" [17:27:15.671] } [17:27:15.671] NAMES <- toupper(removed) [17:27:15.671] for (kk in seq_along(NAMES)) { [17:27:15.671] name <- removed[[kk]] [17:27:15.671] NAME <- NAMES[[kk]] [17:27:15.671] if (name != NAME && is.element(NAME, old_names)) [17:27:15.671] next [17:27:15.671] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:15.671] } [17:27:15.671] if (length(args) > 0) [17:27:15.671] base::do.call(base::Sys.setenv, args = args) [17:27:15.671] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:15.671] } [17:27:15.671] else { [17:27:15.671] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:15.671] } [17:27:15.671] { [17:27:15.671] if (base::length(...future.futureOptionsAdded) > [17:27:15.671] 0L) { [17:27:15.671] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:15.671] base::names(opts) <- ...future.futureOptionsAdded [17:27:15.671] base::options(opts) [17:27:15.671] } [17:27:15.671] { [17:27:15.671] { [17:27:15.671] base::options(mc.cores = ...future.mc.cores.old) [17:27:15.671] NULL [17:27:15.671] } [17:27:15.671] options(future.plan = NULL) [17:27:15.671] if (is.na(NA_character_)) [17:27:15.671] Sys.unsetenv("R_FUTURE_PLAN") [17:27:15.671] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:15.671] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:15.671] .init = FALSE) [17:27:15.671] } [17:27:15.671] } [17:27:15.671] } [17:27:15.671] }) [17:27:15.671] if (TRUE) { [17:27:15.671] base::sink(type = "output", split = FALSE) [17:27:15.671] if (TRUE) { [17:27:15.671] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:15.671] } [17:27:15.671] else { [17:27:15.671] ...future.result["stdout"] <- base::list(NULL) [17:27:15.671] } [17:27:15.671] base::close(...future.stdout) [17:27:15.671] ...future.stdout <- NULL [17:27:15.671] } [17:27:15.671] ...future.result$conditions <- ...future.conditions [17:27:15.671] ...future.result$finished <- base::Sys.time() [17:27:15.671] ...future.result [17:27:15.671] } [17:27:15.681] MultisessionFuture started MultisessionFuture: Label: '' Expression: [1] 42 Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) [17:27:15.705] receiveMessageFromWorker() for ClusterFuture ... [17:27:15.706] - Validating connection of MultisessionFuture [17:27:15.707] - received message: FutureResult [17:27:15.707] - Received FutureResult [17:27:15.707] - Erased future from FutureRegistry [17:27:15.708] result() for ClusterFuture ... [17:27:15.708] - result already collected: FutureResult [17:27:15.708] result() for ClusterFuture ... done [17:27:15.709] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: 14db7dea-610a-8c8e-4c3b-ee2b7209ff96 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:15.709] result() for ClusterFuture ... [17:27:15.710] - result already collected: FutureResult [17:27:15.710] result() for ClusterFuture ... done [17:27:15.710] result() for ClusterFuture ... [17:27:15.711] - result already collected: FutureResult [17:27:15.711] result() for ClusterFuture ... done [17:27:15.712] getGlobalsAndPackages() ... [17:27:15.712] Searching for globals... [17:27:15.713] [17:27:15.713] Searching for globals ... DONE [17:27:15.713] - globals: [0] [17:27:15.714] getGlobalsAndPackages() ... DONE [17:27:15.714] run() for 'Future' ... [17:27:15.715] - state: 'created' [17:27:15.715] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:15.736] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:15.737] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:15.737] - Field: 'node' [17:27:15.737] - Field: 'label' [17:27:15.738] - Field: 'local' [17:27:15.738] - Field: 'owner' [17:27:15.738] - Field: 'envir' [17:27:15.739] - Field: 'workers' [17:27:15.739] - Field: 'packages' [17:27:15.739] - Field: 'gc' [17:27:15.739] - Field: 'conditions' [17:27:15.740] - Field: 'persistent' [17:27:15.740] - Field: 'expr' [17:27:15.740] - Field: 'uuid' [17:27:15.741] - Field: 'seed' [17:27:15.741] - Field: 'version' [17:27:15.741] - Field: 'result' [17:27:15.742] - Field: 'asynchronous' [17:27:15.742] - Field: 'calls' [17:27:15.742] - Field: 'globals' [17:27:15.743] - Field: 'stdout' [17:27:15.743] - Field: 'earlySignal' [17:27:15.744] - Field: 'lazy' [17:27:15.744] - Field: 'state' [17:27:15.744] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:15.745] - Launch lazy future ... [17:27:15.746] Packages needed by the future expression (n = 0): [17:27:15.746] Packages needed by future strategies (n = 0): [17:27:15.747] { [17:27:15.747] { [17:27:15.747] { [17:27:15.747] ...future.startTime <- base::Sys.time() [17:27:15.747] { [17:27:15.747] { [17:27:15.747] { [17:27:15.747] { [17:27:15.747] base::local({ [17:27:15.747] has_future <- base::requireNamespace("future", [17:27:15.747] quietly = TRUE) [17:27:15.747] if (has_future) { [17:27:15.747] ns <- base::getNamespace("future") [17:27:15.747] version <- ns[[".package"]][["version"]] [17:27:15.747] if (is.null(version)) [17:27:15.747] version <- utils::packageVersion("future") [17:27:15.747] } [17:27:15.747] else { [17:27:15.747] version <- NULL [17:27:15.747] } [17:27:15.747] if (!has_future || version < "1.8.0") { [17:27:15.747] info <- base::c(r_version = base::gsub("R version ", [17:27:15.747] "", base::R.version$version.string), [17:27:15.747] platform = base::sprintf("%s (%s-bit)", [17:27:15.747] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:15.747] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:15.747] "release", "version")], collapse = " "), [17:27:15.747] hostname = base::Sys.info()[["nodename"]]) [17:27:15.747] info <- base::sprintf("%s: %s", base::names(info), [17:27:15.747] info) [17:27:15.747] info <- base::paste(info, collapse = "; ") [17:27:15.747] if (!has_future) { [17:27:15.747] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:15.747] info) [17:27:15.747] } [17:27:15.747] else { [17:27:15.747] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:15.747] info, version) [17:27:15.747] } [17:27:15.747] base::stop(msg) [17:27:15.747] } [17:27:15.747] }) [17:27:15.747] } [17:27:15.747] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:15.747] base::options(mc.cores = 1L) [17:27:15.747] } [17:27:15.747] ...future.strategy.old <- future::plan("list") [17:27:15.747] options(future.plan = NULL) [17:27:15.747] Sys.unsetenv("R_FUTURE_PLAN") [17:27:15.747] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:15.747] } [17:27:15.747] ...future.workdir <- getwd() [17:27:15.747] } [17:27:15.747] ...future.oldOptions <- base::as.list(base::.Options) [17:27:15.747] ...future.oldEnvVars <- base::Sys.getenv() [17:27:15.747] } [17:27:15.747] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:15.747] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:15.747] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:15.747] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:15.747] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:15.747] future.stdout.windows.reencode = NULL, width = 80L) [17:27:15.747] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:15.747] base::names(...future.oldOptions)) [17:27:15.747] } [17:27:15.747] if (FALSE) { [17:27:15.747] } [17:27:15.747] else { [17:27:15.747] if (TRUE) { [17:27:15.747] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:15.747] open = "w") [17:27:15.747] } [17:27:15.747] else { [17:27:15.747] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:15.747] windows = "NUL", "/dev/null"), open = "w") [17:27:15.747] } [17:27:15.747] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:15.747] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:15.747] base::sink(type = "output", split = FALSE) [17:27:15.747] base::close(...future.stdout) [17:27:15.747] }, add = TRUE) [17:27:15.747] } [17:27:15.747] ...future.frame <- base::sys.nframe() [17:27:15.747] ...future.conditions <- base::list() [17:27:15.747] ...future.rng <- base::globalenv()$.Random.seed [17:27:15.747] if (FALSE) { [17:27:15.747] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:15.747] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:15.747] } [17:27:15.747] ...future.result <- base::tryCatch({ [17:27:15.747] base::withCallingHandlers({ [17:27:15.747] ...future.value <- base::withVisible(base::local({ [17:27:15.747] ...future.makeSendCondition <- base::local({ [17:27:15.747] sendCondition <- NULL [17:27:15.747] function(frame = 1L) { [17:27:15.747] if (is.function(sendCondition)) [17:27:15.747] return(sendCondition) [17:27:15.747] ns <- getNamespace("parallel") [17:27:15.747] if (exists("sendData", mode = "function", [17:27:15.747] envir = ns)) { [17:27:15.747] parallel_sendData <- get("sendData", mode = "function", [17:27:15.747] envir = ns) [17:27:15.747] envir <- sys.frame(frame) [17:27:15.747] master <- NULL [17:27:15.747] while (!identical(envir, .GlobalEnv) && [17:27:15.747] !identical(envir, emptyenv())) { [17:27:15.747] if (exists("master", mode = "list", envir = envir, [17:27:15.747] inherits = FALSE)) { [17:27:15.747] master <- get("master", mode = "list", [17:27:15.747] envir = envir, inherits = FALSE) [17:27:15.747] if (inherits(master, c("SOCKnode", [17:27:15.747] "SOCK0node"))) { [17:27:15.747] sendCondition <<- function(cond) { [17:27:15.747] data <- list(type = "VALUE", value = cond, [17:27:15.747] success = TRUE) [17:27:15.747] parallel_sendData(master, data) [17:27:15.747] } [17:27:15.747] return(sendCondition) [17:27:15.747] } [17:27:15.747] } [17:27:15.747] frame <- frame + 1L [17:27:15.747] envir <- sys.frame(frame) [17:27:15.747] } [17:27:15.747] } [17:27:15.747] sendCondition <<- function(cond) NULL [17:27:15.747] } [17:27:15.747] }) [17:27:15.747] withCallingHandlers({ [17:27:15.747] 42 [17:27:15.747] }, immediateCondition = function(cond) { [17:27:15.747] sendCondition <- ...future.makeSendCondition() [17:27:15.747] sendCondition(cond) [17:27:15.747] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.747] { [17:27:15.747] inherits <- base::inherits [17:27:15.747] invokeRestart <- base::invokeRestart [17:27:15.747] is.null <- base::is.null [17:27:15.747] muffled <- FALSE [17:27:15.747] if (inherits(cond, "message")) { [17:27:15.747] muffled <- grepl(pattern, "muffleMessage") [17:27:15.747] if (muffled) [17:27:15.747] invokeRestart("muffleMessage") [17:27:15.747] } [17:27:15.747] else if (inherits(cond, "warning")) { [17:27:15.747] muffled <- grepl(pattern, "muffleWarning") [17:27:15.747] if (muffled) [17:27:15.747] invokeRestart("muffleWarning") [17:27:15.747] } [17:27:15.747] else if (inherits(cond, "condition")) { [17:27:15.747] if (!is.null(pattern)) { [17:27:15.747] computeRestarts <- base::computeRestarts [17:27:15.747] grepl <- base::grepl [17:27:15.747] restarts <- computeRestarts(cond) [17:27:15.747] for (restart in restarts) { [17:27:15.747] name <- restart$name [17:27:15.747] if (is.null(name)) [17:27:15.747] next [17:27:15.747] if (!grepl(pattern, name)) [17:27:15.747] next [17:27:15.747] invokeRestart(restart) [17:27:15.747] muffled <- TRUE [17:27:15.747] break [17:27:15.747] } [17:27:15.747] } [17:27:15.747] } [17:27:15.747] invisible(muffled) [17:27:15.747] } [17:27:15.747] muffleCondition(cond) [17:27:15.747] }) [17:27:15.747] })) [17:27:15.747] future::FutureResult(value = ...future.value$value, [17:27:15.747] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:15.747] ...future.rng), globalenv = if (FALSE) [17:27:15.747] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:15.747] ...future.globalenv.names)) [17:27:15.747] else NULL, started = ...future.startTime, version = "1.8") [17:27:15.747] }, condition = base::local({ [17:27:15.747] c <- base::c [17:27:15.747] inherits <- base::inherits [17:27:15.747] invokeRestart <- base::invokeRestart [17:27:15.747] length <- base::length [17:27:15.747] list <- base::list [17:27:15.747] seq.int <- base::seq.int [17:27:15.747] signalCondition <- base::signalCondition [17:27:15.747] sys.calls <- base::sys.calls [17:27:15.747] `[[` <- base::`[[` [17:27:15.747] `+` <- base::`+` [17:27:15.747] `<<-` <- base::`<<-` [17:27:15.747] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:15.747] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:15.747] 3L)] [17:27:15.747] } [17:27:15.747] function(cond) { [17:27:15.747] is_error <- inherits(cond, "error") [17:27:15.747] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:15.747] NULL) [17:27:15.747] if (is_error) { [17:27:15.747] sessionInformation <- function() { [17:27:15.747] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:15.747] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:15.747] search = base::search(), system = base::Sys.info()) [17:27:15.747] } [17:27:15.747] ...future.conditions[[length(...future.conditions) + [17:27:15.747] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:15.747] cond$call), session = sessionInformation(), [17:27:15.747] timestamp = base::Sys.time(), signaled = 0L) [17:27:15.747] signalCondition(cond) [17:27:15.747] } [17:27:15.747] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:15.747] "immediateCondition"))) { [17:27:15.747] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:15.747] ...future.conditions[[length(...future.conditions) + [17:27:15.747] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:15.747] if (TRUE && !signal) { [17:27:15.747] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.747] { [17:27:15.747] inherits <- base::inherits [17:27:15.747] invokeRestart <- base::invokeRestart [17:27:15.747] is.null <- base::is.null [17:27:15.747] muffled <- FALSE [17:27:15.747] if (inherits(cond, "message")) { [17:27:15.747] muffled <- grepl(pattern, "muffleMessage") [17:27:15.747] if (muffled) [17:27:15.747] invokeRestart("muffleMessage") [17:27:15.747] } [17:27:15.747] else if (inherits(cond, "warning")) { [17:27:15.747] muffled <- grepl(pattern, "muffleWarning") [17:27:15.747] if (muffled) [17:27:15.747] invokeRestart("muffleWarning") [17:27:15.747] } [17:27:15.747] else if (inherits(cond, "condition")) { [17:27:15.747] if (!is.null(pattern)) { [17:27:15.747] computeRestarts <- base::computeRestarts [17:27:15.747] grepl <- base::grepl [17:27:15.747] restarts <- computeRestarts(cond) [17:27:15.747] for (restart in restarts) { [17:27:15.747] name <- restart$name [17:27:15.747] if (is.null(name)) [17:27:15.747] next [17:27:15.747] if (!grepl(pattern, name)) [17:27:15.747] next [17:27:15.747] invokeRestart(restart) [17:27:15.747] muffled <- TRUE [17:27:15.747] break [17:27:15.747] } [17:27:15.747] } [17:27:15.747] } [17:27:15.747] invisible(muffled) [17:27:15.747] } [17:27:15.747] muffleCondition(cond, pattern = "^muffle") [17:27:15.747] } [17:27:15.747] } [17:27:15.747] else { [17:27:15.747] if (TRUE) { [17:27:15.747] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.747] { [17:27:15.747] inherits <- base::inherits [17:27:15.747] invokeRestart <- base::invokeRestart [17:27:15.747] is.null <- base::is.null [17:27:15.747] muffled <- FALSE [17:27:15.747] if (inherits(cond, "message")) { [17:27:15.747] muffled <- grepl(pattern, "muffleMessage") [17:27:15.747] if (muffled) [17:27:15.747] invokeRestart("muffleMessage") [17:27:15.747] } [17:27:15.747] else if (inherits(cond, "warning")) { [17:27:15.747] muffled <- grepl(pattern, "muffleWarning") [17:27:15.747] if (muffled) [17:27:15.747] invokeRestart("muffleWarning") [17:27:15.747] } [17:27:15.747] else if (inherits(cond, "condition")) { [17:27:15.747] if (!is.null(pattern)) { [17:27:15.747] computeRestarts <- base::computeRestarts [17:27:15.747] grepl <- base::grepl [17:27:15.747] restarts <- computeRestarts(cond) [17:27:15.747] for (restart in restarts) { [17:27:15.747] name <- restart$name [17:27:15.747] if (is.null(name)) [17:27:15.747] next [17:27:15.747] if (!grepl(pattern, name)) [17:27:15.747] next [17:27:15.747] invokeRestart(restart) [17:27:15.747] muffled <- TRUE [17:27:15.747] break [17:27:15.747] } [17:27:15.747] } [17:27:15.747] } [17:27:15.747] invisible(muffled) [17:27:15.747] } [17:27:15.747] muffleCondition(cond, pattern = "^muffle") [17:27:15.747] } [17:27:15.747] } [17:27:15.747] } [17:27:15.747] })) [17:27:15.747] }, error = function(ex) { [17:27:15.747] base::structure(base::list(value = NULL, visible = NULL, [17:27:15.747] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:15.747] ...future.rng), started = ...future.startTime, [17:27:15.747] finished = Sys.time(), session_uuid = NA_character_, [17:27:15.747] version = "1.8"), class = "FutureResult") [17:27:15.747] }, finally = { [17:27:15.747] if (!identical(...future.workdir, getwd())) [17:27:15.747] setwd(...future.workdir) [17:27:15.747] { [17:27:15.747] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:15.747] ...future.oldOptions$nwarnings <- NULL [17:27:15.747] } [17:27:15.747] base::options(...future.oldOptions) [17:27:15.747] if (.Platform$OS.type == "windows") { [17:27:15.747] old_names <- names(...future.oldEnvVars) [17:27:15.747] envs <- base::Sys.getenv() [17:27:15.747] names <- names(envs) [17:27:15.747] common <- intersect(names, old_names) [17:27:15.747] added <- setdiff(names, old_names) [17:27:15.747] removed <- setdiff(old_names, names) [17:27:15.747] changed <- common[...future.oldEnvVars[common] != [17:27:15.747] envs[common]] [17:27:15.747] NAMES <- toupper(changed) [17:27:15.747] args <- list() [17:27:15.747] for (kk in seq_along(NAMES)) { [17:27:15.747] name <- changed[[kk]] [17:27:15.747] NAME <- NAMES[[kk]] [17:27:15.747] if (name != NAME && is.element(NAME, old_names)) [17:27:15.747] next [17:27:15.747] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:15.747] } [17:27:15.747] NAMES <- toupper(added) [17:27:15.747] for (kk in seq_along(NAMES)) { [17:27:15.747] name <- added[[kk]] [17:27:15.747] NAME <- NAMES[[kk]] [17:27:15.747] if (name != NAME && is.element(NAME, old_names)) [17:27:15.747] next [17:27:15.747] args[[name]] <- "" [17:27:15.747] } [17:27:15.747] NAMES <- toupper(removed) [17:27:15.747] for (kk in seq_along(NAMES)) { [17:27:15.747] name <- removed[[kk]] [17:27:15.747] NAME <- NAMES[[kk]] [17:27:15.747] if (name != NAME && is.element(NAME, old_names)) [17:27:15.747] next [17:27:15.747] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:15.747] } [17:27:15.747] if (length(args) > 0) [17:27:15.747] base::do.call(base::Sys.setenv, args = args) [17:27:15.747] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:15.747] } [17:27:15.747] else { [17:27:15.747] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:15.747] } [17:27:15.747] { [17:27:15.747] if (base::length(...future.futureOptionsAdded) > [17:27:15.747] 0L) { [17:27:15.747] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:15.747] base::names(opts) <- ...future.futureOptionsAdded [17:27:15.747] base::options(opts) [17:27:15.747] } [17:27:15.747] { [17:27:15.747] { [17:27:15.747] base::options(mc.cores = ...future.mc.cores.old) [17:27:15.747] NULL [17:27:15.747] } [17:27:15.747] options(future.plan = NULL) [17:27:15.747] if (is.na(NA_character_)) [17:27:15.747] Sys.unsetenv("R_FUTURE_PLAN") [17:27:15.747] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:15.747] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:15.747] .init = FALSE) [17:27:15.747] } [17:27:15.747] } [17:27:15.747] } [17:27:15.747] }) [17:27:15.747] if (TRUE) { [17:27:15.747] base::sink(type = "output", split = FALSE) [17:27:15.747] if (TRUE) { [17:27:15.747] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:15.747] } [17:27:15.747] else { [17:27:15.747] ...future.result["stdout"] <- base::list(NULL) [17:27:15.747] } [17:27:15.747] base::close(...future.stdout) [17:27:15.747] ...future.stdout <- NULL [17:27:15.747] } [17:27:15.747] ...future.result$conditions <- ...future.conditions [17:27:15.747] ...future.result$finished <- base::Sys.time() [17:27:15.747] ...future.result [17:27:15.747] } [17:27:15.758] MultisessionFuture started [17:27:15.758] - Launch lazy future ... done [17:27:15.759] run() for 'MultisessionFuture' ... done MultisessionFuture: Label: '' Expression: [1] 42 Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) [17:27:15.786] receiveMessageFromWorker() for ClusterFuture ... [17:27:15.787] - Validating connection of MultisessionFuture [17:27:15.787] - received message: FutureResult [17:27:15.788] - Received FutureResult [17:27:15.788] - Erased future from FutureRegistry [17:27:15.789] result() for ClusterFuture ... [17:27:15.789] - result already collected: FutureResult [17:27:15.789] result() for ClusterFuture ... done [17:27:15.790] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: 14db7dea-610a-8c8e-4c3b-ee2b7209ff96 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:15.790] result() for ClusterFuture ... [17:27:15.791] - result already collected: FutureResult [17:27:15.791] result() for ClusterFuture ... done [17:27:15.791] result() for ClusterFuture ... [17:27:15.791] - result already collected: FutureResult [17:27:15.792] result() for ClusterFuture ... done [17:27:15.793] getGlobalsAndPackages() ... [17:27:15.793] Searching for globals... [17:27:15.795] - globals found: [1] '{' [17:27:15.795] Searching for globals ... DONE [17:27:15.796] Resolving globals: FALSE [17:27:15.797] [17:27:15.797] [17:27:15.797] getGlobalsAndPackages() ... DONE [17:27:15.798] run() for 'Future' ... [17:27:15.799] - state: 'created' [17:27:15.799] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:15.821] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:15.821] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:15.822] - Field: 'node' [17:27:15.822] - Field: 'label' [17:27:15.823] - Field: 'local' [17:27:15.823] - Field: 'owner' [17:27:15.823] - Field: 'envir' [17:27:15.824] - Field: 'workers' [17:27:15.824] - Field: 'packages' [17:27:15.824] - Field: 'gc' [17:27:15.825] - Field: 'conditions' [17:27:15.825] - Field: 'persistent' [17:27:15.825] - Field: 'expr' [17:27:15.826] - Field: 'uuid' [17:27:15.826] - Field: 'seed' [17:27:15.826] - Field: 'version' [17:27:15.827] - Field: 'result' [17:27:15.827] - Field: 'asynchronous' [17:27:15.827] - Field: 'calls' [17:27:15.828] - Field: 'globals' [17:27:15.828] - Field: 'stdout' [17:27:15.828] - Field: 'earlySignal' [17:27:15.829] - Field: 'lazy' [17:27:15.829] - Field: 'state' [17:27:15.829] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:15.830] - Launch lazy future ... [17:27:15.830] Packages needed by the future expression (n = 0): [17:27:15.831] Packages needed by future strategies (n = 0): [17:27:15.832] { [17:27:15.832] { [17:27:15.832] { [17:27:15.832] ...future.startTime <- base::Sys.time() [17:27:15.832] { [17:27:15.832] { [17:27:15.832] { [17:27:15.832] { [17:27:15.832] base::local({ [17:27:15.832] has_future <- base::requireNamespace("future", [17:27:15.832] quietly = TRUE) [17:27:15.832] if (has_future) { [17:27:15.832] ns <- base::getNamespace("future") [17:27:15.832] version <- ns[[".package"]][["version"]] [17:27:15.832] if (is.null(version)) [17:27:15.832] version <- utils::packageVersion("future") [17:27:15.832] } [17:27:15.832] else { [17:27:15.832] version <- NULL [17:27:15.832] } [17:27:15.832] if (!has_future || version < "1.8.0") { [17:27:15.832] info <- base::c(r_version = base::gsub("R version ", [17:27:15.832] "", base::R.version$version.string), [17:27:15.832] platform = base::sprintf("%s (%s-bit)", [17:27:15.832] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:15.832] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:15.832] "release", "version")], collapse = " "), [17:27:15.832] hostname = base::Sys.info()[["nodename"]]) [17:27:15.832] info <- base::sprintf("%s: %s", base::names(info), [17:27:15.832] info) [17:27:15.832] info <- base::paste(info, collapse = "; ") [17:27:15.832] if (!has_future) { [17:27:15.832] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:15.832] info) [17:27:15.832] } [17:27:15.832] else { [17:27:15.832] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:15.832] info, version) [17:27:15.832] } [17:27:15.832] base::stop(msg) [17:27:15.832] } [17:27:15.832] }) [17:27:15.832] } [17:27:15.832] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:15.832] base::options(mc.cores = 1L) [17:27:15.832] } [17:27:15.832] ...future.strategy.old <- future::plan("list") [17:27:15.832] options(future.plan = NULL) [17:27:15.832] Sys.unsetenv("R_FUTURE_PLAN") [17:27:15.832] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:15.832] } [17:27:15.832] ...future.workdir <- getwd() [17:27:15.832] } [17:27:15.832] ...future.oldOptions <- base::as.list(base::.Options) [17:27:15.832] ...future.oldEnvVars <- base::Sys.getenv() [17:27:15.832] } [17:27:15.832] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:15.832] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:15.832] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:15.832] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:15.832] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:15.832] future.stdout.windows.reencode = NULL, width = 80L) [17:27:15.832] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:15.832] base::names(...future.oldOptions)) [17:27:15.832] } [17:27:15.832] if (FALSE) { [17:27:15.832] } [17:27:15.832] else { [17:27:15.832] if (TRUE) { [17:27:15.832] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:15.832] open = "w") [17:27:15.832] } [17:27:15.832] else { [17:27:15.832] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:15.832] windows = "NUL", "/dev/null"), open = "w") [17:27:15.832] } [17:27:15.832] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:15.832] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:15.832] base::sink(type = "output", split = FALSE) [17:27:15.832] base::close(...future.stdout) [17:27:15.832] }, add = TRUE) [17:27:15.832] } [17:27:15.832] ...future.frame <- base::sys.nframe() [17:27:15.832] ...future.conditions <- base::list() [17:27:15.832] ...future.rng <- base::globalenv()$.Random.seed [17:27:15.832] if (FALSE) { [17:27:15.832] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:15.832] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:15.832] } [17:27:15.832] ...future.result <- base::tryCatch({ [17:27:15.832] base::withCallingHandlers({ [17:27:15.832] ...future.value <- base::withVisible(base::local({ [17:27:15.832] ...future.makeSendCondition <- base::local({ [17:27:15.832] sendCondition <- NULL [17:27:15.832] function(frame = 1L) { [17:27:15.832] if (is.function(sendCondition)) [17:27:15.832] return(sendCondition) [17:27:15.832] ns <- getNamespace("parallel") [17:27:15.832] if (exists("sendData", mode = "function", [17:27:15.832] envir = ns)) { [17:27:15.832] parallel_sendData <- get("sendData", mode = "function", [17:27:15.832] envir = ns) [17:27:15.832] envir <- sys.frame(frame) [17:27:15.832] master <- NULL [17:27:15.832] while (!identical(envir, .GlobalEnv) && [17:27:15.832] !identical(envir, emptyenv())) { [17:27:15.832] if (exists("master", mode = "list", envir = envir, [17:27:15.832] inherits = FALSE)) { [17:27:15.832] master <- get("master", mode = "list", [17:27:15.832] envir = envir, inherits = FALSE) [17:27:15.832] if (inherits(master, c("SOCKnode", [17:27:15.832] "SOCK0node"))) { [17:27:15.832] sendCondition <<- function(cond) { [17:27:15.832] data <- list(type = "VALUE", value = cond, [17:27:15.832] success = TRUE) [17:27:15.832] parallel_sendData(master, data) [17:27:15.832] } [17:27:15.832] return(sendCondition) [17:27:15.832] } [17:27:15.832] } [17:27:15.832] frame <- frame + 1L [17:27:15.832] envir <- sys.frame(frame) [17:27:15.832] } [17:27:15.832] } [17:27:15.832] sendCondition <<- function(cond) NULL [17:27:15.832] } [17:27:15.832] }) [17:27:15.832] withCallingHandlers({ [17:27:15.832] { [17:27:15.832] 42 [17:27:15.832] } [17:27:15.832] }, immediateCondition = function(cond) { [17:27:15.832] sendCondition <- ...future.makeSendCondition() [17:27:15.832] sendCondition(cond) [17:27:15.832] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.832] { [17:27:15.832] inherits <- base::inherits [17:27:15.832] invokeRestart <- base::invokeRestart [17:27:15.832] is.null <- base::is.null [17:27:15.832] muffled <- FALSE [17:27:15.832] if (inherits(cond, "message")) { [17:27:15.832] muffled <- grepl(pattern, "muffleMessage") [17:27:15.832] if (muffled) [17:27:15.832] invokeRestart("muffleMessage") [17:27:15.832] } [17:27:15.832] else if (inherits(cond, "warning")) { [17:27:15.832] muffled <- grepl(pattern, "muffleWarning") [17:27:15.832] if (muffled) [17:27:15.832] invokeRestart("muffleWarning") [17:27:15.832] } [17:27:15.832] else if (inherits(cond, "condition")) { [17:27:15.832] if (!is.null(pattern)) { [17:27:15.832] computeRestarts <- base::computeRestarts [17:27:15.832] grepl <- base::grepl [17:27:15.832] restarts <- computeRestarts(cond) [17:27:15.832] for (restart in restarts) { [17:27:15.832] name <- restart$name [17:27:15.832] if (is.null(name)) [17:27:15.832] next [17:27:15.832] if (!grepl(pattern, name)) [17:27:15.832] next [17:27:15.832] invokeRestart(restart) [17:27:15.832] muffled <- TRUE [17:27:15.832] break [17:27:15.832] } [17:27:15.832] } [17:27:15.832] } [17:27:15.832] invisible(muffled) [17:27:15.832] } [17:27:15.832] muffleCondition(cond) [17:27:15.832] }) [17:27:15.832] })) [17:27:15.832] future::FutureResult(value = ...future.value$value, [17:27:15.832] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:15.832] ...future.rng), globalenv = if (FALSE) [17:27:15.832] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:15.832] ...future.globalenv.names)) [17:27:15.832] else NULL, started = ...future.startTime, version = "1.8") [17:27:15.832] }, condition = base::local({ [17:27:15.832] c <- base::c [17:27:15.832] inherits <- base::inherits [17:27:15.832] invokeRestart <- base::invokeRestart [17:27:15.832] length <- base::length [17:27:15.832] list <- base::list [17:27:15.832] seq.int <- base::seq.int [17:27:15.832] signalCondition <- base::signalCondition [17:27:15.832] sys.calls <- base::sys.calls [17:27:15.832] `[[` <- base::`[[` [17:27:15.832] `+` <- base::`+` [17:27:15.832] `<<-` <- base::`<<-` [17:27:15.832] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:15.832] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:15.832] 3L)] [17:27:15.832] } [17:27:15.832] function(cond) { [17:27:15.832] is_error <- inherits(cond, "error") [17:27:15.832] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:15.832] NULL) [17:27:15.832] if (is_error) { [17:27:15.832] sessionInformation <- function() { [17:27:15.832] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:15.832] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:15.832] search = base::search(), system = base::Sys.info()) [17:27:15.832] } [17:27:15.832] ...future.conditions[[length(...future.conditions) + [17:27:15.832] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:15.832] cond$call), session = sessionInformation(), [17:27:15.832] timestamp = base::Sys.time(), signaled = 0L) [17:27:15.832] signalCondition(cond) [17:27:15.832] } [17:27:15.832] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:15.832] "immediateCondition"))) { [17:27:15.832] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:15.832] ...future.conditions[[length(...future.conditions) + [17:27:15.832] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:15.832] if (TRUE && !signal) { [17:27:15.832] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.832] { [17:27:15.832] inherits <- base::inherits [17:27:15.832] invokeRestart <- base::invokeRestart [17:27:15.832] is.null <- base::is.null [17:27:15.832] muffled <- FALSE [17:27:15.832] if (inherits(cond, "message")) { [17:27:15.832] muffled <- grepl(pattern, "muffleMessage") [17:27:15.832] if (muffled) [17:27:15.832] invokeRestart("muffleMessage") [17:27:15.832] } [17:27:15.832] else if (inherits(cond, "warning")) { [17:27:15.832] muffled <- grepl(pattern, "muffleWarning") [17:27:15.832] if (muffled) [17:27:15.832] invokeRestart("muffleWarning") [17:27:15.832] } [17:27:15.832] else if (inherits(cond, "condition")) { [17:27:15.832] if (!is.null(pattern)) { [17:27:15.832] computeRestarts <- base::computeRestarts [17:27:15.832] grepl <- base::grepl [17:27:15.832] restarts <- computeRestarts(cond) [17:27:15.832] for (restart in restarts) { [17:27:15.832] name <- restart$name [17:27:15.832] if (is.null(name)) [17:27:15.832] next [17:27:15.832] if (!grepl(pattern, name)) [17:27:15.832] next [17:27:15.832] invokeRestart(restart) [17:27:15.832] muffled <- TRUE [17:27:15.832] break [17:27:15.832] } [17:27:15.832] } [17:27:15.832] } [17:27:15.832] invisible(muffled) [17:27:15.832] } [17:27:15.832] muffleCondition(cond, pattern = "^muffle") [17:27:15.832] } [17:27:15.832] } [17:27:15.832] else { [17:27:15.832] if (TRUE) { [17:27:15.832] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.832] { [17:27:15.832] inherits <- base::inherits [17:27:15.832] invokeRestart <- base::invokeRestart [17:27:15.832] is.null <- base::is.null [17:27:15.832] muffled <- FALSE [17:27:15.832] if (inherits(cond, "message")) { [17:27:15.832] muffled <- grepl(pattern, "muffleMessage") [17:27:15.832] if (muffled) [17:27:15.832] invokeRestart("muffleMessage") [17:27:15.832] } [17:27:15.832] else if (inherits(cond, "warning")) { [17:27:15.832] muffled <- grepl(pattern, "muffleWarning") [17:27:15.832] if (muffled) [17:27:15.832] invokeRestart("muffleWarning") [17:27:15.832] } [17:27:15.832] else if (inherits(cond, "condition")) { [17:27:15.832] if (!is.null(pattern)) { [17:27:15.832] computeRestarts <- base::computeRestarts [17:27:15.832] grepl <- base::grepl [17:27:15.832] restarts <- computeRestarts(cond) [17:27:15.832] for (restart in restarts) { [17:27:15.832] name <- restart$name [17:27:15.832] if (is.null(name)) [17:27:15.832] next [17:27:15.832] if (!grepl(pattern, name)) [17:27:15.832] next [17:27:15.832] invokeRestart(restart) [17:27:15.832] muffled <- TRUE [17:27:15.832] break [17:27:15.832] } [17:27:15.832] } [17:27:15.832] } [17:27:15.832] invisible(muffled) [17:27:15.832] } [17:27:15.832] muffleCondition(cond, pattern = "^muffle") [17:27:15.832] } [17:27:15.832] } [17:27:15.832] } [17:27:15.832] })) [17:27:15.832] }, error = function(ex) { [17:27:15.832] base::structure(base::list(value = NULL, visible = NULL, [17:27:15.832] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:15.832] ...future.rng), started = ...future.startTime, [17:27:15.832] finished = Sys.time(), session_uuid = NA_character_, [17:27:15.832] version = "1.8"), class = "FutureResult") [17:27:15.832] }, finally = { [17:27:15.832] if (!identical(...future.workdir, getwd())) [17:27:15.832] setwd(...future.workdir) [17:27:15.832] { [17:27:15.832] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:15.832] ...future.oldOptions$nwarnings <- NULL [17:27:15.832] } [17:27:15.832] base::options(...future.oldOptions) [17:27:15.832] if (.Platform$OS.type == "windows") { [17:27:15.832] old_names <- names(...future.oldEnvVars) [17:27:15.832] envs <- base::Sys.getenv() [17:27:15.832] names <- names(envs) [17:27:15.832] common <- intersect(names, old_names) [17:27:15.832] added <- setdiff(names, old_names) [17:27:15.832] removed <- setdiff(old_names, names) [17:27:15.832] changed <- common[...future.oldEnvVars[common] != [17:27:15.832] envs[common]] [17:27:15.832] NAMES <- toupper(changed) [17:27:15.832] args <- list() [17:27:15.832] for (kk in seq_along(NAMES)) { [17:27:15.832] name <- changed[[kk]] [17:27:15.832] NAME <- NAMES[[kk]] [17:27:15.832] if (name != NAME && is.element(NAME, old_names)) [17:27:15.832] next [17:27:15.832] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:15.832] } [17:27:15.832] NAMES <- toupper(added) [17:27:15.832] for (kk in seq_along(NAMES)) { [17:27:15.832] name <- added[[kk]] [17:27:15.832] NAME <- NAMES[[kk]] [17:27:15.832] if (name != NAME && is.element(NAME, old_names)) [17:27:15.832] next [17:27:15.832] args[[name]] <- "" [17:27:15.832] } [17:27:15.832] NAMES <- toupper(removed) [17:27:15.832] for (kk in seq_along(NAMES)) { [17:27:15.832] name <- removed[[kk]] [17:27:15.832] NAME <- NAMES[[kk]] [17:27:15.832] if (name != NAME && is.element(NAME, old_names)) [17:27:15.832] next [17:27:15.832] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:15.832] } [17:27:15.832] if (length(args) > 0) [17:27:15.832] base::do.call(base::Sys.setenv, args = args) [17:27:15.832] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:15.832] } [17:27:15.832] else { [17:27:15.832] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:15.832] } [17:27:15.832] { [17:27:15.832] if (base::length(...future.futureOptionsAdded) > [17:27:15.832] 0L) { [17:27:15.832] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:15.832] base::names(opts) <- ...future.futureOptionsAdded [17:27:15.832] base::options(opts) [17:27:15.832] } [17:27:15.832] { [17:27:15.832] { [17:27:15.832] base::options(mc.cores = ...future.mc.cores.old) [17:27:15.832] NULL [17:27:15.832] } [17:27:15.832] options(future.plan = NULL) [17:27:15.832] if (is.na(NA_character_)) [17:27:15.832] Sys.unsetenv("R_FUTURE_PLAN") [17:27:15.832] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:15.832] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:15.832] .init = FALSE) [17:27:15.832] } [17:27:15.832] } [17:27:15.832] } [17:27:15.832] }) [17:27:15.832] if (TRUE) { [17:27:15.832] base::sink(type = "output", split = FALSE) [17:27:15.832] if (TRUE) { [17:27:15.832] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:15.832] } [17:27:15.832] else { [17:27:15.832] ...future.result["stdout"] <- base::list(NULL) [17:27:15.832] } [17:27:15.832] base::close(...future.stdout) [17:27:15.832] ...future.stdout <- NULL [17:27:15.832] } [17:27:15.832] ...future.result$conditions <- ...future.conditions [17:27:15.832] ...future.result$finished <- base::Sys.time() [17:27:15.832] ...future.result [17:27:15.832] } [17:27:15.843] MultisessionFuture started [17:27:15.843] - Launch lazy future ... done [17:27:15.844] run() for 'MultisessionFuture' ... done MultisessionFuture: Label: '' Expression: { 42 } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) [17:27:15.868] receiveMessageFromWorker() for ClusterFuture ... [17:27:15.869] - Validating connection of MultisessionFuture [17:27:15.870] - received message: FutureResult [17:27:15.870] - Received FutureResult [17:27:15.870] - Erased future from FutureRegistry [17:27:15.871] result() for ClusterFuture ... [17:27:15.871] - result already collected: FutureResult [17:27:15.871] result() for ClusterFuture ... done [17:27:15.872] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: 14db7dea-610a-8c8e-4c3b-ee2b7209ff96 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:15.872] result() for ClusterFuture ... [17:27:15.873] - result already collected: FutureResult [17:27:15.873] result() for ClusterFuture ... done [17:27:15.874] result() for ClusterFuture ... [17:27:15.874] - result already collected: FutureResult [17:27:15.874] result() for ClusterFuture ... done [17:27:15.878] getGlobalsAndPackages() ... [17:27:15.879] [17:27:15.879] - globals: [0] [17:27:15.879] getGlobalsAndPackages() ... DONE [17:27:15.897] Packages needed by the future expression (n = 0): [17:27:15.897] Packages needed by future strategies (n = 0): [17:27:15.902] { [17:27:15.902] { [17:27:15.902] { [17:27:15.902] ...future.startTime <- base::Sys.time() [17:27:15.902] { [17:27:15.902] { [17:27:15.902] { [17:27:15.902] { [17:27:15.902] base::local({ [17:27:15.902] has_future <- base::requireNamespace("future", [17:27:15.902] quietly = TRUE) [17:27:15.902] if (has_future) { [17:27:15.902] ns <- base::getNamespace("future") [17:27:15.902] version <- ns[[".package"]][["version"]] [17:27:15.902] if (is.null(version)) [17:27:15.902] version <- utils::packageVersion("future") [17:27:15.902] } [17:27:15.902] else { [17:27:15.902] version <- NULL [17:27:15.902] } [17:27:15.902] if (!has_future || version < "1.8.0") { [17:27:15.902] info <- base::c(r_version = base::gsub("R version ", [17:27:15.902] "", base::R.version$version.string), [17:27:15.902] platform = base::sprintf("%s (%s-bit)", [17:27:15.902] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:15.902] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:15.902] "release", "version")], collapse = " "), [17:27:15.902] hostname = base::Sys.info()[["nodename"]]) [17:27:15.902] info <- base::sprintf("%s: %s", base::names(info), [17:27:15.902] info) [17:27:15.902] info <- base::paste(info, collapse = "; ") [17:27:15.902] if (!has_future) { [17:27:15.902] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:15.902] info) [17:27:15.902] } [17:27:15.902] else { [17:27:15.902] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:15.902] info, version) [17:27:15.902] } [17:27:15.902] base::stop(msg) [17:27:15.902] } [17:27:15.902] }) [17:27:15.902] } [17:27:15.902] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:15.902] base::options(mc.cores = 1L) [17:27:15.902] } [17:27:15.902] ...future.strategy.old <- future::plan("list") [17:27:15.902] options(future.plan = NULL) [17:27:15.902] Sys.unsetenv("R_FUTURE_PLAN") [17:27:15.902] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:15.902] } [17:27:15.902] ...future.workdir <- getwd() [17:27:15.902] } [17:27:15.902] ...future.oldOptions <- base::as.list(base::.Options) [17:27:15.902] ...future.oldEnvVars <- base::Sys.getenv() [17:27:15.902] } [17:27:15.902] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:15.902] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:15.902] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:15.902] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:15.902] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:15.902] future.stdout.windows.reencode = NULL, width = 80L) [17:27:15.902] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:15.902] base::names(...future.oldOptions)) [17:27:15.902] } [17:27:15.902] if (FALSE) { [17:27:15.902] } [17:27:15.902] else { [17:27:15.902] if (TRUE) { [17:27:15.902] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:15.902] open = "w") [17:27:15.902] } [17:27:15.902] else { [17:27:15.902] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:15.902] windows = "NUL", "/dev/null"), open = "w") [17:27:15.902] } [17:27:15.902] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:15.902] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:15.902] base::sink(type = "output", split = FALSE) [17:27:15.902] base::close(...future.stdout) [17:27:15.902] }, add = TRUE) [17:27:15.902] } [17:27:15.902] ...future.frame <- base::sys.nframe() [17:27:15.902] ...future.conditions <- base::list() [17:27:15.902] ...future.rng <- base::globalenv()$.Random.seed [17:27:15.902] if (FALSE) { [17:27:15.902] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:15.902] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:15.902] } [17:27:15.902] ...future.result <- base::tryCatch({ [17:27:15.902] base::withCallingHandlers({ [17:27:15.902] ...future.value <- base::withVisible(base::local({ [17:27:15.902] ...future.makeSendCondition <- base::local({ [17:27:15.902] sendCondition <- NULL [17:27:15.902] function(frame = 1L) { [17:27:15.902] if (is.function(sendCondition)) [17:27:15.902] return(sendCondition) [17:27:15.902] ns <- getNamespace("parallel") [17:27:15.902] if (exists("sendData", mode = "function", [17:27:15.902] envir = ns)) { [17:27:15.902] parallel_sendData <- get("sendData", mode = "function", [17:27:15.902] envir = ns) [17:27:15.902] envir <- sys.frame(frame) [17:27:15.902] master <- NULL [17:27:15.902] while (!identical(envir, .GlobalEnv) && [17:27:15.902] !identical(envir, emptyenv())) { [17:27:15.902] if (exists("master", mode = "list", envir = envir, [17:27:15.902] inherits = FALSE)) { [17:27:15.902] master <- get("master", mode = "list", [17:27:15.902] envir = envir, inherits = FALSE) [17:27:15.902] if (inherits(master, c("SOCKnode", [17:27:15.902] "SOCK0node"))) { [17:27:15.902] sendCondition <<- function(cond) { [17:27:15.902] data <- list(type = "VALUE", value = cond, [17:27:15.902] success = TRUE) [17:27:15.902] parallel_sendData(master, data) [17:27:15.902] } [17:27:15.902] return(sendCondition) [17:27:15.902] } [17:27:15.902] } [17:27:15.902] frame <- frame + 1L [17:27:15.902] envir <- sys.frame(frame) [17:27:15.902] } [17:27:15.902] } [17:27:15.902] sendCondition <<- function(cond) NULL [17:27:15.902] } [17:27:15.902] }) [17:27:15.902] withCallingHandlers({ [17:27:15.902] 42 [17:27:15.902] }, immediateCondition = function(cond) { [17:27:15.902] sendCondition <- ...future.makeSendCondition() [17:27:15.902] sendCondition(cond) [17:27:15.902] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.902] { [17:27:15.902] inherits <- base::inherits [17:27:15.902] invokeRestart <- base::invokeRestart [17:27:15.902] is.null <- base::is.null [17:27:15.902] muffled <- FALSE [17:27:15.902] if (inherits(cond, "message")) { [17:27:15.902] muffled <- grepl(pattern, "muffleMessage") [17:27:15.902] if (muffled) [17:27:15.902] invokeRestart("muffleMessage") [17:27:15.902] } [17:27:15.902] else if (inherits(cond, "warning")) { [17:27:15.902] muffled <- grepl(pattern, "muffleWarning") [17:27:15.902] if (muffled) [17:27:15.902] invokeRestart("muffleWarning") [17:27:15.902] } [17:27:15.902] else if (inherits(cond, "condition")) { [17:27:15.902] if (!is.null(pattern)) { [17:27:15.902] computeRestarts <- base::computeRestarts [17:27:15.902] grepl <- base::grepl [17:27:15.902] restarts <- computeRestarts(cond) [17:27:15.902] for (restart in restarts) { [17:27:15.902] name <- restart$name [17:27:15.902] if (is.null(name)) [17:27:15.902] next [17:27:15.902] if (!grepl(pattern, name)) [17:27:15.902] next [17:27:15.902] invokeRestart(restart) [17:27:15.902] muffled <- TRUE [17:27:15.902] break [17:27:15.902] } [17:27:15.902] } [17:27:15.902] } [17:27:15.902] invisible(muffled) [17:27:15.902] } [17:27:15.902] muffleCondition(cond) [17:27:15.902] }) [17:27:15.902] })) [17:27:15.902] future::FutureResult(value = ...future.value$value, [17:27:15.902] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:15.902] ...future.rng), globalenv = if (FALSE) [17:27:15.902] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:15.902] ...future.globalenv.names)) [17:27:15.902] else NULL, started = ...future.startTime, version = "1.8") [17:27:15.902] }, condition = base::local({ [17:27:15.902] c <- base::c [17:27:15.902] inherits <- base::inherits [17:27:15.902] invokeRestart <- base::invokeRestart [17:27:15.902] length <- base::length [17:27:15.902] list <- base::list [17:27:15.902] seq.int <- base::seq.int [17:27:15.902] signalCondition <- base::signalCondition [17:27:15.902] sys.calls <- base::sys.calls [17:27:15.902] `[[` <- base::`[[` [17:27:15.902] `+` <- base::`+` [17:27:15.902] `<<-` <- base::`<<-` [17:27:15.902] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:15.902] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:15.902] 3L)] [17:27:15.902] } [17:27:15.902] function(cond) { [17:27:15.902] is_error <- inherits(cond, "error") [17:27:15.902] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:15.902] NULL) [17:27:15.902] if (is_error) { [17:27:15.902] sessionInformation <- function() { [17:27:15.902] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:15.902] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:15.902] search = base::search(), system = base::Sys.info()) [17:27:15.902] } [17:27:15.902] ...future.conditions[[length(...future.conditions) + [17:27:15.902] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:15.902] cond$call), session = sessionInformation(), [17:27:15.902] timestamp = base::Sys.time(), signaled = 0L) [17:27:15.902] signalCondition(cond) [17:27:15.902] } [17:27:15.902] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:15.902] "immediateCondition"))) { [17:27:15.902] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:15.902] ...future.conditions[[length(...future.conditions) + [17:27:15.902] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:15.902] if (TRUE && !signal) { [17:27:15.902] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.902] { [17:27:15.902] inherits <- base::inherits [17:27:15.902] invokeRestart <- base::invokeRestart [17:27:15.902] is.null <- base::is.null [17:27:15.902] muffled <- FALSE [17:27:15.902] if (inherits(cond, "message")) { [17:27:15.902] muffled <- grepl(pattern, "muffleMessage") [17:27:15.902] if (muffled) [17:27:15.902] invokeRestart("muffleMessage") [17:27:15.902] } [17:27:15.902] else if (inherits(cond, "warning")) { [17:27:15.902] muffled <- grepl(pattern, "muffleWarning") [17:27:15.902] if (muffled) [17:27:15.902] invokeRestart("muffleWarning") [17:27:15.902] } [17:27:15.902] else if (inherits(cond, "condition")) { [17:27:15.902] if (!is.null(pattern)) { [17:27:15.902] computeRestarts <- base::computeRestarts [17:27:15.902] grepl <- base::grepl [17:27:15.902] restarts <- computeRestarts(cond) [17:27:15.902] for (restart in restarts) { [17:27:15.902] name <- restart$name [17:27:15.902] if (is.null(name)) [17:27:15.902] next [17:27:15.902] if (!grepl(pattern, name)) [17:27:15.902] next [17:27:15.902] invokeRestart(restart) [17:27:15.902] muffled <- TRUE [17:27:15.902] break [17:27:15.902] } [17:27:15.902] } [17:27:15.902] } [17:27:15.902] invisible(muffled) [17:27:15.902] } [17:27:15.902] muffleCondition(cond, pattern = "^muffle") [17:27:15.902] } [17:27:15.902] } [17:27:15.902] else { [17:27:15.902] if (TRUE) { [17:27:15.902] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.902] { [17:27:15.902] inherits <- base::inherits [17:27:15.902] invokeRestart <- base::invokeRestart [17:27:15.902] is.null <- base::is.null [17:27:15.902] muffled <- FALSE [17:27:15.902] if (inherits(cond, "message")) { [17:27:15.902] muffled <- grepl(pattern, "muffleMessage") [17:27:15.902] if (muffled) [17:27:15.902] invokeRestart("muffleMessage") [17:27:15.902] } [17:27:15.902] else if (inherits(cond, "warning")) { [17:27:15.902] muffled <- grepl(pattern, "muffleWarning") [17:27:15.902] if (muffled) [17:27:15.902] invokeRestart("muffleWarning") [17:27:15.902] } [17:27:15.902] else if (inherits(cond, "condition")) { [17:27:15.902] if (!is.null(pattern)) { [17:27:15.902] computeRestarts <- base::computeRestarts [17:27:15.902] grepl <- base::grepl [17:27:15.902] restarts <- computeRestarts(cond) [17:27:15.902] for (restart in restarts) { [17:27:15.902] name <- restart$name [17:27:15.902] if (is.null(name)) [17:27:15.902] next [17:27:15.902] if (!grepl(pattern, name)) [17:27:15.902] next [17:27:15.902] invokeRestart(restart) [17:27:15.902] muffled <- TRUE [17:27:15.902] break [17:27:15.902] } [17:27:15.902] } [17:27:15.902] } [17:27:15.902] invisible(muffled) [17:27:15.902] } [17:27:15.902] muffleCondition(cond, pattern = "^muffle") [17:27:15.902] } [17:27:15.902] } [17:27:15.902] } [17:27:15.902] })) [17:27:15.902] }, error = function(ex) { [17:27:15.902] base::structure(base::list(value = NULL, visible = NULL, [17:27:15.902] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:15.902] ...future.rng), started = ...future.startTime, [17:27:15.902] finished = Sys.time(), session_uuid = NA_character_, [17:27:15.902] version = "1.8"), class = "FutureResult") [17:27:15.902] }, finally = { [17:27:15.902] if (!identical(...future.workdir, getwd())) [17:27:15.902] setwd(...future.workdir) [17:27:15.902] { [17:27:15.902] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:15.902] ...future.oldOptions$nwarnings <- NULL [17:27:15.902] } [17:27:15.902] base::options(...future.oldOptions) [17:27:15.902] if (.Platform$OS.type == "windows") { [17:27:15.902] old_names <- names(...future.oldEnvVars) [17:27:15.902] envs <- base::Sys.getenv() [17:27:15.902] names <- names(envs) [17:27:15.902] common <- intersect(names, old_names) [17:27:15.902] added <- setdiff(names, old_names) [17:27:15.902] removed <- setdiff(old_names, names) [17:27:15.902] changed <- common[...future.oldEnvVars[common] != [17:27:15.902] envs[common]] [17:27:15.902] NAMES <- toupper(changed) [17:27:15.902] args <- list() [17:27:15.902] for (kk in seq_along(NAMES)) { [17:27:15.902] name <- changed[[kk]] [17:27:15.902] NAME <- NAMES[[kk]] [17:27:15.902] if (name != NAME && is.element(NAME, old_names)) [17:27:15.902] next [17:27:15.902] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:15.902] } [17:27:15.902] NAMES <- toupper(added) [17:27:15.902] for (kk in seq_along(NAMES)) { [17:27:15.902] name <- added[[kk]] [17:27:15.902] NAME <- NAMES[[kk]] [17:27:15.902] if (name != NAME && is.element(NAME, old_names)) [17:27:15.902] next [17:27:15.902] args[[name]] <- "" [17:27:15.902] } [17:27:15.902] NAMES <- toupper(removed) [17:27:15.902] for (kk in seq_along(NAMES)) { [17:27:15.902] name <- removed[[kk]] [17:27:15.902] NAME <- NAMES[[kk]] [17:27:15.902] if (name != NAME && is.element(NAME, old_names)) [17:27:15.902] next [17:27:15.902] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:15.902] } [17:27:15.902] if (length(args) > 0) [17:27:15.902] base::do.call(base::Sys.setenv, args = args) [17:27:15.902] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:15.902] } [17:27:15.902] else { [17:27:15.902] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:15.902] } [17:27:15.902] { [17:27:15.902] if (base::length(...future.futureOptionsAdded) > [17:27:15.902] 0L) { [17:27:15.902] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:15.902] base::names(opts) <- ...future.futureOptionsAdded [17:27:15.902] base::options(opts) [17:27:15.902] } [17:27:15.902] { [17:27:15.902] { [17:27:15.902] base::options(mc.cores = ...future.mc.cores.old) [17:27:15.902] NULL [17:27:15.902] } [17:27:15.902] options(future.plan = NULL) [17:27:15.902] if (is.na(NA_character_)) [17:27:15.902] Sys.unsetenv("R_FUTURE_PLAN") [17:27:15.902] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:15.902] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:15.902] .init = FALSE) [17:27:15.902] } [17:27:15.902] } [17:27:15.902] } [17:27:15.902] }) [17:27:15.902] if (TRUE) { [17:27:15.902] base::sink(type = "output", split = FALSE) [17:27:15.902] if (TRUE) { [17:27:15.902] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:15.902] } [17:27:15.902] else { [17:27:15.902] ...future.result["stdout"] <- base::list(NULL) [17:27:15.902] } [17:27:15.902] base::close(...future.stdout) [17:27:15.902] ...future.stdout <- NULL [17:27:15.902] } [17:27:15.902] ...future.result$conditions <- ...future.conditions [17:27:15.902] ...future.result$finished <- base::Sys.time() [17:27:15.902] ...future.result [17:27:15.902] } [17:27:15.912] MultisessionFuture started MultisessionFuture: Label: 'strategy = multisession' Expression: [1] 42 Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) [17:27:15.931] receiveMessageFromWorker() for ClusterFuture ... [17:27:15.932] - Validating connection of MultisessionFuture [17:27:15.932] - received message: FutureResult [17:27:15.933] - Received FutureResult [17:27:15.933] - Erased future from FutureRegistry [17:27:15.933] result() for ClusterFuture ... [17:27:15.934] - result already collected: FutureResult [17:27:15.934] result() for ClusterFuture ... done [17:27:15.934] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: 14db7dea-610a-8c8e-4c3b-ee2b7209ff96 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:15.935] result() for ClusterFuture ... [17:27:15.935] - result already collected: FutureResult [17:27:15.935] result() for ClusterFuture ... done [17:27:15.936] result() for ClusterFuture ... [17:27:15.936] - result already collected: FutureResult [17:27:15.936] result() for ClusterFuture ... done [17:27:15.937] getGlobalsAndPackages() ... [17:27:15.937] Searching for globals... [17:27:15.938] [17:27:15.938] Searching for globals ... DONE [17:27:15.938] - globals: [0] [17:27:15.939] getGlobalsAndPackages() ... DONE [17:27:15.939] run() for 'Future' ... [17:27:15.940] - state: 'created' [17:27:15.940] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:15.960] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:15.961] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:15.962] - Field: 'node' [17:27:15.962] - Field: 'label' [17:27:15.962] - Field: 'local' [17:27:15.963] - Field: 'owner' [17:27:15.963] - Field: 'envir' [17:27:15.963] - Field: 'workers' [17:27:15.964] - Field: 'packages' [17:27:15.964] - Field: 'gc' [17:27:15.964] - Field: 'conditions' [17:27:15.965] - Field: 'persistent' [17:27:15.965] - Field: 'expr' [17:27:15.965] - Field: 'uuid' [17:27:15.966] - Field: 'seed' [17:27:15.966] - Field: 'version' [17:27:15.966] - Field: 'result' [17:27:15.967] - Field: 'asynchronous' [17:27:15.967] - Field: 'calls' [17:27:15.967] - Field: 'globals' [17:27:15.968] - Field: 'stdout' [17:27:15.968] - Field: 'earlySignal' [17:27:15.968] - Field: 'lazy' [17:27:15.969] - Field: 'state' [17:27:15.969] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:15.969] - Launch lazy future ... [17:27:15.970] Packages needed by the future expression (n = 0): [17:27:15.970] Packages needed by future strategies (n = 0): [17:27:15.971] { [17:27:15.971] { [17:27:15.971] { [17:27:15.971] ...future.startTime <- base::Sys.time() [17:27:15.971] { [17:27:15.971] { [17:27:15.971] { [17:27:15.971] { [17:27:15.971] base::local({ [17:27:15.971] has_future <- base::requireNamespace("future", [17:27:15.971] quietly = TRUE) [17:27:15.971] if (has_future) { [17:27:15.971] ns <- base::getNamespace("future") [17:27:15.971] version <- ns[[".package"]][["version"]] [17:27:15.971] if (is.null(version)) [17:27:15.971] version <- utils::packageVersion("future") [17:27:15.971] } [17:27:15.971] else { [17:27:15.971] version <- NULL [17:27:15.971] } [17:27:15.971] if (!has_future || version < "1.8.0") { [17:27:15.971] info <- base::c(r_version = base::gsub("R version ", [17:27:15.971] "", base::R.version$version.string), [17:27:15.971] platform = base::sprintf("%s (%s-bit)", [17:27:15.971] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:15.971] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:15.971] "release", "version")], collapse = " "), [17:27:15.971] hostname = base::Sys.info()[["nodename"]]) [17:27:15.971] info <- base::sprintf("%s: %s", base::names(info), [17:27:15.971] info) [17:27:15.971] info <- base::paste(info, collapse = "; ") [17:27:15.971] if (!has_future) { [17:27:15.971] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:15.971] info) [17:27:15.971] } [17:27:15.971] else { [17:27:15.971] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:15.971] info, version) [17:27:15.971] } [17:27:15.971] base::stop(msg) [17:27:15.971] } [17:27:15.971] }) [17:27:15.971] } [17:27:15.971] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:15.971] base::options(mc.cores = 1L) [17:27:15.971] } [17:27:15.971] ...future.strategy.old <- future::plan("list") [17:27:15.971] options(future.plan = NULL) [17:27:15.971] Sys.unsetenv("R_FUTURE_PLAN") [17:27:15.971] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:15.971] } [17:27:15.971] ...future.workdir <- getwd() [17:27:15.971] } [17:27:15.971] ...future.oldOptions <- base::as.list(base::.Options) [17:27:15.971] ...future.oldEnvVars <- base::Sys.getenv() [17:27:15.971] } [17:27:15.971] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:15.971] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:15.971] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:15.971] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:15.971] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:15.971] future.stdout.windows.reencode = NULL, width = 80L) [17:27:15.971] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:15.971] base::names(...future.oldOptions)) [17:27:15.971] } [17:27:15.971] if (FALSE) { [17:27:15.971] } [17:27:15.971] else { [17:27:15.971] if (TRUE) { [17:27:15.971] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:15.971] open = "w") [17:27:15.971] } [17:27:15.971] else { [17:27:15.971] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:15.971] windows = "NUL", "/dev/null"), open = "w") [17:27:15.971] } [17:27:15.971] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:15.971] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:15.971] base::sink(type = "output", split = FALSE) [17:27:15.971] base::close(...future.stdout) [17:27:15.971] }, add = TRUE) [17:27:15.971] } [17:27:15.971] ...future.frame <- base::sys.nframe() [17:27:15.971] ...future.conditions <- base::list() [17:27:15.971] ...future.rng <- base::globalenv()$.Random.seed [17:27:15.971] if (FALSE) { [17:27:15.971] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:15.971] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:15.971] } [17:27:15.971] ...future.result <- base::tryCatch({ [17:27:15.971] base::withCallingHandlers({ [17:27:15.971] ...future.value <- base::withVisible(base::local({ [17:27:15.971] ...future.makeSendCondition <- base::local({ [17:27:15.971] sendCondition <- NULL [17:27:15.971] function(frame = 1L) { [17:27:15.971] if (is.function(sendCondition)) [17:27:15.971] return(sendCondition) [17:27:15.971] ns <- getNamespace("parallel") [17:27:15.971] if (exists("sendData", mode = "function", [17:27:15.971] envir = ns)) { [17:27:15.971] parallel_sendData <- get("sendData", mode = "function", [17:27:15.971] envir = ns) [17:27:15.971] envir <- sys.frame(frame) [17:27:15.971] master <- NULL [17:27:15.971] while (!identical(envir, .GlobalEnv) && [17:27:15.971] !identical(envir, emptyenv())) { [17:27:15.971] if (exists("master", mode = "list", envir = envir, [17:27:15.971] inherits = FALSE)) { [17:27:15.971] master <- get("master", mode = "list", [17:27:15.971] envir = envir, inherits = FALSE) [17:27:15.971] if (inherits(master, c("SOCKnode", [17:27:15.971] "SOCK0node"))) { [17:27:15.971] sendCondition <<- function(cond) { [17:27:15.971] data <- list(type = "VALUE", value = cond, [17:27:15.971] success = TRUE) [17:27:15.971] parallel_sendData(master, data) [17:27:15.971] } [17:27:15.971] return(sendCondition) [17:27:15.971] } [17:27:15.971] } [17:27:15.971] frame <- frame + 1L [17:27:15.971] envir <- sys.frame(frame) [17:27:15.971] } [17:27:15.971] } [17:27:15.971] sendCondition <<- function(cond) NULL [17:27:15.971] } [17:27:15.971] }) [17:27:15.971] withCallingHandlers({ [17:27:15.971] 42 [17:27:15.971] }, immediateCondition = function(cond) { [17:27:15.971] sendCondition <- ...future.makeSendCondition() [17:27:15.971] sendCondition(cond) [17:27:15.971] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.971] { [17:27:15.971] inherits <- base::inherits [17:27:15.971] invokeRestart <- base::invokeRestart [17:27:15.971] is.null <- base::is.null [17:27:15.971] muffled <- FALSE [17:27:15.971] if (inherits(cond, "message")) { [17:27:15.971] muffled <- grepl(pattern, "muffleMessage") [17:27:15.971] if (muffled) [17:27:15.971] invokeRestart("muffleMessage") [17:27:15.971] } [17:27:15.971] else if (inherits(cond, "warning")) { [17:27:15.971] muffled <- grepl(pattern, "muffleWarning") [17:27:15.971] if (muffled) [17:27:15.971] invokeRestart("muffleWarning") [17:27:15.971] } [17:27:15.971] else if (inherits(cond, "condition")) { [17:27:15.971] if (!is.null(pattern)) { [17:27:15.971] computeRestarts <- base::computeRestarts [17:27:15.971] grepl <- base::grepl [17:27:15.971] restarts <- computeRestarts(cond) [17:27:15.971] for (restart in restarts) { [17:27:15.971] name <- restart$name [17:27:15.971] if (is.null(name)) [17:27:15.971] next [17:27:15.971] if (!grepl(pattern, name)) [17:27:15.971] next [17:27:15.971] invokeRestart(restart) [17:27:15.971] muffled <- TRUE [17:27:15.971] break [17:27:15.971] } [17:27:15.971] } [17:27:15.971] } [17:27:15.971] invisible(muffled) [17:27:15.971] } [17:27:15.971] muffleCondition(cond) [17:27:15.971] }) [17:27:15.971] })) [17:27:15.971] future::FutureResult(value = ...future.value$value, [17:27:15.971] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:15.971] ...future.rng), globalenv = if (FALSE) [17:27:15.971] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:15.971] ...future.globalenv.names)) [17:27:15.971] else NULL, started = ...future.startTime, version = "1.8") [17:27:15.971] }, condition = base::local({ [17:27:15.971] c <- base::c [17:27:15.971] inherits <- base::inherits [17:27:15.971] invokeRestart <- base::invokeRestart [17:27:15.971] length <- base::length [17:27:15.971] list <- base::list [17:27:15.971] seq.int <- base::seq.int [17:27:15.971] signalCondition <- base::signalCondition [17:27:15.971] sys.calls <- base::sys.calls [17:27:15.971] `[[` <- base::`[[` [17:27:15.971] `+` <- base::`+` [17:27:15.971] `<<-` <- base::`<<-` [17:27:15.971] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:15.971] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:15.971] 3L)] [17:27:15.971] } [17:27:15.971] function(cond) { [17:27:15.971] is_error <- inherits(cond, "error") [17:27:15.971] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:15.971] NULL) [17:27:15.971] if (is_error) { [17:27:15.971] sessionInformation <- function() { [17:27:15.971] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:15.971] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:15.971] search = base::search(), system = base::Sys.info()) [17:27:15.971] } [17:27:15.971] ...future.conditions[[length(...future.conditions) + [17:27:15.971] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:15.971] cond$call), session = sessionInformation(), [17:27:15.971] timestamp = base::Sys.time(), signaled = 0L) [17:27:15.971] signalCondition(cond) [17:27:15.971] } [17:27:15.971] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:15.971] "immediateCondition"))) { [17:27:15.971] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:15.971] ...future.conditions[[length(...future.conditions) + [17:27:15.971] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:15.971] if (TRUE && !signal) { [17:27:15.971] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.971] { [17:27:15.971] inherits <- base::inherits [17:27:15.971] invokeRestart <- base::invokeRestart [17:27:15.971] is.null <- base::is.null [17:27:15.971] muffled <- FALSE [17:27:15.971] if (inherits(cond, "message")) { [17:27:15.971] muffled <- grepl(pattern, "muffleMessage") [17:27:15.971] if (muffled) [17:27:15.971] invokeRestart("muffleMessage") [17:27:15.971] } [17:27:15.971] else if (inherits(cond, "warning")) { [17:27:15.971] muffled <- grepl(pattern, "muffleWarning") [17:27:15.971] if (muffled) [17:27:15.971] invokeRestart("muffleWarning") [17:27:15.971] } [17:27:15.971] else if (inherits(cond, "condition")) { [17:27:15.971] if (!is.null(pattern)) { [17:27:15.971] computeRestarts <- base::computeRestarts [17:27:15.971] grepl <- base::grepl [17:27:15.971] restarts <- computeRestarts(cond) [17:27:15.971] for (restart in restarts) { [17:27:15.971] name <- restart$name [17:27:15.971] if (is.null(name)) [17:27:15.971] next [17:27:15.971] if (!grepl(pattern, name)) [17:27:15.971] next [17:27:15.971] invokeRestart(restart) [17:27:15.971] muffled <- TRUE [17:27:15.971] break [17:27:15.971] } [17:27:15.971] } [17:27:15.971] } [17:27:15.971] invisible(muffled) [17:27:15.971] } [17:27:15.971] muffleCondition(cond, pattern = "^muffle") [17:27:15.971] } [17:27:15.971] } [17:27:15.971] else { [17:27:15.971] if (TRUE) { [17:27:15.971] muffleCondition <- function (cond, pattern = "^muffle") [17:27:15.971] { [17:27:15.971] inherits <- base::inherits [17:27:15.971] invokeRestart <- base::invokeRestart [17:27:15.971] is.null <- base::is.null [17:27:15.971] muffled <- FALSE [17:27:15.971] if (inherits(cond, "message")) { [17:27:15.971] muffled <- grepl(pattern, "muffleMessage") [17:27:15.971] if (muffled) [17:27:15.971] invokeRestart("muffleMessage") [17:27:15.971] } [17:27:15.971] else if (inherits(cond, "warning")) { [17:27:15.971] muffled <- grepl(pattern, "muffleWarning") [17:27:15.971] if (muffled) [17:27:15.971] invokeRestart("muffleWarning") [17:27:15.971] } [17:27:15.971] else if (inherits(cond, "condition")) { [17:27:15.971] if (!is.null(pattern)) { [17:27:15.971] computeRestarts <- base::computeRestarts [17:27:15.971] grepl <- base::grepl [17:27:15.971] restarts <- computeRestarts(cond) [17:27:15.971] for (restart in restarts) { [17:27:15.971] name <- restart$name [17:27:15.971] if (is.null(name)) [17:27:15.971] next [17:27:15.971] if (!grepl(pattern, name)) [17:27:15.971] next [17:27:15.971] invokeRestart(restart) [17:27:15.971] muffled <- TRUE [17:27:15.971] break [17:27:15.971] } [17:27:15.971] } [17:27:15.971] } [17:27:15.971] invisible(muffled) [17:27:15.971] } [17:27:15.971] muffleCondition(cond, pattern = "^muffle") [17:27:15.971] } [17:27:15.971] } [17:27:15.971] } [17:27:15.971] })) [17:27:15.971] }, error = function(ex) { [17:27:15.971] base::structure(base::list(value = NULL, visible = NULL, [17:27:15.971] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:15.971] ...future.rng), started = ...future.startTime, [17:27:15.971] finished = Sys.time(), session_uuid = NA_character_, [17:27:15.971] version = "1.8"), class = "FutureResult") [17:27:15.971] }, finally = { [17:27:15.971] if (!identical(...future.workdir, getwd())) [17:27:15.971] setwd(...future.workdir) [17:27:15.971] { [17:27:15.971] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:15.971] ...future.oldOptions$nwarnings <- NULL [17:27:15.971] } [17:27:15.971] base::options(...future.oldOptions) [17:27:15.971] if (.Platform$OS.type == "windows") { [17:27:15.971] old_names <- names(...future.oldEnvVars) [17:27:15.971] envs <- base::Sys.getenv() [17:27:15.971] names <- names(envs) [17:27:15.971] common <- intersect(names, old_names) [17:27:15.971] added <- setdiff(names, old_names) [17:27:15.971] removed <- setdiff(old_names, names) [17:27:15.971] changed <- common[...future.oldEnvVars[common] != [17:27:15.971] envs[common]] [17:27:15.971] NAMES <- toupper(changed) [17:27:15.971] args <- list() [17:27:15.971] for (kk in seq_along(NAMES)) { [17:27:15.971] name <- changed[[kk]] [17:27:15.971] NAME <- NAMES[[kk]] [17:27:15.971] if (name != NAME && is.element(NAME, old_names)) [17:27:15.971] next [17:27:15.971] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:15.971] } [17:27:15.971] NAMES <- toupper(added) [17:27:15.971] for (kk in seq_along(NAMES)) { [17:27:15.971] name <- added[[kk]] [17:27:15.971] NAME <- NAMES[[kk]] [17:27:15.971] if (name != NAME && is.element(NAME, old_names)) [17:27:15.971] next [17:27:15.971] args[[name]] <- "" [17:27:15.971] } [17:27:15.971] NAMES <- toupper(removed) [17:27:15.971] for (kk in seq_along(NAMES)) { [17:27:15.971] name <- removed[[kk]] [17:27:15.971] NAME <- NAMES[[kk]] [17:27:15.971] if (name != NAME && is.element(NAME, old_names)) [17:27:15.971] next [17:27:15.971] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:15.971] } [17:27:15.971] if (length(args) > 0) [17:27:15.971] base::do.call(base::Sys.setenv, args = args) [17:27:15.971] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:15.971] } [17:27:15.971] else { [17:27:15.971] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:15.971] } [17:27:15.971] { [17:27:15.971] if (base::length(...future.futureOptionsAdded) > [17:27:15.971] 0L) { [17:27:15.971] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:15.971] base::names(opts) <- ...future.futureOptionsAdded [17:27:15.971] base::options(opts) [17:27:15.971] } [17:27:15.971] { [17:27:15.971] { [17:27:15.971] base::options(mc.cores = ...future.mc.cores.old) [17:27:15.971] NULL [17:27:15.971] } [17:27:15.971] options(future.plan = NULL) [17:27:15.971] if (is.na(NA_character_)) [17:27:15.971] Sys.unsetenv("R_FUTURE_PLAN") [17:27:15.971] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:15.971] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:15.971] .init = FALSE) [17:27:15.971] } [17:27:15.971] } [17:27:15.971] } [17:27:15.971] }) [17:27:15.971] if (TRUE) { [17:27:15.971] base::sink(type = "output", split = FALSE) [17:27:15.971] if (TRUE) { [17:27:15.971] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:15.971] } [17:27:15.971] else { [17:27:15.971] ...future.result["stdout"] <- base::list(NULL) [17:27:15.971] } [17:27:15.971] base::close(...future.stdout) [17:27:15.971] ...future.stdout <- NULL [17:27:15.971] } [17:27:15.971] ...future.result$conditions <- ...future.conditions [17:27:15.971] ...future.result$finished <- base::Sys.time() [17:27:15.971] ...future.result [17:27:15.971] } [17:27:15.981] MultisessionFuture started [17:27:15.982] - Launch lazy future ... done [17:27:15.982] run() for 'MultisessionFuture' ... done MultisessionFuture: Label: 'strategy = multisession' Expression: [1] 42 Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) [17:27:16.009] receiveMessageFromWorker() for ClusterFuture ... [17:27:16.010] - Validating connection of MultisessionFuture [17:27:16.010] - received message: FutureResult [17:27:16.011] - Received FutureResult [17:27:16.011] - Erased future from FutureRegistry [17:27:16.012] result() for ClusterFuture ... [17:27:16.012] - result already collected: FutureResult [17:27:16.012] result() for ClusterFuture ... done [17:27:16.013] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: 14db7dea-610a-8c8e-4c3b-ee2b7209ff96 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:16.013] result() for ClusterFuture ... [17:27:16.014] - result already collected: FutureResult [17:27:16.014] result() for ClusterFuture ... done [17:27:16.014] result() for ClusterFuture ... [17:27:16.015] - result already collected: FutureResult [17:27:16.015] result() for ClusterFuture ... done [17:27:16.016] getGlobalsAndPackages() ... [17:27:16.016] Searching for globals... [17:27:16.018] - globals found: [1] '{' [17:27:16.018] Searching for globals ... DONE [17:27:16.018] Resolving globals: FALSE [17:27:16.019] [17:27:16.019] [17:27:16.020] getGlobalsAndPackages() ... DONE [17:27:16.020] run() for 'Future' ... [17:27:16.021] - state: 'created' [17:27:16.021] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:16.046] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:16.046] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:16.047] - Field: 'node' [17:27:16.047] - Field: 'label' [17:27:16.047] - Field: 'local' [17:27:16.048] - Field: 'owner' [17:27:16.048] - Field: 'envir' [17:27:16.049] - Field: 'workers' [17:27:16.049] - Field: 'packages' [17:27:16.049] - Field: 'gc' [17:27:16.050] - Field: 'conditions' [17:27:16.050] - Field: 'persistent' [17:27:16.050] - Field: 'expr' [17:27:16.051] - Field: 'uuid' [17:27:16.051] - Field: 'seed' [17:27:16.051] - Field: 'version' [17:27:16.052] - Field: 'result' [17:27:16.052] - Field: 'asynchronous' [17:27:16.053] - Field: 'calls' [17:27:16.053] - Field: 'globals' [17:27:16.053] - Field: 'stdout' [17:27:16.054] - Field: 'earlySignal' [17:27:16.054] - Field: 'lazy' [17:27:16.054] - Field: 'state' [17:27:16.055] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:16.055] - Launch lazy future ... [17:27:16.056] Packages needed by the future expression (n = 0): [17:27:16.056] Packages needed by future strategies (n = 0): [17:27:16.057] { [17:27:16.057] { [17:27:16.057] { [17:27:16.057] ...future.startTime <- base::Sys.time() [17:27:16.057] { [17:27:16.057] { [17:27:16.057] { [17:27:16.057] { [17:27:16.057] base::local({ [17:27:16.057] has_future <- base::requireNamespace("future", [17:27:16.057] quietly = TRUE) [17:27:16.057] if (has_future) { [17:27:16.057] ns <- base::getNamespace("future") [17:27:16.057] version <- ns[[".package"]][["version"]] [17:27:16.057] if (is.null(version)) [17:27:16.057] version <- utils::packageVersion("future") [17:27:16.057] } [17:27:16.057] else { [17:27:16.057] version <- NULL [17:27:16.057] } [17:27:16.057] if (!has_future || version < "1.8.0") { [17:27:16.057] info <- base::c(r_version = base::gsub("R version ", [17:27:16.057] "", base::R.version$version.string), [17:27:16.057] platform = base::sprintf("%s (%s-bit)", [17:27:16.057] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:16.057] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:16.057] "release", "version")], collapse = " "), [17:27:16.057] hostname = base::Sys.info()[["nodename"]]) [17:27:16.057] info <- base::sprintf("%s: %s", base::names(info), [17:27:16.057] info) [17:27:16.057] info <- base::paste(info, collapse = "; ") [17:27:16.057] if (!has_future) { [17:27:16.057] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:16.057] info) [17:27:16.057] } [17:27:16.057] else { [17:27:16.057] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:16.057] info, version) [17:27:16.057] } [17:27:16.057] base::stop(msg) [17:27:16.057] } [17:27:16.057] }) [17:27:16.057] } [17:27:16.057] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:16.057] base::options(mc.cores = 1L) [17:27:16.057] } [17:27:16.057] ...future.strategy.old <- future::plan("list") [17:27:16.057] options(future.plan = NULL) [17:27:16.057] Sys.unsetenv("R_FUTURE_PLAN") [17:27:16.057] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:16.057] } [17:27:16.057] ...future.workdir <- getwd() [17:27:16.057] } [17:27:16.057] ...future.oldOptions <- base::as.list(base::.Options) [17:27:16.057] ...future.oldEnvVars <- base::Sys.getenv() [17:27:16.057] } [17:27:16.057] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:16.057] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:16.057] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:16.057] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:16.057] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:16.057] future.stdout.windows.reencode = NULL, width = 80L) [17:27:16.057] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:16.057] base::names(...future.oldOptions)) [17:27:16.057] } [17:27:16.057] if (FALSE) { [17:27:16.057] } [17:27:16.057] else { [17:27:16.057] if (TRUE) { [17:27:16.057] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:16.057] open = "w") [17:27:16.057] } [17:27:16.057] else { [17:27:16.057] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:16.057] windows = "NUL", "/dev/null"), open = "w") [17:27:16.057] } [17:27:16.057] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:16.057] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:16.057] base::sink(type = "output", split = FALSE) [17:27:16.057] base::close(...future.stdout) [17:27:16.057] }, add = TRUE) [17:27:16.057] } [17:27:16.057] ...future.frame <- base::sys.nframe() [17:27:16.057] ...future.conditions <- base::list() [17:27:16.057] ...future.rng <- base::globalenv()$.Random.seed [17:27:16.057] if (FALSE) { [17:27:16.057] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:16.057] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:16.057] } [17:27:16.057] ...future.result <- base::tryCatch({ [17:27:16.057] base::withCallingHandlers({ [17:27:16.057] ...future.value <- base::withVisible(base::local({ [17:27:16.057] ...future.makeSendCondition <- base::local({ [17:27:16.057] sendCondition <- NULL [17:27:16.057] function(frame = 1L) { [17:27:16.057] if (is.function(sendCondition)) [17:27:16.057] return(sendCondition) [17:27:16.057] ns <- getNamespace("parallel") [17:27:16.057] if (exists("sendData", mode = "function", [17:27:16.057] envir = ns)) { [17:27:16.057] parallel_sendData <- get("sendData", mode = "function", [17:27:16.057] envir = ns) [17:27:16.057] envir <- sys.frame(frame) [17:27:16.057] master <- NULL [17:27:16.057] while (!identical(envir, .GlobalEnv) && [17:27:16.057] !identical(envir, emptyenv())) { [17:27:16.057] if (exists("master", mode = "list", envir = envir, [17:27:16.057] inherits = FALSE)) { [17:27:16.057] master <- get("master", mode = "list", [17:27:16.057] envir = envir, inherits = FALSE) [17:27:16.057] if (inherits(master, c("SOCKnode", [17:27:16.057] "SOCK0node"))) { [17:27:16.057] sendCondition <<- function(cond) { [17:27:16.057] data <- list(type = "VALUE", value = cond, [17:27:16.057] success = TRUE) [17:27:16.057] parallel_sendData(master, data) [17:27:16.057] } [17:27:16.057] return(sendCondition) [17:27:16.057] } [17:27:16.057] } [17:27:16.057] frame <- frame + 1L [17:27:16.057] envir <- sys.frame(frame) [17:27:16.057] } [17:27:16.057] } [17:27:16.057] sendCondition <<- function(cond) NULL [17:27:16.057] } [17:27:16.057] }) [17:27:16.057] withCallingHandlers({ [17:27:16.057] { [17:27:16.057] 42 [17:27:16.057] } [17:27:16.057] }, immediateCondition = function(cond) { [17:27:16.057] sendCondition <- ...future.makeSendCondition() [17:27:16.057] sendCondition(cond) [17:27:16.057] muffleCondition <- function (cond, pattern = "^muffle") [17:27:16.057] { [17:27:16.057] inherits <- base::inherits [17:27:16.057] invokeRestart <- base::invokeRestart [17:27:16.057] is.null <- base::is.null [17:27:16.057] muffled <- FALSE [17:27:16.057] if (inherits(cond, "message")) { [17:27:16.057] muffled <- grepl(pattern, "muffleMessage") [17:27:16.057] if (muffled) [17:27:16.057] invokeRestart("muffleMessage") [17:27:16.057] } [17:27:16.057] else if (inherits(cond, "warning")) { [17:27:16.057] muffled <- grepl(pattern, "muffleWarning") [17:27:16.057] if (muffled) [17:27:16.057] invokeRestart("muffleWarning") [17:27:16.057] } [17:27:16.057] else if (inherits(cond, "condition")) { [17:27:16.057] if (!is.null(pattern)) { [17:27:16.057] computeRestarts <- base::computeRestarts [17:27:16.057] grepl <- base::grepl [17:27:16.057] restarts <- computeRestarts(cond) [17:27:16.057] for (restart in restarts) { [17:27:16.057] name <- restart$name [17:27:16.057] if (is.null(name)) [17:27:16.057] next [17:27:16.057] if (!grepl(pattern, name)) [17:27:16.057] next [17:27:16.057] invokeRestart(restart) [17:27:16.057] muffled <- TRUE [17:27:16.057] break [17:27:16.057] } [17:27:16.057] } [17:27:16.057] } [17:27:16.057] invisible(muffled) [17:27:16.057] } [17:27:16.057] muffleCondition(cond) [17:27:16.057] }) [17:27:16.057] })) [17:27:16.057] future::FutureResult(value = ...future.value$value, [17:27:16.057] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:16.057] ...future.rng), globalenv = if (FALSE) [17:27:16.057] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:16.057] ...future.globalenv.names)) [17:27:16.057] else NULL, started = ...future.startTime, version = "1.8") [17:27:16.057] }, condition = base::local({ [17:27:16.057] c <- base::c [17:27:16.057] inherits <- base::inherits [17:27:16.057] invokeRestart <- base::invokeRestart [17:27:16.057] length <- base::length [17:27:16.057] list <- base::list [17:27:16.057] seq.int <- base::seq.int [17:27:16.057] signalCondition <- base::signalCondition [17:27:16.057] sys.calls <- base::sys.calls [17:27:16.057] `[[` <- base::`[[` [17:27:16.057] `+` <- base::`+` [17:27:16.057] `<<-` <- base::`<<-` [17:27:16.057] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:16.057] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:16.057] 3L)] [17:27:16.057] } [17:27:16.057] function(cond) { [17:27:16.057] is_error <- inherits(cond, "error") [17:27:16.057] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:16.057] NULL) [17:27:16.057] if (is_error) { [17:27:16.057] sessionInformation <- function() { [17:27:16.057] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:16.057] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:16.057] search = base::search(), system = base::Sys.info()) [17:27:16.057] } [17:27:16.057] ...future.conditions[[length(...future.conditions) + [17:27:16.057] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:16.057] cond$call), session = sessionInformation(), [17:27:16.057] timestamp = base::Sys.time(), signaled = 0L) [17:27:16.057] signalCondition(cond) [17:27:16.057] } [17:27:16.057] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:16.057] "immediateCondition"))) { [17:27:16.057] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:16.057] ...future.conditions[[length(...future.conditions) + [17:27:16.057] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:16.057] if (TRUE && !signal) { [17:27:16.057] muffleCondition <- function (cond, pattern = "^muffle") [17:27:16.057] { [17:27:16.057] inherits <- base::inherits [17:27:16.057] invokeRestart <- base::invokeRestart [17:27:16.057] is.null <- base::is.null [17:27:16.057] muffled <- FALSE [17:27:16.057] if (inherits(cond, "message")) { [17:27:16.057] muffled <- grepl(pattern, "muffleMessage") [17:27:16.057] if (muffled) [17:27:16.057] invokeRestart("muffleMessage") [17:27:16.057] } [17:27:16.057] else if (inherits(cond, "warning")) { [17:27:16.057] muffled <- grepl(pattern, "muffleWarning") [17:27:16.057] if (muffled) [17:27:16.057] invokeRestart("muffleWarning") [17:27:16.057] } [17:27:16.057] else if (inherits(cond, "condition")) { [17:27:16.057] if (!is.null(pattern)) { [17:27:16.057] computeRestarts <- base::computeRestarts [17:27:16.057] grepl <- base::grepl [17:27:16.057] restarts <- computeRestarts(cond) [17:27:16.057] for (restart in restarts) { [17:27:16.057] name <- restart$name [17:27:16.057] if (is.null(name)) [17:27:16.057] next [17:27:16.057] if (!grepl(pattern, name)) [17:27:16.057] next [17:27:16.057] invokeRestart(restart) [17:27:16.057] muffled <- TRUE [17:27:16.057] break [17:27:16.057] } [17:27:16.057] } [17:27:16.057] } [17:27:16.057] invisible(muffled) [17:27:16.057] } [17:27:16.057] muffleCondition(cond, pattern = "^muffle") [17:27:16.057] } [17:27:16.057] } [17:27:16.057] else { [17:27:16.057] if (TRUE) { [17:27:16.057] muffleCondition <- function (cond, pattern = "^muffle") [17:27:16.057] { [17:27:16.057] inherits <- base::inherits [17:27:16.057] invokeRestart <- base::invokeRestart [17:27:16.057] is.null <- base::is.null [17:27:16.057] muffled <- FALSE [17:27:16.057] if (inherits(cond, "message")) { [17:27:16.057] muffled <- grepl(pattern, "muffleMessage") [17:27:16.057] if (muffled) [17:27:16.057] invokeRestart("muffleMessage") [17:27:16.057] } [17:27:16.057] else if (inherits(cond, "warning")) { [17:27:16.057] muffled <- grepl(pattern, "muffleWarning") [17:27:16.057] if (muffled) [17:27:16.057] invokeRestart("muffleWarning") [17:27:16.057] } [17:27:16.057] else if (inherits(cond, "condition")) { [17:27:16.057] if (!is.null(pattern)) { [17:27:16.057] computeRestarts <- base::computeRestarts [17:27:16.057] grepl <- base::grepl [17:27:16.057] restarts <- computeRestarts(cond) [17:27:16.057] for (restart in restarts) { [17:27:16.057] name <- restart$name [17:27:16.057] if (is.null(name)) [17:27:16.057] next [17:27:16.057] if (!grepl(pattern, name)) [17:27:16.057] next [17:27:16.057] invokeRestart(restart) [17:27:16.057] muffled <- TRUE [17:27:16.057] break [17:27:16.057] } [17:27:16.057] } [17:27:16.057] } [17:27:16.057] invisible(muffled) [17:27:16.057] } [17:27:16.057] muffleCondition(cond, pattern = "^muffle") [17:27:16.057] } [17:27:16.057] } [17:27:16.057] } [17:27:16.057] })) [17:27:16.057] }, error = function(ex) { [17:27:16.057] base::structure(base::list(value = NULL, visible = NULL, [17:27:16.057] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:16.057] ...future.rng), started = ...future.startTime, [17:27:16.057] finished = Sys.time(), session_uuid = NA_character_, [17:27:16.057] version = "1.8"), class = "FutureResult") [17:27:16.057] }, finally = { [17:27:16.057] if (!identical(...future.workdir, getwd())) [17:27:16.057] setwd(...future.workdir) [17:27:16.057] { [17:27:16.057] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:16.057] ...future.oldOptions$nwarnings <- NULL [17:27:16.057] } [17:27:16.057] base::options(...future.oldOptions) [17:27:16.057] if (.Platform$OS.type == "windows") { [17:27:16.057] old_names <- names(...future.oldEnvVars) [17:27:16.057] envs <- base::Sys.getenv() [17:27:16.057] names <- names(envs) [17:27:16.057] common <- intersect(names, old_names) [17:27:16.057] added <- setdiff(names, old_names) [17:27:16.057] removed <- setdiff(old_names, names) [17:27:16.057] changed <- common[...future.oldEnvVars[common] != [17:27:16.057] envs[common]] [17:27:16.057] NAMES <- toupper(changed) [17:27:16.057] args <- list() [17:27:16.057] for (kk in seq_along(NAMES)) { [17:27:16.057] name <- changed[[kk]] [17:27:16.057] NAME <- NAMES[[kk]] [17:27:16.057] if (name != NAME && is.element(NAME, old_names)) [17:27:16.057] next [17:27:16.057] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:16.057] } [17:27:16.057] NAMES <- toupper(added) [17:27:16.057] for (kk in seq_along(NAMES)) { [17:27:16.057] name <- added[[kk]] [17:27:16.057] NAME <- NAMES[[kk]] [17:27:16.057] if (name != NAME && is.element(NAME, old_names)) [17:27:16.057] next [17:27:16.057] args[[name]] <- "" [17:27:16.057] } [17:27:16.057] NAMES <- toupper(removed) [17:27:16.057] for (kk in seq_along(NAMES)) { [17:27:16.057] name <- removed[[kk]] [17:27:16.057] NAME <- NAMES[[kk]] [17:27:16.057] if (name != NAME && is.element(NAME, old_names)) [17:27:16.057] next [17:27:16.057] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:16.057] } [17:27:16.057] if (length(args) > 0) [17:27:16.057] base::do.call(base::Sys.setenv, args = args) [17:27:16.057] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:16.057] } [17:27:16.057] else { [17:27:16.057] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:16.057] } [17:27:16.057] { [17:27:16.057] if (base::length(...future.futureOptionsAdded) > [17:27:16.057] 0L) { [17:27:16.057] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:16.057] base::names(opts) <- ...future.futureOptionsAdded [17:27:16.057] base::options(opts) [17:27:16.057] } [17:27:16.057] { [17:27:16.057] { [17:27:16.057] base::options(mc.cores = ...future.mc.cores.old) [17:27:16.057] NULL [17:27:16.057] } [17:27:16.057] options(future.plan = NULL) [17:27:16.057] if (is.na(NA_character_)) [17:27:16.057] Sys.unsetenv("R_FUTURE_PLAN") [17:27:16.057] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:16.057] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:16.057] .init = FALSE) [17:27:16.057] } [17:27:16.057] } [17:27:16.057] } [17:27:16.057] }) [17:27:16.057] if (TRUE) { [17:27:16.057] base::sink(type = "output", split = FALSE) [17:27:16.057] if (TRUE) { [17:27:16.057] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:16.057] } [17:27:16.057] else { [17:27:16.057] ...future.result["stdout"] <- base::list(NULL) [17:27:16.057] } [17:27:16.057] base::close(...future.stdout) [17:27:16.057] ...future.stdout <- NULL [17:27:16.057] } [17:27:16.057] ...future.result$conditions <- ...future.conditions [17:27:16.057] ...future.result$finished <- base::Sys.time() [17:27:16.057] ...future.result [17:27:16.057] } [17:27:16.069] MultisessionFuture started [17:27:16.070] - Launch lazy future ... done [17:27:16.070] run() for 'MultisessionFuture' ... done MultisessionFuture: Label: 'strategy = multisession' Expression: { 42 } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) [17:27:16.099] receiveMessageFromWorker() for ClusterFuture ... [17:27:16.100] - Validating connection of MultisessionFuture [17:27:16.100] - received message: FutureResult [17:27:16.100] - Received FutureResult [17:27:16.101] - Erased future from FutureRegistry [17:27:16.101] result() for ClusterFuture ... [17:27:16.101] - result already collected: FutureResult [17:27:16.101] result() for ClusterFuture ... done [17:27:16.101] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: 14db7dea-610a-8c8e-4c3b-ee2b7209ff96 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:16.102] result() for ClusterFuture ... [17:27:16.102] - result already collected: FutureResult [17:27:16.102] result() for ClusterFuture ... done [17:27:16.102] result() for ClusterFuture ... [17:27:16.103] - result already collected: FutureResult [17:27:16.103] result() for ClusterFuture ... done - plan('multisession') ... DONE > > message("*** Futures - labels ... DONE") *** Futures - labels ... DONE > > source("incl/end.R") [17:27:16.104] plan(): Setting new future strategy stack: [17:27:16.104] List of future strategies: [17:27:16.104] 1. FutureStrategy: [17:27:16.104] - args: function (..., envir = parent.frame(), workers = "") [17:27:16.104] - tweaked: FALSE [17:27:16.104] - call: future::plan(oplan) [17:27:16.113] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=205] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', 'RTOOLS44_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS44_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_NOTE_MISSING_PACKAGE_ANCHORS_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 1.01 0.15 2.34