R Under development (unstable) (2023-12-20 r85713 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 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") [01:27:30.301] plan(): Setting new future strategy stack: [01:27:30.303] List of future strategies: [01:27:30.303] 1. sequential: [01:27:30.303] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.303] - tweaked: FALSE [01:27:30.303] - call: future::plan("sequential") [01:27:30.320] 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') ... [01:27:30.345] plan(): Setting new future strategy stack: [01:27:30.346] List of future strategies: [01:27:30.346] 1. sequential: [01:27:30.346] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.346] - tweaked: FALSE [01:27:30.346] - call: plan(strategy) [01:27:30.360] plan(): nbrOfWorkers() = 1 [01:27:30.361] getGlobalsAndPackages() ... [01:27:30.361] Searching for globals... [01:27:30.364] [01:27:30.364] Searching for globals ... DONE [01:27:30.364] - globals: [0] [01:27:30.364] getGlobalsAndPackages() ... DONE [01:27:30.366] Packages needed by the future expression (n = 0): [01:27:30.366] Packages needed by future strategies (n = 0): [01:27:30.367] { [01:27:30.367] { [01:27:30.367] { [01:27:30.367] ...future.startTime <- base::Sys.time() [01:27:30.367] { [01:27:30.367] { [01:27:30.367] { [01:27:30.367] base::local({ [01:27:30.367] has_future <- base::requireNamespace("future", [01:27:30.367] quietly = TRUE) [01:27:30.367] if (has_future) { [01:27:30.367] ns <- base::getNamespace("future") [01:27:30.367] version <- ns[[".package"]][["version"]] [01:27:30.367] if (is.null(version)) [01:27:30.367] version <- utils::packageVersion("future") [01:27:30.367] } [01:27:30.367] else { [01:27:30.367] version <- NULL [01:27:30.367] } [01:27:30.367] if (!has_future || version < "1.8.0") { [01:27:30.367] info <- base::c(r_version = base::gsub("R version ", [01:27:30.367] "", base::R.version$version.string), [01:27:30.367] platform = base::sprintf("%s (%s-bit)", [01:27:30.367] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:30.367] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:30.367] "release", "version")], collapse = " "), [01:27:30.367] hostname = base::Sys.info()[["nodename"]]) [01:27:30.367] info <- base::sprintf("%s: %s", base::names(info), [01:27:30.367] info) [01:27:30.367] info <- base::paste(info, collapse = "; ") [01:27:30.367] if (!has_future) { [01:27:30.367] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:30.367] info) [01:27:30.367] } [01:27:30.367] else { [01:27:30.367] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:30.367] info, version) [01:27:30.367] } [01:27:30.367] base::stop(msg) [01:27:30.367] } [01:27:30.367] }) [01:27:30.367] } [01:27:30.367] options(future.plan = NULL) [01:27:30.367] Sys.unsetenv("R_FUTURE_PLAN") [01:27:30.367] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:30.367] } [01:27:30.367] ...future.workdir <- getwd() [01:27:30.367] } [01:27:30.367] ...future.oldOptions <- base::as.list(base::.Options) [01:27:30.367] ...future.oldEnvVars <- base::Sys.getenv() [01:27:30.367] } [01:27:30.367] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:30.367] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:30.367] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:30.367] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:30.367] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:30.367] future.stdout.windows.reencode = NULL, width = 80L) [01:27:30.367] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:30.367] base::names(...future.oldOptions)) [01:27:30.367] } [01:27:30.367] if (FALSE) { [01:27:30.367] } [01:27:30.367] else { [01:27:30.367] if (TRUE) { [01:27:30.367] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:30.367] open = "w") [01:27:30.367] } [01:27:30.367] else { [01:27:30.367] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:30.367] windows = "NUL", "/dev/null"), open = "w") [01:27:30.367] } [01:27:30.367] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:30.367] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:30.367] base::sink(type = "output", split = FALSE) [01:27:30.367] base::close(...future.stdout) [01:27:30.367] }, add = TRUE) [01:27:30.367] } [01:27:30.367] ...future.frame <- base::sys.nframe() [01:27:30.367] ...future.conditions <- base::list() [01:27:30.367] ...future.rng <- base::globalenv()$.Random.seed [01:27:30.367] if (FALSE) { [01:27:30.367] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:30.367] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:30.367] } [01:27:30.367] ...future.result <- base::tryCatch({ [01:27:30.367] base::withCallingHandlers({ [01:27:30.367] ...future.value <- base::withVisible(base::local(42)) [01:27:30.367] future::FutureResult(value = ...future.value$value, [01:27:30.367] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:30.367] ...future.rng), globalenv = if (FALSE) [01:27:30.367] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:30.367] ...future.globalenv.names)) [01:27:30.367] else NULL, started = ...future.startTime, version = "1.8") [01:27:30.367] }, condition = base::local({ [01:27:30.367] c <- base::c [01:27:30.367] inherits <- base::inherits [01:27:30.367] invokeRestart <- base::invokeRestart [01:27:30.367] length <- base::length [01:27:30.367] list <- base::list [01:27:30.367] seq.int <- base::seq.int [01:27:30.367] signalCondition <- base::signalCondition [01:27:30.367] sys.calls <- base::sys.calls [01:27:30.367] `[[` <- base::`[[` [01:27:30.367] `+` <- base::`+` [01:27:30.367] `<<-` <- base::`<<-` [01:27:30.367] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:30.367] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:30.367] 3L)] [01:27:30.367] } [01:27:30.367] function(cond) { [01:27:30.367] is_error <- inherits(cond, "error") [01:27:30.367] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:30.367] NULL) [01:27:30.367] if (is_error) { [01:27:30.367] sessionInformation <- function() { [01:27:30.367] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:30.367] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:30.367] search = base::search(), system = base::Sys.info()) [01:27:30.367] } [01:27:30.367] ...future.conditions[[length(...future.conditions) + [01:27:30.367] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:30.367] cond$call), session = sessionInformation(), [01:27:30.367] timestamp = base::Sys.time(), signaled = 0L) [01:27:30.367] signalCondition(cond) [01:27:30.367] } [01:27:30.367] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:30.367] "immediateCondition"))) { [01:27:30.367] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:30.367] ...future.conditions[[length(...future.conditions) + [01:27:30.367] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:30.367] if (TRUE && !signal) { [01:27:30.367] muffleCondition <- function (cond, pattern = "^muffle") [01:27:30.367] { [01:27:30.367] inherits <- base::inherits [01:27:30.367] invokeRestart <- base::invokeRestart [01:27:30.367] is.null <- base::is.null [01:27:30.367] muffled <- FALSE [01:27:30.367] if (inherits(cond, "message")) { [01:27:30.367] muffled <- grepl(pattern, "muffleMessage") [01:27:30.367] if (muffled) [01:27:30.367] invokeRestart("muffleMessage") [01:27:30.367] } [01:27:30.367] else if (inherits(cond, "warning")) { [01:27:30.367] muffled <- grepl(pattern, "muffleWarning") [01:27:30.367] if (muffled) [01:27:30.367] invokeRestart("muffleWarning") [01:27:30.367] } [01:27:30.367] else if (inherits(cond, "condition")) { [01:27:30.367] if (!is.null(pattern)) { [01:27:30.367] computeRestarts <- base::computeRestarts [01:27:30.367] grepl <- base::grepl [01:27:30.367] restarts <- computeRestarts(cond) [01:27:30.367] for (restart in restarts) { [01:27:30.367] name <- restart$name [01:27:30.367] if (is.null(name)) [01:27:30.367] next [01:27:30.367] if (!grepl(pattern, name)) [01:27:30.367] next [01:27:30.367] invokeRestart(restart) [01:27:30.367] muffled <- TRUE [01:27:30.367] break [01:27:30.367] } [01:27:30.367] } [01:27:30.367] } [01:27:30.367] invisible(muffled) [01:27:30.367] } [01:27:30.367] muffleCondition(cond, pattern = "^muffle") [01:27:30.367] } [01:27:30.367] } [01:27:30.367] else { [01:27:30.367] if (TRUE) { [01:27:30.367] muffleCondition <- function (cond, pattern = "^muffle") [01:27:30.367] { [01:27:30.367] inherits <- base::inherits [01:27:30.367] invokeRestart <- base::invokeRestart [01:27:30.367] is.null <- base::is.null [01:27:30.367] muffled <- FALSE [01:27:30.367] if (inherits(cond, "message")) { [01:27:30.367] muffled <- grepl(pattern, "muffleMessage") [01:27:30.367] if (muffled) [01:27:30.367] invokeRestart("muffleMessage") [01:27:30.367] } [01:27:30.367] else if (inherits(cond, "warning")) { [01:27:30.367] muffled <- grepl(pattern, "muffleWarning") [01:27:30.367] if (muffled) [01:27:30.367] invokeRestart("muffleWarning") [01:27:30.367] } [01:27:30.367] else if (inherits(cond, "condition")) { [01:27:30.367] if (!is.null(pattern)) { [01:27:30.367] computeRestarts <- base::computeRestarts [01:27:30.367] grepl <- base::grepl [01:27:30.367] restarts <- computeRestarts(cond) [01:27:30.367] for (restart in restarts) { [01:27:30.367] name <- restart$name [01:27:30.367] if (is.null(name)) [01:27:30.367] next [01:27:30.367] if (!grepl(pattern, name)) [01:27:30.367] next [01:27:30.367] invokeRestart(restart) [01:27:30.367] muffled <- TRUE [01:27:30.367] break [01:27:30.367] } [01:27:30.367] } [01:27:30.367] } [01:27:30.367] invisible(muffled) [01:27:30.367] } [01:27:30.367] muffleCondition(cond, pattern = "^muffle") [01:27:30.367] } [01:27:30.367] } [01:27:30.367] } [01:27:30.367] })) [01:27:30.367] }, error = function(ex) { [01:27:30.367] base::structure(base::list(value = NULL, visible = NULL, [01:27:30.367] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:30.367] ...future.rng), started = ...future.startTime, [01:27:30.367] finished = Sys.time(), session_uuid = NA_character_, [01:27:30.367] version = "1.8"), class = "FutureResult") [01:27:30.367] }, finally = { [01:27:30.367] if (!identical(...future.workdir, getwd())) [01:27:30.367] setwd(...future.workdir) [01:27:30.367] { [01:27:30.367] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:30.367] ...future.oldOptions$nwarnings <- NULL [01:27:30.367] } [01:27:30.367] base::options(...future.oldOptions) [01:27:30.367] if (.Platform$OS.type == "windows") { [01:27:30.367] old_names <- names(...future.oldEnvVars) [01:27:30.367] envs <- base::Sys.getenv() [01:27:30.367] names <- names(envs) [01:27:30.367] common <- intersect(names, old_names) [01:27:30.367] added <- setdiff(names, old_names) [01:27:30.367] removed <- setdiff(old_names, names) [01:27:30.367] changed <- common[...future.oldEnvVars[common] != [01:27:30.367] envs[common]] [01:27:30.367] NAMES <- toupper(changed) [01:27:30.367] args <- list() [01:27:30.367] for (kk in seq_along(NAMES)) { [01:27:30.367] name <- changed[[kk]] [01:27:30.367] NAME <- NAMES[[kk]] [01:27:30.367] if (name != NAME && is.element(NAME, old_names)) [01:27:30.367] next [01:27:30.367] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:30.367] } [01:27:30.367] NAMES <- toupper(added) [01:27:30.367] for (kk in seq_along(NAMES)) { [01:27:30.367] name <- added[[kk]] [01:27:30.367] NAME <- NAMES[[kk]] [01:27:30.367] if (name != NAME && is.element(NAME, old_names)) [01:27:30.367] next [01:27:30.367] args[[name]] <- "" [01:27:30.367] } [01:27:30.367] NAMES <- toupper(removed) [01:27:30.367] for (kk in seq_along(NAMES)) { [01:27:30.367] name <- removed[[kk]] [01:27:30.367] NAME <- NAMES[[kk]] [01:27:30.367] if (name != NAME && is.element(NAME, old_names)) [01:27:30.367] next [01:27:30.367] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:30.367] } [01:27:30.367] if (length(args) > 0) [01:27:30.367] base::do.call(base::Sys.setenv, args = args) [01:27:30.367] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:30.367] } [01:27:30.367] else { [01:27:30.367] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:30.367] } [01:27:30.367] { [01:27:30.367] if (base::length(...future.futureOptionsAdded) > [01:27:30.367] 0L) { [01:27:30.367] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:30.367] base::names(opts) <- ...future.futureOptionsAdded [01:27:30.367] base::options(opts) [01:27:30.367] } [01:27:30.367] { [01:27:30.367] { [01:27:30.367] NULL [01:27:30.367] RNGkind("Mersenne-Twister") [01:27:30.367] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:27:30.367] inherits = FALSE) [01:27:30.367] } [01:27:30.367] options(future.plan = NULL) [01:27:30.367] if (is.na(NA_character_)) [01:27:30.367] Sys.unsetenv("R_FUTURE_PLAN") [01:27:30.367] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:30.367] future::plan(list(function (..., envir = parent.frame()) [01:27:30.367] { [01:27:30.367] future <- SequentialFuture(..., envir = envir) [01:27:30.367] if (!future$lazy) [01:27:30.367] future <- run(future) [01:27:30.367] invisible(future) [01:27:30.367] }), .cleanup = FALSE, .init = FALSE) [01:27:30.367] } [01:27:30.367] } [01:27:30.367] } [01:27:30.367] }) [01:27:30.367] if (TRUE) { [01:27:30.367] base::sink(type = "output", split = FALSE) [01:27:30.367] if (TRUE) { [01:27:30.367] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:30.367] } [01:27:30.367] else { [01:27:30.367] ...future.result["stdout"] <- base::list(NULL) [01:27:30.367] } [01:27:30.367] base::close(...future.stdout) [01:27:30.367] ...future.stdout <- NULL [01:27:30.367] } [01:27:30.367] ...future.result$conditions <- ...future.conditions [01:27:30.367] ...future.result$finished <- base::Sys.time() [01:27:30.367] ...future.result [01:27:30.367] } [01:27:30.372] plan(): Setting new future strategy stack: [01:27:30.372] List of future strategies: [01:27:30.372] 1. sequential: [01:27:30.372] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.372] - tweaked: FALSE [01:27:30.372] - call: NULL [01:27:30.372] plan(): nbrOfWorkers() = 1 [01:27:30.374] plan(): Setting new future strategy stack: [01:27:30.375] List of future strategies: [01:27:30.375] 1. sequential: [01:27:30.375] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.375] - tweaked: FALSE [01:27:30.375] - call: plan(strategy) [01:27:30.375] plan(): nbrOfWorkers() = 1 [01:27:30.376] 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: 56 bytes of class 'numeric' Early signaling: FALSE Owner process: e4232549-d54c-8c10-35e3-92a27d17f6a9 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:27:30.378] getGlobalsAndPackages() ... [01:27:30.378] Searching for globals... [01:27:30.378] [01:27:30.379] Searching for globals ... DONE [01:27:30.379] - globals: [0] [01:27:30.379] getGlobalsAndPackages() ... DONE [01:27:30.379] run() for 'Future' ... [01:27:30.380] - state: 'created' [01:27:30.380] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [01:27:30.380] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:27:30.380] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [01:27:30.381] - Field: 'label' [01:27:30.381] - Field: 'local' [01:27:30.381] - Field: 'owner' [01:27:30.381] - Field: 'envir' [01:27:30.381] - Field: 'packages' [01:27:30.382] - Field: 'gc' [01:27:30.382] - Field: 'conditions' [01:27:30.382] - Field: 'expr' [01:27:30.382] - Field: 'uuid' [01:27:30.382] - Field: 'seed' [01:27:30.383] - Field: 'version' [01:27:30.383] - Field: 'result' [01:27:30.383] - Field: 'asynchronous' [01:27:30.383] - Field: 'calls' [01:27:30.383] - Field: 'globals' [01:27:30.383] - Field: 'stdout' [01:27:30.384] - Field: 'earlySignal' [01:27:30.384] - Field: 'lazy' [01:27:30.384] - Field: 'state' [01:27:30.384] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [01:27:30.384] - Launch lazy future ... [01:27:30.386] Packages needed by the future expression (n = 0): [01:27:30.387] Packages needed by future strategies (n = 0): [01:27:30.387] { [01:27:30.387] { [01:27:30.387] { [01:27:30.387] ...future.startTime <- base::Sys.time() [01:27:30.387] { [01:27:30.387] { [01:27:30.387] { [01:27:30.387] base::local({ [01:27:30.387] has_future <- base::requireNamespace("future", [01:27:30.387] quietly = TRUE) [01:27:30.387] if (has_future) { [01:27:30.387] ns <- base::getNamespace("future") [01:27:30.387] version <- ns[[".package"]][["version"]] [01:27:30.387] if (is.null(version)) [01:27:30.387] version <- utils::packageVersion("future") [01:27:30.387] } [01:27:30.387] else { [01:27:30.387] version <- NULL [01:27:30.387] } [01:27:30.387] if (!has_future || version < "1.8.0") { [01:27:30.387] info <- base::c(r_version = base::gsub("R version ", [01:27:30.387] "", base::R.version$version.string), [01:27:30.387] platform = base::sprintf("%s (%s-bit)", [01:27:30.387] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:30.387] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:30.387] "release", "version")], collapse = " "), [01:27:30.387] hostname = base::Sys.info()[["nodename"]]) [01:27:30.387] info <- base::sprintf("%s: %s", base::names(info), [01:27:30.387] info) [01:27:30.387] info <- base::paste(info, collapse = "; ") [01:27:30.387] if (!has_future) { [01:27:30.387] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:30.387] info) [01:27:30.387] } [01:27:30.387] else { [01:27:30.387] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:30.387] info, version) [01:27:30.387] } [01:27:30.387] base::stop(msg) [01:27:30.387] } [01:27:30.387] }) [01:27:30.387] } [01:27:30.387] options(future.plan = NULL) [01:27:30.387] Sys.unsetenv("R_FUTURE_PLAN") [01:27:30.387] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:30.387] } [01:27:30.387] ...future.workdir <- getwd() [01:27:30.387] } [01:27:30.387] ...future.oldOptions <- base::as.list(base::.Options) [01:27:30.387] ...future.oldEnvVars <- base::Sys.getenv() [01:27:30.387] } [01:27:30.387] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:30.387] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:30.387] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:30.387] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:30.387] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:30.387] future.stdout.windows.reencode = NULL, width = 80L) [01:27:30.387] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:30.387] base::names(...future.oldOptions)) [01:27:30.387] } [01:27:30.387] if (FALSE) { [01:27:30.387] } [01:27:30.387] else { [01:27:30.387] if (TRUE) { [01:27:30.387] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:30.387] open = "w") [01:27:30.387] } [01:27:30.387] else { [01:27:30.387] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:30.387] windows = "NUL", "/dev/null"), open = "w") [01:27:30.387] } [01:27:30.387] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:30.387] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:30.387] base::sink(type = "output", split = FALSE) [01:27:30.387] base::close(...future.stdout) [01:27:30.387] }, add = TRUE) [01:27:30.387] } [01:27:30.387] ...future.frame <- base::sys.nframe() [01:27:30.387] ...future.conditions <- base::list() [01:27:30.387] ...future.rng <- base::globalenv()$.Random.seed [01:27:30.387] if (FALSE) { [01:27:30.387] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:30.387] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:30.387] } [01:27:30.387] ...future.result <- base::tryCatch({ [01:27:30.387] base::withCallingHandlers({ [01:27:30.387] ...future.value <- base::withVisible(base::local(42)) [01:27:30.387] future::FutureResult(value = ...future.value$value, [01:27:30.387] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:30.387] ...future.rng), globalenv = if (FALSE) [01:27:30.387] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:30.387] ...future.globalenv.names)) [01:27:30.387] else NULL, started = ...future.startTime, version = "1.8") [01:27:30.387] }, condition = base::local({ [01:27:30.387] c <- base::c [01:27:30.387] inherits <- base::inherits [01:27:30.387] invokeRestart <- base::invokeRestart [01:27:30.387] length <- base::length [01:27:30.387] list <- base::list [01:27:30.387] seq.int <- base::seq.int [01:27:30.387] signalCondition <- base::signalCondition [01:27:30.387] sys.calls <- base::sys.calls [01:27:30.387] `[[` <- base::`[[` [01:27:30.387] `+` <- base::`+` [01:27:30.387] `<<-` <- base::`<<-` [01:27:30.387] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:30.387] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:30.387] 3L)] [01:27:30.387] } [01:27:30.387] function(cond) { [01:27:30.387] is_error <- inherits(cond, "error") [01:27:30.387] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:30.387] NULL) [01:27:30.387] if (is_error) { [01:27:30.387] sessionInformation <- function() { [01:27:30.387] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:30.387] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:30.387] search = base::search(), system = base::Sys.info()) [01:27:30.387] } [01:27:30.387] ...future.conditions[[length(...future.conditions) + [01:27:30.387] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:30.387] cond$call), session = sessionInformation(), [01:27:30.387] timestamp = base::Sys.time(), signaled = 0L) [01:27:30.387] signalCondition(cond) [01:27:30.387] } [01:27:30.387] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:30.387] "immediateCondition"))) { [01:27:30.387] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:30.387] ...future.conditions[[length(...future.conditions) + [01:27:30.387] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:30.387] if (TRUE && !signal) { [01:27:30.387] muffleCondition <- function (cond, pattern = "^muffle") [01:27:30.387] { [01:27:30.387] inherits <- base::inherits [01:27:30.387] invokeRestart <- base::invokeRestart [01:27:30.387] is.null <- base::is.null [01:27:30.387] muffled <- FALSE [01:27:30.387] if (inherits(cond, "message")) { [01:27:30.387] muffled <- grepl(pattern, "muffleMessage") [01:27:30.387] if (muffled) [01:27:30.387] invokeRestart("muffleMessage") [01:27:30.387] } [01:27:30.387] else if (inherits(cond, "warning")) { [01:27:30.387] muffled <- grepl(pattern, "muffleWarning") [01:27:30.387] if (muffled) [01:27:30.387] invokeRestart("muffleWarning") [01:27:30.387] } [01:27:30.387] else if (inherits(cond, "condition")) { [01:27:30.387] if (!is.null(pattern)) { [01:27:30.387] computeRestarts <- base::computeRestarts [01:27:30.387] grepl <- base::grepl [01:27:30.387] restarts <- computeRestarts(cond) [01:27:30.387] for (restart in restarts) { [01:27:30.387] name <- restart$name [01:27:30.387] if (is.null(name)) [01:27:30.387] next [01:27:30.387] if (!grepl(pattern, name)) [01:27:30.387] next [01:27:30.387] invokeRestart(restart) [01:27:30.387] muffled <- TRUE [01:27:30.387] break [01:27:30.387] } [01:27:30.387] } [01:27:30.387] } [01:27:30.387] invisible(muffled) [01:27:30.387] } [01:27:30.387] muffleCondition(cond, pattern = "^muffle") [01:27:30.387] } [01:27:30.387] } [01:27:30.387] else { [01:27:30.387] if (TRUE) { [01:27:30.387] muffleCondition <- function (cond, pattern = "^muffle") [01:27:30.387] { [01:27:30.387] inherits <- base::inherits [01:27:30.387] invokeRestart <- base::invokeRestart [01:27:30.387] is.null <- base::is.null [01:27:30.387] muffled <- FALSE [01:27:30.387] if (inherits(cond, "message")) { [01:27:30.387] muffled <- grepl(pattern, "muffleMessage") [01:27:30.387] if (muffled) [01:27:30.387] invokeRestart("muffleMessage") [01:27:30.387] } [01:27:30.387] else if (inherits(cond, "warning")) { [01:27:30.387] muffled <- grepl(pattern, "muffleWarning") [01:27:30.387] if (muffled) [01:27:30.387] invokeRestart("muffleWarning") [01:27:30.387] } [01:27:30.387] else if (inherits(cond, "condition")) { [01:27:30.387] if (!is.null(pattern)) { [01:27:30.387] computeRestarts <- base::computeRestarts [01:27:30.387] grepl <- base::grepl [01:27:30.387] restarts <- computeRestarts(cond) [01:27:30.387] for (restart in restarts) { [01:27:30.387] name <- restart$name [01:27:30.387] if (is.null(name)) [01:27:30.387] next [01:27:30.387] if (!grepl(pattern, name)) [01:27:30.387] next [01:27:30.387] invokeRestart(restart) [01:27:30.387] muffled <- TRUE [01:27:30.387] break [01:27:30.387] } [01:27:30.387] } [01:27:30.387] } [01:27:30.387] invisible(muffled) [01:27:30.387] } [01:27:30.387] muffleCondition(cond, pattern = "^muffle") [01:27:30.387] } [01:27:30.387] } [01:27:30.387] } [01:27:30.387] })) [01:27:30.387] }, error = function(ex) { [01:27:30.387] base::structure(base::list(value = NULL, visible = NULL, [01:27:30.387] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:30.387] ...future.rng), started = ...future.startTime, [01:27:30.387] finished = Sys.time(), session_uuid = NA_character_, [01:27:30.387] version = "1.8"), class = "FutureResult") [01:27:30.387] }, finally = { [01:27:30.387] if (!identical(...future.workdir, getwd())) [01:27:30.387] setwd(...future.workdir) [01:27:30.387] { [01:27:30.387] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:30.387] ...future.oldOptions$nwarnings <- NULL [01:27:30.387] } [01:27:30.387] base::options(...future.oldOptions) [01:27:30.387] if (.Platform$OS.type == "windows") { [01:27:30.387] old_names <- names(...future.oldEnvVars) [01:27:30.387] envs <- base::Sys.getenv() [01:27:30.387] names <- names(envs) [01:27:30.387] common <- intersect(names, old_names) [01:27:30.387] added <- setdiff(names, old_names) [01:27:30.387] removed <- setdiff(old_names, names) [01:27:30.387] changed <- common[...future.oldEnvVars[common] != [01:27:30.387] envs[common]] [01:27:30.387] NAMES <- toupper(changed) [01:27:30.387] args <- list() [01:27:30.387] for (kk in seq_along(NAMES)) { [01:27:30.387] name <- changed[[kk]] [01:27:30.387] NAME <- NAMES[[kk]] [01:27:30.387] if (name != NAME && is.element(NAME, old_names)) [01:27:30.387] next [01:27:30.387] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:30.387] } [01:27:30.387] NAMES <- toupper(added) [01:27:30.387] for (kk in seq_along(NAMES)) { [01:27:30.387] name <- added[[kk]] [01:27:30.387] NAME <- NAMES[[kk]] [01:27:30.387] if (name != NAME && is.element(NAME, old_names)) [01:27:30.387] next [01:27:30.387] args[[name]] <- "" [01:27:30.387] } [01:27:30.387] NAMES <- toupper(removed) [01:27:30.387] for (kk in seq_along(NAMES)) { [01:27:30.387] name <- removed[[kk]] [01:27:30.387] NAME <- NAMES[[kk]] [01:27:30.387] if (name != NAME && is.element(NAME, old_names)) [01:27:30.387] next [01:27:30.387] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:30.387] } [01:27:30.387] if (length(args) > 0) [01:27:30.387] base::do.call(base::Sys.setenv, args = args) [01:27:30.387] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:30.387] } [01:27:30.387] else { [01:27:30.387] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:30.387] } [01:27:30.387] { [01:27:30.387] if (base::length(...future.futureOptionsAdded) > [01:27:30.387] 0L) { [01:27:30.387] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:30.387] base::names(opts) <- ...future.futureOptionsAdded [01:27:30.387] base::options(opts) [01:27:30.387] } [01:27:30.387] { [01:27:30.387] { [01:27:30.387] NULL [01:27:30.387] RNGkind("Mersenne-Twister") [01:27:30.387] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:27:30.387] inherits = FALSE) [01:27:30.387] } [01:27:30.387] options(future.plan = NULL) [01:27:30.387] if (is.na(NA_character_)) [01:27:30.387] Sys.unsetenv("R_FUTURE_PLAN") [01:27:30.387] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:30.387] future::plan(list(function (..., envir = parent.frame()) [01:27:30.387] { [01:27:30.387] future <- SequentialFuture(..., envir = envir) [01:27:30.387] if (!future$lazy) [01:27:30.387] future <- run(future) [01:27:30.387] invisible(future) [01:27:30.387] }), .cleanup = FALSE, .init = FALSE) [01:27:30.387] } [01:27:30.387] } [01:27:30.387] } [01:27:30.387] }) [01:27:30.387] if (TRUE) { [01:27:30.387] base::sink(type = "output", split = FALSE) [01:27:30.387] if (TRUE) { [01:27:30.387] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:30.387] } [01:27:30.387] else { [01:27:30.387] ...future.result["stdout"] <- base::list(NULL) [01:27:30.387] } [01:27:30.387] base::close(...future.stdout) [01:27:30.387] ...future.stdout <- NULL [01:27:30.387] } [01:27:30.387] ...future.result$conditions <- ...future.conditions [01:27:30.387] ...future.result$finished <- base::Sys.time() [01:27:30.387] ...future.result [01:27:30.387] } [01:27:30.391] plan(): Setting new future strategy stack: [01:27:30.391] List of future strategies: [01:27:30.391] 1. sequential: [01:27:30.391] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.391] - tweaked: FALSE [01:27:30.391] - call: NULL [01:27:30.392] plan(): nbrOfWorkers() = 1 [01:27:30.393] plan(): Setting new future strategy stack: [01:27:30.393] List of future strategies: [01:27:30.393] 1. sequential: [01:27:30.393] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.393] - tweaked: FALSE [01:27:30.393] - call: plan(strategy) [01:27:30.394] plan(): nbrOfWorkers() = 1 [01:27:30.394] SequentialFuture started (and completed) [01:27:30.394] - Launch lazy future ... done [01:27:30.395] 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: 56 bytes of class 'numeric' Early signaling: FALSE Owner process: e4232549-d54c-8c10-35e3-92a27d17f6a9 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:27:30.397] getGlobalsAndPackages() ... [01:27:30.397] Searching for globals... [01:27:30.398] - globals found: [1] '{' [01:27:30.399] Searching for globals ... DONE [01:27:30.399] Resolving globals: FALSE [01:27:30.399] [01:27:30.400] [01:27:30.400] getGlobalsAndPackages() ... DONE [01:27:30.400] run() for 'Future' ... [01:27:30.400] - state: 'created' [01:27:30.400] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [01:27:30.401] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:27:30.401] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [01:27:30.401] - Field: 'label' [01:27:30.401] - Field: 'local' [01:27:30.401] - Field: 'owner' [01:27:30.402] - Field: 'envir' [01:27:30.402] - Field: 'packages' [01:27:30.402] - Field: 'gc' [01:27:30.402] - Field: 'conditions' [01:27:30.402] - Field: 'expr' [01:27:30.403] - Field: 'uuid' [01:27:30.403] - Field: 'seed' [01:27:30.403] - Field: 'version' [01:27:30.403] - Field: 'result' [01:27:30.403] - Field: 'asynchronous' [01:27:30.403] - Field: 'calls' [01:27:30.404] - Field: 'globals' [01:27:30.404] - Field: 'stdout' [01:27:30.404] - Field: 'earlySignal' [01:27:30.404] - Field: 'lazy' [01:27:30.404] - Field: 'state' [01:27:30.404] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [01:27:30.405] - Launch lazy future ... [01:27:30.405] Packages needed by the future expression (n = 0): [01:27:30.405] Packages needed by future strategies (n = 0): [01:27:30.406] { [01:27:30.406] { [01:27:30.406] { [01:27:30.406] ...future.startTime <- base::Sys.time() [01:27:30.406] { [01:27:30.406] { [01:27:30.406] { [01:27:30.406] base::local({ [01:27:30.406] has_future <- base::requireNamespace("future", [01:27:30.406] quietly = TRUE) [01:27:30.406] if (has_future) { [01:27:30.406] ns <- base::getNamespace("future") [01:27:30.406] version <- ns[[".package"]][["version"]] [01:27:30.406] if (is.null(version)) [01:27:30.406] version <- utils::packageVersion("future") [01:27:30.406] } [01:27:30.406] else { [01:27:30.406] version <- NULL [01:27:30.406] } [01:27:30.406] if (!has_future || version < "1.8.0") { [01:27:30.406] info <- base::c(r_version = base::gsub("R version ", [01:27:30.406] "", base::R.version$version.string), [01:27:30.406] platform = base::sprintf("%s (%s-bit)", [01:27:30.406] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:30.406] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:30.406] "release", "version")], collapse = " "), [01:27:30.406] hostname = base::Sys.info()[["nodename"]]) [01:27:30.406] info <- base::sprintf("%s: %s", base::names(info), [01:27:30.406] info) [01:27:30.406] info <- base::paste(info, collapse = "; ") [01:27:30.406] if (!has_future) { [01:27:30.406] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:30.406] info) [01:27:30.406] } [01:27:30.406] else { [01:27:30.406] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:30.406] info, version) [01:27:30.406] } [01:27:30.406] base::stop(msg) [01:27:30.406] } [01:27:30.406] }) [01:27:30.406] } [01:27:30.406] options(future.plan = NULL) [01:27:30.406] Sys.unsetenv("R_FUTURE_PLAN") [01:27:30.406] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:30.406] } [01:27:30.406] ...future.workdir <- getwd() [01:27:30.406] } [01:27:30.406] ...future.oldOptions <- base::as.list(base::.Options) [01:27:30.406] ...future.oldEnvVars <- base::Sys.getenv() [01:27:30.406] } [01:27:30.406] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:30.406] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:30.406] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:30.406] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:30.406] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:30.406] future.stdout.windows.reencode = NULL, width = 80L) [01:27:30.406] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:30.406] base::names(...future.oldOptions)) [01:27:30.406] } [01:27:30.406] if (FALSE) { [01:27:30.406] } [01:27:30.406] else { [01:27:30.406] if (TRUE) { [01:27:30.406] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:30.406] open = "w") [01:27:30.406] } [01:27:30.406] else { [01:27:30.406] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:30.406] windows = "NUL", "/dev/null"), open = "w") [01:27:30.406] } [01:27:30.406] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:30.406] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:30.406] base::sink(type = "output", split = FALSE) [01:27:30.406] base::close(...future.stdout) [01:27:30.406] }, add = TRUE) [01:27:30.406] } [01:27:30.406] ...future.frame <- base::sys.nframe() [01:27:30.406] ...future.conditions <- base::list() [01:27:30.406] ...future.rng <- base::globalenv()$.Random.seed [01:27:30.406] if (FALSE) { [01:27:30.406] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:30.406] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:30.406] } [01:27:30.406] ...future.result <- base::tryCatch({ [01:27:30.406] base::withCallingHandlers({ [01:27:30.406] ...future.value <- base::withVisible(base::local({ [01:27:30.406] 42 [01:27:30.406] })) [01:27:30.406] future::FutureResult(value = ...future.value$value, [01:27:30.406] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:30.406] ...future.rng), globalenv = if (FALSE) [01:27:30.406] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:30.406] ...future.globalenv.names)) [01:27:30.406] else NULL, started = ...future.startTime, version = "1.8") [01:27:30.406] }, condition = base::local({ [01:27:30.406] c <- base::c [01:27:30.406] inherits <- base::inherits [01:27:30.406] invokeRestart <- base::invokeRestart [01:27:30.406] length <- base::length [01:27:30.406] list <- base::list [01:27:30.406] seq.int <- base::seq.int [01:27:30.406] signalCondition <- base::signalCondition [01:27:30.406] sys.calls <- base::sys.calls [01:27:30.406] `[[` <- base::`[[` [01:27:30.406] `+` <- base::`+` [01:27:30.406] `<<-` <- base::`<<-` [01:27:30.406] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:30.406] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:30.406] 3L)] [01:27:30.406] } [01:27:30.406] function(cond) { [01:27:30.406] is_error <- inherits(cond, "error") [01:27:30.406] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:30.406] NULL) [01:27:30.406] if (is_error) { [01:27:30.406] sessionInformation <- function() { [01:27:30.406] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:30.406] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:30.406] search = base::search(), system = base::Sys.info()) [01:27:30.406] } [01:27:30.406] ...future.conditions[[length(...future.conditions) + [01:27:30.406] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:30.406] cond$call), session = sessionInformation(), [01:27:30.406] timestamp = base::Sys.time(), signaled = 0L) [01:27:30.406] signalCondition(cond) [01:27:30.406] } [01:27:30.406] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:30.406] "immediateCondition"))) { [01:27:30.406] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:30.406] ...future.conditions[[length(...future.conditions) + [01:27:30.406] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:30.406] if (TRUE && !signal) { [01:27:30.406] muffleCondition <- function (cond, pattern = "^muffle") [01:27:30.406] { [01:27:30.406] inherits <- base::inherits [01:27:30.406] invokeRestart <- base::invokeRestart [01:27:30.406] is.null <- base::is.null [01:27:30.406] muffled <- FALSE [01:27:30.406] if (inherits(cond, "message")) { [01:27:30.406] muffled <- grepl(pattern, "muffleMessage") [01:27:30.406] if (muffled) [01:27:30.406] invokeRestart("muffleMessage") [01:27:30.406] } [01:27:30.406] else if (inherits(cond, "warning")) { [01:27:30.406] muffled <- grepl(pattern, "muffleWarning") [01:27:30.406] if (muffled) [01:27:30.406] invokeRestart("muffleWarning") [01:27:30.406] } [01:27:30.406] else if (inherits(cond, "condition")) { [01:27:30.406] if (!is.null(pattern)) { [01:27:30.406] computeRestarts <- base::computeRestarts [01:27:30.406] grepl <- base::grepl [01:27:30.406] restarts <- computeRestarts(cond) [01:27:30.406] for (restart in restarts) { [01:27:30.406] name <- restart$name [01:27:30.406] if (is.null(name)) [01:27:30.406] next [01:27:30.406] if (!grepl(pattern, name)) [01:27:30.406] next [01:27:30.406] invokeRestart(restart) [01:27:30.406] muffled <- TRUE [01:27:30.406] break [01:27:30.406] } [01:27:30.406] } [01:27:30.406] } [01:27:30.406] invisible(muffled) [01:27:30.406] } [01:27:30.406] muffleCondition(cond, pattern = "^muffle") [01:27:30.406] } [01:27:30.406] } [01:27:30.406] else { [01:27:30.406] if (TRUE) { [01:27:30.406] muffleCondition <- function (cond, pattern = "^muffle") [01:27:30.406] { [01:27:30.406] inherits <- base::inherits [01:27:30.406] invokeRestart <- base::invokeRestart [01:27:30.406] is.null <- base::is.null [01:27:30.406] muffled <- FALSE [01:27:30.406] if (inherits(cond, "message")) { [01:27:30.406] muffled <- grepl(pattern, "muffleMessage") [01:27:30.406] if (muffled) [01:27:30.406] invokeRestart("muffleMessage") [01:27:30.406] } [01:27:30.406] else if (inherits(cond, "warning")) { [01:27:30.406] muffled <- grepl(pattern, "muffleWarning") [01:27:30.406] if (muffled) [01:27:30.406] invokeRestart("muffleWarning") [01:27:30.406] } [01:27:30.406] else if (inherits(cond, "condition")) { [01:27:30.406] if (!is.null(pattern)) { [01:27:30.406] computeRestarts <- base::computeRestarts [01:27:30.406] grepl <- base::grepl [01:27:30.406] restarts <- computeRestarts(cond) [01:27:30.406] for (restart in restarts) { [01:27:30.406] name <- restart$name [01:27:30.406] if (is.null(name)) [01:27:30.406] next [01:27:30.406] if (!grepl(pattern, name)) [01:27:30.406] next [01:27:30.406] invokeRestart(restart) [01:27:30.406] muffled <- TRUE [01:27:30.406] break [01:27:30.406] } [01:27:30.406] } [01:27:30.406] } [01:27:30.406] invisible(muffled) [01:27:30.406] } [01:27:30.406] muffleCondition(cond, pattern = "^muffle") [01:27:30.406] } [01:27:30.406] } [01:27:30.406] } [01:27:30.406] })) [01:27:30.406] }, error = function(ex) { [01:27:30.406] base::structure(base::list(value = NULL, visible = NULL, [01:27:30.406] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:30.406] ...future.rng), started = ...future.startTime, [01:27:30.406] finished = Sys.time(), session_uuid = NA_character_, [01:27:30.406] version = "1.8"), class = "FutureResult") [01:27:30.406] }, finally = { [01:27:30.406] if (!identical(...future.workdir, getwd())) [01:27:30.406] setwd(...future.workdir) [01:27:30.406] { [01:27:30.406] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:30.406] ...future.oldOptions$nwarnings <- NULL [01:27:30.406] } [01:27:30.406] base::options(...future.oldOptions) [01:27:30.406] if (.Platform$OS.type == "windows") { [01:27:30.406] old_names <- names(...future.oldEnvVars) [01:27:30.406] envs <- base::Sys.getenv() [01:27:30.406] names <- names(envs) [01:27:30.406] common <- intersect(names, old_names) [01:27:30.406] added <- setdiff(names, old_names) [01:27:30.406] removed <- setdiff(old_names, names) [01:27:30.406] changed <- common[...future.oldEnvVars[common] != [01:27:30.406] envs[common]] [01:27:30.406] NAMES <- toupper(changed) [01:27:30.406] args <- list() [01:27:30.406] for (kk in seq_along(NAMES)) { [01:27:30.406] name <- changed[[kk]] [01:27:30.406] NAME <- NAMES[[kk]] [01:27:30.406] if (name != NAME && is.element(NAME, old_names)) [01:27:30.406] next [01:27:30.406] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:30.406] } [01:27:30.406] NAMES <- toupper(added) [01:27:30.406] for (kk in seq_along(NAMES)) { [01:27:30.406] name <- added[[kk]] [01:27:30.406] NAME <- NAMES[[kk]] [01:27:30.406] if (name != NAME && is.element(NAME, old_names)) [01:27:30.406] next [01:27:30.406] args[[name]] <- "" [01:27:30.406] } [01:27:30.406] NAMES <- toupper(removed) [01:27:30.406] for (kk in seq_along(NAMES)) { [01:27:30.406] name <- removed[[kk]] [01:27:30.406] NAME <- NAMES[[kk]] [01:27:30.406] if (name != NAME && is.element(NAME, old_names)) [01:27:30.406] next [01:27:30.406] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:30.406] } [01:27:30.406] if (length(args) > 0) [01:27:30.406] base::do.call(base::Sys.setenv, args = args) [01:27:30.406] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:30.406] } [01:27:30.406] else { [01:27:30.406] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:30.406] } [01:27:30.406] { [01:27:30.406] if (base::length(...future.futureOptionsAdded) > [01:27:30.406] 0L) { [01:27:30.406] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:30.406] base::names(opts) <- ...future.futureOptionsAdded [01:27:30.406] base::options(opts) [01:27:30.406] } [01:27:30.406] { [01:27:30.406] { [01:27:30.406] NULL [01:27:30.406] RNGkind("Mersenne-Twister") [01:27:30.406] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:27:30.406] inherits = FALSE) [01:27:30.406] } [01:27:30.406] options(future.plan = NULL) [01:27:30.406] if (is.na(NA_character_)) [01:27:30.406] Sys.unsetenv("R_FUTURE_PLAN") [01:27:30.406] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:30.406] future::plan(list(function (..., envir = parent.frame()) [01:27:30.406] { [01:27:30.406] future <- SequentialFuture(..., envir = envir) [01:27:30.406] if (!future$lazy) [01:27:30.406] future <- run(future) [01:27:30.406] invisible(future) [01:27:30.406] }), .cleanup = FALSE, .init = FALSE) [01:27:30.406] } [01:27:30.406] } [01:27:30.406] } [01:27:30.406] }) [01:27:30.406] if (TRUE) { [01:27:30.406] base::sink(type = "output", split = FALSE) [01:27:30.406] if (TRUE) { [01:27:30.406] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:30.406] } [01:27:30.406] else { [01:27:30.406] ...future.result["stdout"] <- base::list(NULL) [01:27:30.406] } [01:27:30.406] base::close(...future.stdout) [01:27:30.406] ...future.stdout <- NULL [01:27:30.406] } [01:27:30.406] ...future.result$conditions <- ...future.conditions [01:27:30.406] ...future.result$finished <- base::Sys.time() [01:27:30.406] ...future.result [01:27:30.406] } [01:27:30.410] plan(): Setting new future strategy stack: [01:27:30.410] List of future strategies: [01:27:30.410] 1. sequential: [01:27:30.410] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.410] - tweaked: FALSE [01:27:30.410] - call: NULL [01:27:30.410] plan(): nbrOfWorkers() = 1 [01:27:30.412] plan(): Setting new future strategy stack: [01:27:30.412] List of future strategies: [01:27:30.412] 1. sequential: [01:27:30.412] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.412] - tweaked: FALSE [01:27:30.412] - call: plan(strategy) [01:27:30.412] plan(): nbrOfWorkers() = 1 [01:27:30.413] SequentialFuture started (and completed) [01:27:30.413] - Launch lazy future ... done [01:27:30.413] 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: 56 bytes of class 'numeric' Early signaling: FALSE Owner process: e4232549-d54c-8c10-35e3-92a27d17f6a9 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:27:30.414] getGlobalsAndPackages() ... [01:27:30.414] Searching for globals... [01:27:30.415] [01:27:30.415] Searching for globals ... DONE [01:27:30.415] - globals: [0] [01:27:30.415] getGlobalsAndPackages() ... DONE [01:27:30.415] Packages needed by the future expression (n = 0): [01:27:30.416] Packages needed by future strategies (n = 0): [01:27:30.416] { [01:27:30.416] { [01:27:30.416] { [01:27:30.416] ...future.startTime <- base::Sys.time() [01:27:30.416] { [01:27:30.416] { [01:27:30.416] { [01:27:30.416] base::local({ [01:27:30.416] has_future <- base::requireNamespace("future", [01:27:30.416] quietly = TRUE) [01:27:30.416] if (has_future) { [01:27:30.416] ns <- base::getNamespace("future") [01:27:30.416] version <- ns[[".package"]][["version"]] [01:27:30.416] if (is.null(version)) [01:27:30.416] version <- utils::packageVersion("future") [01:27:30.416] } [01:27:30.416] else { [01:27:30.416] version <- NULL [01:27:30.416] } [01:27:30.416] if (!has_future || version < "1.8.0") { [01:27:30.416] info <- base::c(r_version = base::gsub("R version ", [01:27:30.416] "", base::R.version$version.string), [01:27:30.416] platform = base::sprintf("%s (%s-bit)", [01:27:30.416] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:30.416] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:30.416] "release", "version")], collapse = " "), [01:27:30.416] hostname = base::Sys.info()[["nodename"]]) [01:27:30.416] info <- base::sprintf("%s: %s", base::names(info), [01:27:30.416] info) [01:27:30.416] info <- base::paste(info, collapse = "; ") [01:27:30.416] if (!has_future) { [01:27:30.416] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:30.416] info) [01:27:30.416] } [01:27:30.416] else { [01:27:30.416] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:30.416] info, version) [01:27:30.416] } [01:27:30.416] base::stop(msg) [01:27:30.416] } [01:27:30.416] }) [01:27:30.416] } [01:27:30.416] options(future.plan = NULL) [01:27:30.416] Sys.unsetenv("R_FUTURE_PLAN") [01:27:30.416] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:30.416] } [01:27:30.416] ...future.workdir <- getwd() [01:27:30.416] } [01:27:30.416] ...future.oldOptions <- base::as.list(base::.Options) [01:27:30.416] ...future.oldEnvVars <- base::Sys.getenv() [01:27:30.416] } [01:27:30.416] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:30.416] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:30.416] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:30.416] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:30.416] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:30.416] future.stdout.windows.reencode = NULL, width = 80L) [01:27:30.416] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:30.416] base::names(...future.oldOptions)) [01:27:30.416] } [01:27:30.416] if (FALSE) { [01:27:30.416] } [01:27:30.416] else { [01:27:30.416] if (TRUE) { [01:27:30.416] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:30.416] open = "w") [01:27:30.416] } [01:27:30.416] else { [01:27:30.416] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:30.416] windows = "NUL", "/dev/null"), open = "w") [01:27:30.416] } [01:27:30.416] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:30.416] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:30.416] base::sink(type = "output", split = FALSE) [01:27:30.416] base::close(...future.stdout) [01:27:30.416] }, add = TRUE) [01:27:30.416] } [01:27:30.416] ...future.frame <- base::sys.nframe() [01:27:30.416] ...future.conditions <- base::list() [01:27:30.416] ...future.rng <- base::globalenv()$.Random.seed [01:27:30.416] if (FALSE) { [01:27:30.416] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:30.416] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:30.416] } [01:27:30.416] ...future.result <- base::tryCatch({ [01:27:30.416] base::withCallingHandlers({ [01:27:30.416] ...future.value <- base::withVisible(base::local(42)) [01:27:30.416] future::FutureResult(value = ...future.value$value, [01:27:30.416] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:30.416] ...future.rng), globalenv = if (FALSE) [01:27:30.416] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:30.416] ...future.globalenv.names)) [01:27:30.416] else NULL, started = ...future.startTime, version = "1.8") [01:27:30.416] }, condition = base::local({ [01:27:30.416] c <- base::c [01:27:30.416] inherits <- base::inherits [01:27:30.416] invokeRestart <- base::invokeRestart [01:27:30.416] length <- base::length [01:27:30.416] list <- base::list [01:27:30.416] seq.int <- base::seq.int [01:27:30.416] signalCondition <- base::signalCondition [01:27:30.416] sys.calls <- base::sys.calls [01:27:30.416] `[[` <- base::`[[` [01:27:30.416] `+` <- base::`+` [01:27:30.416] `<<-` <- base::`<<-` [01:27:30.416] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:30.416] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:30.416] 3L)] [01:27:30.416] } [01:27:30.416] function(cond) { [01:27:30.416] is_error <- inherits(cond, "error") [01:27:30.416] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:30.416] NULL) [01:27:30.416] if (is_error) { [01:27:30.416] sessionInformation <- function() { [01:27:30.416] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:30.416] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:30.416] search = base::search(), system = base::Sys.info()) [01:27:30.416] } [01:27:30.416] ...future.conditions[[length(...future.conditions) + [01:27:30.416] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:30.416] cond$call), session = sessionInformation(), [01:27:30.416] timestamp = base::Sys.time(), signaled = 0L) [01:27:30.416] signalCondition(cond) [01:27:30.416] } [01:27:30.416] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:30.416] "immediateCondition"))) { [01:27:30.416] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:30.416] ...future.conditions[[length(...future.conditions) + [01:27:30.416] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:30.416] if (TRUE && !signal) { [01:27:30.416] muffleCondition <- function (cond, pattern = "^muffle") [01:27:30.416] { [01:27:30.416] inherits <- base::inherits [01:27:30.416] invokeRestart <- base::invokeRestart [01:27:30.416] is.null <- base::is.null [01:27:30.416] muffled <- FALSE [01:27:30.416] if (inherits(cond, "message")) { [01:27:30.416] muffled <- grepl(pattern, "muffleMessage") [01:27:30.416] if (muffled) [01:27:30.416] invokeRestart("muffleMessage") [01:27:30.416] } [01:27:30.416] else if (inherits(cond, "warning")) { [01:27:30.416] muffled <- grepl(pattern, "muffleWarning") [01:27:30.416] if (muffled) [01:27:30.416] invokeRestart("muffleWarning") [01:27:30.416] } [01:27:30.416] else if (inherits(cond, "condition")) { [01:27:30.416] if (!is.null(pattern)) { [01:27:30.416] computeRestarts <- base::computeRestarts [01:27:30.416] grepl <- base::grepl [01:27:30.416] restarts <- computeRestarts(cond) [01:27:30.416] for (restart in restarts) { [01:27:30.416] name <- restart$name [01:27:30.416] if (is.null(name)) [01:27:30.416] next [01:27:30.416] if (!grepl(pattern, name)) [01:27:30.416] next [01:27:30.416] invokeRestart(restart) [01:27:30.416] muffled <- TRUE [01:27:30.416] break [01:27:30.416] } [01:27:30.416] } [01:27:30.416] } [01:27:30.416] invisible(muffled) [01:27:30.416] } [01:27:30.416] muffleCondition(cond, pattern = "^muffle") [01:27:30.416] } [01:27:30.416] } [01:27:30.416] else { [01:27:30.416] if (TRUE) { [01:27:30.416] muffleCondition <- function (cond, pattern = "^muffle") [01:27:30.416] { [01:27:30.416] inherits <- base::inherits [01:27:30.416] invokeRestart <- base::invokeRestart [01:27:30.416] is.null <- base::is.null [01:27:30.416] muffled <- FALSE [01:27:30.416] if (inherits(cond, "message")) { [01:27:30.416] muffled <- grepl(pattern, "muffleMessage") [01:27:30.416] if (muffled) [01:27:30.416] invokeRestart("muffleMessage") [01:27:30.416] } [01:27:30.416] else if (inherits(cond, "warning")) { [01:27:30.416] muffled <- grepl(pattern, "muffleWarning") [01:27:30.416] if (muffled) [01:27:30.416] invokeRestart("muffleWarning") [01:27:30.416] } [01:27:30.416] else if (inherits(cond, "condition")) { [01:27:30.416] if (!is.null(pattern)) { [01:27:30.416] computeRestarts <- base::computeRestarts [01:27:30.416] grepl <- base::grepl [01:27:30.416] restarts <- computeRestarts(cond) [01:27:30.416] for (restart in restarts) { [01:27:30.416] name <- restart$name [01:27:30.416] if (is.null(name)) [01:27:30.416] next [01:27:30.416] if (!grepl(pattern, name)) [01:27:30.416] next [01:27:30.416] invokeRestart(restart) [01:27:30.416] muffled <- TRUE [01:27:30.416] break [01:27:30.416] } [01:27:30.416] } [01:27:30.416] } [01:27:30.416] invisible(muffled) [01:27:30.416] } [01:27:30.416] muffleCondition(cond, pattern = "^muffle") [01:27:30.416] } [01:27:30.416] } [01:27:30.416] } [01:27:30.416] })) [01:27:30.416] }, error = function(ex) { [01:27:30.416] base::structure(base::list(value = NULL, visible = NULL, [01:27:30.416] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:30.416] ...future.rng), started = ...future.startTime, [01:27:30.416] finished = Sys.time(), session_uuid = NA_character_, [01:27:30.416] version = "1.8"), class = "FutureResult") [01:27:30.416] }, finally = { [01:27:30.416] if (!identical(...future.workdir, getwd())) [01:27:30.416] setwd(...future.workdir) [01:27:30.416] { [01:27:30.416] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:30.416] ...future.oldOptions$nwarnings <- NULL [01:27:30.416] } [01:27:30.416] base::options(...future.oldOptions) [01:27:30.416] if (.Platform$OS.type == "windows") { [01:27:30.416] old_names <- names(...future.oldEnvVars) [01:27:30.416] envs <- base::Sys.getenv() [01:27:30.416] names <- names(envs) [01:27:30.416] common <- intersect(names, old_names) [01:27:30.416] added <- setdiff(names, old_names) [01:27:30.416] removed <- setdiff(old_names, names) [01:27:30.416] changed <- common[...future.oldEnvVars[common] != [01:27:30.416] envs[common]] [01:27:30.416] NAMES <- toupper(changed) [01:27:30.416] args <- list() [01:27:30.416] for (kk in seq_along(NAMES)) { [01:27:30.416] name <- changed[[kk]] [01:27:30.416] NAME <- NAMES[[kk]] [01:27:30.416] if (name != NAME && is.element(NAME, old_names)) [01:27:30.416] next [01:27:30.416] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:30.416] } [01:27:30.416] NAMES <- toupper(added) [01:27:30.416] for (kk in seq_along(NAMES)) { [01:27:30.416] name <- added[[kk]] [01:27:30.416] NAME <- NAMES[[kk]] [01:27:30.416] if (name != NAME && is.element(NAME, old_names)) [01:27:30.416] next [01:27:30.416] args[[name]] <- "" [01:27:30.416] } [01:27:30.416] NAMES <- toupper(removed) [01:27:30.416] for (kk in seq_along(NAMES)) { [01:27:30.416] name <- removed[[kk]] [01:27:30.416] NAME <- NAMES[[kk]] [01:27:30.416] if (name != NAME && is.element(NAME, old_names)) [01:27:30.416] next [01:27:30.416] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:30.416] } [01:27:30.416] if (length(args) > 0) [01:27:30.416] base::do.call(base::Sys.setenv, args = args) [01:27:30.416] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:30.416] } [01:27:30.416] else { [01:27:30.416] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:30.416] } [01:27:30.416] { [01:27:30.416] if (base::length(...future.futureOptionsAdded) > [01:27:30.416] 0L) { [01:27:30.416] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:30.416] base::names(opts) <- ...future.futureOptionsAdded [01:27:30.416] base::options(opts) [01:27:30.416] } [01:27:30.416] { [01:27:30.416] { [01:27:30.416] NULL [01:27:30.416] RNGkind("Mersenne-Twister") [01:27:30.416] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:27:30.416] inherits = FALSE) [01:27:30.416] } [01:27:30.416] options(future.plan = NULL) [01:27:30.416] if (is.na(NA_character_)) [01:27:30.416] Sys.unsetenv("R_FUTURE_PLAN") [01:27:30.416] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:30.416] future::plan(list(function (..., envir = parent.frame()) [01:27:30.416] { [01:27:30.416] future <- SequentialFuture(..., envir = envir) [01:27:30.416] if (!future$lazy) [01:27:30.416] future <- run(future) [01:27:30.416] invisible(future) [01:27:30.416] }), .cleanup = FALSE, .init = FALSE) [01:27:30.416] } [01:27:30.416] } [01:27:30.416] } [01:27:30.416] }) [01:27:30.416] if (TRUE) { [01:27:30.416] base::sink(type = "output", split = FALSE) [01:27:30.416] if (TRUE) { [01:27:30.416] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:30.416] } [01:27:30.416] else { [01:27:30.416] ...future.result["stdout"] <- base::list(NULL) [01:27:30.416] } [01:27:30.416] base::close(...future.stdout) [01:27:30.416] ...future.stdout <- NULL [01:27:30.416] } [01:27:30.416] ...future.result$conditions <- ...future.conditions [01:27:30.416] ...future.result$finished <- base::Sys.time() [01:27:30.416] ...future.result [01:27:30.416] } [01:27:30.420] plan(): Setting new future strategy stack: [01:27:30.420] List of future strategies: [01:27:30.420] 1. sequential: [01:27:30.420] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.420] - tweaked: FALSE [01:27:30.420] - call: NULL [01:27:30.421] plan(): nbrOfWorkers() = 1 [01:27:30.422] plan(): Setting new future strategy stack: [01:27:30.422] List of future strategies: [01:27:30.422] 1. sequential: [01:27:30.422] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.422] - tweaked: FALSE [01:27:30.422] - call: plan(strategy) [01:27:30.423] plan(): nbrOfWorkers() = 1 [01:27:30.423] 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: 56 bytes of class 'numeric' Early signaling: FALSE Owner process: e4232549-d54c-8c10-35e3-92a27d17f6a9 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:27:30.424] getGlobalsAndPackages() ... [01:27:30.424] Searching for globals... [01:27:30.424] [01:27:30.425] Searching for globals ... DONE [01:27:30.425] - globals: [0] [01:27:30.425] getGlobalsAndPackages() ... DONE [01:27:30.425] run() for 'Future' ... [01:27:30.425] - state: 'created' [01:27:30.426] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [01:27:30.426] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:27:30.426] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [01:27:30.426] - Field: 'label' [01:27:30.427] - Field: 'local' [01:27:30.427] - Field: 'owner' [01:27:30.427] - Field: 'envir' [01:27:30.427] - Field: 'packages' [01:27:30.427] - Field: 'gc' [01:27:30.427] - Field: 'conditions' [01:27:30.428] - Field: 'expr' [01:27:30.428] - Field: 'uuid' [01:27:30.428] - Field: 'seed' [01:27:30.428] - Field: 'version' [01:27:30.429] - Field: 'result' [01:27:30.429] - Field: 'asynchronous' [01:27:30.429] - Field: 'calls' [01:27:30.429] - Field: 'globals' [01:27:30.429] - Field: 'stdout' [01:27:30.429] - Field: 'earlySignal' [01:27:30.430] - Field: 'lazy' [01:27:30.430] - Field: 'state' [01:27:30.430] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [01:27:30.430] - Launch lazy future ... [01:27:30.430] Packages needed by the future expression (n = 0): [01:27:30.431] Packages needed by future strategies (n = 0): [01:27:30.431] { [01:27:30.431] { [01:27:30.431] { [01:27:30.431] ...future.startTime <- base::Sys.time() [01:27:30.431] { [01:27:30.431] { [01:27:30.431] { [01:27:30.431] base::local({ [01:27:30.431] has_future <- base::requireNamespace("future", [01:27:30.431] quietly = TRUE) [01:27:30.431] if (has_future) { [01:27:30.431] ns <- base::getNamespace("future") [01:27:30.431] version <- ns[[".package"]][["version"]] [01:27:30.431] if (is.null(version)) [01:27:30.431] version <- utils::packageVersion("future") [01:27:30.431] } [01:27:30.431] else { [01:27:30.431] version <- NULL [01:27:30.431] } [01:27:30.431] if (!has_future || version < "1.8.0") { [01:27:30.431] info <- base::c(r_version = base::gsub("R version ", [01:27:30.431] "", base::R.version$version.string), [01:27:30.431] platform = base::sprintf("%s (%s-bit)", [01:27:30.431] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:30.431] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:30.431] "release", "version")], collapse = " "), [01:27:30.431] hostname = base::Sys.info()[["nodename"]]) [01:27:30.431] info <- base::sprintf("%s: %s", base::names(info), [01:27:30.431] info) [01:27:30.431] info <- base::paste(info, collapse = "; ") [01:27:30.431] if (!has_future) { [01:27:30.431] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:30.431] info) [01:27:30.431] } [01:27:30.431] else { [01:27:30.431] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:30.431] info, version) [01:27:30.431] } [01:27:30.431] base::stop(msg) [01:27:30.431] } [01:27:30.431] }) [01:27:30.431] } [01:27:30.431] options(future.plan = NULL) [01:27:30.431] Sys.unsetenv("R_FUTURE_PLAN") [01:27:30.431] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:30.431] } [01:27:30.431] ...future.workdir <- getwd() [01:27:30.431] } [01:27:30.431] ...future.oldOptions <- base::as.list(base::.Options) [01:27:30.431] ...future.oldEnvVars <- base::Sys.getenv() [01:27:30.431] } [01:27:30.431] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:30.431] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:30.431] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:30.431] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:30.431] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:30.431] future.stdout.windows.reencode = NULL, width = 80L) [01:27:30.431] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:30.431] base::names(...future.oldOptions)) [01:27:30.431] } [01:27:30.431] if (FALSE) { [01:27:30.431] } [01:27:30.431] else { [01:27:30.431] if (TRUE) { [01:27:30.431] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:30.431] open = "w") [01:27:30.431] } [01:27:30.431] else { [01:27:30.431] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:30.431] windows = "NUL", "/dev/null"), open = "w") [01:27:30.431] } [01:27:30.431] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:30.431] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:30.431] base::sink(type = "output", split = FALSE) [01:27:30.431] base::close(...future.stdout) [01:27:30.431] }, add = TRUE) [01:27:30.431] } [01:27:30.431] ...future.frame <- base::sys.nframe() [01:27:30.431] ...future.conditions <- base::list() [01:27:30.431] ...future.rng <- base::globalenv()$.Random.seed [01:27:30.431] if (FALSE) { [01:27:30.431] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:30.431] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:30.431] } [01:27:30.431] ...future.result <- base::tryCatch({ [01:27:30.431] base::withCallingHandlers({ [01:27:30.431] ...future.value <- base::withVisible(base::local(42)) [01:27:30.431] future::FutureResult(value = ...future.value$value, [01:27:30.431] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:30.431] ...future.rng), globalenv = if (FALSE) [01:27:30.431] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:30.431] ...future.globalenv.names)) [01:27:30.431] else NULL, started = ...future.startTime, version = "1.8") [01:27:30.431] }, condition = base::local({ [01:27:30.431] c <- base::c [01:27:30.431] inherits <- base::inherits [01:27:30.431] invokeRestart <- base::invokeRestart [01:27:30.431] length <- base::length [01:27:30.431] list <- base::list [01:27:30.431] seq.int <- base::seq.int [01:27:30.431] signalCondition <- base::signalCondition [01:27:30.431] sys.calls <- base::sys.calls [01:27:30.431] `[[` <- base::`[[` [01:27:30.431] `+` <- base::`+` [01:27:30.431] `<<-` <- base::`<<-` [01:27:30.431] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:30.431] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:30.431] 3L)] [01:27:30.431] } [01:27:30.431] function(cond) { [01:27:30.431] is_error <- inherits(cond, "error") [01:27:30.431] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:30.431] NULL) [01:27:30.431] if (is_error) { [01:27:30.431] sessionInformation <- function() { [01:27:30.431] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:30.431] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:30.431] search = base::search(), system = base::Sys.info()) [01:27:30.431] } [01:27:30.431] ...future.conditions[[length(...future.conditions) + [01:27:30.431] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:30.431] cond$call), session = sessionInformation(), [01:27:30.431] timestamp = base::Sys.time(), signaled = 0L) [01:27:30.431] signalCondition(cond) [01:27:30.431] } [01:27:30.431] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:30.431] "immediateCondition"))) { [01:27:30.431] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:30.431] ...future.conditions[[length(...future.conditions) + [01:27:30.431] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:30.431] if (TRUE && !signal) { [01:27:30.431] muffleCondition <- function (cond, pattern = "^muffle") [01:27:30.431] { [01:27:30.431] inherits <- base::inherits [01:27:30.431] invokeRestart <- base::invokeRestart [01:27:30.431] is.null <- base::is.null [01:27:30.431] muffled <- FALSE [01:27:30.431] if (inherits(cond, "message")) { [01:27:30.431] muffled <- grepl(pattern, "muffleMessage") [01:27:30.431] if (muffled) [01:27:30.431] invokeRestart("muffleMessage") [01:27:30.431] } [01:27:30.431] else if (inherits(cond, "warning")) { [01:27:30.431] muffled <- grepl(pattern, "muffleWarning") [01:27:30.431] if (muffled) [01:27:30.431] invokeRestart("muffleWarning") [01:27:30.431] } [01:27:30.431] else if (inherits(cond, "condition")) { [01:27:30.431] if (!is.null(pattern)) { [01:27:30.431] computeRestarts <- base::computeRestarts [01:27:30.431] grepl <- base::grepl [01:27:30.431] restarts <- computeRestarts(cond) [01:27:30.431] for (restart in restarts) { [01:27:30.431] name <- restart$name [01:27:30.431] if (is.null(name)) [01:27:30.431] next [01:27:30.431] if (!grepl(pattern, name)) [01:27:30.431] next [01:27:30.431] invokeRestart(restart) [01:27:30.431] muffled <- TRUE [01:27:30.431] break [01:27:30.431] } [01:27:30.431] } [01:27:30.431] } [01:27:30.431] invisible(muffled) [01:27:30.431] } [01:27:30.431] muffleCondition(cond, pattern = "^muffle") [01:27:30.431] } [01:27:30.431] } [01:27:30.431] else { [01:27:30.431] if (TRUE) { [01:27:30.431] muffleCondition <- function (cond, pattern = "^muffle") [01:27:30.431] { [01:27:30.431] inherits <- base::inherits [01:27:30.431] invokeRestart <- base::invokeRestart [01:27:30.431] is.null <- base::is.null [01:27:30.431] muffled <- FALSE [01:27:30.431] if (inherits(cond, "message")) { [01:27:30.431] muffled <- grepl(pattern, "muffleMessage") [01:27:30.431] if (muffled) [01:27:30.431] invokeRestart("muffleMessage") [01:27:30.431] } [01:27:30.431] else if (inherits(cond, "warning")) { [01:27:30.431] muffled <- grepl(pattern, "muffleWarning") [01:27:30.431] if (muffled) [01:27:30.431] invokeRestart("muffleWarning") [01:27:30.431] } [01:27:30.431] else if (inherits(cond, "condition")) { [01:27:30.431] if (!is.null(pattern)) { [01:27:30.431] computeRestarts <- base::computeRestarts [01:27:30.431] grepl <- base::grepl [01:27:30.431] restarts <- computeRestarts(cond) [01:27:30.431] for (restart in restarts) { [01:27:30.431] name <- restart$name [01:27:30.431] if (is.null(name)) [01:27:30.431] next [01:27:30.431] if (!grepl(pattern, name)) [01:27:30.431] next [01:27:30.431] invokeRestart(restart) [01:27:30.431] muffled <- TRUE [01:27:30.431] break [01:27:30.431] } [01:27:30.431] } [01:27:30.431] } [01:27:30.431] invisible(muffled) [01:27:30.431] } [01:27:30.431] muffleCondition(cond, pattern = "^muffle") [01:27:30.431] } [01:27:30.431] } [01:27:30.431] } [01:27:30.431] })) [01:27:30.431] }, error = function(ex) { [01:27:30.431] base::structure(base::list(value = NULL, visible = NULL, [01:27:30.431] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:30.431] ...future.rng), started = ...future.startTime, [01:27:30.431] finished = Sys.time(), session_uuid = NA_character_, [01:27:30.431] version = "1.8"), class = "FutureResult") [01:27:30.431] }, finally = { [01:27:30.431] if (!identical(...future.workdir, getwd())) [01:27:30.431] setwd(...future.workdir) [01:27:30.431] { [01:27:30.431] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:30.431] ...future.oldOptions$nwarnings <- NULL [01:27:30.431] } [01:27:30.431] base::options(...future.oldOptions) [01:27:30.431] if (.Platform$OS.type == "windows") { [01:27:30.431] old_names <- names(...future.oldEnvVars) [01:27:30.431] envs <- base::Sys.getenv() [01:27:30.431] names <- names(envs) [01:27:30.431] common <- intersect(names, old_names) [01:27:30.431] added <- setdiff(names, old_names) [01:27:30.431] removed <- setdiff(old_names, names) [01:27:30.431] changed <- common[...future.oldEnvVars[common] != [01:27:30.431] envs[common]] [01:27:30.431] NAMES <- toupper(changed) [01:27:30.431] args <- list() [01:27:30.431] for (kk in seq_along(NAMES)) { [01:27:30.431] name <- changed[[kk]] [01:27:30.431] NAME <- NAMES[[kk]] [01:27:30.431] if (name != NAME && is.element(NAME, old_names)) [01:27:30.431] next [01:27:30.431] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:30.431] } [01:27:30.431] NAMES <- toupper(added) [01:27:30.431] for (kk in seq_along(NAMES)) { [01:27:30.431] name <- added[[kk]] [01:27:30.431] NAME <- NAMES[[kk]] [01:27:30.431] if (name != NAME && is.element(NAME, old_names)) [01:27:30.431] next [01:27:30.431] args[[name]] <- "" [01:27:30.431] } [01:27:30.431] NAMES <- toupper(removed) [01:27:30.431] for (kk in seq_along(NAMES)) { [01:27:30.431] name <- removed[[kk]] [01:27:30.431] NAME <- NAMES[[kk]] [01:27:30.431] if (name != NAME && is.element(NAME, old_names)) [01:27:30.431] next [01:27:30.431] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:30.431] } [01:27:30.431] if (length(args) > 0) [01:27:30.431] base::do.call(base::Sys.setenv, args = args) [01:27:30.431] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:30.431] } [01:27:30.431] else { [01:27:30.431] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:30.431] } [01:27:30.431] { [01:27:30.431] if (base::length(...future.futureOptionsAdded) > [01:27:30.431] 0L) { [01:27:30.431] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:30.431] base::names(opts) <- ...future.futureOptionsAdded [01:27:30.431] base::options(opts) [01:27:30.431] } [01:27:30.431] { [01:27:30.431] { [01:27:30.431] NULL [01:27:30.431] RNGkind("Mersenne-Twister") [01:27:30.431] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:27:30.431] inherits = FALSE) [01:27:30.431] } [01:27:30.431] options(future.plan = NULL) [01:27:30.431] if (is.na(NA_character_)) [01:27:30.431] Sys.unsetenv("R_FUTURE_PLAN") [01:27:30.431] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:30.431] future::plan(list(function (..., envir = parent.frame()) [01:27:30.431] { [01:27:30.431] future <- SequentialFuture(..., envir = envir) [01:27:30.431] if (!future$lazy) [01:27:30.431] future <- run(future) [01:27:30.431] invisible(future) [01:27:30.431] }), .cleanup = FALSE, .init = FALSE) [01:27:30.431] } [01:27:30.431] } [01:27:30.431] } [01:27:30.431] }) [01:27:30.431] if (TRUE) { [01:27:30.431] base::sink(type = "output", split = FALSE) [01:27:30.431] if (TRUE) { [01:27:30.431] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:30.431] } [01:27:30.431] else { [01:27:30.431] ...future.result["stdout"] <- base::list(NULL) [01:27:30.431] } [01:27:30.431] base::close(...future.stdout) [01:27:30.431] ...future.stdout <- NULL [01:27:30.431] } [01:27:30.431] ...future.result$conditions <- ...future.conditions [01:27:30.431] ...future.result$finished <- base::Sys.time() [01:27:30.431] ...future.result [01:27:30.431] } [01:27:30.435] plan(): Setting new future strategy stack: [01:27:30.435] List of future strategies: [01:27:30.435] 1. sequential: [01:27:30.435] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.435] - tweaked: FALSE [01:27:30.435] - call: NULL [01:27:30.436] plan(): nbrOfWorkers() = 1 [01:27:30.437] plan(): Setting new future strategy stack: [01:27:30.437] List of future strategies: [01:27:30.437] 1. sequential: [01:27:30.437] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.437] - tweaked: FALSE [01:27:30.437] - call: plan(strategy) [01:27:30.438] plan(): nbrOfWorkers() = 1 [01:27:30.438] SequentialFuture started (and completed) [01:27:30.439] - Launch lazy future ... done [01:27:30.439] 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: 56 bytes of class 'numeric' Early signaling: FALSE Owner process: e4232549-d54c-8c10-35e3-92a27d17f6a9 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:27:30.441] getGlobalsAndPackages() ... [01:27:30.441] Searching for globals... [01:27:30.442] - globals found: [1] '{' [01:27:30.442] Searching for globals ... DONE [01:27:30.443] Resolving globals: FALSE [01:27:30.443] [01:27:30.443] [01:27:30.443] getGlobalsAndPackages() ... DONE [01:27:30.444] run() for 'Future' ... [01:27:30.444] - state: 'created' [01:27:30.444] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [01:27:30.444] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:27:30.445] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [01:27:30.445] - Field: 'label' [01:27:30.445] - Field: 'local' [01:27:30.445] - Field: 'owner' [01:27:30.445] - Field: 'envir' [01:27:30.446] - Field: 'packages' [01:27:30.446] - Field: 'gc' [01:27:30.446] - Field: 'conditions' [01:27:30.446] - Field: 'expr' [01:27:30.446] - Field: 'uuid' [01:27:30.447] - Field: 'seed' [01:27:30.447] - Field: 'version' [01:27:30.447] - Field: 'result' [01:27:30.447] - Field: 'asynchronous' [01:27:30.447] - Field: 'calls' [01:27:30.447] - Field: 'globals' [01:27:30.448] - Field: 'stdout' [01:27:30.448] - Field: 'earlySignal' [01:27:30.448] - Field: 'lazy' [01:27:30.448] - Field: 'state' [01:27:30.448] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [01:27:30.448] - Launch lazy future ... [01:27:30.449] Packages needed by the future expression (n = 0): [01:27:30.449] Packages needed by future strategies (n = 0): [01:27:30.449] { [01:27:30.449] { [01:27:30.449] { [01:27:30.449] ...future.startTime <- base::Sys.time() [01:27:30.449] { [01:27:30.449] { [01:27:30.449] { [01:27:30.449] base::local({ [01:27:30.449] has_future <- base::requireNamespace("future", [01:27:30.449] quietly = TRUE) [01:27:30.449] if (has_future) { [01:27:30.449] ns <- base::getNamespace("future") [01:27:30.449] version <- ns[[".package"]][["version"]] [01:27:30.449] if (is.null(version)) [01:27:30.449] version <- utils::packageVersion("future") [01:27:30.449] } [01:27:30.449] else { [01:27:30.449] version <- NULL [01:27:30.449] } [01:27:30.449] if (!has_future || version < "1.8.0") { [01:27:30.449] info <- base::c(r_version = base::gsub("R version ", [01:27:30.449] "", base::R.version$version.string), [01:27:30.449] platform = base::sprintf("%s (%s-bit)", [01:27:30.449] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:30.449] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:30.449] "release", "version")], collapse = " "), [01:27:30.449] hostname = base::Sys.info()[["nodename"]]) [01:27:30.449] info <- base::sprintf("%s: %s", base::names(info), [01:27:30.449] info) [01:27:30.449] info <- base::paste(info, collapse = "; ") [01:27:30.449] if (!has_future) { [01:27:30.449] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:30.449] info) [01:27:30.449] } [01:27:30.449] else { [01:27:30.449] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:30.449] info, version) [01:27:30.449] } [01:27:30.449] base::stop(msg) [01:27:30.449] } [01:27:30.449] }) [01:27:30.449] } [01:27:30.449] options(future.plan = NULL) [01:27:30.449] Sys.unsetenv("R_FUTURE_PLAN") [01:27:30.449] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:30.449] } [01:27:30.449] ...future.workdir <- getwd() [01:27:30.449] } [01:27:30.449] ...future.oldOptions <- base::as.list(base::.Options) [01:27:30.449] ...future.oldEnvVars <- base::Sys.getenv() [01:27:30.449] } [01:27:30.449] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:30.449] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:30.449] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:30.449] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:30.449] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:30.449] future.stdout.windows.reencode = NULL, width = 80L) [01:27:30.449] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:30.449] base::names(...future.oldOptions)) [01:27:30.449] } [01:27:30.449] if (FALSE) { [01:27:30.449] } [01:27:30.449] else { [01:27:30.449] if (TRUE) { [01:27:30.449] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:30.449] open = "w") [01:27:30.449] } [01:27:30.449] else { [01:27:30.449] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:30.449] windows = "NUL", "/dev/null"), open = "w") [01:27:30.449] } [01:27:30.449] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:30.449] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:30.449] base::sink(type = "output", split = FALSE) [01:27:30.449] base::close(...future.stdout) [01:27:30.449] }, add = TRUE) [01:27:30.449] } [01:27:30.449] ...future.frame <- base::sys.nframe() [01:27:30.449] ...future.conditions <- base::list() [01:27:30.449] ...future.rng <- base::globalenv()$.Random.seed [01:27:30.449] if (FALSE) { [01:27:30.449] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:30.449] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:30.449] } [01:27:30.449] ...future.result <- base::tryCatch({ [01:27:30.449] base::withCallingHandlers({ [01:27:30.449] ...future.value <- base::withVisible(base::local({ [01:27:30.449] 42 [01:27:30.449] })) [01:27:30.449] future::FutureResult(value = ...future.value$value, [01:27:30.449] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:30.449] ...future.rng), globalenv = if (FALSE) [01:27:30.449] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:30.449] ...future.globalenv.names)) [01:27:30.449] else NULL, started = ...future.startTime, version = "1.8") [01:27:30.449] }, condition = base::local({ [01:27:30.449] c <- base::c [01:27:30.449] inherits <- base::inherits [01:27:30.449] invokeRestart <- base::invokeRestart [01:27:30.449] length <- base::length [01:27:30.449] list <- base::list [01:27:30.449] seq.int <- base::seq.int [01:27:30.449] signalCondition <- base::signalCondition [01:27:30.449] sys.calls <- base::sys.calls [01:27:30.449] `[[` <- base::`[[` [01:27:30.449] `+` <- base::`+` [01:27:30.449] `<<-` <- base::`<<-` [01:27:30.449] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:30.449] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:30.449] 3L)] [01:27:30.449] } [01:27:30.449] function(cond) { [01:27:30.449] is_error <- inherits(cond, "error") [01:27:30.449] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:30.449] NULL) [01:27:30.449] if (is_error) { [01:27:30.449] sessionInformation <- function() { [01:27:30.449] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:30.449] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:30.449] search = base::search(), system = base::Sys.info()) [01:27:30.449] } [01:27:30.449] ...future.conditions[[length(...future.conditions) + [01:27:30.449] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:30.449] cond$call), session = sessionInformation(), [01:27:30.449] timestamp = base::Sys.time(), signaled = 0L) [01:27:30.449] signalCondition(cond) [01:27:30.449] } [01:27:30.449] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:30.449] "immediateCondition"))) { [01:27:30.449] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:30.449] ...future.conditions[[length(...future.conditions) + [01:27:30.449] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:30.449] if (TRUE && !signal) { [01:27:30.449] muffleCondition <- function (cond, pattern = "^muffle") [01:27:30.449] { [01:27:30.449] inherits <- base::inherits [01:27:30.449] invokeRestart <- base::invokeRestart [01:27:30.449] is.null <- base::is.null [01:27:30.449] muffled <- FALSE [01:27:30.449] if (inherits(cond, "message")) { [01:27:30.449] muffled <- grepl(pattern, "muffleMessage") [01:27:30.449] if (muffled) [01:27:30.449] invokeRestart("muffleMessage") [01:27:30.449] } [01:27:30.449] else if (inherits(cond, "warning")) { [01:27:30.449] muffled <- grepl(pattern, "muffleWarning") [01:27:30.449] if (muffled) [01:27:30.449] invokeRestart("muffleWarning") [01:27:30.449] } [01:27:30.449] else if (inherits(cond, "condition")) { [01:27:30.449] if (!is.null(pattern)) { [01:27:30.449] computeRestarts <- base::computeRestarts [01:27:30.449] grepl <- base::grepl [01:27:30.449] restarts <- computeRestarts(cond) [01:27:30.449] for (restart in restarts) { [01:27:30.449] name <- restart$name [01:27:30.449] if (is.null(name)) [01:27:30.449] next [01:27:30.449] if (!grepl(pattern, name)) [01:27:30.449] next [01:27:30.449] invokeRestart(restart) [01:27:30.449] muffled <- TRUE [01:27:30.449] break [01:27:30.449] } [01:27:30.449] } [01:27:30.449] } [01:27:30.449] invisible(muffled) [01:27:30.449] } [01:27:30.449] muffleCondition(cond, pattern = "^muffle") [01:27:30.449] } [01:27:30.449] } [01:27:30.449] else { [01:27:30.449] if (TRUE) { [01:27:30.449] muffleCondition <- function (cond, pattern = "^muffle") [01:27:30.449] { [01:27:30.449] inherits <- base::inherits [01:27:30.449] invokeRestart <- base::invokeRestart [01:27:30.449] is.null <- base::is.null [01:27:30.449] muffled <- FALSE [01:27:30.449] if (inherits(cond, "message")) { [01:27:30.449] muffled <- grepl(pattern, "muffleMessage") [01:27:30.449] if (muffled) [01:27:30.449] invokeRestart("muffleMessage") [01:27:30.449] } [01:27:30.449] else if (inherits(cond, "warning")) { [01:27:30.449] muffled <- grepl(pattern, "muffleWarning") [01:27:30.449] if (muffled) [01:27:30.449] invokeRestart("muffleWarning") [01:27:30.449] } [01:27:30.449] else if (inherits(cond, "condition")) { [01:27:30.449] if (!is.null(pattern)) { [01:27:30.449] computeRestarts <- base::computeRestarts [01:27:30.449] grepl <- base::grepl [01:27:30.449] restarts <- computeRestarts(cond) [01:27:30.449] for (restart in restarts) { [01:27:30.449] name <- restart$name [01:27:30.449] if (is.null(name)) [01:27:30.449] next [01:27:30.449] if (!grepl(pattern, name)) [01:27:30.449] next [01:27:30.449] invokeRestart(restart) [01:27:30.449] muffled <- TRUE [01:27:30.449] break [01:27:30.449] } [01:27:30.449] } [01:27:30.449] } [01:27:30.449] invisible(muffled) [01:27:30.449] } [01:27:30.449] muffleCondition(cond, pattern = "^muffle") [01:27:30.449] } [01:27:30.449] } [01:27:30.449] } [01:27:30.449] })) [01:27:30.449] }, error = function(ex) { [01:27:30.449] base::structure(base::list(value = NULL, visible = NULL, [01:27:30.449] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:30.449] ...future.rng), started = ...future.startTime, [01:27:30.449] finished = Sys.time(), session_uuid = NA_character_, [01:27:30.449] version = "1.8"), class = "FutureResult") [01:27:30.449] }, finally = { [01:27:30.449] if (!identical(...future.workdir, getwd())) [01:27:30.449] setwd(...future.workdir) [01:27:30.449] { [01:27:30.449] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:30.449] ...future.oldOptions$nwarnings <- NULL [01:27:30.449] } [01:27:30.449] base::options(...future.oldOptions) [01:27:30.449] if (.Platform$OS.type == "windows") { [01:27:30.449] old_names <- names(...future.oldEnvVars) [01:27:30.449] envs <- base::Sys.getenv() [01:27:30.449] names <- names(envs) [01:27:30.449] common <- intersect(names, old_names) [01:27:30.449] added <- setdiff(names, old_names) [01:27:30.449] removed <- setdiff(old_names, names) [01:27:30.449] changed <- common[...future.oldEnvVars[common] != [01:27:30.449] envs[common]] [01:27:30.449] NAMES <- toupper(changed) [01:27:30.449] args <- list() [01:27:30.449] for (kk in seq_along(NAMES)) { [01:27:30.449] name <- changed[[kk]] [01:27:30.449] NAME <- NAMES[[kk]] [01:27:30.449] if (name != NAME && is.element(NAME, old_names)) [01:27:30.449] next [01:27:30.449] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:30.449] } [01:27:30.449] NAMES <- toupper(added) [01:27:30.449] for (kk in seq_along(NAMES)) { [01:27:30.449] name <- added[[kk]] [01:27:30.449] NAME <- NAMES[[kk]] [01:27:30.449] if (name != NAME && is.element(NAME, old_names)) [01:27:30.449] next [01:27:30.449] args[[name]] <- "" [01:27:30.449] } [01:27:30.449] NAMES <- toupper(removed) [01:27:30.449] for (kk in seq_along(NAMES)) { [01:27:30.449] name <- removed[[kk]] [01:27:30.449] NAME <- NAMES[[kk]] [01:27:30.449] if (name != NAME && is.element(NAME, old_names)) [01:27:30.449] next [01:27:30.449] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:30.449] } [01:27:30.449] if (length(args) > 0) [01:27:30.449] base::do.call(base::Sys.setenv, args = args) [01:27:30.449] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:30.449] } [01:27:30.449] else { [01:27:30.449] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:30.449] } [01:27:30.449] { [01:27:30.449] if (base::length(...future.futureOptionsAdded) > [01:27:30.449] 0L) { [01:27:30.449] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:30.449] base::names(opts) <- ...future.futureOptionsAdded [01:27:30.449] base::options(opts) [01:27:30.449] } [01:27:30.449] { [01:27:30.449] { [01:27:30.449] NULL [01:27:30.449] RNGkind("Mersenne-Twister") [01:27:30.449] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:27:30.449] inherits = FALSE) [01:27:30.449] } [01:27:30.449] options(future.plan = NULL) [01:27:30.449] if (is.na(NA_character_)) [01:27:30.449] Sys.unsetenv("R_FUTURE_PLAN") [01:27:30.449] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:30.449] future::plan(list(function (..., envir = parent.frame()) [01:27:30.449] { [01:27:30.449] future <- SequentialFuture(..., envir = envir) [01:27:30.449] if (!future$lazy) [01:27:30.449] future <- run(future) [01:27:30.449] invisible(future) [01:27:30.449] }), .cleanup = FALSE, .init = FALSE) [01:27:30.449] } [01:27:30.449] } [01:27:30.449] } [01:27:30.449] }) [01:27:30.449] if (TRUE) { [01:27:30.449] base::sink(type = "output", split = FALSE) [01:27:30.449] if (TRUE) { [01:27:30.449] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:30.449] } [01:27:30.449] else { [01:27:30.449] ...future.result["stdout"] <- base::list(NULL) [01:27:30.449] } [01:27:30.449] base::close(...future.stdout) [01:27:30.449] ...future.stdout <- NULL [01:27:30.449] } [01:27:30.449] ...future.result$conditions <- ...future.conditions [01:27:30.449] ...future.result$finished <- base::Sys.time() [01:27:30.449] ...future.result [01:27:30.449] } [01:27:30.453] plan(): Setting new future strategy stack: [01:27:30.453] List of future strategies: [01:27:30.453] 1. sequential: [01:27:30.453] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.453] - tweaked: FALSE [01:27:30.453] - call: NULL [01:27:30.454] plan(): nbrOfWorkers() = 1 [01:27:30.455] plan(): Setting new future strategy stack: [01:27:30.455] List of future strategies: [01:27:30.455] 1. sequential: [01:27:30.455] - args: function (..., envir = parent.frame(), workers = "") [01:27:30.455] - tweaked: FALSE [01:27:30.455] - call: plan(strategy) [01:27:30.456] plan(): nbrOfWorkers() = 1 [01:27:30.456] SequentialFuture started (and completed) [01:27:30.457] - Launch lazy future ... done [01:27:30.457] 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: 56 bytes of class 'numeric' Early signaling: FALSE Owner process: e4232549-d54c-8c10-35e3-92a27d17f6a9 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' - plan('sequential') ... DONE - plan('multisession') ... [01:27:30.458] plan(): Setting new future strategy stack: [01:27:30.458] List of future strategies: [01:27:30.458] 1. multisession: [01:27:30.458] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:27:30.458] - tweaked: FALSE [01:27:30.458] - call: plan(strategy) [01:27:30.459] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [01:27:30.459] multisession: [01:27:30.459] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:27:30.459] - tweaked: FALSE [01:27:30.459] - call: plan(strategy) [01:27:30.464] getGlobalsAndPackages() ... [01:27:30.464] Not searching for globals [01:27:30.464] - globals: [0] [01:27:30.464] getGlobalsAndPackages() ... DONE [01:27:30.465] [local output] makeClusterPSOCK() ... [01:27:30.498] [local output] Workers: [n = 2] 'localhost', 'localhost' [01:27:30.505] [local output] Base port: 21369 [01:27:30.505] [local output] Getting setup options for 2 cluster nodes ... [01:27:30.505] [local output] - Node 1 of 2 ... [01:27:30.506] [local output] localMachine=TRUE => revtunnel=FALSE [01:27:30.507] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpcHI43O/worker.rank=1.parallelly.parent=13560.34f82560225a.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpcHI43O/worker.rank=1.parallelly.parent=13560.34f82560225a.pid\")"' [01:27:30.835] - Possible to infer worker's PID: TRUE [01:27:30.836] [local output] Rscript port: 21369 [01:27:30.837] [local output] - Node 2 of 2 ... [01:27:30.837] [local output] localMachine=TRUE => revtunnel=FALSE [01:27:30.839] [local output] Rscript port: 21369 [01:27:30.839] [local output] Getting setup options for 2 cluster nodes ... done [01:27:30.839] [local output] - Parallel setup requested for some PSOCK nodes [01:27:30.840] [local output] Setting up PSOCK nodes in parallel [01:27:30.840] List of 36 [01:27:30.840] $ worker : chr "localhost" [01:27:30.840] ..- attr(*, "localhost")= logi TRUE [01:27:30.840] $ master : chr "localhost" [01:27:30.840] $ port : int 21369 [01:27:30.840] $ connectTimeout : num 120 [01:27:30.840] $ timeout : num 120 [01:27:30.840] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [01:27:30.840] $ homogeneous : logi TRUE [01:27:30.840] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=future,labels.R:13560:CRANWIN3:C"| __truncated__ [01:27:30.840] $ rscript_envs : NULL [01:27:30.840] $ rscript_libs : chr [1:2] "D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47" "D:/RCompile/recent/R/library" [01:27:30.840] $ rscript_startup : NULL [01:27:30.840] $ rscript_sh : chr "cmd" [01:27:30.840] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:27:30.840] $ methods : logi TRUE [01:27:30.840] $ socketOptions : chr "no-delay" [01:27:30.840] $ useXDR : logi FALSE [01:27:30.840] $ outfile : chr "/dev/null" [01:27:30.840] $ renice : int NA [01:27:30.840] $ rshcmd : NULL [01:27:30.840] $ user : chr(0) [01:27:30.840] $ revtunnel : logi FALSE [01:27:30.840] $ rshlogfile : NULL [01:27:30.840] $ rshopts : chr(0) [01:27:30.840] $ rank : int 1 [01:27:30.840] $ manual : logi FALSE [01:27:30.840] $ dryrun : logi FALSE [01:27:30.840] $ quiet : logi FALSE [01:27:30.840] $ setup_strategy : chr "parallel" [01:27:30.840] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:27:30.840] $ pidfile : chr "D:/temp/RtmpcHI43O/worker.rank=1.parallelly.parent=13560.34f82560225a.pid" [01:27:30.840] $ rshcmd_label : NULL [01:27:30.840] $ rsh_call : NULL [01:27:30.840] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:27:30.840] $ localMachine : logi TRUE [01:27:30.840] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [01:27:30.840] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [01:27:30.840] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [01:27:30.840] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [01:27:30.840] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [01:27:30.840] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [01:27:30.840] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [01:27:30.840] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [01:27:30.840] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [01:27:30.840] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [01:27:30.840] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [01:27:30.840] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [01:27:30.840] "parallel"), action = c("launch", "options"), verbose = FALSE) [01:27:30.840] $ arguments :List of 28 [01:27:30.840] ..$ worker : chr "localhost" [01:27:30.840] ..$ master : NULL [01:27:30.840] ..$ port : int 21369 [01:27:30.840] ..$ connectTimeout : num 120 [01:27:30.840] ..$ timeout : num 120 [01:27:30.840] ..$ rscript : NULL [01:27:30.840] ..$ homogeneous : NULL [01:27:30.840] ..$ rscript_args : NULL [01:27:30.840] ..$ rscript_envs : NULL [01:27:30.840] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47" "D:/RCompile/recent/R/library" [01:27:30.840] ..$ rscript_startup : NULL [01:27:30.840] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [01:27:30.840] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:27:30.840] ..$ methods : logi TRUE [01:27:30.840] ..$ socketOptions : chr "no-delay" [01:27:30.840] ..$ useXDR : logi FALSE [01:27:30.840] ..$ outfile : chr "/dev/null" [01:27:30.840] ..$ renice : int NA [01:27:30.840] ..$ rshcmd : NULL [01:27:30.840] ..$ user : NULL [01:27:30.840] ..$ revtunnel : logi NA [01:27:30.840] ..$ rshlogfile : NULL [01:27:30.840] ..$ rshopts : NULL [01:27:30.840] ..$ rank : int 1 [01:27:30.840] ..$ manual : logi FALSE [01:27:30.840] ..$ dryrun : logi FALSE [01:27:30.840] ..$ quiet : logi FALSE [01:27:30.840] ..$ setup_strategy : chr "parallel" [01:27:30.840] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [01:27:30.866] [local output] System call to launch all workers: [01:27:30.867] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=future,labels.R:13560:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpcHI43O/worker.rank=1.parallelly.parent=13560.34f82560225a.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=21369 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [01:27:30.867] [local output] Starting PSOCK main server [01:27:30.873] [local output] Workers launched [01:27:30.873] [local output] Waiting for workers to connect back [01:27:30.874] - [local output] 0 workers out of 2 ready [01:27:31.046] - [local output] 0 workers out of 2 ready [01:27:31.046] - [local output] 1 workers out of 2 ready [01:27:31.049] - [local output] 1 workers out of 2 ready [01:27:31.049] - [local output] 2 workers out of 2 ready [01:27:31.050] [local output] Launching of workers completed [01:27:31.050] [local output] Collecting session information from workers [01:27:31.051] [local output] - Worker #1 of 2 [01:27:31.052] [local output] - Worker #2 of 2 [01:27:31.052] [local output] makeClusterPSOCK() ... done [01:27:31.065] Packages needed by the future expression (n = 0): [01:27:31.065] Packages needed by future strategies (n = 0): [01:27:31.066] { [01:27:31.066] { [01:27:31.066] { [01:27:31.066] ...future.startTime <- base::Sys.time() [01:27:31.066] { [01:27:31.066] { [01:27:31.066] { [01:27:31.066] { [01:27:31.066] base::local({ [01:27:31.066] has_future <- base::requireNamespace("future", [01:27:31.066] quietly = TRUE) [01:27:31.066] if (has_future) { [01:27:31.066] ns <- base::getNamespace("future") [01:27:31.066] version <- ns[[".package"]][["version"]] [01:27:31.066] if (is.null(version)) [01:27:31.066] version <- utils::packageVersion("future") [01:27:31.066] } [01:27:31.066] else { [01:27:31.066] version <- NULL [01:27:31.066] } [01:27:31.066] if (!has_future || version < "1.8.0") { [01:27:31.066] info <- base::c(r_version = base::gsub("R version ", [01:27:31.066] "", base::R.version$version.string), [01:27:31.066] platform = base::sprintf("%s (%s-bit)", [01:27:31.066] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:31.066] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:31.066] "release", "version")], collapse = " "), [01:27:31.066] hostname = base::Sys.info()[["nodename"]]) [01:27:31.066] info <- base::sprintf("%s: %s", base::names(info), [01:27:31.066] info) [01:27:31.066] info <- base::paste(info, collapse = "; ") [01:27:31.066] if (!has_future) { [01:27:31.066] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:31.066] info) [01:27:31.066] } [01:27:31.066] else { [01:27:31.066] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:31.066] info, version) [01:27:31.066] } [01:27:31.066] base::stop(msg) [01:27:31.066] } [01:27:31.066] }) [01:27:31.066] } [01:27:31.066] ...future.mc.cores.old <- base::getOption("mc.cores") [01:27:31.066] base::options(mc.cores = 1L) [01:27:31.066] } [01:27:31.066] options(future.plan = NULL) [01:27:31.066] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.066] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:31.066] } [01:27:31.066] ...future.workdir <- getwd() [01:27:31.066] } [01:27:31.066] ...future.oldOptions <- base::as.list(base::.Options) [01:27:31.066] ...future.oldEnvVars <- base::Sys.getenv() [01:27:31.066] } [01:27:31.066] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:31.066] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:31.066] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:31.066] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:31.066] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:31.066] future.stdout.windows.reencode = NULL, width = 80L) [01:27:31.066] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:31.066] base::names(...future.oldOptions)) [01:27:31.066] } [01:27:31.066] if (FALSE) { [01:27:31.066] } [01:27:31.066] else { [01:27:31.066] if (TRUE) { [01:27:31.066] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:31.066] open = "w") [01:27:31.066] } [01:27:31.066] else { [01:27:31.066] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:31.066] windows = "NUL", "/dev/null"), open = "w") [01:27:31.066] } [01:27:31.066] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:31.066] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:31.066] base::sink(type = "output", split = FALSE) [01:27:31.066] base::close(...future.stdout) [01:27:31.066] }, add = TRUE) [01:27:31.066] } [01:27:31.066] ...future.frame <- base::sys.nframe() [01:27:31.066] ...future.conditions <- base::list() [01:27:31.066] ...future.rng <- base::globalenv()$.Random.seed [01:27:31.066] if (FALSE) { [01:27:31.066] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:31.066] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:31.066] } [01:27:31.066] ...future.result <- base::tryCatch({ [01:27:31.066] base::withCallingHandlers({ [01:27:31.066] ...future.value <- base::withVisible(base::local({ [01:27:31.066] ...future.makeSendCondition <- base::local({ [01:27:31.066] sendCondition <- NULL [01:27:31.066] function(frame = 1L) { [01:27:31.066] if (is.function(sendCondition)) [01:27:31.066] return(sendCondition) [01:27:31.066] ns <- getNamespace("parallel") [01:27:31.066] if (exists("sendData", mode = "function", [01:27:31.066] envir = ns)) { [01:27:31.066] parallel_sendData <- get("sendData", mode = "function", [01:27:31.066] envir = ns) [01:27:31.066] envir <- sys.frame(frame) [01:27:31.066] master <- NULL [01:27:31.066] while (!identical(envir, .GlobalEnv) && [01:27:31.066] !identical(envir, emptyenv())) { [01:27:31.066] if (exists("master", mode = "list", envir = envir, [01:27:31.066] inherits = FALSE)) { [01:27:31.066] master <- get("master", mode = "list", [01:27:31.066] envir = envir, inherits = FALSE) [01:27:31.066] if (inherits(master, c("SOCKnode", [01:27:31.066] "SOCK0node"))) { [01:27:31.066] sendCondition <<- function(cond) { [01:27:31.066] data <- list(type = "VALUE", value = cond, [01:27:31.066] success = TRUE) [01:27:31.066] parallel_sendData(master, data) [01:27:31.066] } [01:27:31.066] return(sendCondition) [01:27:31.066] } [01:27:31.066] } [01:27:31.066] frame <- frame + 1L [01:27:31.066] envir <- sys.frame(frame) [01:27:31.066] } [01:27:31.066] } [01:27:31.066] sendCondition <<- function(cond) NULL [01:27:31.066] } [01:27:31.066] }) [01:27:31.066] withCallingHandlers({ [01:27:31.066] NA [01:27:31.066] }, immediateCondition = function(cond) { [01:27:31.066] sendCondition <- ...future.makeSendCondition() [01:27:31.066] sendCondition(cond) [01:27:31.066] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.066] { [01:27:31.066] inherits <- base::inherits [01:27:31.066] invokeRestart <- base::invokeRestart [01:27:31.066] is.null <- base::is.null [01:27:31.066] muffled <- FALSE [01:27:31.066] if (inherits(cond, "message")) { [01:27:31.066] muffled <- grepl(pattern, "muffleMessage") [01:27:31.066] if (muffled) [01:27:31.066] invokeRestart("muffleMessage") [01:27:31.066] } [01:27:31.066] else if (inherits(cond, "warning")) { [01:27:31.066] muffled <- grepl(pattern, "muffleWarning") [01:27:31.066] if (muffled) [01:27:31.066] invokeRestart("muffleWarning") [01:27:31.066] } [01:27:31.066] else if (inherits(cond, "condition")) { [01:27:31.066] if (!is.null(pattern)) { [01:27:31.066] computeRestarts <- base::computeRestarts [01:27:31.066] grepl <- base::grepl [01:27:31.066] restarts <- computeRestarts(cond) [01:27:31.066] for (restart in restarts) { [01:27:31.066] name <- restart$name [01:27:31.066] if (is.null(name)) [01:27:31.066] next [01:27:31.066] if (!grepl(pattern, name)) [01:27:31.066] next [01:27:31.066] invokeRestart(restart) [01:27:31.066] muffled <- TRUE [01:27:31.066] break [01:27:31.066] } [01:27:31.066] } [01:27:31.066] } [01:27:31.066] invisible(muffled) [01:27:31.066] } [01:27:31.066] muffleCondition(cond) [01:27:31.066] }) [01:27:31.066] })) [01:27:31.066] future::FutureResult(value = ...future.value$value, [01:27:31.066] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.066] ...future.rng), globalenv = if (FALSE) [01:27:31.066] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:31.066] ...future.globalenv.names)) [01:27:31.066] else NULL, started = ...future.startTime, version = "1.8") [01:27:31.066] }, condition = base::local({ [01:27:31.066] c <- base::c [01:27:31.066] inherits <- base::inherits [01:27:31.066] invokeRestart <- base::invokeRestart [01:27:31.066] length <- base::length [01:27:31.066] list <- base::list [01:27:31.066] seq.int <- base::seq.int [01:27:31.066] signalCondition <- base::signalCondition [01:27:31.066] sys.calls <- base::sys.calls [01:27:31.066] `[[` <- base::`[[` [01:27:31.066] `+` <- base::`+` [01:27:31.066] `<<-` <- base::`<<-` [01:27:31.066] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:31.066] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:31.066] 3L)] [01:27:31.066] } [01:27:31.066] function(cond) { [01:27:31.066] is_error <- inherits(cond, "error") [01:27:31.066] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:31.066] NULL) [01:27:31.066] if (is_error) { [01:27:31.066] sessionInformation <- function() { [01:27:31.066] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:31.066] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:31.066] search = base::search(), system = base::Sys.info()) [01:27:31.066] } [01:27:31.066] ...future.conditions[[length(...future.conditions) + [01:27:31.066] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:31.066] cond$call), session = sessionInformation(), [01:27:31.066] timestamp = base::Sys.time(), signaled = 0L) [01:27:31.066] signalCondition(cond) [01:27:31.066] } [01:27:31.066] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:31.066] "immediateCondition"))) { [01:27:31.066] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:31.066] ...future.conditions[[length(...future.conditions) + [01:27:31.066] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:31.066] if (TRUE && !signal) { [01:27:31.066] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.066] { [01:27:31.066] inherits <- base::inherits [01:27:31.066] invokeRestart <- base::invokeRestart [01:27:31.066] is.null <- base::is.null [01:27:31.066] muffled <- FALSE [01:27:31.066] if (inherits(cond, "message")) { [01:27:31.066] muffled <- grepl(pattern, "muffleMessage") [01:27:31.066] if (muffled) [01:27:31.066] invokeRestart("muffleMessage") [01:27:31.066] } [01:27:31.066] else if (inherits(cond, "warning")) { [01:27:31.066] muffled <- grepl(pattern, "muffleWarning") [01:27:31.066] if (muffled) [01:27:31.066] invokeRestart("muffleWarning") [01:27:31.066] } [01:27:31.066] else if (inherits(cond, "condition")) { [01:27:31.066] if (!is.null(pattern)) { [01:27:31.066] computeRestarts <- base::computeRestarts [01:27:31.066] grepl <- base::grepl [01:27:31.066] restarts <- computeRestarts(cond) [01:27:31.066] for (restart in restarts) { [01:27:31.066] name <- restart$name [01:27:31.066] if (is.null(name)) [01:27:31.066] next [01:27:31.066] if (!grepl(pattern, name)) [01:27:31.066] next [01:27:31.066] invokeRestart(restart) [01:27:31.066] muffled <- TRUE [01:27:31.066] break [01:27:31.066] } [01:27:31.066] } [01:27:31.066] } [01:27:31.066] invisible(muffled) [01:27:31.066] } [01:27:31.066] muffleCondition(cond, pattern = "^muffle") [01:27:31.066] } [01:27:31.066] } [01:27:31.066] else { [01:27:31.066] if (TRUE) { [01:27:31.066] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.066] { [01:27:31.066] inherits <- base::inherits [01:27:31.066] invokeRestart <- base::invokeRestart [01:27:31.066] is.null <- base::is.null [01:27:31.066] muffled <- FALSE [01:27:31.066] if (inherits(cond, "message")) { [01:27:31.066] muffled <- grepl(pattern, "muffleMessage") [01:27:31.066] if (muffled) [01:27:31.066] invokeRestart("muffleMessage") [01:27:31.066] } [01:27:31.066] else if (inherits(cond, "warning")) { [01:27:31.066] muffled <- grepl(pattern, "muffleWarning") [01:27:31.066] if (muffled) [01:27:31.066] invokeRestart("muffleWarning") [01:27:31.066] } [01:27:31.066] else if (inherits(cond, "condition")) { [01:27:31.066] if (!is.null(pattern)) { [01:27:31.066] computeRestarts <- base::computeRestarts [01:27:31.066] grepl <- base::grepl [01:27:31.066] restarts <- computeRestarts(cond) [01:27:31.066] for (restart in restarts) { [01:27:31.066] name <- restart$name [01:27:31.066] if (is.null(name)) [01:27:31.066] next [01:27:31.066] if (!grepl(pattern, name)) [01:27:31.066] next [01:27:31.066] invokeRestart(restart) [01:27:31.066] muffled <- TRUE [01:27:31.066] break [01:27:31.066] } [01:27:31.066] } [01:27:31.066] } [01:27:31.066] invisible(muffled) [01:27:31.066] } [01:27:31.066] muffleCondition(cond, pattern = "^muffle") [01:27:31.066] } [01:27:31.066] } [01:27:31.066] } [01:27:31.066] })) [01:27:31.066] }, error = function(ex) { [01:27:31.066] base::structure(base::list(value = NULL, visible = NULL, [01:27:31.066] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.066] ...future.rng), started = ...future.startTime, [01:27:31.066] finished = Sys.time(), session_uuid = NA_character_, [01:27:31.066] version = "1.8"), class = "FutureResult") [01:27:31.066] }, finally = { [01:27:31.066] if (!identical(...future.workdir, getwd())) [01:27:31.066] setwd(...future.workdir) [01:27:31.066] { [01:27:31.066] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:31.066] ...future.oldOptions$nwarnings <- NULL [01:27:31.066] } [01:27:31.066] base::options(...future.oldOptions) [01:27:31.066] if (.Platform$OS.type == "windows") { [01:27:31.066] old_names <- names(...future.oldEnvVars) [01:27:31.066] envs <- base::Sys.getenv() [01:27:31.066] names <- names(envs) [01:27:31.066] common <- intersect(names, old_names) [01:27:31.066] added <- setdiff(names, old_names) [01:27:31.066] removed <- setdiff(old_names, names) [01:27:31.066] changed <- common[...future.oldEnvVars[common] != [01:27:31.066] envs[common]] [01:27:31.066] NAMES <- toupper(changed) [01:27:31.066] args <- list() [01:27:31.066] for (kk in seq_along(NAMES)) { [01:27:31.066] name <- changed[[kk]] [01:27:31.066] NAME <- NAMES[[kk]] [01:27:31.066] if (name != NAME && is.element(NAME, old_names)) [01:27:31.066] next [01:27:31.066] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.066] } [01:27:31.066] NAMES <- toupper(added) [01:27:31.066] for (kk in seq_along(NAMES)) { [01:27:31.066] name <- added[[kk]] [01:27:31.066] NAME <- NAMES[[kk]] [01:27:31.066] if (name != NAME && is.element(NAME, old_names)) [01:27:31.066] next [01:27:31.066] args[[name]] <- "" [01:27:31.066] } [01:27:31.066] NAMES <- toupper(removed) [01:27:31.066] for (kk in seq_along(NAMES)) { [01:27:31.066] name <- removed[[kk]] [01:27:31.066] NAME <- NAMES[[kk]] [01:27:31.066] if (name != NAME && is.element(NAME, old_names)) [01:27:31.066] next [01:27:31.066] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.066] } [01:27:31.066] if (length(args) > 0) [01:27:31.066] base::do.call(base::Sys.setenv, args = args) [01:27:31.066] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:31.066] } [01:27:31.066] else { [01:27:31.066] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:31.066] } [01:27:31.066] { [01:27:31.066] if (base::length(...future.futureOptionsAdded) > [01:27:31.066] 0L) { [01:27:31.066] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:31.066] base::names(opts) <- ...future.futureOptionsAdded [01:27:31.066] base::options(opts) [01:27:31.066] } [01:27:31.066] { [01:27:31.066] { [01:27:31.066] base::options(mc.cores = ...future.mc.cores.old) [01:27:31.066] NULL [01:27:31.066] } [01:27:31.066] options(future.plan = NULL) [01:27:31.066] if (is.na(NA_character_)) [01:27:31.066] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.066] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:31.066] future::plan(list(function (..., workers = availableCores(), [01:27:31.066] lazy = FALSE, rscript_libs = .libPaths(), [01:27:31.066] envir = parent.frame()) [01:27:31.066] { [01:27:31.066] if (is.function(workers)) [01:27:31.066] workers <- workers() [01:27:31.066] workers <- structure(as.integer(workers), [01:27:31.066] class = class(workers)) [01:27:31.066] stop_if_not(length(workers) == 1, is.finite(workers), [01:27:31.066] workers >= 1) [01:27:31.066] if (workers == 1L && !inherits(workers, "AsIs")) { [01:27:31.066] return(sequential(..., lazy = TRUE, envir = envir)) [01:27:31.066] } [01:27:31.066] future <- MultisessionFuture(..., workers = workers, [01:27:31.066] lazy = lazy, rscript_libs = rscript_libs, [01:27:31.066] envir = envir) [01:27:31.066] if (!future$lazy) [01:27:31.066] future <- run(future) [01:27:31.066] invisible(future) [01:27:31.066] }), .cleanup = FALSE, .init = FALSE) [01:27:31.066] } [01:27:31.066] } [01:27:31.066] } [01:27:31.066] }) [01:27:31.066] if (TRUE) { [01:27:31.066] base::sink(type = "output", split = FALSE) [01:27:31.066] if (TRUE) { [01:27:31.066] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:31.066] } [01:27:31.066] else { [01:27:31.066] ...future.result["stdout"] <- base::list(NULL) [01:27:31.066] } [01:27:31.066] base::close(...future.stdout) [01:27:31.066] ...future.stdout <- NULL [01:27:31.066] } [01:27:31.066] ...future.result$conditions <- ...future.conditions [01:27:31.066] ...future.result$finished <- base::Sys.time() [01:27:31.066] ...future.result [01:27:31.066] } [01:27:31.143] MultisessionFuture started [01:27:31.144] result() for ClusterFuture ... [01:27:31.144] receiveMessageFromWorker() for ClusterFuture ... [01:27:31.145] - Validating connection of MultisessionFuture [01:27:31.201] - received message: FutureResult [01:27:31.201] - Received FutureResult [01:27:31.205] - Erased future from FutureRegistry [01:27:31.205] result() for ClusterFuture ... [01:27:31.205] - result already collected: FutureResult [01:27:31.205] result() for ClusterFuture ... done [01:27:31.205] receiveMessageFromWorker() for ClusterFuture ... done [01:27:31.206] result() for ClusterFuture ... done [01:27:31.206] result() for ClusterFuture ... [01:27:31.206] - result already collected: FutureResult [01:27:31.206] result() for ClusterFuture ... done [01:27:31.206] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:27:31.209] plan(): nbrOfWorkers() = 2 [01:27:31.212] getGlobalsAndPackages() ... [01:27:31.212] [01:27:31.212] - globals: [0] [01:27:31.213] getGlobalsAndPackages() ... DONE [01:27:31.225] Packages needed by the future expression (n = 0): [01:27:31.225] Packages needed by future strategies (n = 0): [01:27:31.226] { [01:27:31.226] { [01:27:31.226] { [01:27:31.226] ...future.startTime <- base::Sys.time() [01:27:31.226] { [01:27:31.226] { [01:27:31.226] { [01:27:31.226] { [01:27:31.226] base::local({ [01:27:31.226] has_future <- base::requireNamespace("future", [01:27:31.226] quietly = TRUE) [01:27:31.226] if (has_future) { [01:27:31.226] ns <- base::getNamespace("future") [01:27:31.226] version <- ns[[".package"]][["version"]] [01:27:31.226] if (is.null(version)) [01:27:31.226] version <- utils::packageVersion("future") [01:27:31.226] } [01:27:31.226] else { [01:27:31.226] version <- NULL [01:27:31.226] } [01:27:31.226] if (!has_future || version < "1.8.0") { [01:27:31.226] info <- base::c(r_version = base::gsub("R version ", [01:27:31.226] "", base::R.version$version.string), [01:27:31.226] platform = base::sprintf("%s (%s-bit)", [01:27:31.226] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:31.226] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:31.226] "release", "version")], collapse = " "), [01:27:31.226] hostname = base::Sys.info()[["nodename"]]) [01:27:31.226] info <- base::sprintf("%s: %s", base::names(info), [01:27:31.226] info) [01:27:31.226] info <- base::paste(info, collapse = "; ") [01:27:31.226] if (!has_future) { [01:27:31.226] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:31.226] info) [01:27:31.226] } [01:27:31.226] else { [01:27:31.226] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:31.226] info, version) [01:27:31.226] } [01:27:31.226] base::stop(msg) [01:27:31.226] } [01:27:31.226] }) [01:27:31.226] } [01:27:31.226] ...future.mc.cores.old <- base::getOption("mc.cores") [01:27:31.226] base::options(mc.cores = 1L) [01:27:31.226] } [01:27:31.226] options(future.plan = NULL) [01:27:31.226] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.226] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:31.226] } [01:27:31.226] ...future.workdir <- getwd() [01:27:31.226] } [01:27:31.226] ...future.oldOptions <- base::as.list(base::.Options) [01:27:31.226] ...future.oldEnvVars <- base::Sys.getenv() [01:27:31.226] } [01:27:31.226] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:31.226] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:31.226] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:31.226] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:31.226] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:31.226] future.stdout.windows.reencode = NULL, width = 80L) [01:27:31.226] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:31.226] base::names(...future.oldOptions)) [01:27:31.226] } [01:27:31.226] if (FALSE) { [01:27:31.226] } [01:27:31.226] else { [01:27:31.226] if (TRUE) { [01:27:31.226] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:31.226] open = "w") [01:27:31.226] } [01:27:31.226] else { [01:27:31.226] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:31.226] windows = "NUL", "/dev/null"), open = "w") [01:27:31.226] } [01:27:31.226] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:31.226] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:31.226] base::sink(type = "output", split = FALSE) [01:27:31.226] base::close(...future.stdout) [01:27:31.226] }, add = TRUE) [01:27:31.226] } [01:27:31.226] ...future.frame <- base::sys.nframe() [01:27:31.226] ...future.conditions <- base::list() [01:27:31.226] ...future.rng <- base::globalenv()$.Random.seed [01:27:31.226] if (FALSE) { [01:27:31.226] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:31.226] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:31.226] } [01:27:31.226] ...future.result <- base::tryCatch({ [01:27:31.226] base::withCallingHandlers({ [01:27:31.226] ...future.value <- base::withVisible(base::local({ [01:27:31.226] ...future.makeSendCondition <- base::local({ [01:27:31.226] sendCondition <- NULL [01:27:31.226] function(frame = 1L) { [01:27:31.226] if (is.function(sendCondition)) [01:27:31.226] return(sendCondition) [01:27:31.226] ns <- getNamespace("parallel") [01:27:31.226] if (exists("sendData", mode = "function", [01:27:31.226] envir = ns)) { [01:27:31.226] parallel_sendData <- get("sendData", mode = "function", [01:27:31.226] envir = ns) [01:27:31.226] envir <- sys.frame(frame) [01:27:31.226] master <- NULL [01:27:31.226] while (!identical(envir, .GlobalEnv) && [01:27:31.226] !identical(envir, emptyenv())) { [01:27:31.226] if (exists("master", mode = "list", envir = envir, [01:27:31.226] inherits = FALSE)) { [01:27:31.226] master <- get("master", mode = "list", [01:27:31.226] envir = envir, inherits = FALSE) [01:27:31.226] if (inherits(master, c("SOCKnode", [01:27:31.226] "SOCK0node"))) { [01:27:31.226] sendCondition <<- function(cond) { [01:27:31.226] data <- list(type = "VALUE", value = cond, [01:27:31.226] success = TRUE) [01:27:31.226] parallel_sendData(master, data) [01:27:31.226] } [01:27:31.226] return(sendCondition) [01:27:31.226] } [01:27:31.226] } [01:27:31.226] frame <- frame + 1L [01:27:31.226] envir <- sys.frame(frame) [01:27:31.226] } [01:27:31.226] } [01:27:31.226] sendCondition <<- function(cond) NULL [01:27:31.226] } [01:27:31.226] }) [01:27:31.226] withCallingHandlers({ [01:27:31.226] 42 [01:27:31.226] }, immediateCondition = function(cond) { [01:27:31.226] sendCondition <- ...future.makeSendCondition() [01:27:31.226] sendCondition(cond) [01:27:31.226] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.226] { [01:27:31.226] inherits <- base::inherits [01:27:31.226] invokeRestart <- base::invokeRestart [01:27:31.226] is.null <- base::is.null [01:27:31.226] muffled <- FALSE [01:27:31.226] if (inherits(cond, "message")) { [01:27:31.226] muffled <- grepl(pattern, "muffleMessage") [01:27:31.226] if (muffled) [01:27:31.226] invokeRestart("muffleMessage") [01:27:31.226] } [01:27:31.226] else if (inherits(cond, "warning")) { [01:27:31.226] muffled <- grepl(pattern, "muffleWarning") [01:27:31.226] if (muffled) [01:27:31.226] invokeRestart("muffleWarning") [01:27:31.226] } [01:27:31.226] else if (inherits(cond, "condition")) { [01:27:31.226] if (!is.null(pattern)) { [01:27:31.226] computeRestarts <- base::computeRestarts [01:27:31.226] grepl <- base::grepl [01:27:31.226] restarts <- computeRestarts(cond) [01:27:31.226] for (restart in restarts) { [01:27:31.226] name <- restart$name [01:27:31.226] if (is.null(name)) [01:27:31.226] next [01:27:31.226] if (!grepl(pattern, name)) [01:27:31.226] next [01:27:31.226] invokeRestart(restart) [01:27:31.226] muffled <- TRUE [01:27:31.226] break [01:27:31.226] } [01:27:31.226] } [01:27:31.226] } [01:27:31.226] invisible(muffled) [01:27:31.226] } [01:27:31.226] muffleCondition(cond) [01:27:31.226] }) [01:27:31.226] })) [01:27:31.226] future::FutureResult(value = ...future.value$value, [01:27:31.226] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.226] ...future.rng), globalenv = if (FALSE) [01:27:31.226] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:31.226] ...future.globalenv.names)) [01:27:31.226] else NULL, started = ...future.startTime, version = "1.8") [01:27:31.226] }, condition = base::local({ [01:27:31.226] c <- base::c [01:27:31.226] inherits <- base::inherits [01:27:31.226] invokeRestart <- base::invokeRestart [01:27:31.226] length <- base::length [01:27:31.226] list <- base::list [01:27:31.226] seq.int <- base::seq.int [01:27:31.226] signalCondition <- base::signalCondition [01:27:31.226] sys.calls <- base::sys.calls [01:27:31.226] `[[` <- base::`[[` [01:27:31.226] `+` <- base::`+` [01:27:31.226] `<<-` <- base::`<<-` [01:27:31.226] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:31.226] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:31.226] 3L)] [01:27:31.226] } [01:27:31.226] function(cond) { [01:27:31.226] is_error <- inherits(cond, "error") [01:27:31.226] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:31.226] NULL) [01:27:31.226] if (is_error) { [01:27:31.226] sessionInformation <- function() { [01:27:31.226] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:31.226] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:31.226] search = base::search(), system = base::Sys.info()) [01:27:31.226] } [01:27:31.226] ...future.conditions[[length(...future.conditions) + [01:27:31.226] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:31.226] cond$call), session = sessionInformation(), [01:27:31.226] timestamp = base::Sys.time(), signaled = 0L) [01:27:31.226] signalCondition(cond) [01:27:31.226] } [01:27:31.226] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:31.226] "immediateCondition"))) { [01:27:31.226] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:31.226] ...future.conditions[[length(...future.conditions) + [01:27:31.226] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:31.226] if (TRUE && !signal) { [01:27:31.226] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.226] { [01:27:31.226] inherits <- base::inherits [01:27:31.226] invokeRestart <- base::invokeRestart [01:27:31.226] is.null <- base::is.null [01:27:31.226] muffled <- FALSE [01:27:31.226] if (inherits(cond, "message")) { [01:27:31.226] muffled <- grepl(pattern, "muffleMessage") [01:27:31.226] if (muffled) [01:27:31.226] invokeRestart("muffleMessage") [01:27:31.226] } [01:27:31.226] else if (inherits(cond, "warning")) { [01:27:31.226] muffled <- grepl(pattern, "muffleWarning") [01:27:31.226] if (muffled) [01:27:31.226] invokeRestart("muffleWarning") [01:27:31.226] } [01:27:31.226] else if (inherits(cond, "condition")) { [01:27:31.226] if (!is.null(pattern)) { [01:27:31.226] computeRestarts <- base::computeRestarts [01:27:31.226] grepl <- base::grepl [01:27:31.226] restarts <- computeRestarts(cond) [01:27:31.226] for (restart in restarts) { [01:27:31.226] name <- restart$name [01:27:31.226] if (is.null(name)) [01:27:31.226] next [01:27:31.226] if (!grepl(pattern, name)) [01:27:31.226] next [01:27:31.226] invokeRestart(restart) [01:27:31.226] muffled <- TRUE [01:27:31.226] break [01:27:31.226] } [01:27:31.226] } [01:27:31.226] } [01:27:31.226] invisible(muffled) [01:27:31.226] } [01:27:31.226] muffleCondition(cond, pattern = "^muffle") [01:27:31.226] } [01:27:31.226] } [01:27:31.226] else { [01:27:31.226] if (TRUE) { [01:27:31.226] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.226] { [01:27:31.226] inherits <- base::inherits [01:27:31.226] invokeRestart <- base::invokeRestart [01:27:31.226] is.null <- base::is.null [01:27:31.226] muffled <- FALSE [01:27:31.226] if (inherits(cond, "message")) { [01:27:31.226] muffled <- grepl(pattern, "muffleMessage") [01:27:31.226] if (muffled) [01:27:31.226] invokeRestart("muffleMessage") [01:27:31.226] } [01:27:31.226] else if (inherits(cond, "warning")) { [01:27:31.226] muffled <- grepl(pattern, "muffleWarning") [01:27:31.226] if (muffled) [01:27:31.226] invokeRestart("muffleWarning") [01:27:31.226] } [01:27:31.226] else if (inherits(cond, "condition")) { [01:27:31.226] if (!is.null(pattern)) { [01:27:31.226] computeRestarts <- base::computeRestarts [01:27:31.226] grepl <- base::grepl [01:27:31.226] restarts <- computeRestarts(cond) [01:27:31.226] for (restart in restarts) { [01:27:31.226] name <- restart$name [01:27:31.226] if (is.null(name)) [01:27:31.226] next [01:27:31.226] if (!grepl(pattern, name)) [01:27:31.226] next [01:27:31.226] invokeRestart(restart) [01:27:31.226] muffled <- TRUE [01:27:31.226] break [01:27:31.226] } [01:27:31.226] } [01:27:31.226] } [01:27:31.226] invisible(muffled) [01:27:31.226] } [01:27:31.226] muffleCondition(cond, pattern = "^muffle") [01:27:31.226] } [01:27:31.226] } [01:27:31.226] } [01:27:31.226] })) [01:27:31.226] }, error = function(ex) { [01:27:31.226] base::structure(base::list(value = NULL, visible = NULL, [01:27:31.226] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.226] ...future.rng), started = ...future.startTime, [01:27:31.226] finished = Sys.time(), session_uuid = NA_character_, [01:27:31.226] version = "1.8"), class = "FutureResult") [01:27:31.226] }, finally = { [01:27:31.226] if (!identical(...future.workdir, getwd())) [01:27:31.226] setwd(...future.workdir) [01:27:31.226] { [01:27:31.226] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:31.226] ...future.oldOptions$nwarnings <- NULL [01:27:31.226] } [01:27:31.226] base::options(...future.oldOptions) [01:27:31.226] if (.Platform$OS.type == "windows") { [01:27:31.226] old_names <- names(...future.oldEnvVars) [01:27:31.226] envs <- base::Sys.getenv() [01:27:31.226] names <- names(envs) [01:27:31.226] common <- intersect(names, old_names) [01:27:31.226] added <- setdiff(names, old_names) [01:27:31.226] removed <- setdiff(old_names, names) [01:27:31.226] changed <- common[...future.oldEnvVars[common] != [01:27:31.226] envs[common]] [01:27:31.226] NAMES <- toupper(changed) [01:27:31.226] args <- list() [01:27:31.226] for (kk in seq_along(NAMES)) { [01:27:31.226] name <- changed[[kk]] [01:27:31.226] NAME <- NAMES[[kk]] [01:27:31.226] if (name != NAME && is.element(NAME, old_names)) [01:27:31.226] next [01:27:31.226] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.226] } [01:27:31.226] NAMES <- toupper(added) [01:27:31.226] for (kk in seq_along(NAMES)) { [01:27:31.226] name <- added[[kk]] [01:27:31.226] NAME <- NAMES[[kk]] [01:27:31.226] if (name != NAME && is.element(NAME, old_names)) [01:27:31.226] next [01:27:31.226] args[[name]] <- "" [01:27:31.226] } [01:27:31.226] NAMES <- toupper(removed) [01:27:31.226] for (kk in seq_along(NAMES)) { [01:27:31.226] name <- removed[[kk]] [01:27:31.226] NAME <- NAMES[[kk]] [01:27:31.226] if (name != NAME && is.element(NAME, old_names)) [01:27:31.226] next [01:27:31.226] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.226] } [01:27:31.226] if (length(args) > 0) [01:27:31.226] base::do.call(base::Sys.setenv, args = args) [01:27:31.226] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:31.226] } [01:27:31.226] else { [01:27:31.226] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:31.226] } [01:27:31.226] { [01:27:31.226] if (base::length(...future.futureOptionsAdded) > [01:27:31.226] 0L) { [01:27:31.226] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:31.226] base::names(opts) <- ...future.futureOptionsAdded [01:27:31.226] base::options(opts) [01:27:31.226] } [01:27:31.226] { [01:27:31.226] { [01:27:31.226] base::options(mc.cores = ...future.mc.cores.old) [01:27:31.226] NULL [01:27:31.226] } [01:27:31.226] options(future.plan = NULL) [01:27:31.226] if (is.na(NA_character_)) [01:27:31.226] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.226] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:31.226] future::plan(list(function (..., workers = availableCores(), [01:27:31.226] lazy = FALSE, rscript_libs = .libPaths(), [01:27:31.226] envir = parent.frame()) [01:27:31.226] { [01:27:31.226] if (is.function(workers)) [01:27:31.226] workers <- workers() [01:27:31.226] workers <- structure(as.integer(workers), [01:27:31.226] class = class(workers)) [01:27:31.226] stop_if_not(length(workers) == 1, is.finite(workers), [01:27:31.226] workers >= 1) [01:27:31.226] if (workers == 1L && !inherits(workers, "AsIs")) { [01:27:31.226] return(sequential(..., lazy = TRUE, envir = envir)) [01:27:31.226] } [01:27:31.226] future <- MultisessionFuture(..., workers = workers, [01:27:31.226] lazy = lazy, rscript_libs = rscript_libs, [01:27:31.226] envir = envir) [01:27:31.226] if (!future$lazy) [01:27:31.226] future <- run(future) [01:27:31.226] invisible(future) [01:27:31.226] }), .cleanup = FALSE, .init = FALSE) [01:27:31.226] } [01:27:31.226] } [01:27:31.226] } [01:27:31.226] }) [01:27:31.226] if (TRUE) { [01:27:31.226] base::sink(type = "output", split = FALSE) [01:27:31.226] if (TRUE) { [01:27:31.226] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:31.226] } [01:27:31.226] else { [01:27:31.226] ...future.result["stdout"] <- base::list(NULL) [01:27:31.226] } [01:27:31.226] base::close(...future.stdout) [01:27:31.226] ...future.stdout <- NULL [01:27:31.226] } [01:27:31.226] ...future.result$conditions <- ...future.conditions [01:27:31.226] ...future.result$finished <- base::Sys.time() [01:27:31.226] ...future.result [01:27:31.226] } [01:27:31.232] 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) [01:27:31.249] receiveMessageFromWorker() for ClusterFuture ... [01:27:31.250] - Validating connection of MultisessionFuture [01:27:31.250] - received message: FutureResult [01:27:31.250] - Received FutureResult [01:27:31.251] - Erased future from FutureRegistry [01:27:31.251] result() for ClusterFuture ... [01:27:31.251] - result already collected: FutureResult [01:27:31.251] result() for ClusterFuture ... done [01:27:31.251] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: e4232549-d54c-8c10-35e3-92a27d17f6a9 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:27:31.252] result() for ClusterFuture ... [01:27:31.252] - result already collected: FutureResult [01:27:31.252] result() for ClusterFuture ... done [01:27:31.252] result() for ClusterFuture ... [01:27:31.252] - result already collected: FutureResult [01:27:31.253] result() for ClusterFuture ... done [01:27:31.253] getGlobalsAndPackages() ... [01:27:31.253] Searching for globals... [01:27:31.254] [01:27:31.254] Searching for globals ... DONE [01:27:31.254] - globals: [0] [01:27:31.254] getGlobalsAndPackages() ... DONE [01:27:31.255] run() for 'Future' ... [01:27:31.255] - state: 'created' [01:27:31.255] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [01:27:31.270] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:27:31.271] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [01:27:31.271] - Field: 'node' [01:27:31.271] - Field: 'label' [01:27:31.271] - Field: 'local' [01:27:31.271] - Field: 'owner' [01:27:31.272] - Field: 'envir' [01:27:31.272] - Field: 'workers' [01:27:31.272] - Field: 'packages' [01:27:31.272] - Field: 'gc' [01:27:31.272] - Field: 'conditions' [01:27:31.273] - Field: 'persistent' [01:27:31.273] - Field: 'expr' [01:27:31.273] - Field: 'uuid' [01:27:31.273] - Field: 'seed' [01:27:31.273] - Field: 'version' [01:27:31.274] - Field: 'result' [01:27:31.274] - Field: 'asynchronous' [01:27:31.274] - Field: 'calls' [01:27:31.274] - Field: 'globals' [01:27:31.274] - Field: 'stdout' [01:27:31.275] - Field: 'earlySignal' [01:27:31.275] - Field: 'lazy' [01:27:31.275] - Field: 'state' [01:27:31.275] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [01:27:31.275] - Launch lazy future ... [01:27:31.276] Packages needed by the future expression (n = 0): [01:27:31.276] Packages needed by future strategies (n = 0): [01:27:31.277] { [01:27:31.277] { [01:27:31.277] { [01:27:31.277] ...future.startTime <- base::Sys.time() [01:27:31.277] { [01:27:31.277] { [01:27:31.277] { [01:27:31.277] { [01:27:31.277] base::local({ [01:27:31.277] has_future <- base::requireNamespace("future", [01:27:31.277] quietly = TRUE) [01:27:31.277] if (has_future) { [01:27:31.277] ns <- base::getNamespace("future") [01:27:31.277] version <- ns[[".package"]][["version"]] [01:27:31.277] if (is.null(version)) [01:27:31.277] version <- utils::packageVersion("future") [01:27:31.277] } [01:27:31.277] else { [01:27:31.277] version <- NULL [01:27:31.277] } [01:27:31.277] if (!has_future || version < "1.8.0") { [01:27:31.277] info <- base::c(r_version = base::gsub("R version ", [01:27:31.277] "", base::R.version$version.string), [01:27:31.277] platform = base::sprintf("%s (%s-bit)", [01:27:31.277] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:31.277] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:31.277] "release", "version")], collapse = " "), [01:27:31.277] hostname = base::Sys.info()[["nodename"]]) [01:27:31.277] info <- base::sprintf("%s: %s", base::names(info), [01:27:31.277] info) [01:27:31.277] info <- base::paste(info, collapse = "; ") [01:27:31.277] if (!has_future) { [01:27:31.277] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:31.277] info) [01:27:31.277] } [01:27:31.277] else { [01:27:31.277] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:31.277] info, version) [01:27:31.277] } [01:27:31.277] base::stop(msg) [01:27:31.277] } [01:27:31.277] }) [01:27:31.277] } [01:27:31.277] ...future.mc.cores.old <- base::getOption("mc.cores") [01:27:31.277] base::options(mc.cores = 1L) [01:27:31.277] } [01:27:31.277] options(future.plan = NULL) [01:27:31.277] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.277] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:31.277] } [01:27:31.277] ...future.workdir <- getwd() [01:27:31.277] } [01:27:31.277] ...future.oldOptions <- base::as.list(base::.Options) [01:27:31.277] ...future.oldEnvVars <- base::Sys.getenv() [01:27:31.277] } [01:27:31.277] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:31.277] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:31.277] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:31.277] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:31.277] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:31.277] future.stdout.windows.reencode = NULL, width = 80L) [01:27:31.277] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:31.277] base::names(...future.oldOptions)) [01:27:31.277] } [01:27:31.277] if (FALSE) { [01:27:31.277] } [01:27:31.277] else { [01:27:31.277] if (TRUE) { [01:27:31.277] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:31.277] open = "w") [01:27:31.277] } [01:27:31.277] else { [01:27:31.277] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:31.277] windows = "NUL", "/dev/null"), open = "w") [01:27:31.277] } [01:27:31.277] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:31.277] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:31.277] base::sink(type = "output", split = FALSE) [01:27:31.277] base::close(...future.stdout) [01:27:31.277] }, add = TRUE) [01:27:31.277] } [01:27:31.277] ...future.frame <- base::sys.nframe() [01:27:31.277] ...future.conditions <- base::list() [01:27:31.277] ...future.rng <- base::globalenv()$.Random.seed [01:27:31.277] if (FALSE) { [01:27:31.277] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:31.277] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:31.277] } [01:27:31.277] ...future.result <- base::tryCatch({ [01:27:31.277] base::withCallingHandlers({ [01:27:31.277] ...future.value <- base::withVisible(base::local({ [01:27:31.277] ...future.makeSendCondition <- base::local({ [01:27:31.277] sendCondition <- NULL [01:27:31.277] function(frame = 1L) { [01:27:31.277] if (is.function(sendCondition)) [01:27:31.277] return(sendCondition) [01:27:31.277] ns <- getNamespace("parallel") [01:27:31.277] if (exists("sendData", mode = "function", [01:27:31.277] envir = ns)) { [01:27:31.277] parallel_sendData <- get("sendData", mode = "function", [01:27:31.277] envir = ns) [01:27:31.277] envir <- sys.frame(frame) [01:27:31.277] master <- NULL [01:27:31.277] while (!identical(envir, .GlobalEnv) && [01:27:31.277] !identical(envir, emptyenv())) { [01:27:31.277] if (exists("master", mode = "list", envir = envir, [01:27:31.277] inherits = FALSE)) { [01:27:31.277] master <- get("master", mode = "list", [01:27:31.277] envir = envir, inherits = FALSE) [01:27:31.277] if (inherits(master, c("SOCKnode", [01:27:31.277] "SOCK0node"))) { [01:27:31.277] sendCondition <<- function(cond) { [01:27:31.277] data <- list(type = "VALUE", value = cond, [01:27:31.277] success = TRUE) [01:27:31.277] parallel_sendData(master, data) [01:27:31.277] } [01:27:31.277] return(sendCondition) [01:27:31.277] } [01:27:31.277] } [01:27:31.277] frame <- frame + 1L [01:27:31.277] envir <- sys.frame(frame) [01:27:31.277] } [01:27:31.277] } [01:27:31.277] sendCondition <<- function(cond) NULL [01:27:31.277] } [01:27:31.277] }) [01:27:31.277] withCallingHandlers({ [01:27:31.277] 42 [01:27:31.277] }, immediateCondition = function(cond) { [01:27:31.277] sendCondition <- ...future.makeSendCondition() [01:27:31.277] sendCondition(cond) [01:27:31.277] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.277] { [01:27:31.277] inherits <- base::inherits [01:27:31.277] invokeRestart <- base::invokeRestart [01:27:31.277] is.null <- base::is.null [01:27:31.277] muffled <- FALSE [01:27:31.277] if (inherits(cond, "message")) { [01:27:31.277] muffled <- grepl(pattern, "muffleMessage") [01:27:31.277] if (muffled) [01:27:31.277] invokeRestart("muffleMessage") [01:27:31.277] } [01:27:31.277] else if (inherits(cond, "warning")) { [01:27:31.277] muffled <- grepl(pattern, "muffleWarning") [01:27:31.277] if (muffled) [01:27:31.277] invokeRestart("muffleWarning") [01:27:31.277] } [01:27:31.277] else if (inherits(cond, "condition")) { [01:27:31.277] if (!is.null(pattern)) { [01:27:31.277] computeRestarts <- base::computeRestarts [01:27:31.277] grepl <- base::grepl [01:27:31.277] restarts <- computeRestarts(cond) [01:27:31.277] for (restart in restarts) { [01:27:31.277] name <- restart$name [01:27:31.277] if (is.null(name)) [01:27:31.277] next [01:27:31.277] if (!grepl(pattern, name)) [01:27:31.277] next [01:27:31.277] invokeRestart(restart) [01:27:31.277] muffled <- TRUE [01:27:31.277] break [01:27:31.277] } [01:27:31.277] } [01:27:31.277] } [01:27:31.277] invisible(muffled) [01:27:31.277] } [01:27:31.277] muffleCondition(cond) [01:27:31.277] }) [01:27:31.277] })) [01:27:31.277] future::FutureResult(value = ...future.value$value, [01:27:31.277] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.277] ...future.rng), globalenv = if (FALSE) [01:27:31.277] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:31.277] ...future.globalenv.names)) [01:27:31.277] else NULL, started = ...future.startTime, version = "1.8") [01:27:31.277] }, condition = base::local({ [01:27:31.277] c <- base::c [01:27:31.277] inherits <- base::inherits [01:27:31.277] invokeRestart <- base::invokeRestart [01:27:31.277] length <- base::length [01:27:31.277] list <- base::list [01:27:31.277] seq.int <- base::seq.int [01:27:31.277] signalCondition <- base::signalCondition [01:27:31.277] sys.calls <- base::sys.calls [01:27:31.277] `[[` <- base::`[[` [01:27:31.277] `+` <- base::`+` [01:27:31.277] `<<-` <- base::`<<-` [01:27:31.277] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:31.277] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:31.277] 3L)] [01:27:31.277] } [01:27:31.277] function(cond) { [01:27:31.277] is_error <- inherits(cond, "error") [01:27:31.277] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:31.277] NULL) [01:27:31.277] if (is_error) { [01:27:31.277] sessionInformation <- function() { [01:27:31.277] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:31.277] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:31.277] search = base::search(), system = base::Sys.info()) [01:27:31.277] } [01:27:31.277] ...future.conditions[[length(...future.conditions) + [01:27:31.277] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:31.277] cond$call), session = sessionInformation(), [01:27:31.277] timestamp = base::Sys.time(), signaled = 0L) [01:27:31.277] signalCondition(cond) [01:27:31.277] } [01:27:31.277] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:31.277] "immediateCondition"))) { [01:27:31.277] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:31.277] ...future.conditions[[length(...future.conditions) + [01:27:31.277] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:31.277] if (TRUE && !signal) { [01:27:31.277] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.277] { [01:27:31.277] inherits <- base::inherits [01:27:31.277] invokeRestart <- base::invokeRestart [01:27:31.277] is.null <- base::is.null [01:27:31.277] muffled <- FALSE [01:27:31.277] if (inherits(cond, "message")) { [01:27:31.277] muffled <- grepl(pattern, "muffleMessage") [01:27:31.277] if (muffled) [01:27:31.277] invokeRestart("muffleMessage") [01:27:31.277] } [01:27:31.277] else if (inherits(cond, "warning")) { [01:27:31.277] muffled <- grepl(pattern, "muffleWarning") [01:27:31.277] if (muffled) [01:27:31.277] invokeRestart("muffleWarning") [01:27:31.277] } [01:27:31.277] else if (inherits(cond, "condition")) { [01:27:31.277] if (!is.null(pattern)) { [01:27:31.277] computeRestarts <- base::computeRestarts [01:27:31.277] grepl <- base::grepl [01:27:31.277] restarts <- computeRestarts(cond) [01:27:31.277] for (restart in restarts) { [01:27:31.277] name <- restart$name [01:27:31.277] if (is.null(name)) [01:27:31.277] next [01:27:31.277] if (!grepl(pattern, name)) [01:27:31.277] next [01:27:31.277] invokeRestart(restart) [01:27:31.277] muffled <- TRUE [01:27:31.277] break [01:27:31.277] } [01:27:31.277] } [01:27:31.277] } [01:27:31.277] invisible(muffled) [01:27:31.277] } [01:27:31.277] muffleCondition(cond, pattern = "^muffle") [01:27:31.277] } [01:27:31.277] } [01:27:31.277] else { [01:27:31.277] if (TRUE) { [01:27:31.277] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.277] { [01:27:31.277] inherits <- base::inherits [01:27:31.277] invokeRestart <- base::invokeRestart [01:27:31.277] is.null <- base::is.null [01:27:31.277] muffled <- FALSE [01:27:31.277] if (inherits(cond, "message")) { [01:27:31.277] muffled <- grepl(pattern, "muffleMessage") [01:27:31.277] if (muffled) [01:27:31.277] invokeRestart("muffleMessage") [01:27:31.277] } [01:27:31.277] else if (inherits(cond, "warning")) { [01:27:31.277] muffled <- grepl(pattern, "muffleWarning") [01:27:31.277] if (muffled) [01:27:31.277] invokeRestart("muffleWarning") [01:27:31.277] } [01:27:31.277] else if (inherits(cond, "condition")) { [01:27:31.277] if (!is.null(pattern)) { [01:27:31.277] computeRestarts <- base::computeRestarts [01:27:31.277] grepl <- base::grepl [01:27:31.277] restarts <- computeRestarts(cond) [01:27:31.277] for (restart in restarts) { [01:27:31.277] name <- restart$name [01:27:31.277] if (is.null(name)) [01:27:31.277] next [01:27:31.277] if (!grepl(pattern, name)) [01:27:31.277] next [01:27:31.277] invokeRestart(restart) [01:27:31.277] muffled <- TRUE [01:27:31.277] break [01:27:31.277] } [01:27:31.277] } [01:27:31.277] } [01:27:31.277] invisible(muffled) [01:27:31.277] } [01:27:31.277] muffleCondition(cond, pattern = "^muffle") [01:27:31.277] } [01:27:31.277] } [01:27:31.277] } [01:27:31.277] })) [01:27:31.277] }, error = function(ex) { [01:27:31.277] base::structure(base::list(value = NULL, visible = NULL, [01:27:31.277] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.277] ...future.rng), started = ...future.startTime, [01:27:31.277] finished = Sys.time(), session_uuid = NA_character_, [01:27:31.277] version = "1.8"), class = "FutureResult") [01:27:31.277] }, finally = { [01:27:31.277] if (!identical(...future.workdir, getwd())) [01:27:31.277] setwd(...future.workdir) [01:27:31.277] { [01:27:31.277] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:31.277] ...future.oldOptions$nwarnings <- NULL [01:27:31.277] } [01:27:31.277] base::options(...future.oldOptions) [01:27:31.277] if (.Platform$OS.type == "windows") { [01:27:31.277] old_names <- names(...future.oldEnvVars) [01:27:31.277] envs <- base::Sys.getenv() [01:27:31.277] names <- names(envs) [01:27:31.277] common <- intersect(names, old_names) [01:27:31.277] added <- setdiff(names, old_names) [01:27:31.277] removed <- setdiff(old_names, names) [01:27:31.277] changed <- common[...future.oldEnvVars[common] != [01:27:31.277] envs[common]] [01:27:31.277] NAMES <- toupper(changed) [01:27:31.277] args <- list() [01:27:31.277] for (kk in seq_along(NAMES)) { [01:27:31.277] name <- changed[[kk]] [01:27:31.277] NAME <- NAMES[[kk]] [01:27:31.277] if (name != NAME && is.element(NAME, old_names)) [01:27:31.277] next [01:27:31.277] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.277] } [01:27:31.277] NAMES <- toupper(added) [01:27:31.277] for (kk in seq_along(NAMES)) { [01:27:31.277] name <- added[[kk]] [01:27:31.277] NAME <- NAMES[[kk]] [01:27:31.277] if (name != NAME && is.element(NAME, old_names)) [01:27:31.277] next [01:27:31.277] args[[name]] <- "" [01:27:31.277] } [01:27:31.277] NAMES <- toupper(removed) [01:27:31.277] for (kk in seq_along(NAMES)) { [01:27:31.277] name <- removed[[kk]] [01:27:31.277] NAME <- NAMES[[kk]] [01:27:31.277] if (name != NAME && is.element(NAME, old_names)) [01:27:31.277] next [01:27:31.277] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.277] } [01:27:31.277] if (length(args) > 0) [01:27:31.277] base::do.call(base::Sys.setenv, args = args) [01:27:31.277] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:31.277] } [01:27:31.277] else { [01:27:31.277] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:31.277] } [01:27:31.277] { [01:27:31.277] if (base::length(...future.futureOptionsAdded) > [01:27:31.277] 0L) { [01:27:31.277] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:31.277] base::names(opts) <- ...future.futureOptionsAdded [01:27:31.277] base::options(opts) [01:27:31.277] } [01:27:31.277] { [01:27:31.277] { [01:27:31.277] base::options(mc.cores = ...future.mc.cores.old) [01:27:31.277] NULL [01:27:31.277] } [01:27:31.277] options(future.plan = NULL) [01:27:31.277] if (is.na(NA_character_)) [01:27:31.277] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.277] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:31.277] future::plan(list(function (..., workers = availableCores(), [01:27:31.277] lazy = FALSE, rscript_libs = .libPaths(), [01:27:31.277] envir = parent.frame()) [01:27:31.277] { [01:27:31.277] if (is.function(workers)) [01:27:31.277] workers <- workers() [01:27:31.277] workers <- structure(as.integer(workers), [01:27:31.277] class = class(workers)) [01:27:31.277] stop_if_not(length(workers) == 1, is.finite(workers), [01:27:31.277] workers >= 1) [01:27:31.277] if (workers == 1L && !inherits(workers, "AsIs")) { [01:27:31.277] return(sequential(..., lazy = TRUE, envir = envir)) [01:27:31.277] } [01:27:31.277] future <- MultisessionFuture(..., workers = workers, [01:27:31.277] lazy = lazy, rscript_libs = rscript_libs, [01:27:31.277] envir = envir) [01:27:31.277] if (!future$lazy) [01:27:31.277] future <- run(future) [01:27:31.277] invisible(future) [01:27:31.277] }), .cleanup = FALSE, .init = FALSE) [01:27:31.277] } [01:27:31.277] } [01:27:31.277] } [01:27:31.277] }) [01:27:31.277] if (TRUE) { [01:27:31.277] base::sink(type = "output", split = FALSE) [01:27:31.277] if (TRUE) { [01:27:31.277] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:31.277] } [01:27:31.277] else { [01:27:31.277] ...future.result["stdout"] <- base::list(NULL) [01:27:31.277] } [01:27:31.277] base::close(...future.stdout) [01:27:31.277] ...future.stdout <- NULL [01:27:31.277] } [01:27:31.277] ...future.result$conditions <- ...future.conditions [01:27:31.277] ...future.result$finished <- base::Sys.time() [01:27:31.277] ...future.result [01:27:31.277] } [01:27:31.283] MultisessionFuture started [01:27:31.283] - Launch lazy future ... done [01:27:31.283] 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) [01:27:31.300] receiveMessageFromWorker() for ClusterFuture ... [01:27:31.300] - Validating connection of MultisessionFuture [01:27:31.300] - received message: FutureResult [01:27:31.300] - Received FutureResult [01:27:31.301] - Erased future from FutureRegistry [01:27:31.301] result() for ClusterFuture ... [01:27:31.301] - result already collected: FutureResult [01:27:31.301] result() for ClusterFuture ... done [01:27:31.301] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: e4232549-d54c-8c10-35e3-92a27d17f6a9 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:27:31.302] result() for ClusterFuture ... [01:27:31.302] - result already collected: FutureResult [01:27:31.302] result() for ClusterFuture ... done [01:27:31.302] result() for ClusterFuture ... [01:27:31.302] - result already collected: FutureResult [01:27:31.303] result() for ClusterFuture ... done [01:27:31.303] getGlobalsAndPackages() ... [01:27:31.303] Searching for globals... [01:27:31.304] - globals found: [1] '{' [01:27:31.305] Searching for globals ... DONE [01:27:31.305] Resolving globals: FALSE [01:27:31.305] [01:27:31.305] [01:27:31.305] getGlobalsAndPackages() ... DONE [01:27:31.306] run() for 'Future' ... [01:27:31.306] - state: 'created' [01:27:31.306] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [01:27:31.321] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:27:31.321] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [01:27:31.322] - Field: 'node' [01:27:31.322] - Field: 'label' [01:27:31.322] - Field: 'local' [01:27:31.322] - Field: 'owner' [01:27:31.322] - Field: 'envir' [01:27:31.323] - Field: 'workers' [01:27:31.323] - Field: 'packages' [01:27:31.323] - Field: 'gc' [01:27:31.323] - Field: 'conditions' [01:27:31.323] - Field: 'persistent' [01:27:31.323] - Field: 'expr' [01:27:31.324] - Field: 'uuid' [01:27:31.324] - Field: 'seed' [01:27:31.324] - Field: 'version' [01:27:31.324] - Field: 'result' [01:27:31.324] - Field: 'asynchronous' [01:27:31.325] - Field: 'calls' [01:27:31.325] - Field: 'globals' [01:27:31.325] - Field: 'stdout' [01:27:31.325] - Field: 'earlySignal' [01:27:31.325] - Field: 'lazy' [01:27:31.326] - Field: 'state' [01:27:31.326] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [01:27:31.326] - Launch lazy future ... [01:27:31.326] Packages needed by the future expression (n = 0): [01:27:31.327] Packages needed by future strategies (n = 0): [01:27:31.327] { [01:27:31.327] { [01:27:31.327] { [01:27:31.327] ...future.startTime <- base::Sys.time() [01:27:31.327] { [01:27:31.327] { [01:27:31.327] { [01:27:31.327] { [01:27:31.327] base::local({ [01:27:31.327] has_future <- base::requireNamespace("future", [01:27:31.327] quietly = TRUE) [01:27:31.327] if (has_future) { [01:27:31.327] ns <- base::getNamespace("future") [01:27:31.327] version <- ns[[".package"]][["version"]] [01:27:31.327] if (is.null(version)) [01:27:31.327] version <- utils::packageVersion("future") [01:27:31.327] } [01:27:31.327] else { [01:27:31.327] version <- NULL [01:27:31.327] } [01:27:31.327] if (!has_future || version < "1.8.0") { [01:27:31.327] info <- base::c(r_version = base::gsub("R version ", [01:27:31.327] "", base::R.version$version.string), [01:27:31.327] platform = base::sprintf("%s (%s-bit)", [01:27:31.327] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:31.327] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:31.327] "release", "version")], collapse = " "), [01:27:31.327] hostname = base::Sys.info()[["nodename"]]) [01:27:31.327] info <- base::sprintf("%s: %s", base::names(info), [01:27:31.327] info) [01:27:31.327] info <- base::paste(info, collapse = "; ") [01:27:31.327] if (!has_future) { [01:27:31.327] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:31.327] info) [01:27:31.327] } [01:27:31.327] else { [01:27:31.327] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:31.327] info, version) [01:27:31.327] } [01:27:31.327] base::stop(msg) [01:27:31.327] } [01:27:31.327] }) [01:27:31.327] } [01:27:31.327] ...future.mc.cores.old <- base::getOption("mc.cores") [01:27:31.327] base::options(mc.cores = 1L) [01:27:31.327] } [01:27:31.327] options(future.plan = NULL) [01:27:31.327] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.327] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:31.327] } [01:27:31.327] ...future.workdir <- getwd() [01:27:31.327] } [01:27:31.327] ...future.oldOptions <- base::as.list(base::.Options) [01:27:31.327] ...future.oldEnvVars <- base::Sys.getenv() [01:27:31.327] } [01:27:31.327] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:31.327] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:31.327] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:31.327] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:31.327] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:31.327] future.stdout.windows.reencode = NULL, width = 80L) [01:27:31.327] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:31.327] base::names(...future.oldOptions)) [01:27:31.327] } [01:27:31.327] if (FALSE) { [01:27:31.327] } [01:27:31.327] else { [01:27:31.327] if (TRUE) { [01:27:31.327] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:31.327] open = "w") [01:27:31.327] } [01:27:31.327] else { [01:27:31.327] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:31.327] windows = "NUL", "/dev/null"), open = "w") [01:27:31.327] } [01:27:31.327] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:31.327] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:31.327] base::sink(type = "output", split = FALSE) [01:27:31.327] base::close(...future.stdout) [01:27:31.327] }, add = TRUE) [01:27:31.327] } [01:27:31.327] ...future.frame <- base::sys.nframe() [01:27:31.327] ...future.conditions <- base::list() [01:27:31.327] ...future.rng <- base::globalenv()$.Random.seed [01:27:31.327] if (FALSE) { [01:27:31.327] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:31.327] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:31.327] } [01:27:31.327] ...future.result <- base::tryCatch({ [01:27:31.327] base::withCallingHandlers({ [01:27:31.327] ...future.value <- base::withVisible(base::local({ [01:27:31.327] ...future.makeSendCondition <- base::local({ [01:27:31.327] sendCondition <- NULL [01:27:31.327] function(frame = 1L) { [01:27:31.327] if (is.function(sendCondition)) [01:27:31.327] return(sendCondition) [01:27:31.327] ns <- getNamespace("parallel") [01:27:31.327] if (exists("sendData", mode = "function", [01:27:31.327] envir = ns)) { [01:27:31.327] parallel_sendData <- get("sendData", mode = "function", [01:27:31.327] envir = ns) [01:27:31.327] envir <- sys.frame(frame) [01:27:31.327] master <- NULL [01:27:31.327] while (!identical(envir, .GlobalEnv) && [01:27:31.327] !identical(envir, emptyenv())) { [01:27:31.327] if (exists("master", mode = "list", envir = envir, [01:27:31.327] inherits = FALSE)) { [01:27:31.327] master <- get("master", mode = "list", [01:27:31.327] envir = envir, inherits = FALSE) [01:27:31.327] if (inherits(master, c("SOCKnode", [01:27:31.327] "SOCK0node"))) { [01:27:31.327] sendCondition <<- function(cond) { [01:27:31.327] data <- list(type = "VALUE", value = cond, [01:27:31.327] success = TRUE) [01:27:31.327] parallel_sendData(master, data) [01:27:31.327] } [01:27:31.327] return(sendCondition) [01:27:31.327] } [01:27:31.327] } [01:27:31.327] frame <- frame + 1L [01:27:31.327] envir <- sys.frame(frame) [01:27:31.327] } [01:27:31.327] } [01:27:31.327] sendCondition <<- function(cond) NULL [01:27:31.327] } [01:27:31.327] }) [01:27:31.327] withCallingHandlers({ [01:27:31.327] { [01:27:31.327] 42 [01:27:31.327] } [01:27:31.327] }, immediateCondition = function(cond) { [01:27:31.327] sendCondition <- ...future.makeSendCondition() [01:27:31.327] sendCondition(cond) [01:27:31.327] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.327] { [01:27:31.327] inherits <- base::inherits [01:27:31.327] invokeRestart <- base::invokeRestart [01:27:31.327] is.null <- base::is.null [01:27:31.327] muffled <- FALSE [01:27:31.327] if (inherits(cond, "message")) { [01:27:31.327] muffled <- grepl(pattern, "muffleMessage") [01:27:31.327] if (muffled) [01:27:31.327] invokeRestart("muffleMessage") [01:27:31.327] } [01:27:31.327] else if (inherits(cond, "warning")) { [01:27:31.327] muffled <- grepl(pattern, "muffleWarning") [01:27:31.327] if (muffled) [01:27:31.327] invokeRestart("muffleWarning") [01:27:31.327] } [01:27:31.327] else if (inherits(cond, "condition")) { [01:27:31.327] if (!is.null(pattern)) { [01:27:31.327] computeRestarts <- base::computeRestarts [01:27:31.327] grepl <- base::grepl [01:27:31.327] restarts <- computeRestarts(cond) [01:27:31.327] for (restart in restarts) { [01:27:31.327] name <- restart$name [01:27:31.327] if (is.null(name)) [01:27:31.327] next [01:27:31.327] if (!grepl(pattern, name)) [01:27:31.327] next [01:27:31.327] invokeRestart(restart) [01:27:31.327] muffled <- TRUE [01:27:31.327] break [01:27:31.327] } [01:27:31.327] } [01:27:31.327] } [01:27:31.327] invisible(muffled) [01:27:31.327] } [01:27:31.327] muffleCondition(cond) [01:27:31.327] }) [01:27:31.327] })) [01:27:31.327] future::FutureResult(value = ...future.value$value, [01:27:31.327] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.327] ...future.rng), globalenv = if (FALSE) [01:27:31.327] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:31.327] ...future.globalenv.names)) [01:27:31.327] else NULL, started = ...future.startTime, version = "1.8") [01:27:31.327] }, condition = base::local({ [01:27:31.327] c <- base::c [01:27:31.327] inherits <- base::inherits [01:27:31.327] invokeRestart <- base::invokeRestart [01:27:31.327] length <- base::length [01:27:31.327] list <- base::list [01:27:31.327] seq.int <- base::seq.int [01:27:31.327] signalCondition <- base::signalCondition [01:27:31.327] sys.calls <- base::sys.calls [01:27:31.327] `[[` <- base::`[[` [01:27:31.327] `+` <- base::`+` [01:27:31.327] `<<-` <- base::`<<-` [01:27:31.327] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:31.327] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:31.327] 3L)] [01:27:31.327] } [01:27:31.327] function(cond) { [01:27:31.327] is_error <- inherits(cond, "error") [01:27:31.327] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:31.327] NULL) [01:27:31.327] if (is_error) { [01:27:31.327] sessionInformation <- function() { [01:27:31.327] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:31.327] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:31.327] search = base::search(), system = base::Sys.info()) [01:27:31.327] } [01:27:31.327] ...future.conditions[[length(...future.conditions) + [01:27:31.327] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:31.327] cond$call), session = sessionInformation(), [01:27:31.327] timestamp = base::Sys.time(), signaled = 0L) [01:27:31.327] signalCondition(cond) [01:27:31.327] } [01:27:31.327] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:31.327] "immediateCondition"))) { [01:27:31.327] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:31.327] ...future.conditions[[length(...future.conditions) + [01:27:31.327] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:31.327] if (TRUE && !signal) { [01:27:31.327] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.327] { [01:27:31.327] inherits <- base::inherits [01:27:31.327] invokeRestart <- base::invokeRestart [01:27:31.327] is.null <- base::is.null [01:27:31.327] muffled <- FALSE [01:27:31.327] if (inherits(cond, "message")) { [01:27:31.327] muffled <- grepl(pattern, "muffleMessage") [01:27:31.327] if (muffled) [01:27:31.327] invokeRestart("muffleMessage") [01:27:31.327] } [01:27:31.327] else if (inherits(cond, "warning")) { [01:27:31.327] muffled <- grepl(pattern, "muffleWarning") [01:27:31.327] if (muffled) [01:27:31.327] invokeRestart("muffleWarning") [01:27:31.327] } [01:27:31.327] else if (inherits(cond, "condition")) { [01:27:31.327] if (!is.null(pattern)) { [01:27:31.327] computeRestarts <- base::computeRestarts [01:27:31.327] grepl <- base::grepl [01:27:31.327] restarts <- computeRestarts(cond) [01:27:31.327] for (restart in restarts) { [01:27:31.327] name <- restart$name [01:27:31.327] if (is.null(name)) [01:27:31.327] next [01:27:31.327] if (!grepl(pattern, name)) [01:27:31.327] next [01:27:31.327] invokeRestart(restart) [01:27:31.327] muffled <- TRUE [01:27:31.327] break [01:27:31.327] } [01:27:31.327] } [01:27:31.327] } [01:27:31.327] invisible(muffled) [01:27:31.327] } [01:27:31.327] muffleCondition(cond, pattern = "^muffle") [01:27:31.327] } [01:27:31.327] } [01:27:31.327] else { [01:27:31.327] if (TRUE) { [01:27:31.327] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.327] { [01:27:31.327] inherits <- base::inherits [01:27:31.327] invokeRestart <- base::invokeRestart [01:27:31.327] is.null <- base::is.null [01:27:31.327] muffled <- FALSE [01:27:31.327] if (inherits(cond, "message")) { [01:27:31.327] muffled <- grepl(pattern, "muffleMessage") [01:27:31.327] if (muffled) [01:27:31.327] invokeRestart("muffleMessage") [01:27:31.327] } [01:27:31.327] else if (inherits(cond, "warning")) { [01:27:31.327] muffled <- grepl(pattern, "muffleWarning") [01:27:31.327] if (muffled) [01:27:31.327] invokeRestart("muffleWarning") [01:27:31.327] } [01:27:31.327] else if (inherits(cond, "condition")) { [01:27:31.327] if (!is.null(pattern)) { [01:27:31.327] computeRestarts <- base::computeRestarts [01:27:31.327] grepl <- base::grepl [01:27:31.327] restarts <- computeRestarts(cond) [01:27:31.327] for (restart in restarts) { [01:27:31.327] name <- restart$name [01:27:31.327] if (is.null(name)) [01:27:31.327] next [01:27:31.327] if (!grepl(pattern, name)) [01:27:31.327] next [01:27:31.327] invokeRestart(restart) [01:27:31.327] muffled <- TRUE [01:27:31.327] break [01:27:31.327] } [01:27:31.327] } [01:27:31.327] } [01:27:31.327] invisible(muffled) [01:27:31.327] } [01:27:31.327] muffleCondition(cond, pattern = "^muffle") [01:27:31.327] } [01:27:31.327] } [01:27:31.327] } [01:27:31.327] })) [01:27:31.327] }, error = function(ex) { [01:27:31.327] base::structure(base::list(value = NULL, visible = NULL, [01:27:31.327] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.327] ...future.rng), started = ...future.startTime, [01:27:31.327] finished = Sys.time(), session_uuid = NA_character_, [01:27:31.327] version = "1.8"), class = "FutureResult") [01:27:31.327] }, finally = { [01:27:31.327] if (!identical(...future.workdir, getwd())) [01:27:31.327] setwd(...future.workdir) [01:27:31.327] { [01:27:31.327] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:31.327] ...future.oldOptions$nwarnings <- NULL [01:27:31.327] } [01:27:31.327] base::options(...future.oldOptions) [01:27:31.327] if (.Platform$OS.type == "windows") { [01:27:31.327] old_names <- names(...future.oldEnvVars) [01:27:31.327] envs <- base::Sys.getenv() [01:27:31.327] names <- names(envs) [01:27:31.327] common <- intersect(names, old_names) [01:27:31.327] added <- setdiff(names, old_names) [01:27:31.327] removed <- setdiff(old_names, names) [01:27:31.327] changed <- common[...future.oldEnvVars[common] != [01:27:31.327] envs[common]] [01:27:31.327] NAMES <- toupper(changed) [01:27:31.327] args <- list() [01:27:31.327] for (kk in seq_along(NAMES)) { [01:27:31.327] name <- changed[[kk]] [01:27:31.327] NAME <- NAMES[[kk]] [01:27:31.327] if (name != NAME && is.element(NAME, old_names)) [01:27:31.327] next [01:27:31.327] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.327] } [01:27:31.327] NAMES <- toupper(added) [01:27:31.327] for (kk in seq_along(NAMES)) { [01:27:31.327] name <- added[[kk]] [01:27:31.327] NAME <- NAMES[[kk]] [01:27:31.327] if (name != NAME && is.element(NAME, old_names)) [01:27:31.327] next [01:27:31.327] args[[name]] <- "" [01:27:31.327] } [01:27:31.327] NAMES <- toupper(removed) [01:27:31.327] for (kk in seq_along(NAMES)) { [01:27:31.327] name <- removed[[kk]] [01:27:31.327] NAME <- NAMES[[kk]] [01:27:31.327] if (name != NAME && is.element(NAME, old_names)) [01:27:31.327] next [01:27:31.327] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.327] } [01:27:31.327] if (length(args) > 0) [01:27:31.327] base::do.call(base::Sys.setenv, args = args) [01:27:31.327] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:31.327] } [01:27:31.327] else { [01:27:31.327] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:31.327] } [01:27:31.327] { [01:27:31.327] if (base::length(...future.futureOptionsAdded) > [01:27:31.327] 0L) { [01:27:31.327] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:31.327] base::names(opts) <- ...future.futureOptionsAdded [01:27:31.327] base::options(opts) [01:27:31.327] } [01:27:31.327] { [01:27:31.327] { [01:27:31.327] base::options(mc.cores = ...future.mc.cores.old) [01:27:31.327] NULL [01:27:31.327] } [01:27:31.327] options(future.plan = NULL) [01:27:31.327] if (is.na(NA_character_)) [01:27:31.327] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.327] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:31.327] future::plan(list(function (..., workers = availableCores(), [01:27:31.327] lazy = FALSE, rscript_libs = .libPaths(), [01:27:31.327] envir = parent.frame()) [01:27:31.327] { [01:27:31.327] if (is.function(workers)) [01:27:31.327] workers <- workers() [01:27:31.327] workers <- structure(as.integer(workers), [01:27:31.327] class = class(workers)) [01:27:31.327] stop_if_not(length(workers) == 1, is.finite(workers), [01:27:31.327] workers >= 1) [01:27:31.327] if (workers == 1L && !inherits(workers, "AsIs")) { [01:27:31.327] return(sequential(..., lazy = TRUE, envir = envir)) [01:27:31.327] } [01:27:31.327] future <- MultisessionFuture(..., workers = workers, [01:27:31.327] lazy = lazy, rscript_libs = rscript_libs, [01:27:31.327] envir = envir) [01:27:31.327] if (!future$lazy) [01:27:31.327] future <- run(future) [01:27:31.327] invisible(future) [01:27:31.327] }), .cleanup = FALSE, .init = FALSE) [01:27:31.327] } [01:27:31.327] } [01:27:31.327] } [01:27:31.327] }) [01:27:31.327] if (TRUE) { [01:27:31.327] base::sink(type = "output", split = FALSE) [01:27:31.327] if (TRUE) { [01:27:31.327] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:31.327] } [01:27:31.327] else { [01:27:31.327] ...future.result["stdout"] <- base::list(NULL) [01:27:31.327] } [01:27:31.327] base::close(...future.stdout) [01:27:31.327] ...future.stdout <- NULL [01:27:31.327] } [01:27:31.327] ...future.result$conditions <- ...future.conditions [01:27:31.327] ...future.result$finished <- base::Sys.time() [01:27:31.327] ...future.result [01:27:31.327] } [01:27:31.333] MultisessionFuture started [01:27:31.333] - Launch lazy future ... done [01:27:31.334] 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) [01:27:31.349] receiveMessageFromWorker() for ClusterFuture ... [01:27:31.349] - Validating connection of MultisessionFuture [01:27:31.350] - received message: FutureResult [01:27:31.350] - Received FutureResult [01:27:31.350] - Erased future from FutureRegistry [01:27:31.350] result() for ClusterFuture ... [01:27:31.351] - result already collected: FutureResult [01:27:31.351] result() for ClusterFuture ... done [01:27:31.351] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: e4232549-d54c-8c10-35e3-92a27d17f6a9 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:27:31.351] result() for ClusterFuture ... [01:27:31.352] - result already collected: FutureResult [01:27:31.352] result() for ClusterFuture ... done [01:27:31.352] result() for ClusterFuture ... [01:27:31.352] - result already collected: FutureResult [01:27:31.352] result() for ClusterFuture ... done [01:27:31.355] getGlobalsAndPackages() ... [01:27:31.355] [01:27:31.355] - globals: [0] [01:27:31.355] getGlobalsAndPackages() ... DONE [01:27:31.370] Packages needed by the future expression (n = 0): [01:27:31.370] Packages needed by future strategies (n = 0): [01:27:31.371] { [01:27:31.371] { [01:27:31.371] { [01:27:31.371] ...future.startTime <- base::Sys.time() [01:27:31.371] { [01:27:31.371] { [01:27:31.371] { [01:27:31.371] { [01:27:31.371] base::local({ [01:27:31.371] has_future <- base::requireNamespace("future", [01:27:31.371] quietly = TRUE) [01:27:31.371] if (has_future) { [01:27:31.371] ns <- base::getNamespace("future") [01:27:31.371] version <- ns[[".package"]][["version"]] [01:27:31.371] if (is.null(version)) [01:27:31.371] version <- utils::packageVersion("future") [01:27:31.371] } [01:27:31.371] else { [01:27:31.371] version <- NULL [01:27:31.371] } [01:27:31.371] if (!has_future || version < "1.8.0") { [01:27:31.371] info <- base::c(r_version = base::gsub("R version ", [01:27:31.371] "", base::R.version$version.string), [01:27:31.371] platform = base::sprintf("%s (%s-bit)", [01:27:31.371] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:31.371] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:31.371] "release", "version")], collapse = " "), [01:27:31.371] hostname = base::Sys.info()[["nodename"]]) [01:27:31.371] info <- base::sprintf("%s: %s", base::names(info), [01:27:31.371] info) [01:27:31.371] info <- base::paste(info, collapse = "; ") [01:27:31.371] if (!has_future) { [01:27:31.371] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:31.371] info) [01:27:31.371] } [01:27:31.371] else { [01:27:31.371] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:31.371] info, version) [01:27:31.371] } [01:27:31.371] base::stop(msg) [01:27:31.371] } [01:27:31.371] }) [01:27:31.371] } [01:27:31.371] ...future.mc.cores.old <- base::getOption("mc.cores") [01:27:31.371] base::options(mc.cores = 1L) [01:27:31.371] } [01:27:31.371] options(future.plan = NULL) [01:27:31.371] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.371] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:31.371] } [01:27:31.371] ...future.workdir <- getwd() [01:27:31.371] } [01:27:31.371] ...future.oldOptions <- base::as.list(base::.Options) [01:27:31.371] ...future.oldEnvVars <- base::Sys.getenv() [01:27:31.371] } [01:27:31.371] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:31.371] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:31.371] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:31.371] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:31.371] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:31.371] future.stdout.windows.reencode = NULL, width = 80L) [01:27:31.371] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:31.371] base::names(...future.oldOptions)) [01:27:31.371] } [01:27:31.371] if (FALSE) { [01:27:31.371] } [01:27:31.371] else { [01:27:31.371] if (TRUE) { [01:27:31.371] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:31.371] open = "w") [01:27:31.371] } [01:27:31.371] else { [01:27:31.371] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:31.371] windows = "NUL", "/dev/null"), open = "w") [01:27:31.371] } [01:27:31.371] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:31.371] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:31.371] base::sink(type = "output", split = FALSE) [01:27:31.371] base::close(...future.stdout) [01:27:31.371] }, add = TRUE) [01:27:31.371] } [01:27:31.371] ...future.frame <- base::sys.nframe() [01:27:31.371] ...future.conditions <- base::list() [01:27:31.371] ...future.rng <- base::globalenv()$.Random.seed [01:27:31.371] if (FALSE) { [01:27:31.371] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:31.371] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:31.371] } [01:27:31.371] ...future.result <- base::tryCatch({ [01:27:31.371] base::withCallingHandlers({ [01:27:31.371] ...future.value <- base::withVisible(base::local({ [01:27:31.371] ...future.makeSendCondition <- base::local({ [01:27:31.371] sendCondition <- NULL [01:27:31.371] function(frame = 1L) { [01:27:31.371] if (is.function(sendCondition)) [01:27:31.371] return(sendCondition) [01:27:31.371] ns <- getNamespace("parallel") [01:27:31.371] if (exists("sendData", mode = "function", [01:27:31.371] envir = ns)) { [01:27:31.371] parallel_sendData <- get("sendData", mode = "function", [01:27:31.371] envir = ns) [01:27:31.371] envir <- sys.frame(frame) [01:27:31.371] master <- NULL [01:27:31.371] while (!identical(envir, .GlobalEnv) && [01:27:31.371] !identical(envir, emptyenv())) { [01:27:31.371] if (exists("master", mode = "list", envir = envir, [01:27:31.371] inherits = FALSE)) { [01:27:31.371] master <- get("master", mode = "list", [01:27:31.371] envir = envir, inherits = FALSE) [01:27:31.371] if (inherits(master, c("SOCKnode", [01:27:31.371] "SOCK0node"))) { [01:27:31.371] sendCondition <<- function(cond) { [01:27:31.371] data <- list(type = "VALUE", value = cond, [01:27:31.371] success = TRUE) [01:27:31.371] parallel_sendData(master, data) [01:27:31.371] } [01:27:31.371] return(sendCondition) [01:27:31.371] } [01:27:31.371] } [01:27:31.371] frame <- frame + 1L [01:27:31.371] envir <- sys.frame(frame) [01:27:31.371] } [01:27:31.371] } [01:27:31.371] sendCondition <<- function(cond) NULL [01:27:31.371] } [01:27:31.371] }) [01:27:31.371] withCallingHandlers({ [01:27:31.371] 42 [01:27:31.371] }, immediateCondition = function(cond) { [01:27:31.371] sendCondition <- ...future.makeSendCondition() [01:27:31.371] sendCondition(cond) [01:27:31.371] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.371] { [01:27:31.371] inherits <- base::inherits [01:27:31.371] invokeRestart <- base::invokeRestart [01:27:31.371] is.null <- base::is.null [01:27:31.371] muffled <- FALSE [01:27:31.371] if (inherits(cond, "message")) { [01:27:31.371] muffled <- grepl(pattern, "muffleMessage") [01:27:31.371] if (muffled) [01:27:31.371] invokeRestart("muffleMessage") [01:27:31.371] } [01:27:31.371] else if (inherits(cond, "warning")) { [01:27:31.371] muffled <- grepl(pattern, "muffleWarning") [01:27:31.371] if (muffled) [01:27:31.371] invokeRestart("muffleWarning") [01:27:31.371] } [01:27:31.371] else if (inherits(cond, "condition")) { [01:27:31.371] if (!is.null(pattern)) { [01:27:31.371] computeRestarts <- base::computeRestarts [01:27:31.371] grepl <- base::grepl [01:27:31.371] restarts <- computeRestarts(cond) [01:27:31.371] for (restart in restarts) { [01:27:31.371] name <- restart$name [01:27:31.371] if (is.null(name)) [01:27:31.371] next [01:27:31.371] if (!grepl(pattern, name)) [01:27:31.371] next [01:27:31.371] invokeRestart(restart) [01:27:31.371] muffled <- TRUE [01:27:31.371] break [01:27:31.371] } [01:27:31.371] } [01:27:31.371] } [01:27:31.371] invisible(muffled) [01:27:31.371] } [01:27:31.371] muffleCondition(cond) [01:27:31.371] }) [01:27:31.371] })) [01:27:31.371] future::FutureResult(value = ...future.value$value, [01:27:31.371] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.371] ...future.rng), globalenv = if (FALSE) [01:27:31.371] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:31.371] ...future.globalenv.names)) [01:27:31.371] else NULL, started = ...future.startTime, version = "1.8") [01:27:31.371] }, condition = base::local({ [01:27:31.371] c <- base::c [01:27:31.371] inherits <- base::inherits [01:27:31.371] invokeRestart <- base::invokeRestart [01:27:31.371] length <- base::length [01:27:31.371] list <- base::list [01:27:31.371] seq.int <- base::seq.int [01:27:31.371] signalCondition <- base::signalCondition [01:27:31.371] sys.calls <- base::sys.calls [01:27:31.371] `[[` <- base::`[[` [01:27:31.371] `+` <- base::`+` [01:27:31.371] `<<-` <- base::`<<-` [01:27:31.371] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:31.371] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:31.371] 3L)] [01:27:31.371] } [01:27:31.371] function(cond) { [01:27:31.371] is_error <- inherits(cond, "error") [01:27:31.371] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:31.371] NULL) [01:27:31.371] if (is_error) { [01:27:31.371] sessionInformation <- function() { [01:27:31.371] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:31.371] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:31.371] search = base::search(), system = base::Sys.info()) [01:27:31.371] } [01:27:31.371] ...future.conditions[[length(...future.conditions) + [01:27:31.371] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:31.371] cond$call), session = sessionInformation(), [01:27:31.371] timestamp = base::Sys.time(), signaled = 0L) [01:27:31.371] signalCondition(cond) [01:27:31.371] } [01:27:31.371] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:31.371] "immediateCondition"))) { [01:27:31.371] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:31.371] ...future.conditions[[length(...future.conditions) + [01:27:31.371] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:31.371] if (TRUE && !signal) { [01:27:31.371] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.371] { [01:27:31.371] inherits <- base::inherits [01:27:31.371] invokeRestart <- base::invokeRestart [01:27:31.371] is.null <- base::is.null [01:27:31.371] muffled <- FALSE [01:27:31.371] if (inherits(cond, "message")) { [01:27:31.371] muffled <- grepl(pattern, "muffleMessage") [01:27:31.371] if (muffled) [01:27:31.371] invokeRestart("muffleMessage") [01:27:31.371] } [01:27:31.371] else if (inherits(cond, "warning")) { [01:27:31.371] muffled <- grepl(pattern, "muffleWarning") [01:27:31.371] if (muffled) [01:27:31.371] invokeRestart("muffleWarning") [01:27:31.371] } [01:27:31.371] else if (inherits(cond, "condition")) { [01:27:31.371] if (!is.null(pattern)) { [01:27:31.371] computeRestarts <- base::computeRestarts [01:27:31.371] grepl <- base::grepl [01:27:31.371] restarts <- computeRestarts(cond) [01:27:31.371] for (restart in restarts) { [01:27:31.371] name <- restart$name [01:27:31.371] if (is.null(name)) [01:27:31.371] next [01:27:31.371] if (!grepl(pattern, name)) [01:27:31.371] next [01:27:31.371] invokeRestart(restart) [01:27:31.371] muffled <- TRUE [01:27:31.371] break [01:27:31.371] } [01:27:31.371] } [01:27:31.371] } [01:27:31.371] invisible(muffled) [01:27:31.371] } [01:27:31.371] muffleCondition(cond, pattern = "^muffle") [01:27:31.371] } [01:27:31.371] } [01:27:31.371] else { [01:27:31.371] if (TRUE) { [01:27:31.371] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.371] { [01:27:31.371] inherits <- base::inherits [01:27:31.371] invokeRestart <- base::invokeRestart [01:27:31.371] is.null <- base::is.null [01:27:31.371] muffled <- FALSE [01:27:31.371] if (inherits(cond, "message")) { [01:27:31.371] muffled <- grepl(pattern, "muffleMessage") [01:27:31.371] if (muffled) [01:27:31.371] invokeRestart("muffleMessage") [01:27:31.371] } [01:27:31.371] else if (inherits(cond, "warning")) { [01:27:31.371] muffled <- grepl(pattern, "muffleWarning") [01:27:31.371] if (muffled) [01:27:31.371] invokeRestart("muffleWarning") [01:27:31.371] } [01:27:31.371] else if (inherits(cond, "condition")) { [01:27:31.371] if (!is.null(pattern)) { [01:27:31.371] computeRestarts <- base::computeRestarts [01:27:31.371] grepl <- base::grepl [01:27:31.371] restarts <- computeRestarts(cond) [01:27:31.371] for (restart in restarts) { [01:27:31.371] name <- restart$name [01:27:31.371] if (is.null(name)) [01:27:31.371] next [01:27:31.371] if (!grepl(pattern, name)) [01:27:31.371] next [01:27:31.371] invokeRestart(restart) [01:27:31.371] muffled <- TRUE [01:27:31.371] break [01:27:31.371] } [01:27:31.371] } [01:27:31.371] } [01:27:31.371] invisible(muffled) [01:27:31.371] } [01:27:31.371] muffleCondition(cond, pattern = "^muffle") [01:27:31.371] } [01:27:31.371] } [01:27:31.371] } [01:27:31.371] })) [01:27:31.371] }, error = function(ex) { [01:27:31.371] base::structure(base::list(value = NULL, visible = NULL, [01:27:31.371] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.371] ...future.rng), started = ...future.startTime, [01:27:31.371] finished = Sys.time(), session_uuid = NA_character_, [01:27:31.371] version = "1.8"), class = "FutureResult") [01:27:31.371] }, finally = { [01:27:31.371] if (!identical(...future.workdir, getwd())) [01:27:31.371] setwd(...future.workdir) [01:27:31.371] { [01:27:31.371] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:31.371] ...future.oldOptions$nwarnings <- NULL [01:27:31.371] } [01:27:31.371] base::options(...future.oldOptions) [01:27:31.371] if (.Platform$OS.type == "windows") { [01:27:31.371] old_names <- names(...future.oldEnvVars) [01:27:31.371] envs <- base::Sys.getenv() [01:27:31.371] names <- names(envs) [01:27:31.371] common <- intersect(names, old_names) [01:27:31.371] added <- setdiff(names, old_names) [01:27:31.371] removed <- setdiff(old_names, names) [01:27:31.371] changed <- common[...future.oldEnvVars[common] != [01:27:31.371] envs[common]] [01:27:31.371] NAMES <- toupper(changed) [01:27:31.371] args <- list() [01:27:31.371] for (kk in seq_along(NAMES)) { [01:27:31.371] name <- changed[[kk]] [01:27:31.371] NAME <- NAMES[[kk]] [01:27:31.371] if (name != NAME && is.element(NAME, old_names)) [01:27:31.371] next [01:27:31.371] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.371] } [01:27:31.371] NAMES <- toupper(added) [01:27:31.371] for (kk in seq_along(NAMES)) { [01:27:31.371] name <- added[[kk]] [01:27:31.371] NAME <- NAMES[[kk]] [01:27:31.371] if (name != NAME && is.element(NAME, old_names)) [01:27:31.371] next [01:27:31.371] args[[name]] <- "" [01:27:31.371] } [01:27:31.371] NAMES <- toupper(removed) [01:27:31.371] for (kk in seq_along(NAMES)) { [01:27:31.371] name <- removed[[kk]] [01:27:31.371] NAME <- NAMES[[kk]] [01:27:31.371] if (name != NAME && is.element(NAME, old_names)) [01:27:31.371] next [01:27:31.371] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.371] } [01:27:31.371] if (length(args) > 0) [01:27:31.371] base::do.call(base::Sys.setenv, args = args) [01:27:31.371] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:31.371] } [01:27:31.371] else { [01:27:31.371] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:31.371] } [01:27:31.371] { [01:27:31.371] if (base::length(...future.futureOptionsAdded) > [01:27:31.371] 0L) { [01:27:31.371] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:31.371] base::names(opts) <- ...future.futureOptionsAdded [01:27:31.371] base::options(opts) [01:27:31.371] } [01:27:31.371] { [01:27:31.371] { [01:27:31.371] base::options(mc.cores = ...future.mc.cores.old) [01:27:31.371] NULL [01:27:31.371] } [01:27:31.371] options(future.plan = NULL) [01:27:31.371] if (is.na(NA_character_)) [01:27:31.371] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.371] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:31.371] future::plan(list(function (..., workers = availableCores(), [01:27:31.371] lazy = FALSE, rscript_libs = .libPaths(), [01:27:31.371] envir = parent.frame()) [01:27:31.371] { [01:27:31.371] if (is.function(workers)) [01:27:31.371] workers <- workers() [01:27:31.371] workers <- structure(as.integer(workers), [01:27:31.371] class = class(workers)) [01:27:31.371] stop_if_not(length(workers) == 1, is.finite(workers), [01:27:31.371] workers >= 1) [01:27:31.371] if (workers == 1L && !inherits(workers, "AsIs")) { [01:27:31.371] return(sequential(..., lazy = TRUE, envir = envir)) [01:27:31.371] } [01:27:31.371] future <- MultisessionFuture(..., workers = workers, [01:27:31.371] lazy = lazy, rscript_libs = rscript_libs, [01:27:31.371] envir = envir) [01:27:31.371] if (!future$lazy) [01:27:31.371] future <- run(future) [01:27:31.371] invisible(future) [01:27:31.371] }), .cleanup = FALSE, .init = FALSE) [01:27:31.371] } [01:27:31.371] } [01:27:31.371] } [01:27:31.371] }) [01:27:31.371] if (TRUE) { [01:27:31.371] base::sink(type = "output", split = FALSE) [01:27:31.371] if (TRUE) { [01:27:31.371] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:31.371] } [01:27:31.371] else { [01:27:31.371] ...future.result["stdout"] <- base::list(NULL) [01:27:31.371] } [01:27:31.371] base::close(...future.stdout) [01:27:31.371] ...future.stdout <- NULL [01:27:31.371] } [01:27:31.371] ...future.result$conditions <- ...future.conditions [01:27:31.371] ...future.result$finished <- base::Sys.time() [01:27:31.371] ...future.result [01:27:31.371] } [01:27:31.377] 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) [01:27:31.394] receiveMessageFromWorker() for ClusterFuture ... [01:27:31.394] - Validating connection of MultisessionFuture [01:27:31.395] - received message: FutureResult [01:27:31.395] - Received FutureResult [01:27:31.395] - Erased future from FutureRegistry [01:27:31.395] result() for ClusterFuture ... [01:27:31.395] - result already collected: FutureResult [01:27:31.396] result() for ClusterFuture ... done [01:27:31.396] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: e4232549-d54c-8c10-35e3-92a27d17f6a9 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:27:31.396] result() for ClusterFuture ... [01:27:31.396] - result already collected: FutureResult [01:27:31.396] result() for ClusterFuture ... done [01:27:31.397] result() for ClusterFuture ... [01:27:31.397] - result already collected: FutureResult [01:27:31.397] result() for ClusterFuture ... done [01:27:31.397] getGlobalsAndPackages() ... [01:27:31.397] Searching for globals... [01:27:31.398] [01:27:31.398] Searching for globals ... DONE [01:27:31.398] - globals: [0] [01:27:31.398] getGlobalsAndPackages() ... DONE [01:27:31.399] run() for 'Future' ... [01:27:31.399] - state: 'created' [01:27:31.399] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [01:27:31.413] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:27:31.414] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [01:27:31.414] - Field: 'node' [01:27:31.414] - Field: 'label' [01:27:31.414] - Field: 'local' [01:27:31.414] - Field: 'owner' [01:27:31.415] - Field: 'envir' [01:27:31.415] - Field: 'workers' [01:27:31.415] - Field: 'packages' [01:27:31.415] - Field: 'gc' [01:27:31.415] - Field: 'conditions' [01:27:31.416] - Field: 'persistent' [01:27:31.416] - Field: 'expr' [01:27:31.416] - Field: 'uuid' [01:27:31.416] - Field: 'seed' [01:27:31.416] - Field: 'version' [01:27:31.416] - Field: 'result' [01:27:31.417] - Field: 'asynchronous' [01:27:31.417] - Field: 'calls' [01:27:31.417] - Field: 'globals' [01:27:31.417] - Field: 'stdout' [01:27:31.417] - Field: 'earlySignal' [01:27:31.417] - Field: 'lazy' [01:27:31.418] - Field: 'state' [01:27:31.418] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [01:27:31.418] - Launch lazy future ... [01:27:31.418] Packages needed by the future expression (n = 0): [01:27:31.419] Packages needed by future strategies (n = 0): [01:27:31.419] { [01:27:31.419] { [01:27:31.419] { [01:27:31.419] ...future.startTime <- base::Sys.time() [01:27:31.419] { [01:27:31.419] { [01:27:31.419] { [01:27:31.419] { [01:27:31.419] base::local({ [01:27:31.419] has_future <- base::requireNamespace("future", [01:27:31.419] quietly = TRUE) [01:27:31.419] if (has_future) { [01:27:31.419] ns <- base::getNamespace("future") [01:27:31.419] version <- ns[[".package"]][["version"]] [01:27:31.419] if (is.null(version)) [01:27:31.419] version <- utils::packageVersion("future") [01:27:31.419] } [01:27:31.419] else { [01:27:31.419] version <- NULL [01:27:31.419] } [01:27:31.419] if (!has_future || version < "1.8.0") { [01:27:31.419] info <- base::c(r_version = base::gsub("R version ", [01:27:31.419] "", base::R.version$version.string), [01:27:31.419] platform = base::sprintf("%s (%s-bit)", [01:27:31.419] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:31.419] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:31.419] "release", "version")], collapse = " "), [01:27:31.419] hostname = base::Sys.info()[["nodename"]]) [01:27:31.419] info <- base::sprintf("%s: %s", base::names(info), [01:27:31.419] info) [01:27:31.419] info <- base::paste(info, collapse = "; ") [01:27:31.419] if (!has_future) { [01:27:31.419] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:31.419] info) [01:27:31.419] } [01:27:31.419] else { [01:27:31.419] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:31.419] info, version) [01:27:31.419] } [01:27:31.419] base::stop(msg) [01:27:31.419] } [01:27:31.419] }) [01:27:31.419] } [01:27:31.419] ...future.mc.cores.old <- base::getOption("mc.cores") [01:27:31.419] base::options(mc.cores = 1L) [01:27:31.419] } [01:27:31.419] options(future.plan = NULL) [01:27:31.419] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.419] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:31.419] } [01:27:31.419] ...future.workdir <- getwd() [01:27:31.419] } [01:27:31.419] ...future.oldOptions <- base::as.list(base::.Options) [01:27:31.419] ...future.oldEnvVars <- base::Sys.getenv() [01:27:31.419] } [01:27:31.419] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:31.419] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:31.419] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:31.419] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:31.419] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:31.419] future.stdout.windows.reencode = NULL, width = 80L) [01:27:31.419] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:31.419] base::names(...future.oldOptions)) [01:27:31.419] } [01:27:31.419] if (FALSE) { [01:27:31.419] } [01:27:31.419] else { [01:27:31.419] if (TRUE) { [01:27:31.419] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:31.419] open = "w") [01:27:31.419] } [01:27:31.419] else { [01:27:31.419] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:31.419] windows = "NUL", "/dev/null"), open = "w") [01:27:31.419] } [01:27:31.419] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:31.419] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:31.419] base::sink(type = "output", split = FALSE) [01:27:31.419] base::close(...future.stdout) [01:27:31.419] }, add = TRUE) [01:27:31.419] } [01:27:31.419] ...future.frame <- base::sys.nframe() [01:27:31.419] ...future.conditions <- base::list() [01:27:31.419] ...future.rng <- base::globalenv()$.Random.seed [01:27:31.419] if (FALSE) { [01:27:31.419] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:31.419] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:31.419] } [01:27:31.419] ...future.result <- base::tryCatch({ [01:27:31.419] base::withCallingHandlers({ [01:27:31.419] ...future.value <- base::withVisible(base::local({ [01:27:31.419] ...future.makeSendCondition <- base::local({ [01:27:31.419] sendCondition <- NULL [01:27:31.419] function(frame = 1L) { [01:27:31.419] if (is.function(sendCondition)) [01:27:31.419] return(sendCondition) [01:27:31.419] ns <- getNamespace("parallel") [01:27:31.419] if (exists("sendData", mode = "function", [01:27:31.419] envir = ns)) { [01:27:31.419] parallel_sendData <- get("sendData", mode = "function", [01:27:31.419] envir = ns) [01:27:31.419] envir <- sys.frame(frame) [01:27:31.419] master <- NULL [01:27:31.419] while (!identical(envir, .GlobalEnv) && [01:27:31.419] !identical(envir, emptyenv())) { [01:27:31.419] if (exists("master", mode = "list", envir = envir, [01:27:31.419] inherits = FALSE)) { [01:27:31.419] master <- get("master", mode = "list", [01:27:31.419] envir = envir, inherits = FALSE) [01:27:31.419] if (inherits(master, c("SOCKnode", [01:27:31.419] "SOCK0node"))) { [01:27:31.419] sendCondition <<- function(cond) { [01:27:31.419] data <- list(type = "VALUE", value = cond, [01:27:31.419] success = TRUE) [01:27:31.419] parallel_sendData(master, data) [01:27:31.419] } [01:27:31.419] return(sendCondition) [01:27:31.419] } [01:27:31.419] } [01:27:31.419] frame <- frame + 1L [01:27:31.419] envir <- sys.frame(frame) [01:27:31.419] } [01:27:31.419] } [01:27:31.419] sendCondition <<- function(cond) NULL [01:27:31.419] } [01:27:31.419] }) [01:27:31.419] withCallingHandlers({ [01:27:31.419] 42 [01:27:31.419] }, immediateCondition = function(cond) { [01:27:31.419] sendCondition <- ...future.makeSendCondition() [01:27:31.419] sendCondition(cond) [01:27:31.419] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.419] { [01:27:31.419] inherits <- base::inherits [01:27:31.419] invokeRestart <- base::invokeRestart [01:27:31.419] is.null <- base::is.null [01:27:31.419] muffled <- FALSE [01:27:31.419] if (inherits(cond, "message")) { [01:27:31.419] muffled <- grepl(pattern, "muffleMessage") [01:27:31.419] if (muffled) [01:27:31.419] invokeRestart("muffleMessage") [01:27:31.419] } [01:27:31.419] else if (inherits(cond, "warning")) { [01:27:31.419] muffled <- grepl(pattern, "muffleWarning") [01:27:31.419] if (muffled) [01:27:31.419] invokeRestart("muffleWarning") [01:27:31.419] } [01:27:31.419] else if (inherits(cond, "condition")) { [01:27:31.419] if (!is.null(pattern)) { [01:27:31.419] computeRestarts <- base::computeRestarts [01:27:31.419] grepl <- base::grepl [01:27:31.419] restarts <- computeRestarts(cond) [01:27:31.419] for (restart in restarts) { [01:27:31.419] name <- restart$name [01:27:31.419] if (is.null(name)) [01:27:31.419] next [01:27:31.419] if (!grepl(pattern, name)) [01:27:31.419] next [01:27:31.419] invokeRestart(restart) [01:27:31.419] muffled <- TRUE [01:27:31.419] break [01:27:31.419] } [01:27:31.419] } [01:27:31.419] } [01:27:31.419] invisible(muffled) [01:27:31.419] } [01:27:31.419] muffleCondition(cond) [01:27:31.419] }) [01:27:31.419] })) [01:27:31.419] future::FutureResult(value = ...future.value$value, [01:27:31.419] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.419] ...future.rng), globalenv = if (FALSE) [01:27:31.419] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:31.419] ...future.globalenv.names)) [01:27:31.419] else NULL, started = ...future.startTime, version = "1.8") [01:27:31.419] }, condition = base::local({ [01:27:31.419] c <- base::c [01:27:31.419] inherits <- base::inherits [01:27:31.419] invokeRestart <- base::invokeRestart [01:27:31.419] length <- base::length [01:27:31.419] list <- base::list [01:27:31.419] seq.int <- base::seq.int [01:27:31.419] signalCondition <- base::signalCondition [01:27:31.419] sys.calls <- base::sys.calls [01:27:31.419] `[[` <- base::`[[` [01:27:31.419] `+` <- base::`+` [01:27:31.419] `<<-` <- base::`<<-` [01:27:31.419] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:31.419] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:31.419] 3L)] [01:27:31.419] } [01:27:31.419] function(cond) { [01:27:31.419] is_error <- inherits(cond, "error") [01:27:31.419] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:31.419] NULL) [01:27:31.419] if (is_error) { [01:27:31.419] sessionInformation <- function() { [01:27:31.419] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:31.419] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:31.419] search = base::search(), system = base::Sys.info()) [01:27:31.419] } [01:27:31.419] ...future.conditions[[length(...future.conditions) + [01:27:31.419] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:31.419] cond$call), session = sessionInformation(), [01:27:31.419] timestamp = base::Sys.time(), signaled = 0L) [01:27:31.419] signalCondition(cond) [01:27:31.419] } [01:27:31.419] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:31.419] "immediateCondition"))) { [01:27:31.419] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:31.419] ...future.conditions[[length(...future.conditions) + [01:27:31.419] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:31.419] if (TRUE && !signal) { [01:27:31.419] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.419] { [01:27:31.419] inherits <- base::inherits [01:27:31.419] invokeRestart <- base::invokeRestart [01:27:31.419] is.null <- base::is.null [01:27:31.419] muffled <- FALSE [01:27:31.419] if (inherits(cond, "message")) { [01:27:31.419] muffled <- grepl(pattern, "muffleMessage") [01:27:31.419] if (muffled) [01:27:31.419] invokeRestart("muffleMessage") [01:27:31.419] } [01:27:31.419] else if (inherits(cond, "warning")) { [01:27:31.419] muffled <- grepl(pattern, "muffleWarning") [01:27:31.419] if (muffled) [01:27:31.419] invokeRestart("muffleWarning") [01:27:31.419] } [01:27:31.419] else if (inherits(cond, "condition")) { [01:27:31.419] if (!is.null(pattern)) { [01:27:31.419] computeRestarts <- base::computeRestarts [01:27:31.419] grepl <- base::grepl [01:27:31.419] restarts <- computeRestarts(cond) [01:27:31.419] for (restart in restarts) { [01:27:31.419] name <- restart$name [01:27:31.419] if (is.null(name)) [01:27:31.419] next [01:27:31.419] if (!grepl(pattern, name)) [01:27:31.419] next [01:27:31.419] invokeRestart(restart) [01:27:31.419] muffled <- TRUE [01:27:31.419] break [01:27:31.419] } [01:27:31.419] } [01:27:31.419] } [01:27:31.419] invisible(muffled) [01:27:31.419] } [01:27:31.419] muffleCondition(cond, pattern = "^muffle") [01:27:31.419] } [01:27:31.419] } [01:27:31.419] else { [01:27:31.419] if (TRUE) { [01:27:31.419] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.419] { [01:27:31.419] inherits <- base::inherits [01:27:31.419] invokeRestart <- base::invokeRestart [01:27:31.419] is.null <- base::is.null [01:27:31.419] muffled <- FALSE [01:27:31.419] if (inherits(cond, "message")) { [01:27:31.419] muffled <- grepl(pattern, "muffleMessage") [01:27:31.419] if (muffled) [01:27:31.419] invokeRestart("muffleMessage") [01:27:31.419] } [01:27:31.419] else if (inherits(cond, "warning")) { [01:27:31.419] muffled <- grepl(pattern, "muffleWarning") [01:27:31.419] if (muffled) [01:27:31.419] invokeRestart("muffleWarning") [01:27:31.419] } [01:27:31.419] else if (inherits(cond, "condition")) { [01:27:31.419] if (!is.null(pattern)) { [01:27:31.419] computeRestarts <- base::computeRestarts [01:27:31.419] grepl <- base::grepl [01:27:31.419] restarts <- computeRestarts(cond) [01:27:31.419] for (restart in restarts) { [01:27:31.419] name <- restart$name [01:27:31.419] if (is.null(name)) [01:27:31.419] next [01:27:31.419] if (!grepl(pattern, name)) [01:27:31.419] next [01:27:31.419] invokeRestart(restart) [01:27:31.419] muffled <- TRUE [01:27:31.419] break [01:27:31.419] } [01:27:31.419] } [01:27:31.419] } [01:27:31.419] invisible(muffled) [01:27:31.419] } [01:27:31.419] muffleCondition(cond, pattern = "^muffle") [01:27:31.419] } [01:27:31.419] } [01:27:31.419] } [01:27:31.419] })) [01:27:31.419] }, error = function(ex) { [01:27:31.419] base::structure(base::list(value = NULL, visible = NULL, [01:27:31.419] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.419] ...future.rng), started = ...future.startTime, [01:27:31.419] finished = Sys.time(), session_uuid = NA_character_, [01:27:31.419] version = "1.8"), class = "FutureResult") [01:27:31.419] }, finally = { [01:27:31.419] if (!identical(...future.workdir, getwd())) [01:27:31.419] setwd(...future.workdir) [01:27:31.419] { [01:27:31.419] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:31.419] ...future.oldOptions$nwarnings <- NULL [01:27:31.419] } [01:27:31.419] base::options(...future.oldOptions) [01:27:31.419] if (.Platform$OS.type == "windows") { [01:27:31.419] old_names <- names(...future.oldEnvVars) [01:27:31.419] envs <- base::Sys.getenv() [01:27:31.419] names <- names(envs) [01:27:31.419] common <- intersect(names, old_names) [01:27:31.419] added <- setdiff(names, old_names) [01:27:31.419] removed <- setdiff(old_names, names) [01:27:31.419] changed <- common[...future.oldEnvVars[common] != [01:27:31.419] envs[common]] [01:27:31.419] NAMES <- toupper(changed) [01:27:31.419] args <- list() [01:27:31.419] for (kk in seq_along(NAMES)) { [01:27:31.419] name <- changed[[kk]] [01:27:31.419] NAME <- NAMES[[kk]] [01:27:31.419] if (name != NAME && is.element(NAME, old_names)) [01:27:31.419] next [01:27:31.419] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.419] } [01:27:31.419] NAMES <- toupper(added) [01:27:31.419] for (kk in seq_along(NAMES)) { [01:27:31.419] name <- added[[kk]] [01:27:31.419] NAME <- NAMES[[kk]] [01:27:31.419] if (name != NAME && is.element(NAME, old_names)) [01:27:31.419] next [01:27:31.419] args[[name]] <- "" [01:27:31.419] } [01:27:31.419] NAMES <- toupper(removed) [01:27:31.419] for (kk in seq_along(NAMES)) { [01:27:31.419] name <- removed[[kk]] [01:27:31.419] NAME <- NAMES[[kk]] [01:27:31.419] if (name != NAME && is.element(NAME, old_names)) [01:27:31.419] next [01:27:31.419] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.419] } [01:27:31.419] if (length(args) > 0) [01:27:31.419] base::do.call(base::Sys.setenv, args = args) [01:27:31.419] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:31.419] } [01:27:31.419] else { [01:27:31.419] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:31.419] } [01:27:31.419] { [01:27:31.419] if (base::length(...future.futureOptionsAdded) > [01:27:31.419] 0L) { [01:27:31.419] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:31.419] base::names(opts) <- ...future.futureOptionsAdded [01:27:31.419] base::options(opts) [01:27:31.419] } [01:27:31.419] { [01:27:31.419] { [01:27:31.419] base::options(mc.cores = ...future.mc.cores.old) [01:27:31.419] NULL [01:27:31.419] } [01:27:31.419] options(future.plan = NULL) [01:27:31.419] if (is.na(NA_character_)) [01:27:31.419] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.419] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:31.419] future::plan(list(function (..., workers = availableCores(), [01:27:31.419] lazy = FALSE, rscript_libs = .libPaths(), [01:27:31.419] envir = parent.frame()) [01:27:31.419] { [01:27:31.419] if (is.function(workers)) [01:27:31.419] workers <- workers() [01:27:31.419] workers <- structure(as.integer(workers), [01:27:31.419] class = class(workers)) [01:27:31.419] stop_if_not(length(workers) == 1, is.finite(workers), [01:27:31.419] workers >= 1) [01:27:31.419] if (workers == 1L && !inherits(workers, "AsIs")) { [01:27:31.419] return(sequential(..., lazy = TRUE, envir = envir)) [01:27:31.419] } [01:27:31.419] future <- MultisessionFuture(..., workers = workers, [01:27:31.419] lazy = lazy, rscript_libs = rscript_libs, [01:27:31.419] envir = envir) [01:27:31.419] if (!future$lazy) [01:27:31.419] future <- run(future) [01:27:31.419] invisible(future) [01:27:31.419] }), .cleanup = FALSE, .init = FALSE) [01:27:31.419] } [01:27:31.419] } [01:27:31.419] } [01:27:31.419] }) [01:27:31.419] if (TRUE) { [01:27:31.419] base::sink(type = "output", split = FALSE) [01:27:31.419] if (TRUE) { [01:27:31.419] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:31.419] } [01:27:31.419] else { [01:27:31.419] ...future.result["stdout"] <- base::list(NULL) [01:27:31.419] } [01:27:31.419] base::close(...future.stdout) [01:27:31.419] ...future.stdout <- NULL [01:27:31.419] } [01:27:31.419] ...future.result$conditions <- ...future.conditions [01:27:31.419] ...future.result$finished <- base::Sys.time() [01:27:31.419] ...future.result [01:27:31.419] } [01:27:31.425] MultisessionFuture started [01:27:31.425] - Launch lazy future ... done [01:27:31.425] 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) [01:27:31.440] receiveMessageFromWorker() for ClusterFuture ... [01:27:31.441] - Validating connection of MultisessionFuture [01:27:31.441] - received message: FutureResult [01:27:31.441] - Received FutureResult [01:27:31.441] - Erased future from FutureRegistry [01:27:31.441] result() for ClusterFuture ... [01:27:31.442] - result already collected: FutureResult [01:27:31.442] result() for ClusterFuture ... done [01:27:31.442] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: e4232549-d54c-8c10-35e3-92a27d17f6a9 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:27:31.442] result() for ClusterFuture ... [01:27:31.442] - result already collected: FutureResult [01:27:31.442] result() for ClusterFuture ... done [01:27:31.443] result() for ClusterFuture ... [01:27:31.443] - result already collected: FutureResult [01:27:31.443] result() for ClusterFuture ... done [01:27:31.443] getGlobalsAndPackages() ... [01:27:31.444] Searching for globals... [01:27:31.444] - globals found: [1] '{' [01:27:31.445] Searching for globals ... DONE [01:27:31.445] Resolving globals: FALSE [01:27:31.445] [01:27:31.445] [01:27:31.445] getGlobalsAndPackages() ... DONE [01:27:31.446] run() for 'Future' ... [01:27:31.446] - state: 'created' [01:27:31.446] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [01:27:31.460] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:27:31.460] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [01:27:31.461] - Field: 'node' [01:27:31.461] - Field: 'label' [01:27:31.461] - Field: 'local' [01:27:31.461] - Field: 'owner' [01:27:31.461] - Field: 'envir' [01:27:31.462] - Field: 'workers' [01:27:31.462] - Field: 'packages' [01:27:31.462] - Field: 'gc' [01:27:31.462] - Field: 'conditions' [01:27:31.462] - Field: 'persistent' [01:27:31.462] - Field: 'expr' [01:27:31.463] - Field: 'uuid' [01:27:31.463] - Field: 'seed' [01:27:31.463] - Field: 'version' [01:27:31.463] - Field: 'result' [01:27:31.463] - Field: 'asynchronous' [01:27:31.464] - Field: 'calls' [01:27:31.464] - Field: 'globals' [01:27:31.464] - Field: 'stdout' [01:27:31.464] - Field: 'earlySignal' [01:27:31.464] - Field: 'lazy' [01:27:31.464] - Field: 'state' [01:27:31.465] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [01:27:31.465] - Launch lazy future ... [01:27:31.465] Packages needed by the future expression (n = 0): [01:27:31.465] Packages needed by future strategies (n = 0): [01:27:31.466] { [01:27:31.466] { [01:27:31.466] { [01:27:31.466] ...future.startTime <- base::Sys.time() [01:27:31.466] { [01:27:31.466] { [01:27:31.466] { [01:27:31.466] { [01:27:31.466] base::local({ [01:27:31.466] has_future <- base::requireNamespace("future", [01:27:31.466] quietly = TRUE) [01:27:31.466] if (has_future) { [01:27:31.466] ns <- base::getNamespace("future") [01:27:31.466] version <- ns[[".package"]][["version"]] [01:27:31.466] if (is.null(version)) [01:27:31.466] version <- utils::packageVersion("future") [01:27:31.466] } [01:27:31.466] else { [01:27:31.466] version <- NULL [01:27:31.466] } [01:27:31.466] if (!has_future || version < "1.8.0") { [01:27:31.466] info <- base::c(r_version = base::gsub("R version ", [01:27:31.466] "", base::R.version$version.string), [01:27:31.466] platform = base::sprintf("%s (%s-bit)", [01:27:31.466] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:31.466] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:31.466] "release", "version")], collapse = " "), [01:27:31.466] hostname = base::Sys.info()[["nodename"]]) [01:27:31.466] info <- base::sprintf("%s: %s", base::names(info), [01:27:31.466] info) [01:27:31.466] info <- base::paste(info, collapse = "; ") [01:27:31.466] if (!has_future) { [01:27:31.466] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:31.466] info) [01:27:31.466] } [01:27:31.466] else { [01:27:31.466] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:31.466] info, version) [01:27:31.466] } [01:27:31.466] base::stop(msg) [01:27:31.466] } [01:27:31.466] }) [01:27:31.466] } [01:27:31.466] ...future.mc.cores.old <- base::getOption("mc.cores") [01:27:31.466] base::options(mc.cores = 1L) [01:27:31.466] } [01:27:31.466] options(future.plan = NULL) [01:27:31.466] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.466] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:31.466] } [01:27:31.466] ...future.workdir <- getwd() [01:27:31.466] } [01:27:31.466] ...future.oldOptions <- base::as.list(base::.Options) [01:27:31.466] ...future.oldEnvVars <- base::Sys.getenv() [01:27:31.466] } [01:27:31.466] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:31.466] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:31.466] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:31.466] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:31.466] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:31.466] future.stdout.windows.reencode = NULL, width = 80L) [01:27:31.466] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:31.466] base::names(...future.oldOptions)) [01:27:31.466] } [01:27:31.466] if (FALSE) { [01:27:31.466] } [01:27:31.466] else { [01:27:31.466] if (TRUE) { [01:27:31.466] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:31.466] open = "w") [01:27:31.466] } [01:27:31.466] else { [01:27:31.466] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:31.466] windows = "NUL", "/dev/null"), open = "w") [01:27:31.466] } [01:27:31.466] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:31.466] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:31.466] base::sink(type = "output", split = FALSE) [01:27:31.466] base::close(...future.stdout) [01:27:31.466] }, add = TRUE) [01:27:31.466] } [01:27:31.466] ...future.frame <- base::sys.nframe() [01:27:31.466] ...future.conditions <- base::list() [01:27:31.466] ...future.rng <- base::globalenv()$.Random.seed [01:27:31.466] if (FALSE) { [01:27:31.466] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:31.466] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:31.466] } [01:27:31.466] ...future.result <- base::tryCatch({ [01:27:31.466] base::withCallingHandlers({ [01:27:31.466] ...future.value <- base::withVisible(base::local({ [01:27:31.466] ...future.makeSendCondition <- base::local({ [01:27:31.466] sendCondition <- NULL [01:27:31.466] function(frame = 1L) { [01:27:31.466] if (is.function(sendCondition)) [01:27:31.466] return(sendCondition) [01:27:31.466] ns <- getNamespace("parallel") [01:27:31.466] if (exists("sendData", mode = "function", [01:27:31.466] envir = ns)) { [01:27:31.466] parallel_sendData <- get("sendData", mode = "function", [01:27:31.466] envir = ns) [01:27:31.466] envir <- sys.frame(frame) [01:27:31.466] master <- NULL [01:27:31.466] while (!identical(envir, .GlobalEnv) && [01:27:31.466] !identical(envir, emptyenv())) { [01:27:31.466] if (exists("master", mode = "list", envir = envir, [01:27:31.466] inherits = FALSE)) { [01:27:31.466] master <- get("master", mode = "list", [01:27:31.466] envir = envir, inherits = FALSE) [01:27:31.466] if (inherits(master, c("SOCKnode", [01:27:31.466] "SOCK0node"))) { [01:27:31.466] sendCondition <<- function(cond) { [01:27:31.466] data <- list(type = "VALUE", value = cond, [01:27:31.466] success = TRUE) [01:27:31.466] parallel_sendData(master, data) [01:27:31.466] } [01:27:31.466] return(sendCondition) [01:27:31.466] } [01:27:31.466] } [01:27:31.466] frame <- frame + 1L [01:27:31.466] envir <- sys.frame(frame) [01:27:31.466] } [01:27:31.466] } [01:27:31.466] sendCondition <<- function(cond) NULL [01:27:31.466] } [01:27:31.466] }) [01:27:31.466] withCallingHandlers({ [01:27:31.466] { [01:27:31.466] 42 [01:27:31.466] } [01:27:31.466] }, immediateCondition = function(cond) { [01:27:31.466] sendCondition <- ...future.makeSendCondition() [01:27:31.466] sendCondition(cond) [01:27:31.466] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.466] { [01:27:31.466] inherits <- base::inherits [01:27:31.466] invokeRestart <- base::invokeRestart [01:27:31.466] is.null <- base::is.null [01:27:31.466] muffled <- FALSE [01:27:31.466] if (inherits(cond, "message")) { [01:27:31.466] muffled <- grepl(pattern, "muffleMessage") [01:27:31.466] if (muffled) [01:27:31.466] invokeRestart("muffleMessage") [01:27:31.466] } [01:27:31.466] else if (inherits(cond, "warning")) { [01:27:31.466] muffled <- grepl(pattern, "muffleWarning") [01:27:31.466] if (muffled) [01:27:31.466] invokeRestart("muffleWarning") [01:27:31.466] } [01:27:31.466] else if (inherits(cond, "condition")) { [01:27:31.466] if (!is.null(pattern)) { [01:27:31.466] computeRestarts <- base::computeRestarts [01:27:31.466] grepl <- base::grepl [01:27:31.466] restarts <- computeRestarts(cond) [01:27:31.466] for (restart in restarts) { [01:27:31.466] name <- restart$name [01:27:31.466] if (is.null(name)) [01:27:31.466] next [01:27:31.466] if (!grepl(pattern, name)) [01:27:31.466] next [01:27:31.466] invokeRestart(restart) [01:27:31.466] muffled <- TRUE [01:27:31.466] break [01:27:31.466] } [01:27:31.466] } [01:27:31.466] } [01:27:31.466] invisible(muffled) [01:27:31.466] } [01:27:31.466] muffleCondition(cond) [01:27:31.466] }) [01:27:31.466] })) [01:27:31.466] future::FutureResult(value = ...future.value$value, [01:27:31.466] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.466] ...future.rng), globalenv = if (FALSE) [01:27:31.466] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:31.466] ...future.globalenv.names)) [01:27:31.466] else NULL, started = ...future.startTime, version = "1.8") [01:27:31.466] }, condition = base::local({ [01:27:31.466] c <- base::c [01:27:31.466] inherits <- base::inherits [01:27:31.466] invokeRestart <- base::invokeRestart [01:27:31.466] length <- base::length [01:27:31.466] list <- base::list [01:27:31.466] seq.int <- base::seq.int [01:27:31.466] signalCondition <- base::signalCondition [01:27:31.466] sys.calls <- base::sys.calls [01:27:31.466] `[[` <- base::`[[` [01:27:31.466] `+` <- base::`+` [01:27:31.466] `<<-` <- base::`<<-` [01:27:31.466] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:31.466] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:31.466] 3L)] [01:27:31.466] } [01:27:31.466] function(cond) { [01:27:31.466] is_error <- inherits(cond, "error") [01:27:31.466] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:31.466] NULL) [01:27:31.466] if (is_error) { [01:27:31.466] sessionInformation <- function() { [01:27:31.466] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:31.466] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:31.466] search = base::search(), system = base::Sys.info()) [01:27:31.466] } [01:27:31.466] ...future.conditions[[length(...future.conditions) + [01:27:31.466] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:31.466] cond$call), session = sessionInformation(), [01:27:31.466] timestamp = base::Sys.time(), signaled = 0L) [01:27:31.466] signalCondition(cond) [01:27:31.466] } [01:27:31.466] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:31.466] "immediateCondition"))) { [01:27:31.466] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:31.466] ...future.conditions[[length(...future.conditions) + [01:27:31.466] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:31.466] if (TRUE && !signal) { [01:27:31.466] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.466] { [01:27:31.466] inherits <- base::inherits [01:27:31.466] invokeRestart <- base::invokeRestart [01:27:31.466] is.null <- base::is.null [01:27:31.466] muffled <- FALSE [01:27:31.466] if (inherits(cond, "message")) { [01:27:31.466] muffled <- grepl(pattern, "muffleMessage") [01:27:31.466] if (muffled) [01:27:31.466] invokeRestart("muffleMessage") [01:27:31.466] } [01:27:31.466] else if (inherits(cond, "warning")) { [01:27:31.466] muffled <- grepl(pattern, "muffleWarning") [01:27:31.466] if (muffled) [01:27:31.466] invokeRestart("muffleWarning") [01:27:31.466] } [01:27:31.466] else if (inherits(cond, "condition")) { [01:27:31.466] if (!is.null(pattern)) { [01:27:31.466] computeRestarts <- base::computeRestarts [01:27:31.466] grepl <- base::grepl [01:27:31.466] restarts <- computeRestarts(cond) [01:27:31.466] for (restart in restarts) { [01:27:31.466] name <- restart$name [01:27:31.466] if (is.null(name)) [01:27:31.466] next [01:27:31.466] if (!grepl(pattern, name)) [01:27:31.466] next [01:27:31.466] invokeRestart(restart) [01:27:31.466] muffled <- TRUE [01:27:31.466] break [01:27:31.466] } [01:27:31.466] } [01:27:31.466] } [01:27:31.466] invisible(muffled) [01:27:31.466] } [01:27:31.466] muffleCondition(cond, pattern = "^muffle") [01:27:31.466] } [01:27:31.466] } [01:27:31.466] else { [01:27:31.466] if (TRUE) { [01:27:31.466] muffleCondition <- function (cond, pattern = "^muffle") [01:27:31.466] { [01:27:31.466] inherits <- base::inherits [01:27:31.466] invokeRestart <- base::invokeRestart [01:27:31.466] is.null <- base::is.null [01:27:31.466] muffled <- FALSE [01:27:31.466] if (inherits(cond, "message")) { [01:27:31.466] muffled <- grepl(pattern, "muffleMessage") [01:27:31.466] if (muffled) [01:27:31.466] invokeRestart("muffleMessage") [01:27:31.466] } [01:27:31.466] else if (inherits(cond, "warning")) { [01:27:31.466] muffled <- grepl(pattern, "muffleWarning") [01:27:31.466] if (muffled) [01:27:31.466] invokeRestart("muffleWarning") [01:27:31.466] } [01:27:31.466] else if (inherits(cond, "condition")) { [01:27:31.466] if (!is.null(pattern)) { [01:27:31.466] computeRestarts <- base::computeRestarts [01:27:31.466] grepl <- base::grepl [01:27:31.466] restarts <- computeRestarts(cond) [01:27:31.466] for (restart in restarts) { [01:27:31.466] name <- restart$name [01:27:31.466] if (is.null(name)) [01:27:31.466] next [01:27:31.466] if (!grepl(pattern, name)) [01:27:31.466] next [01:27:31.466] invokeRestart(restart) [01:27:31.466] muffled <- TRUE [01:27:31.466] break [01:27:31.466] } [01:27:31.466] } [01:27:31.466] } [01:27:31.466] invisible(muffled) [01:27:31.466] } [01:27:31.466] muffleCondition(cond, pattern = "^muffle") [01:27:31.466] } [01:27:31.466] } [01:27:31.466] } [01:27:31.466] })) [01:27:31.466] }, error = function(ex) { [01:27:31.466] base::structure(base::list(value = NULL, visible = NULL, [01:27:31.466] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:31.466] ...future.rng), started = ...future.startTime, [01:27:31.466] finished = Sys.time(), session_uuid = NA_character_, [01:27:31.466] version = "1.8"), class = "FutureResult") [01:27:31.466] }, finally = { [01:27:31.466] if (!identical(...future.workdir, getwd())) [01:27:31.466] setwd(...future.workdir) [01:27:31.466] { [01:27:31.466] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:31.466] ...future.oldOptions$nwarnings <- NULL [01:27:31.466] } [01:27:31.466] base::options(...future.oldOptions) [01:27:31.466] if (.Platform$OS.type == "windows") { [01:27:31.466] old_names <- names(...future.oldEnvVars) [01:27:31.466] envs <- base::Sys.getenv() [01:27:31.466] names <- names(envs) [01:27:31.466] common <- intersect(names, old_names) [01:27:31.466] added <- setdiff(names, old_names) [01:27:31.466] removed <- setdiff(old_names, names) [01:27:31.466] changed <- common[...future.oldEnvVars[common] != [01:27:31.466] envs[common]] [01:27:31.466] NAMES <- toupper(changed) [01:27:31.466] args <- list() [01:27:31.466] for (kk in seq_along(NAMES)) { [01:27:31.466] name <- changed[[kk]] [01:27:31.466] NAME <- NAMES[[kk]] [01:27:31.466] if (name != NAME && is.element(NAME, old_names)) [01:27:31.466] next [01:27:31.466] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.466] } [01:27:31.466] NAMES <- toupper(added) [01:27:31.466] for (kk in seq_along(NAMES)) { [01:27:31.466] name <- added[[kk]] [01:27:31.466] NAME <- NAMES[[kk]] [01:27:31.466] if (name != NAME && is.element(NAME, old_names)) [01:27:31.466] next [01:27:31.466] args[[name]] <- "" [01:27:31.466] } [01:27:31.466] NAMES <- toupper(removed) [01:27:31.466] for (kk in seq_along(NAMES)) { [01:27:31.466] name <- removed[[kk]] [01:27:31.466] NAME <- NAMES[[kk]] [01:27:31.466] if (name != NAME && is.element(NAME, old_names)) [01:27:31.466] next [01:27:31.466] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:31.466] } [01:27:31.466] if (length(args) > 0) [01:27:31.466] base::do.call(base::Sys.setenv, args = args) [01:27:31.466] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:31.466] } [01:27:31.466] else { [01:27:31.466] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:31.466] } [01:27:31.466] { [01:27:31.466] if (base::length(...future.futureOptionsAdded) > [01:27:31.466] 0L) { [01:27:31.466] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:31.466] base::names(opts) <- ...future.futureOptionsAdded [01:27:31.466] base::options(opts) [01:27:31.466] } [01:27:31.466] { [01:27:31.466] { [01:27:31.466] base::options(mc.cores = ...future.mc.cores.old) [01:27:31.466] NULL [01:27:31.466] } [01:27:31.466] options(future.plan = NULL) [01:27:31.466] if (is.na(NA_character_)) [01:27:31.466] Sys.unsetenv("R_FUTURE_PLAN") [01:27:31.466] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:31.466] future::plan(list(function (..., workers = availableCores(), [01:27:31.466] lazy = FALSE, rscript_libs = .libPaths(), [01:27:31.466] envir = parent.frame()) [01:27:31.466] { [01:27:31.466] if (is.function(workers)) [01:27:31.466] workers <- workers() [01:27:31.466] workers <- structure(as.integer(workers), [01:27:31.466] class = class(workers)) [01:27:31.466] stop_if_not(length(workers) == 1, is.finite(workers), [01:27:31.466] workers >= 1) [01:27:31.466] if (workers == 1L && !inherits(workers, "AsIs")) { [01:27:31.466] return(sequential(..., lazy = TRUE, envir = envir)) [01:27:31.466] } [01:27:31.466] future <- MultisessionFuture(..., workers = workers, [01:27:31.466] lazy = lazy, rscript_libs = rscript_libs, [01:27:31.466] envir = envir) [01:27:31.466] if (!future$lazy) [01:27:31.466] future <- run(future) [01:27:31.466] invisible(future) [01:27:31.466] }), .cleanup = FALSE, .init = FALSE) [01:27:31.466] } [01:27:31.466] } [01:27:31.466] } [01:27:31.466] }) [01:27:31.466] if (TRUE) { [01:27:31.466] base::sink(type = "output", split = FALSE) [01:27:31.466] if (TRUE) { [01:27:31.466] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:31.466] } [01:27:31.466] else { [01:27:31.466] ...future.result["stdout"] <- base::list(NULL) [01:27:31.466] } [01:27:31.466] base::close(...future.stdout) [01:27:31.466] ...future.stdout <- NULL [01:27:31.466] } [01:27:31.466] ...future.result$conditions <- ...future.conditions [01:27:31.466] ...future.result$finished <- base::Sys.time() [01:27:31.466] ...future.result [01:27:31.466] } [01:27:31.471] MultisessionFuture started [01:27:31.472] - Launch lazy future ... done [01:27:31.472] 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) [01:27:31.489] receiveMessageFromWorker() for ClusterFuture ... [01:27:31.489] - Validating connection of MultisessionFuture [01:27:31.489] - received message: FutureResult [01:27:31.490] - Received FutureResult [01:27:31.490] - Erased future from FutureRegistry [01:27:31.490] result() for ClusterFuture ... [01:27:31.490] - result already collected: FutureResult [01:27:31.490] result() for ClusterFuture ... done [01:27:31.490] receiveMessageFromWorker() for ClusterFuture ... done Resolved: TRUE Value: Conditions captured: Early signaling: FALSE Owner process: e4232549-d54c-8c10-35e3-92a27d17f6a9 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:27:31.491] result() for ClusterFuture ... [01:27:31.491] - result already collected: FutureResult [01:27:31.491] result() for ClusterFuture ... done [01:27:31.491] result() for ClusterFuture ... [01:27:31.492] - result already collected: FutureResult [01:27:31.493] result() for ClusterFuture ... done - plan('multisession') ... DONE > > message("*** Futures - labels ... DONE") *** Futures - labels ... DONE > > source("incl/end.R") [01:27:31.494] plan(): Setting new future strategy stack: [01:27:31.495] List of future strategies: [01:27:31.495] 1. FutureStrategy: [01:27:31.495] - args: function (..., envir = parent.frame(), workers = "") [01:27:31.495] - tweaked: FALSE [01:27:31.495] - call: future::plan(oplan) [01:27:31.496] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=204] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', '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_RTOOLS43_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_SUBDIRS_STRICT_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_INSTALL_TIME_PATCHES_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 0.75 0.04 1.48