R Under development (unstable) (2023-06-30 r84625 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") [18:00:58.044] plan(): Setting new future strategy stack: [18:00:58.045] List of future strategies: [18:00:58.045] 1. sequential: [18:00:58.045] - args: function (..., envir = parent.frame()) [18:00:58.045] - tweaked: FALSE [18:00:58.045] - call: future::plan("sequential") [18:00:58.061] plan(): nbrOfWorkers() = 1 > > message("*** backtrace( ) ...") *** backtrace( ) ... > > message("*** backtrace( ) - explicit future ...") *** backtrace( ) - explicit future ... > > f <- future({ 42L; stop("Woops") }) [18:00:58.069] getGlobalsAndPackages() ... [18:00:58.069] Searching for globals... [18:00:58.077] - globals found: [2] '{', 'stop' [18:00:58.077] Searching for globals ... DONE [18:00:58.077] Resolving globals: FALSE [18:00:58.078] [18:00:58.078] [18:00:58.078] getGlobalsAndPackages() ... DONE [18:00:58.079] run() for 'Future' ... [18:00:58.079] - state: 'created' [18:00:58.080] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:00:58.080] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:00:58.080] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:00:58.080] - Field: 'label' [18:00:58.081] - Field: 'local' [18:00:58.081] - Field: 'owner' [18:00:58.081] - Field: 'envir' [18:00:58.081] - Field: 'packages' [18:00:58.081] - Field: 'gc' [18:00:58.082] - Field: 'conditions' [18:00:58.082] - Field: 'expr' [18:00:58.082] - Field: 'uuid' [18:00:58.082] - Field: 'seed' [18:00:58.082] - Field: 'version' [18:00:58.082] - Field: 'result' [18:00:58.083] - Field: 'asynchronous' [18:00:58.083] - Field: 'calls' [18:00:58.083] - Field: 'globals' [18:00:58.083] - Field: 'stdout' [18:00:58.083] - Field: 'earlySignal' [18:00:58.084] - Field: 'lazy' [18:00:58.084] - Field: 'state' [18:00:58.084] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:00:58.084] - Launch lazy future ... [18:00:58.085] Packages needed by the future expression (n = 0): [18:00:58.085] Packages needed by future strategies (n = 0): [18:00:58.086] { [18:00:58.086] { [18:00:58.086] { [18:00:58.086] ...future.startTime <- base::Sys.time() [18:00:58.086] { [18:00:58.086] { [18:00:58.086] { [18:00:58.086] base::local({ [18:00:58.086] has_future <- base::requireNamespace("future", [18:00:58.086] quietly = TRUE) [18:00:58.086] if (has_future) { [18:00:58.086] ns <- base::getNamespace("future") [18:00:58.086] version <- ns[[".package"]][["version"]] [18:00:58.086] if (is.null(version)) [18:00:58.086] version <- utils::packageVersion("future") [18:00:58.086] } [18:00:58.086] else { [18:00:58.086] version <- NULL [18:00:58.086] } [18:00:58.086] if (!has_future || version < "1.8.0") { [18:00:58.086] info <- base::c(r_version = base::gsub("R version ", [18:00:58.086] "", base::R.version$version.string), [18:00:58.086] platform = base::sprintf("%s (%s-bit)", [18:00:58.086] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:00:58.086] os = base::paste(base::Sys.info()[base::c("sysname", [18:00:58.086] "release", "version")], collapse = " "), [18:00:58.086] hostname = base::Sys.info()[["nodename"]]) [18:00:58.086] info <- base::sprintf("%s: %s", base::names(info), [18:00:58.086] info) [18:00:58.086] info <- base::paste(info, collapse = "; ") [18:00:58.086] if (!has_future) { [18:00:58.086] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:00:58.086] info) [18:00:58.086] } [18:00:58.086] else { [18:00:58.086] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:00:58.086] info, version) [18:00:58.086] } [18:00:58.086] base::stop(msg) [18:00:58.086] } [18:00:58.086] }) [18:00:58.086] } [18:00:58.086] options(future.plan = NULL) [18:00:58.086] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.086] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:00:58.086] } [18:00:58.086] ...future.workdir <- getwd() [18:00:58.086] } [18:00:58.086] ...future.oldOptions <- base::as.list(base::.Options) [18:00:58.086] ...future.oldEnvVars <- base::Sys.getenv() [18:00:58.086] } [18:00:58.086] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:00:58.086] future.globals.maxSize = NULL, future.globals.method = NULL, [18:00:58.086] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:00:58.086] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:00:58.086] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:00:58.086] future.stdout.windows.reencode = NULL, width = 80L) [18:00:58.086] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:00:58.086] base::names(...future.oldOptions)) [18:00:58.086] } [18:00:58.086] if (FALSE) { [18:00:58.086] } [18:00:58.086] else { [18:00:58.086] if (TRUE) { [18:00:58.086] ...future.stdout <- base::rawConnection(base::raw(0L), [18:00:58.086] open = "w") [18:00:58.086] } [18:00:58.086] else { [18:00:58.086] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:00:58.086] windows = "NUL", "/dev/null"), open = "w") [18:00:58.086] } [18:00:58.086] base::sink(...future.stdout, type = "output", split = FALSE) [18:00:58.086] base::on.exit(if (!base::is.null(...future.stdout)) { [18:00:58.086] base::sink(type = "output", split = FALSE) [18:00:58.086] base::close(...future.stdout) [18:00:58.086] }, add = TRUE) [18:00:58.086] } [18:00:58.086] ...future.frame <- base::sys.nframe() [18:00:58.086] ...future.conditions <- base::list() [18:00:58.086] ...future.rng <- base::globalenv()$.Random.seed [18:00:58.086] if (FALSE) { [18:00:58.086] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:00:58.086] "...future.value", "...future.globalenv.names", ".Random.seed") [18:00:58.086] } [18:00:58.086] ...future.result <- base::tryCatch({ [18:00:58.086] base::withCallingHandlers({ [18:00:58.086] ...future.value <- base::withVisible(base::local({ [18:00:58.086] 42L [18:00:58.086] stop("Woops") [18:00:58.086] })) [18:00:58.086] future::FutureResult(value = ...future.value$value, [18:00:58.086] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.086] ...future.rng), globalenv = if (FALSE) [18:00:58.086] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:00:58.086] ...future.globalenv.names)) [18:00:58.086] else NULL, started = ...future.startTime, version = "1.8") [18:00:58.086] }, condition = base::local({ [18:00:58.086] c <- base::c [18:00:58.086] inherits <- base::inherits [18:00:58.086] invokeRestart <- base::invokeRestart [18:00:58.086] length <- base::length [18:00:58.086] list <- base::list [18:00:58.086] seq.int <- base::seq.int [18:00:58.086] signalCondition <- base::signalCondition [18:00:58.086] sys.calls <- base::sys.calls [18:00:58.086] `[[` <- base::`[[` [18:00:58.086] `+` <- base::`+` [18:00:58.086] `<<-` <- base::`<<-` [18:00:58.086] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:00:58.086] calls[seq.int(from = from + 12L, to = length(calls) - [18:00:58.086] 3L)] [18:00:58.086] } [18:00:58.086] function(cond) { [18:00:58.086] is_error <- inherits(cond, "error") [18:00:58.086] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:00:58.086] NULL) [18:00:58.086] if (is_error) { [18:00:58.086] sessionInformation <- function() { [18:00:58.086] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:00:58.086] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:00:58.086] search = base::search(), system = base::Sys.info()) [18:00:58.086] } [18:00:58.086] ...future.conditions[[length(...future.conditions) + [18:00:58.086] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:00:58.086] cond$call), session = sessionInformation(), [18:00:58.086] timestamp = base::Sys.time(), signaled = 0L) [18:00:58.086] signalCondition(cond) [18:00:58.086] } [18:00:58.086] else if (!ignore && TRUE && inherits(cond, c("condition", [18:00:58.086] "immediateCondition"))) { [18:00:58.086] signal <- TRUE && inherits(cond, "immediateCondition") [18:00:58.086] ...future.conditions[[length(...future.conditions) + [18:00:58.086] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:00:58.086] if (TRUE && !signal) { [18:00:58.086] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.086] { [18:00:58.086] inherits <- base::inherits [18:00:58.086] invokeRestart <- base::invokeRestart [18:00:58.086] is.null <- base::is.null [18:00:58.086] muffled <- FALSE [18:00:58.086] if (inherits(cond, "message")) { [18:00:58.086] muffled <- grepl(pattern, "muffleMessage") [18:00:58.086] if (muffled) [18:00:58.086] invokeRestart("muffleMessage") [18:00:58.086] } [18:00:58.086] else if (inherits(cond, "warning")) { [18:00:58.086] muffled <- grepl(pattern, "muffleWarning") [18:00:58.086] if (muffled) [18:00:58.086] invokeRestart("muffleWarning") [18:00:58.086] } [18:00:58.086] else if (inherits(cond, "condition")) { [18:00:58.086] if (!is.null(pattern)) { [18:00:58.086] computeRestarts <- base::computeRestarts [18:00:58.086] grepl <- base::grepl [18:00:58.086] restarts <- computeRestarts(cond) [18:00:58.086] for (restart in restarts) { [18:00:58.086] name <- restart$name [18:00:58.086] if (is.null(name)) [18:00:58.086] next [18:00:58.086] if (!grepl(pattern, name)) [18:00:58.086] next [18:00:58.086] invokeRestart(restart) [18:00:58.086] muffled <- TRUE [18:00:58.086] break [18:00:58.086] } [18:00:58.086] } [18:00:58.086] } [18:00:58.086] invisible(muffled) [18:00:58.086] } [18:00:58.086] muffleCondition(cond, pattern = "^muffle") [18:00:58.086] } [18:00:58.086] } [18:00:58.086] else { [18:00:58.086] if (TRUE) { [18:00:58.086] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.086] { [18:00:58.086] inherits <- base::inherits [18:00:58.086] invokeRestart <- base::invokeRestart [18:00:58.086] is.null <- base::is.null [18:00:58.086] muffled <- FALSE [18:00:58.086] if (inherits(cond, "message")) { [18:00:58.086] muffled <- grepl(pattern, "muffleMessage") [18:00:58.086] if (muffled) [18:00:58.086] invokeRestart("muffleMessage") [18:00:58.086] } [18:00:58.086] else if (inherits(cond, "warning")) { [18:00:58.086] muffled <- grepl(pattern, "muffleWarning") [18:00:58.086] if (muffled) [18:00:58.086] invokeRestart("muffleWarning") [18:00:58.086] } [18:00:58.086] else if (inherits(cond, "condition")) { [18:00:58.086] if (!is.null(pattern)) { [18:00:58.086] computeRestarts <- base::computeRestarts [18:00:58.086] grepl <- base::grepl [18:00:58.086] restarts <- computeRestarts(cond) [18:00:58.086] for (restart in restarts) { [18:00:58.086] name <- restart$name [18:00:58.086] if (is.null(name)) [18:00:58.086] next [18:00:58.086] if (!grepl(pattern, name)) [18:00:58.086] next [18:00:58.086] invokeRestart(restart) [18:00:58.086] muffled <- TRUE [18:00:58.086] break [18:00:58.086] } [18:00:58.086] } [18:00:58.086] } [18:00:58.086] invisible(muffled) [18:00:58.086] } [18:00:58.086] muffleCondition(cond, pattern = "^muffle") [18:00:58.086] } [18:00:58.086] } [18:00:58.086] } [18:00:58.086] })) [18:00:58.086] }, error = function(ex) { [18:00:58.086] base::structure(base::list(value = NULL, visible = NULL, [18:00:58.086] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.086] ...future.rng), started = ...future.startTime, [18:00:58.086] finished = Sys.time(), session_uuid = NA_character_, [18:00:58.086] version = "1.8"), class = "FutureResult") [18:00:58.086] }, finally = { [18:00:58.086] if (!identical(...future.workdir, getwd())) [18:00:58.086] setwd(...future.workdir) [18:00:58.086] { [18:00:58.086] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:00:58.086] ...future.oldOptions$nwarnings <- NULL [18:00:58.086] } [18:00:58.086] base::options(...future.oldOptions) [18:00:58.086] if (.Platform$OS.type == "windows") { [18:00:58.086] old_names <- names(...future.oldEnvVars) [18:00:58.086] envs <- base::Sys.getenv() [18:00:58.086] names <- names(envs) [18:00:58.086] common <- intersect(names, old_names) [18:00:58.086] added <- setdiff(names, old_names) [18:00:58.086] removed <- setdiff(old_names, names) [18:00:58.086] changed <- common[...future.oldEnvVars[common] != [18:00:58.086] envs[common]] [18:00:58.086] NAMES <- toupper(changed) [18:00:58.086] args <- list() [18:00:58.086] for (kk in seq_along(NAMES)) { [18:00:58.086] name <- changed[[kk]] [18:00:58.086] NAME <- NAMES[[kk]] [18:00:58.086] if (name != NAME && is.element(NAME, old_names)) [18:00:58.086] next [18:00:58.086] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.086] } [18:00:58.086] NAMES <- toupper(added) [18:00:58.086] for (kk in seq_along(NAMES)) { [18:00:58.086] name <- added[[kk]] [18:00:58.086] NAME <- NAMES[[kk]] [18:00:58.086] if (name != NAME && is.element(NAME, old_names)) [18:00:58.086] next [18:00:58.086] args[[name]] <- "" [18:00:58.086] } [18:00:58.086] NAMES <- toupper(removed) [18:00:58.086] for (kk in seq_along(NAMES)) { [18:00:58.086] name <- removed[[kk]] [18:00:58.086] NAME <- NAMES[[kk]] [18:00:58.086] if (name != NAME && is.element(NAME, old_names)) [18:00:58.086] next [18:00:58.086] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.086] } [18:00:58.086] if (length(args) > 0) [18:00:58.086] base::do.call(base::Sys.setenv, args = args) [18:00:58.086] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:00:58.086] } [18:00:58.086] else { [18:00:58.086] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:00:58.086] } [18:00:58.086] { [18:00:58.086] if (base::length(...future.futureOptionsAdded) > [18:00:58.086] 0L) { [18:00:58.086] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:00:58.086] base::names(opts) <- ...future.futureOptionsAdded [18:00:58.086] base::options(opts) [18:00:58.086] } [18:00:58.086] { [18:00:58.086] { [18:00:58.086] NULL [18:00:58.086] RNGkind("Mersenne-Twister") [18:00:58.086] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:00:58.086] inherits = FALSE) [18:00:58.086] } [18:00:58.086] options(future.plan = NULL) [18:00:58.086] if (is.na(NA_character_)) [18:00:58.086] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.086] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:00:58.086] future::plan(list(function (..., envir = parent.frame()) [18:00:58.086] { [18:00:58.086] future <- SequentialFuture(..., envir = envir) [18:00:58.086] if (!future$lazy) [18:00:58.086] future <- run(future) [18:00:58.086] invisible(future) [18:00:58.086] }), .cleanup = FALSE, .init = FALSE) [18:00:58.086] } [18:00:58.086] } [18:00:58.086] } [18:00:58.086] }) [18:00:58.086] if (TRUE) { [18:00:58.086] base::sink(type = "output", split = FALSE) [18:00:58.086] if (TRUE) { [18:00:58.086] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:00:58.086] } [18:00:58.086] else { [18:00:58.086] ...future.result["stdout"] <- base::list(NULL) [18:00:58.086] } [18:00:58.086] base::close(...future.stdout) [18:00:58.086] ...future.stdout <- NULL [18:00:58.086] } [18:00:58.086] ...future.result$conditions <- ...future.conditions [18:00:58.086] ...future.result$finished <- base::Sys.time() [18:00:58.086] ...future.result [18:00:58.086] } [18:00:58.091] plan(): Setting new future strategy stack: [18:00:58.091] List of future strategies: [18:00:58.091] 1. sequential: [18:00:58.091] - args: function (..., envir = parent.frame()) [18:00:58.091] - tweaked: FALSE [18:00:58.091] - call: NULL [18:00:58.091] plan(): nbrOfWorkers() = 1 [18:00:58.093] plan(): Setting new future strategy stack: [18:00:58.093] List of future strategies: [18:00:58.093] 1. sequential: [18:00:58.093] - args: function (..., envir = parent.frame()) [18:00:58.093] - tweaked: FALSE [18:00:58.093] - call: future::plan("sequential") [18:00:58.094] plan(): nbrOfWorkers() = 1 [18:00:58.094] SequentialFuture started (and completed) [18:00:58.095] signalConditions() ... [18:00:58.095] - include = 'immediateCondition' [18:00:58.095] - exclude = [18:00:58.095] - resignal = FALSE [18:00:58.095] - Number of conditions: 1 [18:00:58.096] signalConditions() ... done [18:00:58.096] - Launch lazy future ... done [18:00:58.096] run() for 'SequentialFuture' ... done > v <- value(f, signal = FALSE) [18:00:58.097] signalConditions() ... [18:00:58.097] - include = 'immediateCondition' [18:00:58.097] - exclude = [18:00:58.097] - resignal = FALSE [18:00:58.097] - Number of conditions: 1 [18:00:58.097] signalConditions() ... done > print(v) > calls <- backtrace(f) [18:00:58.099] resolved() for 'SequentialFuture' ... [18:00:58.099] - state: 'finished' [18:00:58.099] - run: TRUE [18:00:58.100] - result: 'FutureResult' [18:00:58.100] resolved() for 'SequentialFuture' ... done > print(calls) [[1]] future({ 42L stop("Woops") }) [[2]] Future(expr, substitute = FALSE, envir = envir, lazy = TRUE, seed = seed, globals = globals, packages = packages, stdout = stdout, conditions = conditions, earlySignal = earlySignal, label = label, gc = gc, ...) [[3]] eval(quote({ 42L stop("Woops") }), new.env()) [[4]] stop("Woops") [[5]] eval(quote({ 42L stop("Woops") }), new.env()) > > message("*** backtrace( ) - explicit future ... DONE") *** backtrace( ) - explicit future ... DONE > > > message("*** backtrace( ) - implicit future ...") *** backtrace( ) - implicit future ... > > v %<-% { 42L; stop("Woops") } [18:00:58.101] getGlobalsAndPackages() ... [18:00:58.101] Searching for globals... [18:00:58.102] - globals found: [2] '{', 'stop' [18:00:58.102] Searching for globals ... DONE [18:00:58.103] Resolving globals: FALSE [18:00:58.103] [18:00:58.103] [18:00:58.103] getGlobalsAndPackages() ... DONE [18:00:58.104] run() for 'Future' ... [18:00:58.104] - state: 'created' [18:00:58.104] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:00:58.104] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:00:58.105] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:00:58.105] - Field: 'label' [18:00:58.105] - Field: 'local' [18:00:58.105] - Field: 'owner' [18:00:58.105] - Field: 'envir' [18:00:58.106] - Field: 'packages' [18:00:58.106] - Field: 'gc' [18:00:58.106] - Field: 'conditions' [18:00:58.106] - Field: 'expr' [18:00:58.106] - Field: 'uuid' [18:00:58.106] - Field: 'seed' [18:00:58.107] - Field: 'version' [18:00:58.107] - Field: 'result' [18:00:58.107] - Field: 'asynchronous' [18:00:58.107] - Field: 'calls' [18:00:58.107] - Field: 'globals' [18:00:58.108] - Field: 'stdout' [18:00:58.108] - Field: 'earlySignal' [18:00:58.108] - Field: 'lazy' [18:00:58.108] - Field: 'state' [18:00:58.108] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:00:58.108] - Launch lazy future ... [18:00:58.109] Packages needed by the future expression (n = 0): [18:00:58.109] Packages needed by future strategies (n = 0): [18:00:58.110] { [18:00:58.110] { [18:00:58.110] { [18:00:58.110] ...future.startTime <- base::Sys.time() [18:00:58.110] { [18:00:58.110] { [18:00:58.110] { [18:00:58.110] base::local({ [18:00:58.110] has_future <- base::requireNamespace("future", [18:00:58.110] quietly = TRUE) [18:00:58.110] if (has_future) { [18:00:58.110] ns <- base::getNamespace("future") [18:00:58.110] version <- ns[[".package"]][["version"]] [18:00:58.110] if (is.null(version)) [18:00:58.110] version <- utils::packageVersion("future") [18:00:58.110] } [18:00:58.110] else { [18:00:58.110] version <- NULL [18:00:58.110] } [18:00:58.110] if (!has_future || version < "1.8.0") { [18:00:58.110] info <- base::c(r_version = base::gsub("R version ", [18:00:58.110] "", base::R.version$version.string), [18:00:58.110] platform = base::sprintf("%s (%s-bit)", [18:00:58.110] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:00:58.110] os = base::paste(base::Sys.info()[base::c("sysname", [18:00:58.110] "release", "version")], collapse = " "), [18:00:58.110] hostname = base::Sys.info()[["nodename"]]) [18:00:58.110] info <- base::sprintf("%s: %s", base::names(info), [18:00:58.110] info) [18:00:58.110] info <- base::paste(info, collapse = "; ") [18:00:58.110] if (!has_future) { [18:00:58.110] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:00:58.110] info) [18:00:58.110] } [18:00:58.110] else { [18:00:58.110] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:00:58.110] info, version) [18:00:58.110] } [18:00:58.110] base::stop(msg) [18:00:58.110] } [18:00:58.110] }) [18:00:58.110] } [18:00:58.110] options(future.plan = NULL) [18:00:58.110] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.110] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:00:58.110] } [18:00:58.110] ...future.workdir <- getwd() [18:00:58.110] } [18:00:58.110] ...future.oldOptions <- base::as.list(base::.Options) [18:00:58.110] ...future.oldEnvVars <- base::Sys.getenv() [18:00:58.110] } [18:00:58.110] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:00:58.110] future.globals.maxSize = NULL, future.globals.method = NULL, [18:00:58.110] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:00:58.110] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:00:58.110] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:00:58.110] future.stdout.windows.reencode = NULL, width = 80L) [18:00:58.110] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:00:58.110] base::names(...future.oldOptions)) [18:00:58.110] } [18:00:58.110] if (FALSE) { [18:00:58.110] } [18:00:58.110] else { [18:00:58.110] if (TRUE) { [18:00:58.110] ...future.stdout <- base::rawConnection(base::raw(0L), [18:00:58.110] open = "w") [18:00:58.110] } [18:00:58.110] else { [18:00:58.110] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:00:58.110] windows = "NUL", "/dev/null"), open = "w") [18:00:58.110] } [18:00:58.110] base::sink(...future.stdout, type = "output", split = FALSE) [18:00:58.110] base::on.exit(if (!base::is.null(...future.stdout)) { [18:00:58.110] base::sink(type = "output", split = FALSE) [18:00:58.110] base::close(...future.stdout) [18:00:58.110] }, add = TRUE) [18:00:58.110] } [18:00:58.110] ...future.frame <- base::sys.nframe() [18:00:58.110] ...future.conditions <- base::list() [18:00:58.110] ...future.rng <- base::globalenv()$.Random.seed [18:00:58.110] if (FALSE) { [18:00:58.110] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:00:58.110] "...future.value", "...future.globalenv.names", ".Random.seed") [18:00:58.110] } [18:00:58.110] ...future.result <- base::tryCatch({ [18:00:58.110] base::withCallingHandlers({ [18:00:58.110] ...future.value <- base::withVisible(base::local({ [18:00:58.110] 42L [18:00:58.110] stop("Woops") [18:00:58.110] })) [18:00:58.110] future::FutureResult(value = ...future.value$value, [18:00:58.110] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.110] ...future.rng), globalenv = if (FALSE) [18:00:58.110] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:00:58.110] ...future.globalenv.names)) [18:00:58.110] else NULL, started = ...future.startTime, version = "1.8") [18:00:58.110] }, condition = base::local({ [18:00:58.110] c <- base::c [18:00:58.110] inherits <- base::inherits [18:00:58.110] invokeRestart <- base::invokeRestart [18:00:58.110] length <- base::length [18:00:58.110] list <- base::list [18:00:58.110] seq.int <- base::seq.int [18:00:58.110] signalCondition <- base::signalCondition [18:00:58.110] sys.calls <- base::sys.calls [18:00:58.110] `[[` <- base::`[[` [18:00:58.110] `+` <- base::`+` [18:00:58.110] `<<-` <- base::`<<-` [18:00:58.110] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:00:58.110] calls[seq.int(from = from + 12L, to = length(calls) - [18:00:58.110] 3L)] [18:00:58.110] } [18:00:58.110] function(cond) { [18:00:58.110] is_error <- inherits(cond, "error") [18:00:58.110] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:00:58.110] NULL) [18:00:58.110] if (is_error) { [18:00:58.110] sessionInformation <- function() { [18:00:58.110] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:00:58.110] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:00:58.110] search = base::search(), system = base::Sys.info()) [18:00:58.110] } [18:00:58.110] ...future.conditions[[length(...future.conditions) + [18:00:58.110] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:00:58.110] cond$call), session = sessionInformation(), [18:00:58.110] timestamp = base::Sys.time(), signaled = 0L) [18:00:58.110] signalCondition(cond) [18:00:58.110] } [18:00:58.110] else if (!ignore && TRUE && inherits(cond, c("condition", [18:00:58.110] "immediateCondition"))) { [18:00:58.110] signal <- TRUE && inherits(cond, "immediateCondition") [18:00:58.110] ...future.conditions[[length(...future.conditions) + [18:00:58.110] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:00:58.110] if (TRUE && !signal) { [18:00:58.110] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.110] { [18:00:58.110] inherits <- base::inherits [18:00:58.110] invokeRestart <- base::invokeRestart [18:00:58.110] is.null <- base::is.null [18:00:58.110] muffled <- FALSE [18:00:58.110] if (inherits(cond, "message")) { [18:00:58.110] muffled <- grepl(pattern, "muffleMessage") [18:00:58.110] if (muffled) [18:00:58.110] invokeRestart("muffleMessage") [18:00:58.110] } [18:00:58.110] else if (inherits(cond, "warning")) { [18:00:58.110] muffled <- grepl(pattern, "muffleWarning") [18:00:58.110] if (muffled) [18:00:58.110] invokeRestart("muffleWarning") [18:00:58.110] } [18:00:58.110] else if (inherits(cond, "condition")) { [18:00:58.110] if (!is.null(pattern)) { [18:00:58.110] computeRestarts <- base::computeRestarts [18:00:58.110] grepl <- base::grepl [18:00:58.110] restarts <- computeRestarts(cond) [18:00:58.110] for (restart in restarts) { [18:00:58.110] name <- restart$name [18:00:58.110] if (is.null(name)) [18:00:58.110] next [18:00:58.110] if (!grepl(pattern, name)) [18:00:58.110] next [18:00:58.110] invokeRestart(restart) [18:00:58.110] muffled <- TRUE [18:00:58.110] break [18:00:58.110] } [18:00:58.110] } [18:00:58.110] } [18:00:58.110] invisible(muffled) [18:00:58.110] } [18:00:58.110] muffleCondition(cond, pattern = "^muffle") [18:00:58.110] } [18:00:58.110] } [18:00:58.110] else { [18:00:58.110] if (TRUE) { [18:00:58.110] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.110] { [18:00:58.110] inherits <- base::inherits [18:00:58.110] invokeRestart <- base::invokeRestart [18:00:58.110] is.null <- base::is.null [18:00:58.110] muffled <- FALSE [18:00:58.110] if (inherits(cond, "message")) { [18:00:58.110] muffled <- grepl(pattern, "muffleMessage") [18:00:58.110] if (muffled) [18:00:58.110] invokeRestart("muffleMessage") [18:00:58.110] } [18:00:58.110] else if (inherits(cond, "warning")) { [18:00:58.110] muffled <- grepl(pattern, "muffleWarning") [18:00:58.110] if (muffled) [18:00:58.110] invokeRestart("muffleWarning") [18:00:58.110] } [18:00:58.110] else if (inherits(cond, "condition")) { [18:00:58.110] if (!is.null(pattern)) { [18:00:58.110] computeRestarts <- base::computeRestarts [18:00:58.110] grepl <- base::grepl [18:00:58.110] restarts <- computeRestarts(cond) [18:00:58.110] for (restart in restarts) { [18:00:58.110] name <- restart$name [18:00:58.110] if (is.null(name)) [18:00:58.110] next [18:00:58.110] if (!grepl(pattern, name)) [18:00:58.110] next [18:00:58.110] invokeRestart(restart) [18:00:58.110] muffled <- TRUE [18:00:58.110] break [18:00:58.110] } [18:00:58.110] } [18:00:58.110] } [18:00:58.110] invisible(muffled) [18:00:58.110] } [18:00:58.110] muffleCondition(cond, pattern = "^muffle") [18:00:58.110] } [18:00:58.110] } [18:00:58.110] } [18:00:58.110] })) [18:00:58.110] }, error = function(ex) { [18:00:58.110] base::structure(base::list(value = NULL, visible = NULL, [18:00:58.110] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.110] ...future.rng), started = ...future.startTime, [18:00:58.110] finished = Sys.time(), session_uuid = NA_character_, [18:00:58.110] version = "1.8"), class = "FutureResult") [18:00:58.110] }, finally = { [18:00:58.110] if (!identical(...future.workdir, getwd())) [18:00:58.110] setwd(...future.workdir) [18:00:58.110] { [18:00:58.110] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:00:58.110] ...future.oldOptions$nwarnings <- NULL [18:00:58.110] } [18:00:58.110] base::options(...future.oldOptions) [18:00:58.110] if (.Platform$OS.type == "windows") { [18:00:58.110] old_names <- names(...future.oldEnvVars) [18:00:58.110] envs <- base::Sys.getenv() [18:00:58.110] names <- names(envs) [18:00:58.110] common <- intersect(names, old_names) [18:00:58.110] added <- setdiff(names, old_names) [18:00:58.110] removed <- setdiff(old_names, names) [18:00:58.110] changed <- common[...future.oldEnvVars[common] != [18:00:58.110] envs[common]] [18:00:58.110] NAMES <- toupper(changed) [18:00:58.110] args <- list() [18:00:58.110] for (kk in seq_along(NAMES)) { [18:00:58.110] name <- changed[[kk]] [18:00:58.110] NAME <- NAMES[[kk]] [18:00:58.110] if (name != NAME && is.element(NAME, old_names)) [18:00:58.110] next [18:00:58.110] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.110] } [18:00:58.110] NAMES <- toupper(added) [18:00:58.110] for (kk in seq_along(NAMES)) { [18:00:58.110] name <- added[[kk]] [18:00:58.110] NAME <- NAMES[[kk]] [18:00:58.110] if (name != NAME && is.element(NAME, old_names)) [18:00:58.110] next [18:00:58.110] args[[name]] <- "" [18:00:58.110] } [18:00:58.110] NAMES <- toupper(removed) [18:00:58.110] for (kk in seq_along(NAMES)) { [18:00:58.110] name <- removed[[kk]] [18:00:58.110] NAME <- NAMES[[kk]] [18:00:58.110] if (name != NAME && is.element(NAME, old_names)) [18:00:58.110] next [18:00:58.110] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.110] } [18:00:58.110] if (length(args) > 0) [18:00:58.110] base::do.call(base::Sys.setenv, args = args) [18:00:58.110] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:00:58.110] } [18:00:58.110] else { [18:00:58.110] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:00:58.110] } [18:00:58.110] { [18:00:58.110] if (base::length(...future.futureOptionsAdded) > [18:00:58.110] 0L) { [18:00:58.110] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:00:58.110] base::names(opts) <- ...future.futureOptionsAdded [18:00:58.110] base::options(opts) [18:00:58.110] } [18:00:58.110] { [18:00:58.110] { [18:00:58.110] NULL [18:00:58.110] RNGkind("Mersenne-Twister") [18:00:58.110] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:00:58.110] inherits = FALSE) [18:00:58.110] } [18:00:58.110] options(future.plan = NULL) [18:00:58.110] if (is.na(NA_character_)) [18:00:58.110] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.110] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:00:58.110] future::plan(list(function (..., envir = parent.frame()) [18:00:58.110] { [18:00:58.110] future <- SequentialFuture(..., envir = envir) [18:00:58.110] if (!future$lazy) [18:00:58.110] future <- run(future) [18:00:58.110] invisible(future) [18:00:58.110] }), .cleanup = FALSE, .init = FALSE) [18:00:58.110] } [18:00:58.110] } [18:00:58.110] } [18:00:58.110] }) [18:00:58.110] if (TRUE) { [18:00:58.110] base::sink(type = "output", split = FALSE) [18:00:58.110] if (TRUE) { [18:00:58.110] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:00:58.110] } [18:00:58.110] else { [18:00:58.110] ...future.result["stdout"] <- base::list(NULL) [18:00:58.110] } [18:00:58.110] base::close(...future.stdout) [18:00:58.110] ...future.stdout <- NULL [18:00:58.110] } [18:00:58.110] ...future.result$conditions <- ...future.conditions [18:00:58.110] ...future.result$finished <- base::Sys.time() [18:00:58.110] ...future.result [18:00:58.110] } [18:00:58.114] plan(): Setting new future strategy stack: [18:00:58.114] List of future strategies: [18:00:58.114] 1. sequential: [18:00:58.114] - args: function (..., envir = parent.frame()) [18:00:58.114] - tweaked: FALSE [18:00:58.114] - call: NULL [18:00:58.114] plan(): nbrOfWorkers() = 1 [18:00:58.118] plan(): Setting new future strategy stack: [18:00:58.118] List of future strategies: [18:00:58.118] 1. sequential: [18:00:58.118] - args: function (..., envir = parent.frame()) [18:00:58.118] - tweaked: FALSE [18:00:58.118] - call: future::plan("sequential") [18:00:58.119] plan(): nbrOfWorkers() = 1 [18:00:58.119] SequentialFuture started (and completed) [18:00:58.119] signalConditions() ... [18:00:58.119] - include = 'immediateCondition' [18:00:58.119] - exclude = [18:00:58.120] - resignal = FALSE [18:00:58.120] - Number of conditions: 1 [18:00:58.120] signalConditions() ... done [18:00:58.120] - Launch lazy future ... done [18:00:58.120] run() for 'SequentialFuture' ... done > calls <- backtrace(v) [18:00:58.121] resolved() for 'SequentialFuture' ... [18:00:58.121] - state: 'finished' [18:00:58.121] - run: TRUE [18:00:58.121] - result: 'FutureResult' [18:00:58.121] resolved() for 'SequentialFuture' ... done > print(calls) [[1]] v %<-% { 42L stop("Woops") } [[2]] futureAssignInternal(target, expr, envir = envir, substitute = FALSE) [[3]] futureAssign(name, expr, envir = envir, assign.env = assign.env, substitute = FALSE) [[4]] do.call(future::future, args = future.args, envir = assign.env) [[5]] (function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = FALSE, globals = TRUE, packages = NULL, stdout = TRUE, conditions = "condition", earlySignal = FALSE, label = NULL, gc = FALSE, ...) { if (substitute) expr <- substitute(expr) t_start <- Sys.time() gp <- getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, globals = globals) expr <- gp$expr globals <- gp$globals if (length(packages) > 0 || length(gp$packages) > 0) { packages <- unique(c(gp$packages, packages)) } gp <- NULL attr(globals, "already-done") <- TRUE future <- Future(expr, substitute = FALSE, envir = envir, lazy = TRUE, seed = seed, globals = globals, packages = packages, stdout = stdout, conditions = conditions, earlySignal = earlySignal, label = label, gc = gc, ...) future$.defaultLocal <- !is.element("local", names(list(...))) if (getOption("future.journal", FALSE)) { future <- makeFutureJournal(future, event = "create", category = "overhead", start = t_start) } if (!lazy) { future <- run(future) future$lazy <- FALSE stop_if_not(inherits(future, "Future"), !future$lazy) } future })({ 42L stop("Woops") }, envir = , lazy = FALSE, seed = FALSE, globals = TRUE, packages = NULL, stdout = TRUE, conditions = "condition", earlySignal = FALSE, label = NULL, gc = FALSE) [[6]] Future(expr, substitute = FALSE, envir = envir, lazy = TRUE, seed = seed, globals = globals, packages = packages, stdout = stdout, conditions = conditions, earlySignal = earlySignal, label = label, gc = gc, ...) [[7]] eval(quote({ 42L stop("Woops") }), new.env()) [[8]] stop("Woops") [[9]] eval(quote({ 42L stop("Woops") }), new.env()) > > message("*** backtrace( ) - implicit future ... DONE") *** backtrace( ) - implicit future ... DONE > > > message("*** backtrace( ) - subsetting ...") *** backtrace( ) - subsetting ... > > env <- new.env() > env[["a"]] %<-% { 42L; stop("Woops") } [18:00:58.123] getGlobalsAndPackages() ... [18:00:58.123] Searching for globals... [18:00:58.124] - globals found: [2] '{', 'stop' [18:00:58.124] Searching for globals ... DONE [18:00:58.124] Resolving globals: FALSE [18:00:58.125] [18:00:58.125] [18:00:58.125] getGlobalsAndPackages() ... DONE [18:00:58.125] run() for 'Future' ... [18:00:58.126] - state: 'created' [18:00:58.126] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:00:58.126] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:00:58.126] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:00:58.127] - Field: 'label' [18:00:58.127] - Field: 'local' [18:00:58.127] - Field: 'owner' [18:00:58.127] - Field: 'envir' [18:00:58.127] - Field: 'packages' [18:00:58.128] - Field: 'gc' [18:00:58.128] - Field: 'conditions' [18:00:58.128] - Field: 'expr' [18:00:58.128] - Field: 'uuid' [18:00:58.128] - Field: 'seed' [18:00:58.128] - Field: 'version' [18:00:58.129] - Field: 'result' [18:00:58.129] - Field: 'asynchronous' [18:00:58.129] - Field: 'calls' [18:00:58.129] - Field: 'globals' [18:00:58.129] - Field: 'stdout' [18:00:58.129] - Field: 'earlySignal' [18:00:58.130] - Field: 'lazy' [18:00:58.130] - Field: 'state' [18:00:58.130] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:00:58.130] - Launch lazy future ... [18:00:58.130] Packages needed by the future expression (n = 0): [18:00:58.131] Packages needed by future strategies (n = 0): [18:00:58.131] { [18:00:58.131] { [18:00:58.131] { [18:00:58.131] ...future.startTime <- base::Sys.time() [18:00:58.131] { [18:00:58.131] { [18:00:58.131] { [18:00:58.131] base::local({ [18:00:58.131] has_future <- base::requireNamespace("future", [18:00:58.131] quietly = TRUE) [18:00:58.131] if (has_future) { [18:00:58.131] ns <- base::getNamespace("future") [18:00:58.131] version <- ns[[".package"]][["version"]] [18:00:58.131] if (is.null(version)) [18:00:58.131] version <- utils::packageVersion("future") [18:00:58.131] } [18:00:58.131] else { [18:00:58.131] version <- NULL [18:00:58.131] } [18:00:58.131] if (!has_future || version < "1.8.0") { [18:00:58.131] info <- base::c(r_version = base::gsub("R version ", [18:00:58.131] "", base::R.version$version.string), [18:00:58.131] platform = base::sprintf("%s (%s-bit)", [18:00:58.131] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:00:58.131] os = base::paste(base::Sys.info()[base::c("sysname", [18:00:58.131] "release", "version")], collapse = " "), [18:00:58.131] hostname = base::Sys.info()[["nodename"]]) [18:00:58.131] info <- base::sprintf("%s: %s", base::names(info), [18:00:58.131] info) [18:00:58.131] info <- base::paste(info, collapse = "; ") [18:00:58.131] if (!has_future) { [18:00:58.131] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:00:58.131] info) [18:00:58.131] } [18:00:58.131] else { [18:00:58.131] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:00:58.131] info, version) [18:00:58.131] } [18:00:58.131] base::stop(msg) [18:00:58.131] } [18:00:58.131] }) [18:00:58.131] } [18:00:58.131] options(future.plan = NULL) [18:00:58.131] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.131] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:00:58.131] } [18:00:58.131] ...future.workdir <- getwd() [18:00:58.131] } [18:00:58.131] ...future.oldOptions <- base::as.list(base::.Options) [18:00:58.131] ...future.oldEnvVars <- base::Sys.getenv() [18:00:58.131] } [18:00:58.131] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:00:58.131] future.globals.maxSize = NULL, future.globals.method = NULL, [18:00:58.131] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:00:58.131] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:00:58.131] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:00:58.131] future.stdout.windows.reencode = NULL, width = 80L) [18:00:58.131] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:00:58.131] base::names(...future.oldOptions)) [18:00:58.131] } [18:00:58.131] if (FALSE) { [18:00:58.131] } [18:00:58.131] else { [18:00:58.131] if (TRUE) { [18:00:58.131] ...future.stdout <- base::rawConnection(base::raw(0L), [18:00:58.131] open = "w") [18:00:58.131] } [18:00:58.131] else { [18:00:58.131] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:00:58.131] windows = "NUL", "/dev/null"), open = "w") [18:00:58.131] } [18:00:58.131] base::sink(...future.stdout, type = "output", split = FALSE) [18:00:58.131] base::on.exit(if (!base::is.null(...future.stdout)) { [18:00:58.131] base::sink(type = "output", split = FALSE) [18:00:58.131] base::close(...future.stdout) [18:00:58.131] }, add = TRUE) [18:00:58.131] } [18:00:58.131] ...future.frame <- base::sys.nframe() [18:00:58.131] ...future.conditions <- base::list() [18:00:58.131] ...future.rng <- base::globalenv()$.Random.seed [18:00:58.131] if (FALSE) { [18:00:58.131] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:00:58.131] "...future.value", "...future.globalenv.names", ".Random.seed") [18:00:58.131] } [18:00:58.131] ...future.result <- base::tryCatch({ [18:00:58.131] base::withCallingHandlers({ [18:00:58.131] ...future.value <- base::withVisible(base::local({ [18:00:58.131] 42L [18:00:58.131] stop("Woops") [18:00:58.131] })) [18:00:58.131] future::FutureResult(value = ...future.value$value, [18:00:58.131] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.131] ...future.rng), globalenv = if (FALSE) [18:00:58.131] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:00:58.131] ...future.globalenv.names)) [18:00:58.131] else NULL, started = ...future.startTime, version = "1.8") [18:00:58.131] }, condition = base::local({ [18:00:58.131] c <- base::c [18:00:58.131] inherits <- base::inherits [18:00:58.131] invokeRestart <- base::invokeRestart [18:00:58.131] length <- base::length [18:00:58.131] list <- base::list [18:00:58.131] seq.int <- base::seq.int [18:00:58.131] signalCondition <- base::signalCondition [18:00:58.131] sys.calls <- base::sys.calls [18:00:58.131] `[[` <- base::`[[` [18:00:58.131] `+` <- base::`+` [18:00:58.131] `<<-` <- base::`<<-` [18:00:58.131] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:00:58.131] calls[seq.int(from = from + 12L, to = length(calls) - [18:00:58.131] 3L)] [18:00:58.131] } [18:00:58.131] function(cond) { [18:00:58.131] is_error <- inherits(cond, "error") [18:00:58.131] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:00:58.131] NULL) [18:00:58.131] if (is_error) { [18:00:58.131] sessionInformation <- function() { [18:00:58.131] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:00:58.131] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:00:58.131] search = base::search(), system = base::Sys.info()) [18:00:58.131] } [18:00:58.131] ...future.conditions[[length(...future.conditions) + [18:00:58.131] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:00:58.131] cond$call), session = sessionInformation(), [18:00:58.131] timestamp = base::Sys.time(), signaled = 0L) [18:00:58.131] signalCondition(cond) [18:00:58.131] } [18:00:58.131] else if (!ignore && TRUE && inherits(cond, c("condition", [18:00:58.131] "immediateCondition"))) { [18:00:58.131] signal <- TRUE && inherits(cond, "immediateCondition") [18:00:58.131] ...future.conditions[[length(...future.conditions) + [18:00:58.131] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:00:58.131] if (TRUE && !signal) { [18:00:58.131] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.131] { [18:00:58.131] inherits <- base::inherits [18:00:58.131] invokeRestart <- base::invokeRestart [18:00:58.131] is.null <- base::is.null [18:00:58.131] muffled <- FALSE [18:00:58.131] if (inherits(cond, "message")) { [18:00:58.131] muffled <- grepl(pattern, "muffleMessage") [18:00:58.131] if (muffled) [18:00:58.131] invokeRestart("muffleMessage") [18:00:58.131] } [18:00:58.131] else if (inherits(cond, "warning")) { [18:00:58.131] muffled <- grepl(pattern, "muffleWarning") [18:00:58.131] if (muffled) [18:00:58.131] invokeRestart("muffleWarning") [18:00:58.131] } [18:00:58.131] else if (inherits(cond, "condition")) { [18:00:58.131] if (!is.null(pattern)) { [18:00:58.131] computeRestarts <- base::computeRestarts [18:00:58.131] grepl <- base::grepl [18:00:58.131] restarts <- computeRestarts(cond) [18:00:58.131] for (restart in restarts) { [18:00:58.131] name <- restart$name [18:00:58.131] if (is.null(name)) [18:00:58.131] next [18:00:58.131] if (!grepl(pattern, name)) [18:00:58.131] next [18:00:58.131] invokeRestart(restart) [18:00:58.131] muffled <- TRUE [18:00:58.131] break [18:00:58.131] } [18:00:58.131] } [18:00:58.131] } [18:00:58.131] invisible(muffled) [18:00:58.131] } [18:00:58.131] muffleCondition(cond, pattern = "^muffle") [18:00:58.131] } [18:00:58.131] } [18:00:58.131] else { [18:00:58.131] if (TRUE) { [18:00:58.131] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.131] { [18:00:58.131] inherits <- base::inherits [18:00:58.131] invokeRestart <- base::invokeRestart [18:00:58.131] is.null <- base::is.null [18:00:58.131] muffled <- FALSE [18:00:58.131] if (inherits(cond, "message")) { [18:00:58.131] muffled <- grepl(pattern, "muffleMessage") [18:00:58.131] if (muffled) [18:00:58.131] invokeRestart("muffleMessage") [18:00:58.131] } [18:00:58.131] else if (inherits(cond, "warning")) { [18:00:58.131] muffled <- grepl(pattern, "muffleWarning") [18:00:58.131] if (muffled) [18:00:58.131] invokeRestart("muffleWarning") [18:00:58.131] } [18:00:58.131] else if (inherits(cond, "condition")) { [18:00:58.131] if (!is.null(pattern)) { [18:00:58.131] computeRestarts <- base::computeRestarts [18:00:58.131] grepl <- base::grepl [18:00:58.131] restarts <- computeRestarts(cond) [18:00:58.131] for (restart in restarts) { [18:00:58.131] name <- restart$name [18:00:58.131] if (is.null(name)) [18:00:58.131] next [18:00:58.131] if (!grepl(pattern, name)) [18:00:58.131] next [18:00:58.131] invokeRestart(restart) [18:00:58.131] muffled <- TRUE [18:00:58.131] break [18:00:58.131] } [18:00:58.131] } [18:00:58.131] } [18:00:58.131] invisible(muffled) [18:00:58.131] } [18:00:58.131] muffleCondition(cond, pattern = "^muffle") [18:00:58.131] } [18:00:58.131] } [18:00:58.131] } [18:00:58.131] })) [18:00:58.131] }, error = function(ex) { [18:00:58.131] base::structure(base::list(value = NULL, visible = NULL, [18:00:58.131] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.131] ...future.rng), started = ...future.startTime, [18:00:58.131] finished = Sys.time(), session_uuid = NA_character_, [18:00:58.131] version = "1.8"), class = "FutureResult") [18:00:58.131] }, finally = { [18:00:58.131] if (!identical(...future.workdir, getwd())) [18:00:58.131] setwd(...future.workdir) [18:00:58.131] { [18:00:58.131] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:00:58.131] ...future.oldOptions$nwarnings <- NULL [18:00:58.131] } [18:00:58.131] base::options(...future.oldOptions) [18:00:58.131] if (.Platform$OS.type == "windows") { [18:00:58.131] old_names <- names(...future.oldEnvVars) [18:00:58.131] envs <- base::Sys.getenv() [18:00:58.131] names <- names(envs) [18:00:58.131] common <- intersect(names, old_names) [18:00:58.131] added <- setdiff(names, old_names) [18:00:58.131] removed <- setdiff(old_names, names) [18:00:58.131] changed <- common[...future.oldEnvVars[common] != [18:00:58.131] envs[common]] [18:00:58.131] NAMES <- toupper(changed) [18:00:58.131] args <- list() [18:00:58.131] for (kk in seq_along(NAMES)) { [18:00:58.131] name <- changed[[kk]] [18:00:58.131] NAME <- NAMES[[kk]] [18:00:58.131] if (name != NAME && is.element(NAME, old_names)) [18:00:58.131] next [18:00:58.131] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.131] } [18:00:58.131] NAMES <- toupper(added) [18:00:58.131] for (kk in seq_along(NAMES)) { [18:00:58.131] name <- added[[kk]] [18:00:58.131] NAME <- NAMES[[kk]] [18:00:58.131] if (name != NAME && is.element(NAME, old_names)) [18:00:58.131] next [18:00:58.131] args[[name]] <- "" [18:00:58.131] } [18:00:58.131] NAMES <- toupper(removed) [18:00:58.131] for (kk in seq_along(NAMES)) { [18:00:58.131] name <- removed[[kk]] [18:00:58.131] NAME <- NAMES[[kk]] [18:00:58.131] if (name != NAME && is.element(NAME, old_names)) [18:00:58.131] next [18:00:58.131] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.131] } [18:00:58.131] if (length(args) > 0) [18:00:58.131] base::do.call(base::Sys.setenv, args = args) [18:00:58.131] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:00:58.131] } [18:00:58.131] else { [18:00:58.131] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:00:58.131] } [18:00:58.131] { [18:00:58.131] if (base::length(...future.futureOptionsAdded) > [18:00:58.131] 0L) { [18:00:58.131] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:00:58.131] base::names(opts) <- ...future.futureOptionsAdded [18:00:58.131] base::options(opts) [18:00:58.131] } [18:00:58.131] { [18:00:58.131] { [18:00:58.131] NULL [18:00:58.131] RNGkind("Mersenne-Twister") [18:00:58.131] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:00:58.131] inherits = FALSE) [18:00:58.131] } [18:00:58.131] options(future.plan = NULL) [18:00:58.131] if (is.na(NA_character_)) [18:00:58.131] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.131] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:00:58.131] future::plan(list(function (..., envir = parent.frame()) [18:00:58.131] { [18:00:58.131] future <- SequentialFuture(..., envir = envir) [18:00:58.131] if (!future$lazy) [18:00:58.131] future <- run(future) [18:00:58.131] invisible(future) [18:00:58.131] }), .cleanup = FALSE, .init = FALSE) [18:00:58.131] } [18:00:58.131] } [18:00:58.131] } [18:00:58.131] }) [18:00:58.131] if (TRUE) { [18:00:58.131] base::sink(type = "output", split = FALSE) [18:00:58.131] if (TRUE) { [18:00:58.131] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:00:58.131] } [18:00:58.131] else { [18:00:58.131] ...future.result["stdout"] <- base::list(NULL) [18:00:58.131] } [18:00:58.131] base::close(...future.stdout) [18:00:58.131] ...future.stdout <- NULL [18:00:58.131] } [18:00:58.131] ...future.result$conditions <- ...future.conditions [18:00:58.131] ...future.result$finished <- base::Sys.time() [18:00:58.131] ...future.result [18:00:58.131] } [18:00:58.135] plan(): Setting new future strategy stack: [18:00:58.135] List of future strategies: [18:00:58.135] 1. sequential: [18:00:58.135] - args: function (..., envir = parent.frame()) [18:00:58.135] - tweaked: FALSE [18:00:58.135] - call: NULL [18:00:58.136] plan(): nbrOfWorkers() = 1 [18:00:58.137] plan(): Setting new future strategy stack: [18:00:58.137] List of future strategies: [18:00:58.137] 1. sequential: [18:00:58.137] - args: function (..., envir = parent.frame()) [18:00:58.137] - tweaked: FALSE [18:00:58.137] - call: future::plan("sequential") [18:00:58.138] plan(): nbrOfWorkers() = 1 [18:00:58.138] SequentialFuture started (and completed) [18:00:58.138] signalConditions() ... [18:00:58.138] - include = 'immediateCondition' [18:00:58.139] - exclude = [18:00:58.139] - resignal = FALSE [18:00:58.139] - Number of conditions: 1 [18:00:58.139] signalConditions() ... done [18:00:58.139] - Launch lazy future ... done [18:00:58.139] run() for 'SequentialFuture' ... done > env[["b"]] %<-% { 42L; stop("Woops") } [18:00:58.140] getGlobalsAndPackages() ... [18:00:58.140] Searching for globals... [18:00:58.141] - globals found: [2] '{', 'stop' [18:00:58.141] Searching for globals ... DONE [18:00:58.141] Resolving globals: FALSE [18:00:58.142] [18:00:58.142] [18:00:58.142] getGlobalsAndPackages() ... DONE [18:00:58.142] run() for 'Future' ... [18:00:58.143] - state: 'created' [18:00:58.143] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:00:58.143] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:00:58.143] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:00:58.144] - Field: 'label' [18:00:58.144] - Field: 'local' [18:00:58.144] - Field: 'owner' [18:00:58.144] - Field: 'envir' [18:00:58.144] - Field: 'packages' [18:00:58.144] - Field: 'gc' [18:00:58.145] - Field: 'conditions' [18:00:58.145] - Field: 'expr' [18:00:58.145] - Field: 'uuid' [18:00:58.145] - Field: 'seed' [18:00:58.145] - Field: 'version' [18:00:58.146] - Field: 'result' [18:00:58.146] - Field: 'asynchronous' [18:00:58.146] - Field: 'calls' [18:00:58.146] - Field: 'globals' [18:00:58.146] - Field: 'stdout' [18:00:58.146] - Field: 'earlySignal' [18:00:58.147] - Field: 'lazy' [18:00:58.147] - Field: 'state' [18:00:58.147] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:00:58.147] - Launch lazy future ... [18:00:58.147] Packages needed by the future expression (n = 0): [18:00:58.148] Packages needed by future strategies (n = 0): [18:00:58.148] { [18:00:58.148] { [18:00:58.148] { [18:00:58.148] ...future.startTime <- base::Sys.time() [18:00:58.148] { [18:00:58.148] { [18:00:58.148] { [18:00:58.148] base::local({ [18:00:58.148] has_future <- base::requireNamespace("future", [18:00:58.148] quietly = TRUE) [18:00:58.148] if (has_future) { [18:00:58.148] ns <- base::getNamespace("future") [18:00:58.148] version <- ns[[".package"]][["version"]] [18:00:58.148] if (is.null(version)) [18:00:58.148] version <- utils::packageVersion("future") [18:00:58.148] } [18:00:58.148] else { [18:00:58.148] version <- NULL [18:00:58.148] } [18:00:58.148] if (!has_future || version < "1.8.0") { [18:00:58.148] info <- base::c(r_version = base::gsub("R version ", [18:00:58.148] "", base::R.version$version.string), [18:00:58.148] platform = base::sprintf("%s (%s-bit)", [18:00:58.148] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:00:58.148] os = base::paste(base::Sys.info()[base::c("sysname", [18:00:58.148] "release", "version")], collapse = " "), [18:00:58.148] hostname = base::Sys.info()[["nodename"]]) [18:00:58.148] info <- base::sprintf("%s: %s", base::names(info), [18:00:58.148] info) [18:00:58.148] info <- base::paste(info, collapse = "; ") [18:00:58.148] if (!has_future) { [18:00:58.148] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:00:58.148] info) [18:00:58.148] } [18:00:58.148] else { [18:00:58.148] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:00:58.148] info, version) [18:00:58.148] } [18:00:58.148] base::stop(msg) [18:00:58.148] } [18:00:58.148] }) [18:00:58.148] } [18:00:58.148] options(future.plan = NULL) [18:00:58.148] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.148] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:00:58.148] } [18:00:58.148] ...future.workdir <- getwd() [18:00:58.148] } [18:00:58.148] ...future.oldOptions <- base::as.list(base::.Options) [18:00:58.148] ...future.oldEnvVars <- base::Sys.getenv() [18:00:58.148] } [18:00:58.148] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:00:58.148] future.globals.maxSize = NULL, future.globals.method = NULL, [18:00:58.148] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:00:58.148] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:00:58.148] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:00:58.148] future.stdout.windows.reencode = NULL, width = 80L) [18:00:58.148] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:00:58.148] base::names(...future.oldOptions)) [18:00:58.148] } [18:00:58.148] if (FALSE) { [18:00:58.148] } [18:00:58.148] else { [18:00:58.148] if (TRUE) { [18:00:58.148] ...future.stdout <- base::rawConnection(base::raw(0L), [18:00:58.148] open = "w") [18:00:58.148] } [18:00:58.148] else { [18:00:58.148] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:00:58.148] windows = "NUL", "/dev/null"), open = "w") [18:00:58.148] } [18:00:58.148] base::sink(...future.stdout, type = "output", split = FALSE) [18:00:58.148] base::on.exit(if (!base::is.null(...future.stdout)) { [18:00:58.148] base::sink(type = "output", split = FALSE) [18:00:58.148] base::close(...future.stdout) [18:00:58.148] }, add = TRUE) [18:00:58.148] } [18:00:58.148] ...future.frame <- base::sys.nframe() [18:00:58.148] ...future.conditions <- base::list() [18:00:58.148] ...future.rng <- base::globalenv()$.Random.seed [18:00:58.148] if (FALSE) { [18:00:58.148] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:00:58.148] "...future.value", "...future.globalenv.names", ".Random.seed") [18:00:58.148] } [18:00:58.148] ...future.result <- base::tryCatch({ [18:00:58.148] base::withCallingHandlers({ [18:00:58.148] ...future.value <- base::withVisible(base::local({ [18:00:58.148] 42L [18:00:58.148] stop("Woops") [18:00:58.148] })) [18:00:58.148] future::FutureResult(value = ...future.value$value, [18:00:58.148] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.148] ...future.rng), globalenv = if (FALSE) [18:00:58.148] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:00:58.148] ...future.globalenv.names)) [18:00:58.148] else NULL, started = ...future.startTime, version = "1.8") [18:00:58.148] }, condition = base::local({ [18:00:58.148] c <- base::c [18:00:58.148] inherits <- base::inherits [18:00:58.148] invokeRestart <- base::invokeRestart [18:00:58.148] length <- base::length [18:00:58.148] list <- base::list [18:00:58.148] seq.int <- base::seq.int [18:00:58.148] signalCondition <- base::signalCondition [18:00:58.148] sys.calls <- base::sys.calls [18:00:58.148] `[[` <- base::`[[` [18:00:58.148] `+` <- base::`+` [18:00:58.148] `<<-` <- base::`<<-` [18:00:58.148] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:00:58.148] calls[seq.int(from = from + 12L, to = length(calls) - [18:00:58.148] 3L)] [18:00:58.148] } [18:00:58.148] function(cond) { [18:00:58.148] is_error <- inherits(cond, "error") [18:00:58.148] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:00:58.148] NULL) [18:00:58.148] if (is_error) { [18:00:58.148] sessionInformation <- function() { [18:00:58.148] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:00:58.148] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:00:58.148] search = base::search(), system = base::Sys.info()) [18:00:58.148] } [18:00:58.148] ...future.conditions[[length(...future.conditions) + [18:00:58.148] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:00:58.148] cond$call), session = sessionInformation(), [18:00:58.148] timestamp = base::Sys.time(), signaled = 0L) [18:00:58.148] signalCondition(cond) [18:00:58.148] } [18:00:58.148] else if (!ignore && TRUE && inherits(cond, c("condition", [18:00:58.148] "immediateCondition"))) { [18:00:58.148] signal <- TRUE && inherits(cond, "immediateCondition") [18:00:58.148] ...future.conditions[[length(...future.conditions) + [18:00:58.148] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:00:58.148] if (TRUE && !signal) { [18:00:58.148] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.148] { [18:00:58.148] inherits <- base::inherits [18:00:58.148] invokeRestart <- base::invokeRestart [18:00:58.148] is.null <- base::is.null [18:00:58.148] muffled <- FALSE [18:00:58.148] if (inherits(cond, "message")) { [18:00:58.148] muffled <- grepl(pattern, "muffleMessage") [18:00:58.148] if (muffled) [18:00:58.148] invokeRestart("muffleMessage") [18:00:58.148] } [18:00:58.148] else if (inherits(cond, "warning")) { [18:00:58.148] muffled <- grepl(pattern, "muffleWarning") [18:00:58.148] if (muffled) [18:00:58.148] invokeRestart("muffleWarning") [18:00:58.148] } [18:00:58.148] else if (inherits(cond, "condition")) { [18:00:58.148] if (!is.null(pattern)) { [18:00:58.148] computeRestarts <- base::computeRestarts [18:00:58.148] grepl <- base::grepl [18:00:58.148] restarts <- computeRestarts(cond) [18:00:58.148] for (restart in restarts) { [18:00:58.148] name <- restart$name [18:00:58.148] if (is.null(name)) [18:00:58.148] next [18:00:58.148] if (!grepl(pattern, name)) [18:00:58.148] next [18:00:58.148] invokeRestart(restart) [18:00:58.148] muffled <- TRUE [18:00:58.148] break [18:00:58.148] } [18:00:58.148] } [18:00:58.148] } [18:00:58.148] invisible(muffled) [18:00:58.148] } [18:00:58.148] muffleCondition(cond, pattern = "^muffle") [18:00:58.148] } [18:00:58.148] } [18:00:58.148] else { [18:00:58.148] if (TRUE) { [18:00:58.148] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.148] { [18:00:58.148] inherits <- base::inherits [18:00:58.148] invokeRestart <- base::invokeRestart [18:00:58.148] is.null <- base::is.null [18:00:58.148] muffled <- FALSE [18:00:58.148] if (inherits(cond, "message")) { [18:00:58.148] muffled <- grepl(pattern, "muffleMessage") [18:00:58.148] if (muffled) [18:00:58.148] invokeRestart("muffleMessage") [18:00:58.148] } [18:00:58.148] else if (inherits(cond, "warning")) { [18:00:58.148] muffled <- grepl(pattern, "muffleWarning") [18:00:58.148] if (muffled) [18:00:58.148] invokeRestart("muffleWarning") [18:00:58.148] } [18:00:58.148] else if (inherits(cond, "condition")) { [18:00:58.148] if (!is.null(pattern)) { [18:00:58.148] computeRestarts <- base::computeRestarts [18:00:58.148] grepl <- base::grepl [18:00:58.148] restarts <- computeRestarts(cond) [18:00:58.148] for (restart in restarts) { [18:00:58.148] name <- restart$name [18:00:58.148] if (is.null(name)) [18:00:58.148] next [18:00:58.148] if (!grepl(pattern, name)) [18:00:58.148] next [18:00:58.148] invokeRestart(restart) [18:00:58.148] muffled <- TRUE [18:00:58.148] break [18:00:58.148] } [18:00:58.148] } [18:00:58.148] } [18:00:58.148] invisible(muffled) [18:00:58.148] } [18:00:58.148] muffleCondition(cond, pattern = "^muffle") [18:00:58.148] } [18:00:58.148] } [18:00:58.148] } [18:00:58.148] })) [18:00:58.148] }, error = function(ex) { [18:00:58.148] base::structure(base::list(value = NULL, visible = NULL, [18:00:58.148] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.148] ...future.rng), started = ...future.startTime, [18:00:58.148] finished = Sys.time(), session_uuid = NA_character_, [18:00:58.148] version = "1.8"), class = "FutureResult") [18:00:58.148] }, finally = { [18:00:58.148] if (!identical(...future.workdir, getwd())) [18:00:58.148] setwd(...future.workdir) [18:00:58.148] { [18:00:58.148] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:00:58.148] ...future.oldOptions$nwarnings <- NULL [18:00:58.148] } [18:00:58.148] base::options(...future.oldOptions) [18:00:58.148] if (.Platform$OS.type == "windows") { [18:00:58.148] old_names <- names(...future.oldEnvVars) [18:00:58.148] envs <- base::Sys.getenv() [18:00:58.148] names <- names(envs) [18:00:58.148] common <- intersect(names, old_names) [18:00:58.148] added <- setdiff(names, old_names) [18:00:58.148] removed <- setdiff(old_names, names) [18:00:58.148] changed <- common[...future.oldEnvVars[common] != [18:00:58.148] envs[common]] [18:00:58.148] NAMES <- toupper(changed) [18:00:58.148] args <- list() [18:00:58.148] for (kk in seq_along(NAMES)) { [18:00:58.148] name <- changed[[kk]] [18:00:58.148] NAME <- NAMES[[kk]] [18:00:58.148] if (name != NAME && is.element(NAME, old_names)) [18:00:58.148] next [18:00:58.148] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.148] } [18:00:58.148] NAMES <- toupper(added) [18:00:58.148] for (kk in seq_along(NAMES)) { [18:00:58.148] name <- added[[kk]] [18:00:58.148] NAME <- NAMES[[kk]] [18:00:58.148] if (name != NAME && is.element(NAME, old_names)) [18:00:58.148] next [18:00:58.148] args[[name]] <- "" [18:00:58.148] } [18:00:58.148] NAMES <- toupper(removed) [18:00:58.148] for (kk in seq_along(NAMES)) { [18:00:58.148] name <- removed[[kk]] [18:00:58.148] NAME <- NAMES[[kk]] [18:00:58.148] if (name != NAME && is.element(NAME, old_names)) [18:00:58.148] next [18:00:58.148] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.148] } [18:00:58.148] if (length(args) > 0) [18:00:58.148] base::do.call(base::Sys.setenv, args = args) [18:00:58.148] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:00:58.148] } [18:00:58.148] else { [18:00:58.148] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:00:58.148] } [18:00:58.148] { [18:00:58.148] if (base::length(...future.futureOptionsAdded) > [18:00:58.148] 0L) { [18:00:58.148] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:00:58.148] base::names(opts) <- ...future.futureOptionsAdded [18:00:58.148] base::options(opts) [18:00:58.148] } [18:00:58.148] { [18:00:58.148] { [18:00:58.148] NULL [18:00:58.148] RNGkind("Mersenne-Twister") [18:00:58.148] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:00:58.148] inherits = FALSE) [18:00:58.148] } [18:00:58.148] options(future.plan = NULL) [18:00:58.148] if (is.na(NA_character_)) [18:00:58.148] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.148] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:00:58.148] future::plan(list(function (..., envir = parent.frame()) [18:00:58.148] { [18:00:58.148] future <- SequentialFuture(..., envir = envir) [18:00:58.148] if (!future$lazy) [18:00:58.148] future <- run(future) [18:00:58.148] invisible(future) [18:00:58.148] }), .cleanup = FALSE, .init = FALSE) [18:00:58.148] } [18:00:58.148] } [18:00:58.148] } [18:00:58.148] }) [18:00:58.148] if (TRUE) { [18:00:58.148] base::sink(type = "output", split = FALSE) [18:00:58.148] if (TRUE) { [18:00:58.148] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:00:58.148] } [18:00:58.148] else { [18:00:58.148] ...future.result["stdout"] <- base::list(NULL) [18:00:58.148] } [18:00:58.148] base::close(...future.stdout) [18:00:58.148] ...future.stdout <- NULL [18:00:58.148] } [18:00:58.148] ...future.result$conditions <- ...future.conditions [18:00:58.148] ...future.result$finished <- base::Sys.time() [18:00:58.148] ...future.result [18:00:58.148] } [18:00:58.152] plan(): Setting new future strategy stack: [18:00:58.152] List of future strategies: [18:00:58.152] 1. sequential: [18:00:58.152] - args: function (..., envir = parent.frame()) [18:00:58.152] - tweaked: FALSE [18:00:58.152] - call: NULL [18:00:58.153] plan(): nbrOfWorkers() = 1 [18:00:58.154] plan(): Setting new future strategy stack: [18:00:58.154] List of future strategies: [18:00:58.154] 1. sequential: [18:00:58.154] - args: function (..., envir = parent.frame()) [18:00:58.154] - tweaked: FALSE [18:00:58.154] - call: future::plan("sequential") [18:00:58.155] plan(): nbrOfWorkers() = 1 [18:00:58.155] SequentialFuture started (and completed) [18:00:58.155] signalConditions() ... [18:00:58.155] - include = 'immediateCondition' [18:00:58.155] - exclude = [18:00:58.156] - resignal = FALSE [18:00:58.156] - Number of conditions: 1 [18:00:58.156] signalConditions() ... done [18:00:58.156] - Launch lazy future ... done [18:00:58.156] run() for 'SequentialFuture' ... done > calls <- backtrace(env[["b"]]) [18:00:58.157] resolved() for 'SequentialFuture' ... [18:00:58.157] - state: 'finished' [18:00:58.157] - run: TRUE [18:00:58.157] - result: 'FutureResult' [18:00:58.157] resolved() for 'SequentialFuture' ... done > print(calls) [[1]] env[["b"]] %<-% { 42L stop("Woops") } [[2]] futureAssignInternal(target, expr, envir = envir, substitute = FALSE) [[3]] futureAssign(name, expr, envir = envir, assign.env = assign.env, substitute = FALSE) [[4]] do.call(future::future, args = future.args, envir = assign.env) [[5]] (function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = FALSE, globals = TRUE, packages = NULL, stdout = TRUE, conditions = "condition", earlySignal = FALSE, label = NULL, gc = FALSE, ...) { if (substitute) expr <- substitute(expr) t_start <- Sys.time() gp <- getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, globals = globals) expr <- gp$expr globals <- gp$globals if (length(packages) > 0 || length(gp$packages) > 0) { packages <- unique(c(gp$packages, packages)) } gp <- NULL attr(globals, "already-done") <- TRUE future <- Future(expr, substitute = FALSE, envir = envir, lazy = TRUE, seed = seed, globals = globals, packages = packages, stdout = stdout, conditions = conditions, earlySignal = earlySignal, label = label, gc = gc, ...) future$.defaultLocal <- !is.element("local", names(list(...))) if (getOption("future.journal", FALSE)) { future <- makeFutureJournal(future, event = "create", category = "overhead", start = t_start) } if (!lazy) { future <- run(future) future$lazy <- FALSE stop_if_not(inherits(future, "Future"), !future$lazy) } future })({ 42L stop("Woops") }, envir = , lazy = FALSE, seed = FALSE, globals = TRUE, packages = NULL, stdout = TRUE, conditions = "condition", earlySignal = FALSE, label = NULL, gc = FALSE) [[6]] Future(expr, substitute = FALSE, envir = envir, lazy = TRUE, seed = seed, globals = globals, packages = packages, stdout = stdout, conditions = conditions, earlySignal = earlySignal, label = label, gc = gc, ...) [[7]] eval(quote({ 42L stop("Woops") }), new.env()) [[8]] stop("Woops") [[9]] eval(quote({ 42L stop("Woops") }), new.env()) > stopifnot(is.list(calls)) > > lenv <- listenv::listenv() > lenv[[1]] %<-% { 42L; stop("Woops") } [18:00:58.159] getGlobalsAndPackages() ... [18:00:58.159] Searching for globals... [18:00:58.160] - globals found: [2] '{', 'stop' [18:00:58.161] Searching for globals ... DONE [18:00:58.161] Resolving globals: FALSE [18:00:58.161] [18:00:58.161] [18:00:58.162] getGlobalsAndPackages() ... DONE [18:00:58.162] run() for 'Future' ... [18:00:58.162] - state: 'created' [18:00:58.162] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:00:58.163] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:00:58.163] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:00:58.163] - Field: 'label' [18:00:58.163] - Field: 'local' [18:00:58.163] - Field: 'owner' [18:00:58.164] - Field: 'envir' [18:00:58.164] - Field: 'packages' [18:00:58.164] - Field: 'gc' [18:00:58.164] - Field: 'conditions' [18:00:58.164] - Field: 'expr' [18:00:58.165] - Field: 'uuid' [18:00:58.165] - Field: 'seed' [18:00:58.165] - Field: 'version' [18:00:58.165] - Field: 'result' [18:00:58.165] - Field: 'asynchronous' [18:00:58.165] - Field: 'calls' [18:00:58.166] - Field: 'globals' [18:00:58.166] - Field: 'stdout' [18:00:58.167] - Field: 'earlySignal' [18:00:58.167] - Field: 'lazy' [18:00:58.167] - Field: 'state' [18:00:58.167] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:00:58.168] - Launch lazy future ... [18:00:58.168] Packages needed by the future expression (n = 0): [18:00:58.168] Packages needed by future strategies (n = 0): [18:00:58.169] { [18:00:58.169] { [18:00:58.169] { [18:00:58.169] ...future.startTime <- base::Sys.time() [18:00:58.169] { [18:00:58.169] { [18:00:58.169] { [18:00:58.169] base::local({ [18:00:58.169] has_future <- base::requireNamespace("future", [18:00:58.169] quietly = TRUE) [18:00:58.169] if (has_future) { [18:00:58.169] ns <- base::getNamespace("future") [18:00:58.169] version <- ns[[".package"]][["version"]] [18:00:58.169] if (is.null(version)) [18:00:58.169] version <- utils::packageVersion("future") [18:00:58.169] } [18:00:58.169] else { [18:00:58.169] version <- NULL [18:00:58.169] } [18:00:58.169] if (!has_future || version < "1.8.0") { [18:00:58.169] info <- base::c(r_version = base::gsub("R version ", [18:00:58.169] "", base::R.version$version.string), [18:00:58.169] platform = base::sprintf("%s (%s-bit)", [18:00:58.169] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:00:58.169] os = base::paste(base::Sys.info()[base::c("sysname", [18:00:58.169] "release", "version")], collapse = " "), [18:00:58.169] hostname = base::Sys.info()[["nodename"]]) [18:00:58.169] info <- base::sprintf("%s: %s", base::names(info), [18:00:58.169] info) [18:00:58.169] info <- base::paste(info, collapse = "; ") [18:00:58.169] if (!has_future) { [18:00:58.169] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:00:58.169] info) [18:00:58.169] } [18:00:58.169] else { [18:00:58.169] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:00:58.169] info, version) [18:00:58.169] } [18:00:58.169] base::stop(msg) [18:00:58.169] } [18:00:58.169] }) [18:00:58.169] } [18:00:58.169] options(future.plan = NULL) [18:00:58.169] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.169] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:00:58.169] } [18:00:58.169] ...future.workdir <- getwd() [18:00:58.169] } [18:00:58.169] ...future.oldOptions <- base::as.list(base::.Options) [18:00:58.169] ...future.oldEnvVars <- base::Sys.getenv() [18:00:58.169] } [18:00:58.169] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:00:58.169] future.globals.maxSize = NULL, future.globals.method = NULL, [18:00:58.169] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:00:58.169] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:00:58.169] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:00:58.169] future.stdout.windows.reencode = NULL, width = 80L) [18:00:58.169] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:00:58.169] base::names(...future.oldOptions)) [18:00:58.169] } [18:00:58.169] if (FALSE) { [18:00:58.169] } [18:00:58.169] else { [18:00:58.169] if (TRUE) { [18:00:58.169] ...future.stdout <- base::rawConnection(base::raw(0L), [18:00:58.169] open = "w") [18:00:58.169] } [18:00:58.169] else { [18:00:58.169] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:00:58.169] windows = "NUL", "/dev/null"), open = "w") [18:00:58.169] } [18:00:58.169] base::sink(...future.stdout, type = "output", split = FALSE) [18:00:58.169] base::on.exit(if (!base::is.null(...future.stdout)) { [18:00:58.169] base::sink(type = "output", split = FALSE) [18:00:58.169] base::close(...future.stdout) [18:00:58.169] }, add = TRUE) [18:00:58.169] } [18:00:58.169] ...future.frame <- base::sys.nframe() [18:00:58.169] ...future.conditions <- base::list() [18:00:58.169] ...future.rng <- base::globalenv()$.Random.seed [18:00:58.169] if (FALSE) { [18:00:58.169] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:00:58.169] "...future.value", "...future.globalenv.names", ".Random.seed") [18:00:58.169] } [18:00:58.169] ...future.result <- base::tryCatch({ [18:00:58.169] base::withCallingHandlers({ [18:00:58.169] ...future.value <- base::withVisible(base::local({ [18:00:58.169] 42L [18:00:58.169] stop("Woops") [18:00:58.169] })) [18:00:58.169] future::FutureResult(value = ...future.value$value, [18:00:58.169] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.169] ...future.rng), globalenv = if (FALSE) [18:00:58.169] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:00:58.169] ...future.globalenv.names)) [18:00:58.169] else NULL, started = ...future.startTime, version = "1.8") [18:00:58.169] }, condition = base::local({ [18:00:58.169] c <- base::c [18:00:58.169] inherits <- base::inherits [18:00:58.169] invokeRestart <- base::invokeRestart [18:00:58.169] length <- base::length [18:00:58.169] list <- base::list [18:00:58.169] seq.int <- base::seq.int [18:00:58.169] signalCondition <- base::signalCondition [18:00:58.169] sys.calls <- base::sys.calls [18:00:58.169] `[[` <- base::`[[` [18:00:58.169] `+` <- base::`+` [18:00:58.169] `<<-` <- base::`<<-` [18:00:58.169] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:00:58.169] calls[seq.int(from = from + 12L, to = length(calls) - [18:00:58.169] 3L)] [18:00:58.169] } [18:00:58.169] function(cond) { [18:00:58.169] is_error <- inherits(cond, "error") [18:00:58.169] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:00:58.169] NULL) [18:00:58.169] if (is_error) { [18:00:58.169] sessionInformation <- function() { [18:00:58.169] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:00:58.169] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:00:58.169] search = base::search(), system = base::Sys.info()) [18:00:58.169] } [18:00:58.169] ...future.conditions[[length(...future.conditions) + [18:00:58.169] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:00:58.169] cond$call), session = sessionInformation(), [18:00:58.169] timestamp = base::Sys.time(), signaled = 0L) [18:00:58.169] signalCondition(cond) [18:00:58.169] } [18:00:58.169] else if (!ignore && TRUE && inherits(cond, c("condition", [18:00:58.169] "immediateCondition"))) { [18:00:58.169] signal <- TRUE && inherits(cond, "immediateCondition") [18:00:58.169] ...future.conditions[[length(...future.conditions) + [18:00:58.169] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:00:58.169] if (TRUE && !signal) { [18:00:58.169] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.169] { [18:00:58.169] inherits <- base::inherits [18:00:58.169] invokeRestart <- base::invokeRestart [18:00:58.169] is.null <- base::is.null [18:00:58.169] muffled <- FALSE [18:00:58.169] if (inherits(cond, "message")) { [18:00:58.169] muffled <- grepl(pattern, "muffleMessage") [18:00:58.169] if (muffled) [18:00:58.169] invokeRestart("muffleMessage") [18:00:58.169] } [18:00:58.169] else if (inherits(cond, "warning")) { [18:00:58.169] muffled <- grepl(pattern, "muffleWarning") [18:00:58.169] if (muffled) [18:00:58.169] invokeRestart("muffleWarning") [18:00:58.169] } [18:00:58.169] else if (inherits(cond, "condition")) { [18:00:58.169] if (!is.null(pattern)) { [18:00:58.169] computeRestarts <- base::computeRestarts [18:00:58.169] grepl <- base::grepl [18:00:58.169] restarts <- computeRestarts(cond) [18:00:58.169] for (restart in restarts) { [18:00:58.169] name <- restart$name [18:00:58.169] if (is.null(name)) [18:00:58.169] next [18:00:58.169] if (!grepl(pattern, name)) [18:00:58.169] next [18:00:58.169] invokeRestart(restart) [18:00:58.169] muffled <- TRUE [18:00:58.169] break [18:00:58.169] } [18:00:58.169] } [18:00:58.169] } [18:00:58.169] invisible(muffled) [18:00:58.169] } [18:00:58.169] muffleCondition(cond, pattern = "^muffle") [18:00:58.169] } [18:00:58.169] } [18:00:58.169] else { [18:00:58.169] if (TRUE) { [18:00:58.169] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.169] { [18:00:58.169] inherits <- base::inherits [18:00:58.169] invokeRestart <- base::invokeRestart [18:00:58.169] is.null <- base::is.null [18:00:58.169] muffled <- FALSE [18:00:58.169] if (inherits(cond, "message")) { [18:00:58.169] muffled <- grepl(pattern, "muffleMessage") [18:00:58.169] if (muffled) [18:00:58.169] invokeRestart("muffleMessage") [18:00:58.169] } [18:00:58.169] else if (inherits(cond, "warning")) { [18:00:58.169] muffled <- grepl(pattern, "muffleWarning") [18:00:58.169] if (muffled) [18:00:58.169] invokeRestart("muffleWarning") [18:00:58.169] } [18:00:58.169] else if (inherits(cond, "condition")) { [18:00:58.169] if (!is.null(pattern)) { [18:00:58.169] computeRestarts <- base::computeRestarts [18:00:58.169] grepl <- base::grepl [18:00:58.169] restarts <- computeRestarts(cond) [18:00:58.169] for (restart in restarts) { [18:00:58.169] name <- restart$name [18:00:58.169] if (is.null(name)) [18:00:58.169] next [18:00:58.169] if (!grepl(pattern, name)) [18:00:58.169] next [18:00:58.169] invokeRestart(restart) [18:00:58.169] muffled <- TRUE [18:00:58.169] break [18:00:58.169] } [18:00:58.169] } [18:00:58.169] } [18:00:58.169] invisible(muffled) [18:00:58.169] } [18:00:58.169] muffleCondition(cond, pattern = "^muffle") [18:00:58.169] } [18:00:58.169] } [18:00:58.169] } [18:00:58.169] })) [18:00:58.169] }, error = function(ex) { [18:00:58.169] base::structure(base::list(value = NULL, visible = NULL, [18:00:58.169] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.169] ...future.rng), started = ...future.startTime, [18:00:58.169] finished = Sys.time(), session_uuid = NA_character_, [18:00:58.169] version = "1.8"), class = "FutureResult") [18:00:58.169] }, finally = { [18:00:58.169] if (!identical(...future.workdir, getwd())) [18:00:58.169] setwd(...future.workdir) [18:00:58.169] { [18:00:58.169] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:00:58.169] ...future.oldOptions$nwarnings <- NULL [18:00:58.169] } [18:00:58.169] base::options(...future.oldOptions) [18:00:58.169] if (.Platform$OS.type == "windows") { [18:00:58.169] old_names <- names(...future.oldEnvVars) [18:00:58.169] envs <- base::Sys.getenv() [18:00:58.169] names <- names(envs) [18:00:58.169] common <- intersect(names, old_names) [18:00:58.169] added <- setdiff(names, old_names) [18:00:58.169] removed <- setdiff(old_names, names) [18:00:58.169] changed <- common[...future.oldEnvVars[common] != [18:00:58.169] envs[common]] [18:00:58.169] NAMES <- toupper(changed) [18:00:58.169] args <- list() [18:00:58.169] for (kk in seq_along(NAMES)) { [18:00:58.169] name <- changed[[kk]] [18:00:58.169] NAME <- NAMES[[kk]] [18:00:58.169] if (name != NAME && is.element(NAME, old_names)) [18:00:58.169] next [18:00:58.169] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.169] } [18:00:58.169] NAMES <- toupper(added) [18:00:58.169] for (kk in seq_along(NAMES)) { [18:00:58.169] name <- added[[kk]] [18:00:58.169] NAME <- NAMES[[kk]] [18:00:58.169] if (name != NAME && is.element(NAME, old_names)) [18:00:58.169] next [18:00:58.169] args[[name]] <- "" [18:00:58.169] } [18:00:58.169] NAMES <- toupper(removed) [18:00:58.169] for (kk in seq_along(NAMES)) { [18:00:58.169] name <- removed[[kk]] [18:00:58.169] NAME <- NAMES[[kk]] [18:00:58.169] if (name != NAME && is.element(NAME, old_names)) [18:00:58.169] next [18:00:58.169] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.169] } [18:00:58.169] if (length(args) > 0) [18:00:58.169] base::do.call(base::Sys.setenv, args = args) [18:00:58.169] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:00:58.169] } [18:00:58.169] else { [18:00:58.169] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:00:58.169] } [18:00:58.169] { [18:00:58.169] if (base::length(...future.futureOptionsAdded) > [18:00:58.169] 0L) { [18:00:58.169] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:00:58.169] base::names(opts) <- ...future.futureOptionsAdded [18:00:58.169] base::options(opts) [18:00:58.169] } [18:00:58.169] { [18:00:58.169] { [18:00:58.169] NULL [18:00:58.169] RNGkind("Mersenne-Twister") [18:00:58.169] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:00:58.169] inherits = FALSE) [18:00:58.169] } [18:00:58.169] options(future.plan = NULL) [18:00:58.169] if (is.na(NA_character_)) [18:00:58.169] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.169] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:00:58.169] future::plan(list(function (..., envir = parent.frame()) [18:00:58.169] { [18:00:58.169] future <- SequentialFuture(..., envir = envir) [18:00:58.169] if (!future$lazy) [18:00:58.169] future <- run(future) [18:00:58.169] invisible(future) [18:00:58.169] }), .cleanup = FALSE, .init = FALSE) [18:00:58.169] } [18:00:58.169] } [18:00:58.169] } [18:00:58.169] }) [18:00:58.169] if (TRUE) { [18:00:58.169] base::sink(type = "output", split = FALSE) [18:00:58.169] if (TRUE) { [18:00:58.169] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:00:58.169] } [18:00:58.169] else { [18:00:58.169] ...future.result["stdout"] <- base::list(NULL) [18:00:58.169] } [18:00:58.169] base::close(...future.stdout) [18:00:58.169] ...future.stdout <- NULL [18:00:58.169] } [18:00:58.169] ...future.result$conditions <- ...future.conditions [18:00:58.169] ...future.result$finished <- base::Sys.time() [18:00:58.169] ...future.result [18:00:58.169] } [18:00:58.173] plan(): Setting new future strategy stack: [18:00:58.173] List of future strategies: [18:00:58.173] 1. sequential: [18:00:58.173] - args: function (..., envir = parent.frame()) [18:00:58.173] - tweaked: FALSE [18:00:58.173] - call: NULL [18:00:58.173] plan(): nbrOfWorkers() = 1 [18:00:58.174] plan(): Setting new future strategy stack: [18:00:58.175] List of future strategies: [18:00:58.175] 1. sequential: [18:00:58.175] - args: function (..., envir = parent.frame()) [18:00:58.175] - tweaked: FALSE [18:00:58.175] - call: future::plan("sequential") [18:00:58.175] plan(): nbrOfWorkers() = 1 [18:00:58.175] SequentialFuture started (and completed) [18:00:58.176] signalConditions() ... [18:00:58.176] - include = 'immediateCondition' [18:00:58.176] - exclude = [18:00:58.176] - resignal = FALSE [18:00:58.176] - Number of conditions: 1 [18:00:58.176] signalConditions() ... done [18:00:58.177] - Launch lazy future ... done [18:00:58.177] run() for 'SequentialFuture' ... done > lenv[[2]] %<-% { 42L; stop("Woops") } [18:00:58.177] getGlobalsAndPackages() ... [18:00:58.177] Searching for globals... [18:00:58.179] - globals found: [2] '{', 'stop' [18:00:58.179] Searching for globals ... DONE [18:00:58.179] Resolving globals: FALSE [18:00:58.179] [18:00:58.180] [18:00:58.180] getGlobalsAndPackages() ... DONE [18:00:58.180] run() for 'Future' ... [18:00:58.180] - state: 'created' [18:00:58.180] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:00:58.181] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:00:58.181] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:00:58.181] - Field: 'label' [18:00:58.181] - Field: 'local' [18:00:58.181] - Field: 'owner' [18:00:58.182] - Field: 'envir' [18:00:58.182] - Field: 'packages' [18:00:58.182] - Field: 'gc' [18:00:58.182] - Field: 'conditions' [18:00:58.182] - Field: 'expr' [18:00:58.183] - Field: 'uuid' [18:00:58.183] - Field: 'seed' [18:00:58.183] - Field: 'version' [18:00:58.183] - Field: 'result' [18:00:58.183] - Field: 'asynchronous' [18:00:58.183] - Field: 'calls' [18:00:58.184] - Field: 'globals' [18:00:58.184] - Field: 'stdout' [18:00:58.184] - Field: 'earlySignal' [18:00:58.184] - Field: 'lazy' [18:00:58.184] - Field: 'state' [18:00:58.184] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:00:58.185] - Launch lazy future ... [18:00:58.185] Packages needed by the future expression (n = 0): [18:00:58.185] Packages needed by future strategies (n = 0): [18:00:58.186] { [18:00:58.186] { [18:00:58.186] { [18:00:58.186] ...future.startTime <- base::Sys.time() [18:00:58.186] { [18:00:58.186] { [18:00:58.186] { [18:00:58.186] base::local({ [18:00:58.186] has_future <- base::requireNamespace("future", [18:00:58.186] quietly = TRUE) [18:00:58.186] if (has_future) { [18:00:58.186] ns <- base::getNamespace("future") [18:00:58.186] version <- ns[[".package"]][["version"]] [18:00:58.186] if (is.null(version)) [18:00:58.186] version <- utils::packageVersion("future") [18:00:58.186] } [18:00:58.186] else { [18:00:58.186] version <- NULL [18:00:58.186] } [18:00:58.186] if (!has_future || version < "1.8.0") { [18:00:58.186] info <- base::c(r_version = base::gsub("R version ", [18:00:58.186] "", base::R.version$version.string), [18:00:58.186] platform = base::sprintf("%s (%s-bit)", [18:00:58.186] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:00:58.186] os = base::paste(base::Sys.info()[base::c("sysname", [18:00:58.186] "release", "version")], collapse = " "), [18:00:58.186] hostname = base::Sys.info()[["nodename"]]) [18:00:58.186] info <- base::sprintf("%s: %s", base::names(info), [18:00:58.186] info) [18:00:58.186] info <- base::paste(info, collapse = "; ") [18:00:58.186] if (!has_future) { [18:00:58.186] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:00:58.186] info) [18:00:58.186] } [18:00:58.186] else { [18:00:58.186] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:00:58.186] info, version) [18:00:58.186] } [18:00:58.186] base::stop(msg) [18:00:58.186] } [18:00:58.186] }) [18:00:58.186] } [18:00:58.186] options(future.plan = NULL) [18:00:58.186] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.186] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:00:58.186] } [18:00:58.186] ...future.workdir <- getwd() [18:00:58.186] } [18:00:58.186] ...future.oldOptions <- base::as.list(base::.Options) [18:00:58.186] ...future.oldEnvVars <- base::Sys.getenv() [18:00:58.186] } [18:00:58.186] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:00:58.186] future.globals.maxSize = NULL, future.globals.method = NULL, [18:00:58.186] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:00:58.186] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:00:58.186] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:00:58.186] future.stdout.windows.reencode = NULL, width = 80L) [18:00:58.186] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:00:58.186] base::names(...future.oldOptions)) [18:00:58.186] } [18:00:58.186] if (FALSE) { [18:00:58.186] } [18:00:58.186] else { [18:00:58.186] if (TRUE) { [18:00:58.186] ...future.stdout <- base::rawConnection(base::raw(0L), [18:00:58.186] open = "w") [18:00:58.186] } [18:00:58.186] else { [18:00:58.186] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:00:58.186] windows = "NUL", "/dev/null"), open = "w") [18:00:58.186] } [18:00:58.186] base::sink(...future.stdout, type = "output", split = FALSE) [18:00:58.186] base::on.exit(if (!base::is.null(...future.stdout)) { [18:00:58.186] base::sink(type = "output", split = FALSE) [18:00:58.186] base::close(...future.stdout) [18:00:58.186] }, add = TRUE) [18:00:58.186] } [18:00:58.186] ...future.frame <- base::sys.nframe() [18:00:58.186] ...future.conditions <- base::list() [18:00:58.186] ...future.rng <- base::globalenv()$.Random.seed [18:00:58.186] if (FALSE) { [18:00:58.186] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:00:58.186] "...future.value", "...future.globalenv.names", ".Random.seed") [18:00:58.186] } [18:00:58.186] ...future.result <- base::tryCatch({ [18:00:58.186] base::withCallingHandlers({ [18:00:58.186] ...future.value <- base::withVisible(base::local({ [18:00:58.186] 42L [18:00:58.186] stop("Woops") [18:00:58.186] })) [18:00:58.186] future::FutureResult(value = ...future.value$value, [18:00:58.186] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.186] ...future.rng), globalenv = if (FALSE) [18:00:58.186] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:00:58.186] ...future.globalenv.names)) [18:00:58.186] else NULL, started = ...future.startTime, version = "1.8") [18:00:58.186] }, condition = base::local({ [18:00:58.186] c <- base::c [18:00:58.186] inherits <- base::inherits [18:00:58.186] invokeRestart <- base::invokeRestart [18:00:58.186] length <- base::length [18:00:58.186] list <- base::list [18:00:58.186] seq.int <- base::seq.int [18:00:58.186] signalCondition <- base::signalCondition [18:00:58.186] sys.calls <- base::sys.calls [18:00:58.186] `[[` <- base::`[[` [18:00:58.186] `+` <- base::`+` [18:00:58.186] `<<-` <- base::`<<-` [18:00:58.186] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:00:58.186] calls[seq.int(from = from + 12L, to = length(calls) - [18:00:58.186] 3L)] [18:00:58.186] } [18:00:58.186] function(cond) { [18:00:58.186] is_error <- inherits(cond, "error") [18:00:58.186] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:00:58.186] NULL) [18:00:58.186] if (is_error) { [18:00:58.186] sessionInformation <- function() { [18:00:58.186] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:00:58.186] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:00:58.186] search = base::search(), system = base::Sys.info()) [18:00:58.186] } [18:00:58.186] ...future.conditions[[length(...future.conditions) + [18:00:58.186] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:00:58.186] cond$call), session = sessionInformation(), [18:00:58.186] timestamp = base::Sys.time(), signaled = 0L) [18:00:58.186] signalCondition(cond) [18:00:58.186] } [18:00:58.186] else if (!ignore && TRUE && inherits(cond, c("condition", [18:00:58.186] "immediateCondition"))) { [18:00:58.186] signal <- TRUE && inherits(cond, "immediateCondition") [18:00:58.186] ...future.conditions[[length(...future.conditions) + [18:00:58.186] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:00:58.186] if (TRUE && !signal) { [18:00:58.186] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.186] { [18:00:58.186] inherits <- base::inherits [18:00:58.186] invokeRestart <- base::invokeRestart [18:00:58.186] is.null <- base::is.null [18:00:58.186] muffled <- FALSE [18:00:58.186] if (inherits(cond, "message")) { [18:00:58.186] muffled <- grepl(pattern, "muffleMessage") [18:00:58.186] if (muffled) [18:00:58.186] invokeRestart("muffleMessage") [18:00:58.186] } [18:00:58.186] else if (inherits(cond, "warning")) { [18:00:58.186] muffled <- grepl(pattern, "muffleWarning") [18:00:58.186] if (muffled) [18:00:58.186] invokeRestart("muffleWarning") [18:00:58.186] } [18:00:58.186] else if (inherits(cond, "condition")) { [18:00:58.186] if (!is.null(pattern)) { [18:00:58.186] computeRestarts <- base::computeRestarts [18:00:58.186] grepl <- base::grepl [18:00:58.186] restarts <- computeRestarts(cond) [18:00:58.186] for (restart in restarts) { [18:00:58.186] name <- restart$name [18:00:58.186] if (is.null(name)) [18:00:58.186] next [18:00:58.186] if (!grepl(pattern, name)) [18:00:58.186] next [18:00:58.186] invokeRestart(restart) [18:00:58.186] muffled <- TRUE [18:00:58.186] break [18:00:58.186] } [18:00:58.186] } [18:00:58.186] } [18:00:58.186] invisible(muffled) [18:00:58.186] } [18:00:58.186] muffleCondition(cond, pattern = "^muffle") [18:00:58.186] } [18:00:58.186] } [18:00:58.186] else { [18:00:58.186] if (TRUE) { [18:00:58.186] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.186] { [18:00:58.186] inherits <- base::inherits [18:00:58.186] invokeRestart <- base::invokeRestart [18:00:58.186] is.null <- base::is.null [18:00:58.186] muffled <- FALSE [18:00:58.186] if (inherits(cond, "message")) { [18:00:58.186] muffled <- grepl(pattern, "muffleMessage") [18:00:58.186] if (muffled) [18:00:58.186] invokeRestart("muffleMessage") [18:00:58.186] } [18:00:58.186] else if (inherits(cond, "warning")) { [18:00:58.186] muffled <- grepl(pattern, "muffleWarning") [18:00:58.186] if (muffled) [18:00:58.186] invokeRestart("muffleWarning") [18:00:58.186] } [18:00:58.186] else if (inherits(cond, "condition")) { [18:00:58.186] if (!is.null(pattern)) { [18:00:58.186] computeRestarts <- base::computeRestarts [18:00:58.186] grepl <- base::grepl [18:00:58.186] restarts <- computeRestarts(cond) [18:00:58.186] for (restart in restarts) { [18:00:58.186] name <- restart$name [18:00:58.186] if (is.null(name)) [18:00:58.186] next [18:00:58.186] if (!grepl(pattern, name)) [18:00:58.186] next [18:00:58.186] invokeRestart(restart) [18:00:58.186] muffled <- TRUE [18:00:58.186] break [18:00:58.186] } [18:00:58.186] } [18:00:58.186] } [18:00:58.186] invisible(muffled) [18:00:58.186] } [18:00:58.186] muffleCondition(cond, pattern = "^muffle") [18:00:58.186] } [18:00:58.186] } [18:00:58.186] } [18:00:58.186] })) [18:00:58.186] }, error = function(ex) { [18:00:58.186] base::structure(base::list(value = NULL, visible = NULL, [18:00:58.186] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.186] ...future.rng), started = ...future.startTime, [18:00:58.186] finished = Sys.time(), session_uuid = NA_character_, [18:00:58.186] version = "1.8"), class = "FutureResult") [18:00:58.186] }, finally = { [18:00:58.186] if (!identical(...future.workdir, getwd())) [18:00:58.186] setwd(...future.workdir) [18:00:58.186] { [18:00:58.186] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:00:58.186] ...future.oldOptions$nwarnings <- NULL [18:00:58.186] } [18:00:58.186] base::options(...future.oldOptions) [18:00:58.186] if (.Platform$OS.type == "windows") { [18:00:58.186] old_names <- names(...future.oldEnvVars) [18:00:58.186] envs <- base::Sys.getenv() [18:00:58.186] names <- names(envs) [18:00:58.186] common <- intersect(names, old_names) [18:00:58.186] added <- setdiff(names, old_names) [18:00:58.186] removed <- setdiff(old_names, names) [18:00:58.186] changed <- common[...future.oldEnvVars[common] != [18:00:58.186] envs[common]] [18:00:58.186] NAMES <- toupper(changed) [18:00:58.186] args <- list() [18:00:58.186] for (kk in seq_along(NAMES)) { [18:00:58.186] name <- changed[[kk]] [18:00:58.186] NAME <- NAMES[[kk]] [18:00:58.186] if (name != NAME && is.element(NAME, old_names)) [18:00:58.186] next [18:00:58.186] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.186] } [18:00:58.186] NAMES <- toupper(added) [18:00:58.186] for (kk in seq_along(NAMES)) { [18:00:58.186] name <- added[[kk]] [18:00:58.186] NAME <- NAMES[[kk]] [18:00:58.186] if (name != NAME && is.element(NAME, old_names)) [18:00:58.186] next [18:00:58.186] args[[name]] <- "" [18:00:58.186] } [18:00:58.186] NAMES <- toupper(removed) [18:00:58.186] for (kk in seq_along(NAMES)) { [18:00:58.186] name <- removed[[kk]] [18:00:58.186] NAME <- NAMES[[kk]] [18:00:58.186] if (name != NAME && is.element(NAME, old_names)) [18:00:58.186] next [18:00:58.186] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.186] } [18:00:58.186] if (length(args) > 0) [18:00:58.186] base::do.call(base::Sys.setenv, args = args) [18:00:58.186] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:00:58.186] } [18:00:58.186] else { [18:00:58.186] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:00:58.186] } [18:00:58.186] { [18:00:58.186] if (base::length(...future.futureOptionsAdded) > [18:00:58.186] 0L) { [18:00:58.186] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:00:58.186] base::names(opts) <- ...future.futureOptionsAdded [18:00:58.186] base::options(opts) [18:00:58.186] } [18:00:58.186] { [18:00:58.186] { [18:00:58.186] NULL [18:00:58.186] RNGkind("Mersenne-Twister") [18:00:58.186] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:00:58.186] inherits = FALSE) [18:00:58.186] } [18:00:58.186] options(future.plan = NULL) [18:00:58.186] if (is.na(NA_character_)) [18:00:58.186] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.186] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:00:58.186] future::plan(list(function (..., envir = parent.frame()) [18:00:58.186] { [18:00:58.186] future <- SequentialFuture(..., envir = envir) [18:00:58.186] if (!future$lazy) [18:00:58.186] future <- run(future) [18:00:58.186] invisible(future) [18:00:58.186] }), .cleanup = FALSE, .init = FALSE) [18:00:58.186] } [18:00:58.186] } [18:00:58.186] } [18:00:58.186] }) [18:00:58.186] if (TRUE) { [18:00:58.186] base::sink(type = "output", split = FALSE) [18:00:58.186] if (TRUE) { [18:00:58.186] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:00:58.186] } [18:00:58.186] else { [18:00:58.186] ...future.result["stdout"] <- base::list(NULL) [18:00:58.186] } [18:00:58.186] base::close(...future.stdout) [18:00:58.186] ...future.stdout <- NULL [18:00:58.186] } [18:00:58.186] ...future.result$conditions <- ...future.conditions [18:00:58.186] ...future.result$finished <- base::Sys.time() [18:00:58.186] ...future.result [18:00:58.186] } [18:00:58.190] plan(): Setting new future strategy stack: [18:00:58.190] List of future strategies: [18:00:58.190] 1. sequential: [18:00:58.190] - args: function (..., envir = parent.frame()) [18:00:58.190] - tweaked: FALSE [18:00:58.190] - call: NULL [18:00:58.190] plan(): nbrOfWorkers() = 1 [18:00:58.191] plan(): Setting new future strategy stack: [18:00:58.192] List of future strategies: [18:00:58.192] 1. sequential: [18:00:58.192] - args: function (..., envir = parent.frame()) [18:00:58.192] - tweaked: FALSE [18:00:58.192] - call: future::plan("sequential") [18:00:58.192] plan(): nbrOfWorkers() = 1 [18:00:58.192] SequentialFuture started (and completed) [18:00:58.193] signalConditions() ... [18:00:58.193] - include = 'immediateCondition' [18:00:58.193] - exclude = [18:00:58.193] - resignal = FALSE [18:00:58.193] - Number of conditions: 1 [18:00:58.193] signalConditions() ... done [18:00:58.194] - Launch lazy future ... done [18:00:58.194] run() for 'SequentialFuture' ... done > calls <- backtrace(lenv[[2]]) [18:00:58.194] resolved() for 'SequentialFuture' ... [18:00:58.194] - state: 'finished' [18:00:58.195] - run: TRUE [18:00:58.195] - result: 'FutureResult' [18:00:58.195] resolved() for 'SequentialFuture' ... done > print(calls) [[1]] lenv[[2]] %<-% { 42L stop("Woops") } [[2]] futureAssignInternal(target, expr, envir = envir, substitute = FALSE) [[3]] futureAssign(name, expr, envir = envir, assign.env = assign.env, substitute = FALSE) [[4]] do.call(future::future, args = future.args, envir = assign.env) [[5]] (function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = FALSE, globals = TRUE, packages = NULL, stdout = TRUE, conditions = "condition", earlySignal = FALSE, label = NULL, gc = FALSE, ...) { if (substitute) expr <- substitute(expr) t_start <- Sys.time() gp <- getGlobalsAndPackages(expr, envir = envir, tweak = tweakExpression, globals = globals) expr <- gp$expr globals <- gp$globals if (length(packages) > 0 || length(gp$packages) > 0) { packages <- unique(c(gp$packages, packages)) } gp <- NULL attr(globals, "already-done") <- TRUE future <- Future(expr, substitute = FALSE, envir = envir, lazy = TRUE, seed = seed, globals = globals, packages = packages, stdout = stdout, conditions = conditions, earlySignal = earlySignal, label = label, gc = gc, ...) future$.defaultLocal <- !is.element("local", names(list(...))) if (getOption("future.journal", FALSE)) { future <- makeFutureJournal(future, event = "create", category = "overhead", start = t_start) } if (!lazy) { future <- run(future) future$lazy <- FALSE stop_if_not(inherits(future, "Future"), !future$lazy) } future })({ 42L stop("Woops") }, envir = , lazy = FALSE, seed = FALSE, globals = TRUE, packages = NULL, stdout = TRUE, conditions = "condition", earlySignal = FALSE, label = NULL, gc = FALSE) [[6]] Future(expr, substitute = FALSE, envir = envir, lazy = TRUE, seed = seed, globals = globals, packages = packages, stdout = stdout, conditions = conditions, earlySignal = earlySignal, label = label, gc = gc, ...) [[7]] eval(quote({ 42L stop("Woops") }), new.env()) [[8]] stop("Woops") [[9]] eval(quote({ 42L stop("Woops") }), new.env()) > stopifnot(is.list(calls)) > > ll <- list() > ll[[1]] <- future({ 42L; stop("Woops") }) [18:00:58.196] getGlobalsAndPackages() ... [18:00:58.196] Searching for globals... [18:00:58.197] - globals found: [2] '{', 'stop' [18:00:58.197] Searching for globals ... DONE [18:00:58.198] Resolving globals: FALSE [18:00:58.198] [18:00:58.198] [18:00:58.198] getGlobalsAndPackages() ... DONE [18:00:58.199] run() for 'Future' ... [18:00:58.199] - state: 'created' [18:00:58.199] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:00:58.199] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:00:58.200] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:00:58.200] - Field: 'label' [18:00:58.200] - Field: 'local' [18:00:58.200] - Field: 'owner' [18:00:58.200] - Field: 'envir' [18:00:58.201] - Field: 'packages' [18:00:58.201] - Field: 'gc' [18:00:58.201] - Field: 'conditions' [18:00:58.201] - Field: 'expr' [18:00:58.201] - Field: 'uuid' [18:00:58.201] - Field: 'seed' [18:00:58.202] - Field: 'version' [18:00:58.202] - Field: 'result' [18:00:58.202] - Field: 'asynchronous' [18:00:58.202] - Field: 'calls' [18:00:58.202] - Field: 'globals' [18:00:58.202] - Field: 'stdout' [18:00:58.203] - Field: 'earlySignal' [18:00:58.203] - Field: 'lazy' [18:00:58.203] - Field: 'state' [18:00:58.203] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:00:58.203] - Launch lazy future ... [18:00:58.204] Packages needed by the future expression (n = 0): [18:00:58.204] Packages needed by future strategies (n = 0): [18:00:58.204] { [18:00:58.204] { [18:00:58.204] { [18:00:58.204] ...future.startTime <- base::Sys.time() [18:00:58.204] { [18:00:58.204] { [18:00:58.204] { [18:00:58.204] base::local({ [18:00:58.204] has_future <- base::requireNamespace("future", [18:00:58.204] quietly = TRUE) [18:00:58.204] if (has_future) { [18:00:58.204] ns <- base::getNamespace("future") [18:00:58.204] version <- ns[[".package"]][["version"]] [18:00:58.204] if (is.null(version)) [18:00:58.204] version <- utils::packageVersion("future") [18:00:58.204] } [18:00:58.204] else { [18:00:58.204] version <- NULL [18:00:58.204] } [18:00:58.204] if (!has_future || version < "1.8.0") { [18:00:58.204] info <- base::c(r_version = base::gsub("R version ", [18:00:58.204] "", base::R.version$version.string), [18:00:58.204] platform = base::sprintf("%s (%s-bit)", [18:00:58.204] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:00:58.204] os = base::paste(base::Sys.info()[base::c("sysname", [18:00:58.204] "release", "version")], collapse = " "), [18:00:58.204] hostname = base::Sys.info()[["nodename"]]) [18:00:58.204] info <- base::sprintf("%s: %s", base::names(info), [18:00:58.204] info) [18:00:58.204] info <- base::paste(info, collapse = "; ") [18:00:58.204] if (!has_future) { [18:00:58.204] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:00:58.204] info) [18:00:58.204] } [18:00:58.204] else { [18:00:58.204] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:00:58.204] info, version) [18:00:58.204] } [18:00:58.204] base::stop(msg) [18:00:58.204] } [18:00:58.204] }) [18:00:58.204] } [18:00:58.204] options(future.plan = NULL) [18:00:58.204] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.204] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:00:58.204] } [18:00:58.204] ...future.workdir <- getwd() [18:00:58.204] } [18:00:58.204] ...future.oldOptions <- base::as.list(base::.Options) [18:00:58.204] ...future.oldEnvVars <- base::Sys.getenv() [18:00:58.204] } [18:00:58.204] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:00:58.204] future.globals.maxSize = NULL, future.globals.method = NULL, [18:00:58.204] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:00:58.204] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:00:58.204] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:00:58.204] future.stdout.windows.reencode = NULL, width = 80L) [18:00:58.204] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:00:58.204] base::names(...future.oldOptions)) [18:00:58.204] } [18:00:58.204] if (FALSE) { [18:00:58.204] } [18:00:58.204] else { [18:00:58.204] if (TRUE) { [18:00:58.204] ...future.stdout <- base::rawConnection(base::raw(0L), [18:00:58.204] open = "w") [18:00:58.204] } [18:00:58.204] else { [18:00:58.204] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:00:58.204] windows = "NUL", "/dev/null"), open = "w") [18:00:58.204] } [18:00:58.204] base::sink(...future.stdout, type = "output", split = FALSE) [18:00:58.204] base::on.exit(if (!base::is.null(...future.stdout)) { [18:00:58.204] base::sink(type = "output", split = FALSE) [18:00:58.204] base::close(...future.stdout) [18:00:58.204] }, add = TRUE) [18:00:58.204] } [18:00:58.204] ...future.frame <- base::sys.nframe() [18:00:58.204] ...future.conditions <- base::list() [18:00:58.204] ...future.rng <- base::globalenv()$.Random.seed [18:00:58.204] if (FALSE) { [18:00:58.204] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:00:58.204] "...future.value", "...future.globalenv.names", ".Random.seed") [18:00:58.204] } [18:00:58.204] ...future.result <- base::tryCatch({ [18:00:58.204] base::withCallingHandlers({ [18:00:58.204] ...future.value <- base::withVisible(base::local({ [18:00:58.204] 42L [18:00:58.204] stop("Woops") [18:00:58.204] })) [18:00:58.204] future::FutureResult(value = ...future.value$value, [18:00:58.204] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.204] ...future.rng), globalenv = if (FALSE) [18:00:58.204] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:00:58.204] ...future.globalenv.names)) [18:00:58.204] else NULL, started = ...future.startTime, version = "1.8") [18:00:58.204] }, condition = base::local({ [18:00:58.204] c <- base::c [18:00:58.204] inherits <- base::inherits [18:00:58.204] invokeRestart <- base::invokeRestart [18:00:58.204] length <- base::length [18:00:58.204] list <- base::list [18:00:58.204] seq.int <- base::seq.int [18:00:58.204] signalCondition <- base::signalCondition [18:00:58.204] sys.calls <- base::sys.calls [18:00:58.204] `[[` <- base::`[[` [18:00:58.204] `+` <- base::`+` [18:00:58.204] `<<-` <- base::`<<-` [18:00:58.204] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:00:58.204] calls[seq.int(from = from + 12L, to = length(calls) - [18:00:58.204] 3L)] [18:00:58.204] } [18:00:58.204] function(cond) { [18:00:58.204] is_error <- inherits(cond, "error") [18:00:58.204] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:00:58.204] NULL) [18:00:58.204] if (is_error) { [18:00:58.204] sessionInformation <- function() { [18:00:58.204] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:00:58.204] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:00:58.204] search = base::search(), system = base::Sys.info()) [18:00:58.204] } [18:00:58.204] ...future.conditions[[length(...future.conditions) + [18:00:58.204] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:00:58.204] cond$call), session = sessionInformation(), [18:00:58.204] timestamp = base::Sys.time(), signaled = 0L) [18:00:58.204] signalCondition(cond) [18:00:58.204] } [18:00:58.204] else if (!ignore && TRUE && inherits(cond, c("condition", [18:00:58.204] "immediateCondition"))) { [18:00:58.204] signal <- TRUE && inherits(cond, "immediateCondition") [18:00:58.204] ...future.conditions[[length(...future.conditions) + [18:00:58.204] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:00:58.204] if (TRUE && !signal) { [18:00:58.204] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.204] { [18:00:58.204] inherits <- base::inherits [18:00:58.204] invokeRestart <- base::invokeRestart [18:00:58.204] is.null <- base::is.null [18:00:58.204] muffled <- FALSE [18:00:58.204] if (inherits(cond, "message")) { [18:00:58.204] muffled <- grepl(pattern, "muffleMessage") [18:00:58.204] if (muffled) [18:00:58.204] invokeRestart("muffleMessage") [18:00:58.204] } [18:00:58.204] else if (inherits(cond, "warning")) { [18:00:58.204] muffled <- grepl(pattern, "muffleWarning") [18:00:58.204] if (muffled) [18:00:58.204] invokeRestart("muffleWarning") [18:00:58.204] } [18:00:58.204] else if (inherits(cond, "condition")) { [18:00:58.204] if (!is.null(pattern)) { [18:00:58.204] computeRestarts <- base::computeRestarts [18:00:58.204] grepl <- base::grepl [18:00:58.204] restarts <- computeRestarts(cond) [18:00:58.204] for (restart in restarts) { [18:00:58.204] name <- restart$name [18:00:58.204] if (is.null(name)) [18:00:58.204] next [18:00:58.204] if (!grepl(pattern, name)) [18:00:58.204] next [18:00:58.204] invokeRestart(restart) [18:00:58.204] muffled <- TRUE [18:00:58.204] break [18:00:58.204] } [18:00:58.204] } [18:00:58.204] } [18:00:58.204] invisible(muffled) [18:00:58.204] } [18:00:58.204] muffleCondition(cond, pattern = "^muffle") [18:00:58.204] } [18:00:58.204] } [18:00:58.204] else { [18:00:58.204] if (TRUE) { [18:00:58.204] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.204] { [18:00:58.204] inherits <- base::inherits [18:00:58.204] invokeRestart <- base::invokeRestart [18:00:58.204] is.null <- base::is.null [18:00:58.204] muffled <- FALSE [18:00:58.204] if (inherits(cond, "message")) { [18:00:58.204] muffled <- grepl(pattern, "muffleMessage") [18:00:58.204] if (muffled) [18:00:58.204] invokeRestart("muffleMessage") [18:00:58.204] } [18:00:58.204] else if (inherits(cond, "warning")) { [18:00:58.204] muffled <- grepl(pattern, "muffleWarning") [18:00:58.204] if (muffled) [18:00:58.204] invokeRestart("muffleWarning") [18:00:58.204] } [18:00:58.204] else if (inherits(cond, "condition")) { [18:00:58.204] if (!is.null(pattern)) { [18:00:58.204] computeRestarts <- base::computeRestarts [18:00:58.204] grepl <- base::grepl [18:00:58.204] restarts <- computeRestarts(cond) [18:00:58.204] for (restart in restarts) { [18:00:58.204] name <- restart$name [18:00:58.204] if (is.null(name)) [18:00:58.204] next [18:00:58.204] if (!grepl(pattern, name)) [18:00:58.204] next [18:00:58.204] invokeRestart(restart) [18:00:58.204] muffled <- TRUE [18:00:58.204] break [18:00:58.204] } [18:00:58.204] } [18:00:58.204] } [18:00:58.204] invisible(muffled) [18:00:58.204] } [18:00:58.204] muffleCondition(cond, pattern = "^muffle") [18:00:58.204] } [18:00:58.204] } [18:00:58.204] } [18:00:58.204] })) [18:00:58.204] }, error = function(ex) { [18:00:58.204] base::structure(base::list(value = NULL, visible = NULL, [18:00:58.204] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.204] ...future.rng), started = ...future.startTime, [18:00:58.204] finished = Sys.time(), session_uuid = NA_character_, [18:00:58.204] version = "1.8"), class = "FutureResult") [18:00:58.204] }, finally = { [18:00:58.204] if (!identical(...future.workdir, getwd())) [18:00:58.204] setwd(...future.workdir) [18:00:58.204] { [18:00:58.204] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:00:58.204] ...future.oldOptions$nwarnings <- NULL [18:00:58.204] } [18:00:58.204] base::options(...future.oldOptions) [18:00:58.204] if (.Platform$OS.type == "windows") { [18:00:58.204] old_names <- names(...future.oldEnvVars) [18:00:58.204] envs <- base::Sys.getenv() [18:00:58.204] names <- names(envs) [18:00:58.204] common <- intersect(names, old_names) [18:00:58.204] added <- setdiff(names, old_names) [18:00:58.204] removed <- setdiff(old_names, names) [18:00:58.204] changed <- common[...future.oldEnvVars[common] != [18:00:58.204] envs[common]] [18:00:58.204] NAMES <- toupper(changed) [18:00:58.204] args <- list() [18:00:58.204] for (kk in seq_along(NAMES)) { [18:00:58.204] name <- changed[[kk]] [18:00:58.204] NAME <- NAMES[[kk]] [18:00:58.204] if (name != NAME && is.element(NAME, old_names)) [18:00:58.204] next [18:00:58.204] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.204] } [18:00:58.204] NAMES <- toupper(added) [18:00:58.204] for (kk in seq_along(NAMES)) { [18:00:58.204] name <- added[[kk]] [18:00:58.204] NAME <- NAMES[[kk]] [18:00:58.204] if (name != NAME && is.element(NAME, old_names)) [18:00:58.204] next [18:00:58.204] args[[name]] <- "" [18:00:58.204] } [18:00:58.204] NAMES <- toupper(removed) [18:00:58.204] for (kk in seq_along(NAMES)) { [18:00:58.204] name <- removed[[kk]] [18:00:58.204] NAME <- NAMES[[kk]] [18:00:58.204] if (name != NAME && is.element(NAME, old_names)) [18:00:58.204] next [18:00:58.204] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.204] } [18:00:58.204] if (length(args) > 0) [18:00:58.204] base::do.call(base::Sys.setenv, args = args) [18:00:58.204] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:00:58.204] } [18:00:58.204] else { [18:00:58.204] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:00:58.204] } [18:00:58.204] { [18:00:58.204] if (base::length(...future.futureOptionsAdded) > [18:00:58.204] 0L) { [18:00:58.204] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:00:58.204] base::names(opts) <- ...future.futureOptionsAdded [18:00:58.204] base::options(opts) [18:00:58.204] } [18:00:58.204] { [18:00:58.204] { [18:00:58.204] NULL [18:00:58.204] RNGkind("Mersenne-Twister") [18:00:58.204] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:00:58.204] inherits = FALSE) [18:00:58.204] } [18:00:58.204] options(future.plan = NULL) [18:00:58.204] if (is.na(NA_character_)) [18:00:58.204] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.204] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:00:58.204] future::plan(list(function (..., envir = parent.frame()) [18:00:58.204] { [18:00:58.204] future <- SequentialFuture(..., envir = envir) [18:00:58.204] if (!future$lazy) [18:00:58.204] future <- run(future) [18:00:58.204] invisible(future) [18:00:58.204] }), .cleanup = FALSE, .init = FALSE) [18:00:58.204] } [18:00:58.204] } [18:00:58.204] } [18:00:58.204] }) [18:00:58.204] if (TRUE) { [18:00:58.204] base::sink(type = "output", split = FALSE) [18:00:58.204] if (TRUE) { [18:00:58.204] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:00:58.204] } [18:00:58.204] else { [18:00:58.204] ...future.result["stdout"] <- base::list(NULL) [18:00:58.204] } [18:00:58.204] base::close(...future.stdout) [18:00:58.204] ...future.stdout <- NULL [18:00:58.204] } [18:00:58.204] ...future.result$conditions <- ...future.conditions [18:00:58.204] ...future.result$finished <- base::Sys.time() [18:00:58.204] ...future.result [18:00:58.204] } [18:00:58.208] plan(): Setting new future strategy stack: [18:00:58.208] List of future strategies: [18:00:58.208] 1. sequential: [18:00:58.208] - args: function (..., envir = parent.frame()) [18:00:58.208] - tweaked: FALSE [18:00:58.208] - call: NULL [18:00:58.209] plan(): nbrOfWorkers() = 1 [18:00:58.210] plan(): Setting new future strategy stack: [18:00:58.211] List of future strategies: [18:00:58.211] 1. sequential: [18:00:58.211] - args: function (..., envir = parent.frame()) [18:00:58.211] - tweaked: FALSE [18:00:58.211] - call: future::plan("sequential") [18:00:58.211] plan(): nbrOfWorkers() = 1 [18:00:58.211] SequentialFuture started (and completed) [18:00:58.211] signalConditions() ... [18:00:58.212] - include = 'immediateCondition' [18:00:58.212] - exclude = [18:00:58.212] - resignal = FALSE [18:00:58.212] - Number of conditions: 1 [18:00:58.212] signalConditions() ... done [18:00:58.213] - Launch lazy future ... done [18:00:58.213] run() for 'SequentialFuture' ... done > ll[[2]] <- future({ 42L; stop("Woops") }) [18:00:58.213] getGlobalsAndPackages() ... [18:00:58.213] Searching for globals... [18:00:58.214] - globals found: [2] '{', 'stop' [18:00:58.214] Searching for globals ... DONE [18:00:58.215] Resolving globals: FALSE [18:00:58.215] [18:00:58.215] [18:00:58.215] getGlobalsAndPackages() ... DONE [18:00:58.216] run() for 'Future' ... [18:00:58.216] - state: 'created' [18:00:58.216] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:00:58.216] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:00:58.217] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:00:58.217] - Field: 'label' [18:00:58.217] - Field: 'local' [18:00:58.218] - Field: 'owner' [18:00:58.218] - Field: 'envir' [18:00:58.218] - Field: 'packages' [18:00:58.219] - Field: 'gc' [18:00:58.219] - Field: 'conditions' [18:00:58.219] - Field: 'expr' [18:00:58.219] - Field: 'uuid' [18:00:58.219] - Field: 'seed' [18:00:58.219] - Field: 'version' [18:00:58.220] - Field: 'result' [18:00:58.220] - Field: 'asynchronous' [18:00:58.220] - Field: 'calls' [18:00:58.220] - Field: 'globals' [18:00:58.220] - Field: 'stdout' [18:00:58.221] - Field: 'earlySignal' [18:00:58.221] - Field: 'lazy' [18:00:58.221] - Field: 'state' [18:00:58.221] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:00:58.221] - Launch lazy future ... [18:00:58.221] Packages needed by the future expression (n = 0): [18:00:58.222] Packages needed by future strategies (n = 0): [18:00:58.222] { [18:00:58.222] { [18:00:58.222] { [18:00:58.222] ...future.startTime <- base::Sys.time() [18:00:58.222] { [18:00:58.222] { [18:00:58.222] { [18:00:58.222] base::local({ [18:00:58.222] has_future <- base::requireNamespace("future", [18:00:58.222] quietly = TRUE) [18:00:58.222] if (has_future) { [18:00:58.222] ns <- base::getNamespace("future") [18:00:58.222] version <- ns[[".package"]][["version"]] [18:00:58.222] if (is.null(version)) [18:00:58.222] version <- utils::packageVersion("future") [18:00:58.222] } [18:00:58.222] else { [18:00:58.222] version <- NULL [18:00:58.222] } [18:00:58.222] if (!has_future || version < "1.8.0") { [18:00:58.222] info <- base::c(r_version = base::gsub("R version ", [18:00:58.222] "", base::R.version$version.string), [18:00:58.222] platform = base::sprintf("%s (%s-bit)", [18:00:58.222] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:00:58.222] os = base::paste(base::Sys.info()[base::c("sysname", [18:00:58.222] "release", "version")], collapse = " "), [18:00:58.222] hostname = base::Sys.info()[["nodename"]]) [18:00:58.222] info <- base::sprintf("%s: %s", base::names(info), [18:00:58.222] info) [18:00:58.222] info <- base::paste(info, collapse = "; ") [18:00:58.222] if (!has_future) { [18:00:58.222] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:00:58.222] info) [18:00:58.222] } [18:00:58.222] else { [18:00:58.222] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:00:58.222] info, version) [18:00:58.222] } [18:00:58.222] base::stop(msg) [18:00:58.222] } [18:00:58.222] }) [18:00:58.222] } [18:00:58.222] options(future.plan = NULL) [18:00:58.222] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.222] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:00:58.222] } [18:00:58.222] ...future.workdir <- getwd() [18:00:58.222] } [18:00:58.222] ...future.oldOptions <- base::as.list(base::.Options) [18:00:58.222] ...future.oldEnvVars <- base::Sys.getenv() [18:00:58.222] } [18:00:58.222] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:00:58.222] future.globals.maxSize = NULL, future.globals.method = NULL, [18:00:58.222] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:00:58.222] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:00:58.222] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:00:58.222] future.stdout.windows.reencode = NULL, width = 80L) [18:00:58.222] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:00:58.222] base::names(...future.oldOptions)) [18:00:58.222] } [18:00:58.222] if (FALSE) { [18:00:58.222] } [18:00:58.222] else { [18:00:58.222] if (TRUE) { [18:00:58.222] ...future.stdout <- base::rawConnection(base::raw(0L), [18:00:58.222] open = "w") [18:00:58.222] } [18:00:58.222] else { [18:00:58.222] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:00:58.222] windows = "NUL", "/dev/null"), open = "w") [18:00:58.222] } [18:00:58.222] base::sink(...future.stdout, type = "output", split = FALSE) [18:00:58.222] base::on.exit(if (!base::is.null(...future.stdout)) { [18:00:58.222] base::sink(type = "output", split = FALSE) [18:00:58.222] base::close(...future.stdout) [18:00:58.222] }, add = TRUE) [18:00:58.222] } [18:00:58.222] ...future.frame <- base::sys.nframe() [18:00:58.222] ...future.conditions <- base::list() [18:00:58.222] ...future.rng <- base::globalenv()$.Random.seed [18:00:58.222] if (FALSE) { [18:00:58.222] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:00:58.222] "...future.value", "...future.globalenv.names", ".Random.seed") [18:00:58.222] } [18:00:58.222] ...future.result <- base::tryCatch({ [18:00:58.222] base::withCallingHandlers({ [18:00:58.222] ...future.value <- base::withVisible(base::local({ [18:00:58.222] 42L [18:00:58.222] stop("Woops") [18:00:58.222] })) [18:00:58.222] future::FutureResult(value = ...future.value$value, [18:00:58.222] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.222] ...future.rng), globalenv = if (FALSE) [18:00:58.222] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:00:58.222] ...future.globalenv.names)) [18:00:58.222] else NULL, started = ...future.startTime, version = "1.8") [18:00:58.222] }, condition = base::local({ [18:00:58.222] c <- base::c [18:00:58.222] inherits <- base::inherits [18:00:58.222] invokeRestart <- base::invokeRestart [18:00:58.222] length <- base::length [18:00:58.222] list <- base::list [18:00:58.222] seq.int <- base::seq.int [18:00:58.222] signalCondition <- base::signalCondition [18:00:58.222] sys.calls <- base::sys.calls [18:00:58.222] `[[` <- base::`[[` [18:00:58.222] `+` <- base::`+` [18:00:58.222] `<<-` <- base::`<<-` [18:00:58.222] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:00:58.222] calls[seq.int(from = from + 12L, to = length(calls) - [18:00:58.222] 3L)] [18:00:58.222] } [18:00:58.222] function(cond) { [18:00:58.222] is_error <- inherits(cond, "error") [18:00:58.222] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:00:58.222] NULL) [18:00:58.222] if (is_error) { [18:00:58.222] sessionInformation <- function() { [18:00:58.222] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:00:58.222] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:00:58.222] search = base::search(), system = base::Sys.info()) [18:00:58.222] } [18:00:58.222] ...future.conditions[[length(...future.conditions) + [18:00:58.222] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:00:58.222] cond$call), session = sessionInformation(), [18:00:58.222] timestamp = base::Sys.time(), signaled = 0L) [18:00:58.222] signalCondition(cond) [18:00:58.222] } [18:00:58.222] else if (!ignore && TRUE && inherits(cond, c("condition", [18:00:58.222] "immediateCondition"))) { [18:00:58.222] signal <- TRUE && inherits(cond, "immediateCondition") [18:00:58.222] ...future.conditions[[length(...future.conditions) + [18:00:58.222] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:00:58.222] if (TRUE && !signal) { [18:00:58.222] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.222] { [18:00:58.222] inherits <- base::inherits [18:00:58.222] invokeRestart <- base::invokeRestart [18:00:58.222] is.null <- base::is.null [18:00:58.222] muffled <- FALSE [18:00:58.222] if (inherits(cond, "message")) { [18:00:58.222] muffled <- grepl(pattern, "muffleMessage") [18:00:58.222] if (muffled) [18:00:58.222] invokeRestart("muffleMessage") [18:00:58.222] } [18:00:58.222] else if (inherits(cond, "warning")) { [18:00:58.222] muffled <- grepl(pattern, "muffleWarning") [18:00:58.222] if (muffled) [18:00:58.222] invokeRestart("muffleWarning") [18:00:58.222] } [18:00:58.222] else if (inherits(cond, "condition")) { [18:00:58.222] if (!is.null(pattern)) { [18:00:58.222] computeRestarts <- base::computeRestarts [18:00:58.222] grepl <- base::grepl [18:00:58.222] restarts <- computeRestarts(cond) [18:00:58.222] for (restart in restarts) { [18:00:58.222] name <- restart$name [18:00:58.222] if (is.null(name)) [18:00:58.222] next [18:00:58.222] if (!grepl(pattern, name)) [18:00:58.222] next [18:00:58.222] invokeRestart(restart) [18:00:58.222] muffled <- TRUE [18:00:58.222] break [18:00:58.222] } [18:00:58.222] } [18:00:58.222] } [18:00:58.222] invisible(muffled) [18:00:58.222] } [18:00:58.222] muffleCondition(cond, pattern = "^muffle") [18:00:58.222] } [18:00:58.222] } [18:00:58.222] else { [18:00:58.222] if (TRUE) { [18:00:58.222] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.222] { [18:00:58.222] inherits <- base::inherits [18:00:58.222] invokeRestart <- base::invokeRestart [18:00:58.222] is.null <- base::is.null [18:00:58.222] muffled <- FALSE [18:00:58.222] if (inherits(cond, "message")) { [18:00:58.222] muffled <- grepl(pattern, "muffleMessage") [18:00:58.222] if (muffled) [18:00:58.222] invokeRestart("muffleMessage") [18:00:58.222] } [18:00:58.222] else if (inherits(cond, "warning")) { [18:00:58.222] muffled <- grepl(pattern, "muffleWarning") [18:00:58.222] if (muffled) [18:00:58.222] invokeRestart("muffleWarning") [18:00:58.222] } [18:00:58.222] else if (inherits(cond, "condition")) { [18:00:58.222] if (!is.null(pattern)) { [18:00:58.222] computeRestarts <- base::computeRestarts [18:00:58.222] grepl <- base::grepl [18:00:58.222] restarts <- computeRestarts(cond) [18:00:58.222] for (restart in restarts) { [18:00:58.222] name <- restart$name [18:00:58.222] if (is.null(name)) [18:00:58.222] next [18:00:58.222] if (!grepl(pattern, name)) [18:00:58.222] next [18:00:58.222] invokeRestart(restart) [18:00:58.222] muffled <- TRUE [18:00:58.222] break [18:00:58.222] } [18:00:58.222] } [18:00:58.222] } [18:00:58.222] invisible(muffled) [18:00:58.222] } [18:00:58.222] muffleCondition(cond, pattern = "^muffle") [18:00:58.222] } [18:00:58.222] } [18:00:58.222] } [18:00:58.222] })) [18:00:58.222] }, error = function(ex) { [18:00:58.222] base::structure(base::list(value = NULL, visible = NULL, [18:00:58.222] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.222] ...future.rng), started = ...future.startTime, [18:00:58.222] finished = Sys.time(), session_uuid = NA_character_, [18:00:58.222] version = "1.8"), class = "FutureResult") [18:00:58.222] }, finally = { [18:00:58.222] if (!identical(...future.workdir, getwd())) [18:00:58.222] setwd(...future.workdir) [18:00:58.222] { [18:00:58.222] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:00:58.222] ...future.oldOptions$nwarnings <- NULL [18:00:58.222] } [18:00:58.222] base::options(...future.oldOptions) [18:00:58.222] if (.Platform$OS.type == "windows") { [18:00:58.222] old_names <- names(...future.oldEnvVars) [18:00:58.222] envs <- base::Sys.getenv() [18:00:58.222] names <- names(envs) [18:00:58.222] common <- intersect(names, old_names) [18:00:58.222] added <- setdiff(names, old_names) [18:00:58.222] removed <- setdiff(old_names, names) [18:00:58.222] changed <- common[...future.oldEnvVars[common] != [18:00:58.222] envs[common]] [18:00:58.222] NAMES <- toupper(changed) [18:00:58.222] args <- list() [18:00:58.222] for (kk in seq_along(NAMES)) { [18:00:58.222] name <- changed[[kk]] [18:00:58.222] NAME <- NAMES[[kk]] [18:00:58.222] if (name != NAME && is.element(NAME, old_names)) [18:00:58.222] next [18:00:58.222] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.222] } [18:00:58.222] NAMES <- toupper(added) [18:00:58.222] for (kk in seq_along(NAMES)) { [18:00:58.222] name <- added[[kk]] [18:00:58.222] NAME <- NAMES[[kk]] [18:00:58.222] if (name != NAME && is.element(NAME, old_names)) [18:00:58.222] next [18:00:58.222] args[[name]] <- "" [18:00:58.222] } [18:00:58.222] NAMES <- toupper(removed) [18:00:58.222] for (kk in seq_along(NAMES)) { [18:00:58.222] name <- removed[[kk]] [18:00:58.222] NAME <- NAMES[[kk]] [18:00:58.222] if (name != NAME && is.element(NAME, old_names)) [18:00:58.222] next [18:00:58.222] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.222] } [18:00:58.222] if (length(args) > 0) [18:00:58.222] base::do.call(base::Sys.setenv, args = args) [18:00:58.222] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:00:58.222] } [18:00:58.222] else { [18:00:58.222] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:00:58.222] } [18:00:58.222] { [18:00:58.222] if (base::length(...future.futureOptionsAdded) > [18:00:58.222] 0L) { [18:00:58.222] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:00:58.222] base::names(opts) <- ...future.futureOptionsAdded [18:00:58.222] base::options(opts) [18:00:58.222] } [18:00:58.222] { [18:00:58.222] { [18:00:58.222] NULL [18:00:58.222] RNGkind("Mersenne-Twister") [18:00:58.222] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:00:58.222] inherits = FALSE) [18:00:58.222] } [18:00:58.222] options(future.plan = NULL) [18:00:58.222] if (is.na(NA_character_)) [18:00:58.222] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.222] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:00:58.222] future::plan(list(function (..., envir = parent.frame()) [18:00:58.222] { [18:00:58.222] future <- SequentialFuture(..., envir = envir) [18:00:58.222] if (!future$lazy) [18:00:58.222] future <- run(future) [18:00:58.222] invisible(future) [18:00:58.222] }), .cleanup = FALSE, .init = FALSE) [18:00:58.222] } [18:00:58.222] } [18:00:58.222] } [18:00:58.222] }) [18:00:58.222] if (TRUE) { [18:00:58.222] base::sink(type = "output", split = FALSE) [18:00:58.222] if (TRUE) { [18:00:58.222] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:00:58.222] } [18:00:58.222] else { [18:00:58.222] ...future.result["stdout"] <- base::list(NULL) [18:00:58.222] } [18:00:58.222] base::close(...future.stdout) [18:00:58.222] ...future.stdout <- NULL [18:00:58.222] } [18:00:58.222] ...future.result$conditions <- ...future.conditions [18:00:58.222] ...future.result$finished <- base::Sys.time() [18:00:58.222] ...future.result [18:00:58.222] } [18:00:58.226] plan(): Setting new future strategy stack: [18:00:58.226] List of future strategies: [18:00:58.226] 1. sequential: [18:00:58.226] - args: function (..., envir = parent.frame()) [18:00:58.226] - tweaked: FALSE [18:00:58.226] - call: NULL [18:00:58.227] plan(): nbrOfWorkers() = 1 [18:00:58.228] plan(): Setting new future strategy stack: [18:00:58.228] List of future strategies: [18:00:58.228] 1. sequential: [18:00:58.228] - args: function (..., envir = parent.frame()) [18:00:58.228] - tweaked: FALSE [18:00:58.228] - call: future::plan("sequential") [18:00:58.229] plan(): nbrOfWorkers() = 1 [18:00:58.229] SequentialFuture started (and completed) [18:00:58.229] signalConditions() ... [18:00:58.229] - include = 'immediateCondition' [18:00:58.230] - exclude = [18:00:58.230] - resignal = FALSE [18:00:58.230] - Number of conditions: 1 [18:00:58.230] signalConditions() ... done [18:00:58.230] - Launch lazy future ... done [18:00:58.230] run() for 'SequentialFuture' ... done > vs <- value(ll, signal = FALSE) [18:00:58.231] resolve() on list ... [18:00:58.231] recursive: 0 [18:00:58.232] length: 2 [18:00:58.232] [18:00:58.232] resolved() for 'SequentialFuture' ... [18:00:58.232] - state: 'finished' [18:00:58.232] - run: TRUE [18:00:58.232] - result: 'FutureResult' [18:00:58.233] resolved() for 'SequentialFuture' ... done [18:00:58.233] Future #1 [18:00:58.233] signalConditions() ... [18:00:58.233] - include = 'immediateCondition' [18:00:58.233] - exclude = [18:00:58.233] - resignal = FALSE [18:00:58.234] - Number of conditions: 1 [18:00:58.234] signalConditions() ... done [18:00:58.234] signalConditionsASAP(SequentialFuture, pos=1) ... [18:00:58.234] - nx: 2 [18:00:58.234] - relay: TRUE [18:00:58.234] - stdout: TRUE [18:00:58.235] - signal: FALSE [18:00:58.235] - resignal: FALSE [18:00:58.235] - force: TRUE [18:00:58.235] - relayed: [n=2] FALSE, FALSE [18:00:58.235] - queued futures: [n=2] FALSE, FALSE [18:00:58.235] - until=1 [18:00:58.236] - relaying element #1 [18:00:58.236] signalConditions() ... [18:00:58.236] - include = 'immediateCondition' [18:00:58.236] - exclude = [18:00:58.236] - resignal = FALSE [18:00:58.236] - Number of conditions: 1 [18:00:58.237] signalConditions() ... done [18:00:58.237] - relayed: [n=2] TRUE, FALSE [18:00:58.237] - queued futures: [n=2] TRUE, FALSE [18:00:58.237] signalConditionsASAP(SequentialFuture, pos=1) ... done [18:00:58.237] length: 1 (resolved future 1) [18:00:58.238] resolved() for 'SequentialFuture' ... [18:00:58.238] - state: 'finished' [18:00:58.238] - run: TRUE [18:00:58.238] - result: 'FutureResult' [18:00:58.238] resolved() for 'SequentialFuture' ... done [18:00:58.239] Future #2 [18:00:58.239] signalConditions() ... [18:00:58.239] - include = 'immediateCondition' [18:00:58.239] - exclude = [18:00:58.239] - resignal = FALSE [18:00:58.239] - Number of conditions: 1 [18:00:58.240] signalConditions() ... done [18:00:58.240] signalConditionsASAP(SequentialFuture, pos=2) ... [18:00:58.240] - nx: 2 [18:00:58.240] - relay: TRUE [18:00:58.240] - stdout: TRUE [18:00:58.240] - signal: FALSE [18:00:58.241] - resignal: FALSE [18:00:58.241] - force: TRUE [18:00:58.241] - relayed: [n=2] TRUE, FALSE [18:00:58.241] - queued futures: [n=2] TRUE, FALSE [18:00:58.241] - until=2 [18:00:58.241] - relaying element #2 [18:00:58.242] signalConditions() ... [18:00:58.242] - include = 'immediateCondition' [18:00:58.242] - exclude = [18:00:58.242] - resignal = FALSE [18:00:58.242] - Number of conditions: 1 [18:00:58.242] signalConditions() ... done [18:00:58.243] - relayed: [n=2] TRUE, TRUE [18:00:58.243] - queued futures: [n=2] TRUE, TRUE [18:00:58.243] signalConditionsASAP(SequentialFuture, pos=2) ... done [18:00:58.243] length: 0 (resolved future 2) [18:00:58.243] Relaying remaining futures [18:00:58.243] signalConditionsASAP(NULL, pos=0) ... [18:00:58.243] - nx: 2 [18:00:58.244] - relay: TRUE [18:00:58.244] - stdout: TRUE [18:00:58.244] - signal: FALSE [18:00:58.244] - resignal: FALSE [18:00:58.244] - force: TRUE [18:00:58.244] - relayed: [n=2] TRUE, TRUE [18:00:58.245] - queued futures: [n=2] TRUE, TRUE - flush all [18:00:58.245] - relayed: [n=2] TRUE, TRUE [18:00:58.245] - queued futures: [n=2] TRUE, TRUE [18:00:58.245] signalConditionsASAP(NULL, pos=0) ... done [18:00:58.245] resolve() on list ... DONE [18:00:58.245] signalConditions() ... [18:00:58.246] - include = 'immediateCondition' [18:00:58.246] - exclude = [18:00:58.246] - resignal = FALSE [18:00:58.246] - Number of conditions: 1 [18:00:58.246] signalConditions() ... done [18:00:58.247] signalConditions() ... [18:00:58.247] - include = 'immediateCondition' [18:00:58.247] - exclude = [18:00:58.247] - resignal = FALSE [18:00:58.247] - Number of conditions: 1 [18:00:58.247] signalConditions() ... done > calls <- backtrace(ll[[2]]) [18:00:58.248] resolved() for 'SequentialFuture' ... [18:00:58.248] - state: 'finished' [18:00:58.248] - run: TRUE [18:00:58.248] - result: 'FutureResult' [18:00:58.249] resolved() for 'SequentialFuture' ... done > print(calls) [[1]] future({ 42L stop("Woops") }) [[2]] Future(expr, substitute = FALSE, envir = envir, lazy = TRUE, seed = seed, globals = globals, packages = packages, stdout = stdout, conditions = conditions, earlySignal = earlySignal, label = label, gc = gc, ...) [[3]] eval(quote({ 42L stop("Woops") }), new.env()) [[4]] stop("Woops") [[5]] eval(quote({ 42L stop("Woops") }), new.env()) > stopifnot(is.list(calls)) > > message("*** backtrace( ) - subsetting ... DONE") *** backtrace( ) - subsetting ... DONE > > > message("*** backtrace( ) - exceptions ...") *** backtrace( ) - exceptions ... > > message("- No condition ...") - No condition ... > f <- future(42L) [18:00:58.249] getGlobalsAndPackages() ... [18:00:58.249] Searching for globals... [18:00:58.250] [18:00:58.250] Searching for globals ... DONE [18:00:58.250] - globals: [0] [18:00:58.250] getGlobalsAndPackages() ... DONE [18:00:58.251] run() for 'Future' ... [18:00:58.251] - state: 'created' [18:00:58.251] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:00:58.251] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:00:58.252] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:00:58.252] - Field: 'label' [18:00:58.252] - Field: 'local' [18:00:58.252] - Field: 'owner' [18:00:58.252] - Field: 'envir' [18:00:58.253] - Field: 'packages' [18:00:58.253] - Field: 'gc' [18:00:58.253] - Field: 'conditions' [18:00:58.253] - Field: 'expr' [18:00:58.253] - Field: 'uuid' [18:00:58.253] - Field: 'seed' [18:00:58.254] - Field: 'version' [18:00:58.254] - Field: 'result' [18:00:58.254] - Field: 'asynchronous' [18:00:58.254] - Field: 'calls' [18:00:58.254] - Field: 'globals' [18:00:58.254] - Field: 'stdout' [18:00:58.255] - Field: 'earlySignal' [18:00:58.255] - Field: 'lazy' [18:00:58.255] - Field: 'state' [18:00:58.255] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:00:58.255] - Launch lazy future ... [18:00:58.256] Packages needed by the future expression (n = 0): [18:00:58.256] Packages needed by future strategies (n = 0): [18:00:58.256] { [18:00:58.256] { [18:00:58.256] { [18:00:58.256] ...future.startTime <- base::Sys.time() [18:00:58.256] { [18:00:58.256] { [18:00:58.256] { [18:00:58.256] base::local({ [18:00:58.256] has_future <- base::requireNamespace("future", [18:00:58.256] quietly = TRUE) [18:00:58.256] if (has_future) { [18:00:58.256] ns <- base::getNamespace("future") [18:00:58.256] version <- ns[[".package"]][["version"]] [18:00:58.256] if (is.null(version)) [18:00:58.256] version <- utils::packageVersion("future") [18:00:58.256] } [18:00:58.256] else { [18:00:58.256] version <- NULL [18:00:58.256] } [18:00:58.256] if (!has_future || version < "1.8.0") { [18:00:58.256] info <- base::c(r_version = base::gsub("R version ", [18:00:58.256] "", base::R.version$version.string), [18:00:58.256] platform = base::sprintf("%s (%s-bit)", [18:00:58.256] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:00:58.256] os = base::paste(base::Sys.info()[base::c("sysname", [18:00:58.256] "release", "version")], collapse = " "), [18:00:58.256] hostname = base::Sys.info()[["nodename"]]) [18:00:58.256] info <- base::sprintf("%s: %s", base::names(info), [18:00:58.256] info) [18:00:58.256] info <- base::paste(info, collapse = "; ") [18:00:58.256] if (!has_future) { [18:00:58.256] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:00:58.256] info) [18:00:58.256] } [18:00:58.256] else { [18:00:58.256] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:00:58.256] info, version) [18:00:58.256] } [18:00:58.256] base::stop(msg) [18:00:58.256] } [18:00:58.256] }) [18:00:58.256] } [18:00:58.256] options(future.plan = NULL) [18:00:58.256] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.256] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:00:58.256] } [18:00:58.256] ...future.workdir <- getwd() [18:00:58.256] } [18:00:58.256] ...future.oldOptions <- base::as.list(base::.Options) [18:00:58.256] ...future.oldEnvVars <- base::Sys.getenv() [18:00:58.256] } [18:00:58.256] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:00:58.256] future.globals.maxSize = NULL, future.globals.method = NULL, [18:00:58.256] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:00:58.256] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:00:58.256] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:00:58.256] future.stdout.windows.reencode = NULL, width = 80L) [18:00:58.256] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:00:58.256] base::names(...future.oldOptions)) [18:00:58.256] } [18:00:58.256] if (FALSE) { [18:00:58.256] } [18:00:58.256] else { [18:00:58.256] if (TRUE) { [18:00:58.256] ...future.stdout <- base::rawConnection(base::raw(0L), [18:00:58.256] open = "w") [18:00:58.256] } [18:00:58.256] else { [18:00:58.256] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:00:58.256] windows = "NUL", "/dev/null"), open = "w") [18:00:58.256] } [18:00:58.256] base::sink(...future.stdout, type = "output", split = FALSE) [18:00:58.256] base::on.exit(if (!base::is.null(...future.stdout)) { [18:00:58.256] base::sink(type = "output", split = FALSE) [18:00:58.256] base::close(...future.stdout) [18:00:58.256] }, add = TRUE) [18:00:58.256] } [18:00:58.256] ...future.frame <- base::sys.nframe() [18:00:58.256] ...future.conditions <- base::list() [18:00:58.256] ...future.rng <- base::globalenv()$.Random.seed [18:00:58.256] if (FALSE) { [18:00:58.256] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:00:58.256] "...future.value", "...future.globalenv.names", ".Random.seed") [18:00:58.256] } [18:00:58.256] ...future.result <- base::tryCatch({ [18:00:58.256] base::withCallingHandlers({ [18:00:58.256] ...future.value <- base::withVisible(base::local(42L)) [18:00:58.256] future::FutureResult(value = ...future.value$value, [18:00:58.256] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.256] ...future.rng), globalenv = if (FALSE) [18:00:58.256] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:00:58.256] ...future.globalenv.names)) [18:00:58.256] else NULL, started = ...future.startTime, version = "1.8") [18:00:58.256] }, condition = base::local({ [18:00:58.256] c <- base::c [18:00:58.256] inherits <- base::inherits [18:00:58.256] invokeRestart <- base::invokeRestart [18:00:58.256] length <- base::length [18:00:58.256] list <- base::list [18:00:58.256] seq.int <- base::seq.int [18:00:58.256] signalCondition <- base::signalCondition [18:00:58.256] sys.calls <- base::sys.calls [18:00:58.256] `[[` <- base::`[[` [18:00:58.256] `+` <- base::`+` [18:00:58.256] `<<-` <- base::`<<-` [18:00:58.256] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:00:58.256] calls[seq.int(from = from + 12L, to = length(calls) - [18:00:58.256] 3L)] [18:00:58.256] } [18:00:58.256] function(cond) { [18:00:58.256] is_error <- inherits(cond, "error") [18:00:58.256] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:00:58.256] NULL) [18:00:58.256] if (is_error) { [18:00:58.256] sessionInformation <- function() { [18:00:58.256] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:00:58.256] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:00:58.256] search = base::search(), system = base::Sys.info()) [18:00:58.256] } [18:00:58.256] ...future.conditions[[length(...future.conditions) + [18:00:58.256] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:00:58.256] cond$call), session = sessionInformation(), [18:00:58.256] timestamp = base::Sys.time(), signaled = 0L) [18:00:58.256] signalCondition(cond) [18:00:58.256] } [18:00:58.256] else if (!ignore && TRUE && inherits(cond, c("condition", [18:00:58.256] "immediateCondition"))) { [18:00:58.256] signal <- TRUE && inherits(cond, "immediateCondition") [18:00:58.256] ...future.conditions[[length(...future.conditions) + [18:00:58.256] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:00:58.256] if (TRUE && !signal) { [18:00:58.256] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.256] { [18:00:58.256] inherits <- base::inherits [18:00:58.256] invokeRestart <- base::invokeRestart [18:00:58.256] is.null <- base::is.null [18:00:58.256] muffled <- FALSE [18:00:58.256] if (inherits(cond, "message")) { [18:00:58.256] muffled <- grepl(pattern, "muffleMessage") [18:00:58.256] if (muffled) [18:00:58.256] invokeRestart("muffleMessage") [18:00:58.256] } [18:00:58.256] else if (inherits(cond, "warning")) { [18:00:58.256] muffled <- grepl(pattern, "muffleWarning") [18:00:58.256] if (muffled) [18:00:58.256] invokeRestart("muffleWarning") [18:00:58.256] } [18:00:58.256] else if (inherits(cond, "condition")) { [18:00:58.256] if (!is.null(pattern)) { [18:00:58.256] computeRestarts <- base::computeRestarts [18:00:58.256] grepl <- base::grepl [18:00:58.256] restarts <- computeRestarts(cond) [18:00:58.256] for (restart in restarts) { [18:00:58.256] name <- restart$name [18:00:58.256] if (is.null(name)) [18:00:58.256] next [18:00:58.256] if (!grepl(pattern, name)) [18:00:58.256] next [18:00:58.256] invokeRestart(restart) [18:00:58.256] muffled <- TRUE [18:00:58.256] break [18:00:58.256] } [18:00:58.256] } [18:00:58.256] } [18:00:58.256] invisible(muffled) [18:00:58.256] } [18:00:58.256] muffleCondition(cond, pattern = "^muffle") [18:00:58.256] } [18:00:58.256] } [18:00:58.256] else { [18:00:58.256] if (TRUE) { [18:00:58.256] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.256] { [18:00:58.256] inherits <- base::inherits [18:00:58.256] invokeRestart <- base::invokeRestart [18:00:58.256] is.null <- base::is.null [18:00:58.256] muffled <- FALSE [18:00:58.256] if (inherits(cond, "message")) { [18:00:58.256] muffled <- grepl(pattern, "muffleMessage") [18:00:58.256] if (muffled) [18:00:58.256] invokeRestart("muffleMessage") [18:00:58.256] } [18:00:58.256] else if (inherits(cond, "warning")) { [18:00:58.256] muffled <- grepl(pattern, "muffleWarning") [18:00:58.256] if (muffled) [18:00:58.256] invokeRestart("muffleWarning") [18:00:58.256] } [18:00:58.256] else if (inherits(cond, "condition")) { [18:00:58.256] if (!is.null(pattern)) { [18:00:58.256] computeRestarts <- base::computeRestarts [18:00:58.256] grepl <- base::grepl [18:00:58.256] restarts <- computeRestarts(cond) [18:00:58.256] for (restart in restarts) { [18:00:58.256] name <- restart$name [18:00:58.256] if (is.null(name)) [18:00:58.256] next [18:00:58.256] if (!grepl(pattern, name)) [18:00:58.256] next [18:00:58.256] invokeRestart(restart) [18:00:58.256] muffled <- TRUE [18:00:58.256] break [18:00:58.256] } [18:00:58.256] } [18:00:58.256] } [18:00:58.256] invisible(muffled) [18:00:58.256] } [18:00:58.256] muffleCondition(cond, pattern = "^muffle") [18:00:58.256] } [18:00:58.256] } [18:00:58.256] } [18:00:58.256] })) [18:00:58.256] }, error = function(ex) { [18:00:58.256] base::structure(base::list(value = NULL, visible = NULL, [18:00:58.256] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.256] ...future.rng), started = ...future.startTime, [18:00:58.256] finished = Sys.time(), session_uuid = NA_character_, [18:00:58.256] version = "1.8"), class = "FutureResult") [18:00:58.256] }, finally = { [18:00:58.256] if (!identical(...future.workdir, getwd())) [18:00:58.256] setwd(...future.workdir) [18:00:58.256] { [18:00:58.256] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:00:58.256] ...future.oldOptions$nwarnings <- NULL [18:00:58.256] } [18:00:58.256] base::options(...future.oldOptions) [18:00:58.256] if (.Platform$OS.type == "windows") { [18:00:58.256] old_names <- names(...future.oldEnvVars) [18:00:58.256] envs <- base::Sys.getenv() [18:00:58.256] names <- names(envs) [18:00:58.256] common <- intersect(names, old_names) [18:00:58.256] added <- setdiff(names, old_names) [18:00:58.256] removed <- setdiff(old_names, names) [18:00:58.256] changed <- common[...future.oldEnvVars[common] != [18:00:58.256] envs[common]] [18:00:58.256] NAMES <- toupper(changed) [18:00:58.256] args <- list() [18:00:58.256] for (kk in seq_along(NAMES)) { [18:00:58.256] name <- changed[[kk]] [18:00:58.256] NAME <- NAMES[[kk]] [18:00:58.256] if (name != NAME && is.element(NAME, old_names)) [18:00:58.256] next [18:00:58.256] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.256] } [18:00:58.256] NAMES <- toupper(added) [18:00:58.256] for (kk in seq_along(NAMES)) { [18:00:58.256] name <- added[[kk]] [18:00:58.256] NAME <- NAMES[[kk]] [18:00:58.256] if (name != NAME && is.element(NAME, old_names)) [18:00:58.256] next [18:00:58.256] args[[name]] <- "" [18:00:58.256] } [18:00:58.256] NAMES <- toupper(removed) [18:00:58.256] for (kk in seq_along(NAMES)) { [18:00:58.256] name <- removed[[kk]] [18:00:58.256] NAME <- NAMES[[kk]] [18:00:58.256] if (name != NAME && is.element(NAME, old_names)) [18:00:58.256] next [18:00:58.256] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.256] } [18:00:58.256] if (length(args) > 0) [18:00:58.256] base::do.call(base::Sys.setenv, args = args) [18:00:58.256] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:00:58.256] } [18:00:58.256] else { [18:00:58.256] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:00:58.256] } [18:00:58.256] { [18:00:58.256] if (base::length(...future.futureOptionsAdded) > [18:00:58.256] 0L) { [18:00:58.256] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:00:58.256] base::names(opts) <- ...future.futureOptionsAdded [18:00:58.256] base::options(opts) [18:00:58.256] } [18:00:58.256] { [18:00:58.256] { [18:00:58.256] NULL [18:00:58.256] RNGkind("Mersenne-Twister") [18:00:58.256] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:00:58.256] inherits = FALSE) [18:00:58.256] } [18:00:58.256] options(future.plan = NULL) [18:00:58.256] if (is.na(NA_character_)) [18:00:58.256] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.256] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:00:58.256] future::plan(list(function (..., envir = parent.frame()) [18:00:58.256] { [18:00:58.256] future <- SequentialFuture(..., envir = envir) [18:00:58.256] if (!future$lazy) [18:00:58.256] future <- run(future) [18:00:58.256] invisible(future) [18:00:58.256] }), .cleanup = FALSE, .init = FALSE) [18:00:58.256] } [18:00:58.256] } [18:00:58.256] } [18:00:58.256] }) [18:00:58.256] if (TRUE) { [18:00:58.256] base::sink(type = "output", split = FALSE) [18:00:58.256] if (TRUE) { [18:00:58.256] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:00:58.256] } [18:00:58.256] else { [18:00:58.256] ...future.result["stdout"] <- base::list(NULL) [18:00:58.256] } [18:00:58.256] base::close(...future.stdout) [18:00:58.256] ...future.stdout <- NULL [18:00:58.256] } [18:00:58.256] ...future.result$conditions <- ...future.conditions [18:00:58.256] ...future.result$finished <- base::Sys.time() [18:00:58.256] ...future.result [18:00:58.256] } [18:00:58.260] plan(): Setting new future strategy stack: [18:00:58.261] List of future strategies: [18:00:58.261] 1. sequential: [18:00:58.261] - args: function (..., envir = parent.frame()) [18:00:58.261] - tweaked: FALSE [18:00:58.261] - call: NULL [18:00:58.261] plan(): nbrOfWorkers() = 1 [18:00:58.263] plan(): Setting new future strategy stack: [18:00:58.263] List of future strategies: [18:00:58.263] 1. sequential: [18:00:58.263] - args: function (..., envir = parent.frame()) [18:00:58.263] - tweaked: FALSE [18:00:58.263] - call: future::plan("sequential") [18:00:58.263] plan(): nbrOfWorkers() = 1 [18:00:58.264] SequentialFuture started (and completed) [18:00:58.264] - Launch lazy future ... done [18:00:58.264] run() for 'SequentialFuture' ... done > res <- tryCatch(backtrace(f), error = identity) [18:00:58.265] resolved() for 'SequentialFuture' ... [18:00:58.265] - state: 'finished' [18:00:58.265] - run: TRUE [18:00:58.265] - result: 'FutureResult' [18:00:58.265] resolved() for 'SequentialFuture' ... done > print(res) > stopifnot(inherits(res, "error")) > > message("- No call stack ...") - No call stack ... > f <- future({ 42L; stop("Woops") }) [18:00:58.266] getGlobalsAndPackages() ... [18:00:58.266] Searching for globals... [18:00:58.268] - globals found: [2] '{', 'stop' [18:00:58.269] Searching for globals ... DONE [18:00:58.269] Resolving globals: FALSE [18:00:58.269] [18:00:58.269] [18:00:58.269] getGlobalsAndPackages() ... DONE [18:00:58.270] run() for 'Future' ... [18:00:58.270] - state: 'created' [18:00:58.270] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:00:58.271] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:00:58.271] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:00:58.271] - Field: 'label' [18:00:58.271] - Field: 'local' [18:00:58.271] - Field: 'owner' [18:00:58.271] - Field: 'envir' [18:00:58.272] - Field: 'packages' [18:00:58.272] - Field: 'gc' [18:00:58.272] - Field: 'conditions' [18:00:58.272] - Field: 'expr' [18:00:58.272] - Field: 'uuid' [18:00:58.273] - Field: 'seed' [18:00:58.273] - Field: 'version' [18:00:58.273] - Field: 'result' [18:00:58.273] - Field: 'asynchronous' [18:00:58.273] - Field: 'calls' [18:00:58.273] - Field: 'globals' [18:00:58.274] - Field: 'stdout' [18:00:58.274] - Field: 'earlySignal' [18:00:58.274] - Field: 'lazy' [18:00:58.274] - Field: 'state' [18:00:58.274] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:00:58.274] - Launch lazy future ... [18:00:58.275] Packages needed by the future expression (n = 0): [18:00:58.275] Packages needed by future strategies (n = 0): [18:00:58.275] { [18:00:58.275] { [18:00:58.275] { [18:00:58.275] ...future.startTime <- base::Sys.time() [18:00:58.275] { [18:00:58.275] { [18:00:58.275] { [18:00:58.275] base::local({ [18:00:58.275] has_future <- base::requireNamespace("future", [18:00:58.275] quietly = TRUE) [18:00:58.275] if (has_future) { [18:00:58.275] ns <- base::getNamespace("future") [18:00:58.275] version <- ns[[".package"]][["version"]] [18:00:58.275] if (is.null(version)) [18:00:58.275] version <- utils::packageVersion("future") [18:00:58.275] } [18:00:58.275] else { [18:00:58.275] version <- NULL [18:00:58.275] } [18:00:58.275] if (!has_future || version < "1.8.0") { [18:00:58.275] info <- base::c(r_version = base::gsub("R version ", [18:00:58.275] "", base::R.version$version.string), [18:00:58.275] platform = base::sprintf("%s (%s-bit)", [18:00:58.275] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:00:58.275] os = base::paste(base::Sys.info()[base::c("sysname", [18:00:58.275] "release", "version")], collapse = " "), [18:00:58.275] hostname = base::Sys.info()[["nodename"]]) [18:00:58.275] info <- base::sprintf("%s: %s", base::names(info), [18:00:58.275] info) [18:00:58.275] info <- base::paste(info, collapse = "; ") [18:00:58.275] if (!has_future) { [18:00:58.275] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:00:58.275] info) [18:00:58.275] } [18:00:58.275] else { [18:00:58.275] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:00:58.275] info, version) [18:00:58.275] } [18:00:58.275] base::stop(msg) [18:00:58.275] } [18:00:58.275] }) [18:00:58.275] } [18:00:58.275] options(future.plan = NULL) [18:00:58.275] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.275] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:00:58.275] } [18:00:58.275] ...future.workdir <- getwd() [18:00:58.275] } [18:00:58.275] ...future.oldOptions <- base::as.list(base::.Options) [18:00:58.275] ...future.oldEnvVars <- base::Sys.getenv() [18:00:58.275] } [18:00:58.275] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:00:58.275] future.globals.maxSize = NULL, future.globals.method = NULL, [18:00:58.275] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:00:58.275] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:00:58.275] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:00:58.275] future.stdout.windows.reencode = NULL, width = 80L) [18:00:58.275] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:00:58.275] base::names(...future.oldOptions)) [18:00:58.275] } [18:00:58.275] if (FALSE) { [18:00:58.275] } [18:00:58.275] else { [18:00:58.275] if (TRUE) { [18:00:58.275] ...future.stdout <- base::rawConnection(base::raw(0L), [18:00:58.275] open = "w") [18:00:58.275] } [18:00:58.275] else { [18:00:58.275] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:00:58.275] windows = "NUL", "/dev/null"), open = "w") [18:00:58.275] } [18:00:58.275] base::sink(...future.stdout, type = "output", split = FALSE) [18:00:58.275] base::on.exit(if (!base::is.null(...future.stdout)) { [18:00:58.275] base::sink(type = "output", split = FALSE) [18:00:58.275] base::close(...future.stdout) [18:00:58.275] }, add = TRUE) [18:00:58.275] } [18:00:58.275] ...future.frame <- base::sys.nframe() [18:00:58.275] ...future.conditions <- base::list() [18:00:58.275] ...future.rng <- base::globalenv()$.Random.seed [18:00:58.275] if (FALSE) { [18:00:58.275] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:00:58.275] "...future.value", "...future.globalenv.names", ".Random.seed") [18:00:58.275] } [18:00:58.275] ...future.result <- base::tryCatch({ [18:00:58.275] base::withCallingHandlers({ [18:00:58.275] ...future.value <- base::withVisible(base::local({ [18:00:58.275] 42L [18:00:58.275] stop("Woops") [18:00:58.275] })) [18:00:58.275] future::FutureResult(value = ...future.value$value, [18:00:58.275] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.275] ...future.rng), globalenv = if (FALSE) [18:00:58.275] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:00:58.275] ...future.globalenv.names)) [18:00:58.275] else NULL, started = ...future.startTime, version = "1.8") [18:00:58.275] }, condition = base::local({ [18:00:58.275] c <- base::c [18:00:58.275] inherits <- base::inherits [18:00:58.275] invokeRestart <- base::invokeRestart [18:00:58.275] length <- base::length [18:00:58.275] list <- base::list [18:00:58.275] seq.int <- base::seq.int [18:00:58.275] signalCondition <- base::signalCondition [18:00:58.275] sys.calls <- base::sys.calls [18:00:58.275] `[[` <- base::`[[` [18:00:58.275] `+` <- base::`+` [18:00:58.275] `<<-` <- base::`<<-` [18:00:58.275] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:00:58.275] calls[seq.int(from = from + 12L, to = length(calls) - [18:00:58.275] 3L)] [18:00:58.275] } [18:00:58.275] function(cond) { [18:00:58.275] is_error <- inherits(cond, "error") [18:00:58.275] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:00:58.275] NULL) [18:00:58.275] if (is_error) { [18:00:58.275] sessionInformation <- function() { [18:00:58.275] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:00:58.275] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:00:58.275] search = base::search(), system = base::Sys.info()) [18:00:58.275] } [18:00:58.275] ...future.conditions[[length(...future.conditions) + [18:00:58.275] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:00:58.275] cond$call), session = sessionInformation(), [18:00:58.275] timestamp = base::Sys.time(), signaled = 0L) [18:00:58.275] signalCondition(cond) [18:00:58.275] } [18:00:58.275] else if (!ignore && TRUE && inherits(cond, c("condition", [18:00:58.275] "immediateCondition"))) { [18:00:58.275] signal <- TRUE && inherits(cond, "immediateCondition") [18:00:58.275] ...future.conditions[[length(...future.conditions) + [18:00:58.275] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:00:58.275] if (TRUE && !signal) { [18:00:58.275] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.275] { [18:00:58.275] inherits <- base::inherits [18:00:58.275] invokeRestart <- base::invokeRestart [18:00:58.275] is.null <- base::is.null [18:00:58.275] muffled <- FALSE [18:00:58.275] if (inherits(cond, "message")) { [18:00:58.275] muffled <- grepl(pattern, "muffleMessage") [18:00:58.275] if (muffled) [18:00:58.275] invokeRestart("muffleMessage") [18:00:58.275] } [18:00:58.275] else if (inherits(cond, "warning")) { [18:00:58.275] muffled <- grepl(pattern, "muffleWarning") [18:00:58.275] if (muffled) [18:00:58.275] invokeRestart("muffleWarning") [18:00:58.275] } [18:00:58.275] else if (inherits(cond, "condition")) { [18:00:58.275] if (!is.null(pattern)) { [18:00:58.275] computeRestarts <- base::computeRestarts [18:00:58.275] grepl <- base::grepl [18:00:58.275] restarts <- computeRestarts(cond) [18:00:58.275] for (restart in restarts) { [18:00:58.275] name <- restart$name [18:00:58.275] if (is.null(name)) [18:00:58.275] next [18:00:58.275] if (!grepl(pattern, name)) [18:00:58.275] next [18:00:58.275] invokeRestart(restart) [18:00:58.275] muffled <- TRUE [18:00:58.275] break [18:00:58.275] } [18:00:58.275] } [18:00:58.275] } [18:00:58.275] invisible(muffled) [18:00:58.275] } [18:00:58.275] muffleCondition(cond, pattern = "^muffle") [18:00:58.275] } [18:00:58.275] } [18:00:58.275] else { [18:00:58.275] if (TRUE) { [18:00:58.275] muffleCondition <- function (cond, pattern = "^muffle") [18:00:58.275] { [18:00:58.275] inherits <- base::inherits [18:00:58.275] invokeRestart <- base::invokeRestart [18:00:58.275] is.null <- base::is.null [18:00:58.275] muffled <- FALSE [18:00:58.275] if (inherits(cond, "message")) { [18:00:58.275] muffled <- grepl(pattern, "muffleMessage") [18:00:58.275] if (muffled) [18:00:58.275] invokeRestart("muffleMessage") [18:00:58.275] } [18:00:58.275] else if (inherits(cond, "warning")) { [18:00:58.275] muffled <- grepl(pattern, "muffleWarning") [18:00:58.275] if (muffled) [18:00:58.275] invokeRestart("muffleWarning") [18:00:58.275] } [18:00:58.275] else if (inherits(cond, "condition")) { [18:00:58.275] if (!is.null(pattern)) { [18:00:58.275] computeRestarts <- base::computeRestarts [18:00:58.275] grepl <- base::grepl [18:00:58.275] restarts <- computeRestarts(cond) [18:00:58.275] for (restart in restarts) { [18:00:58.275] name <- restart$name [18:00:58.275] if (is.null(name)) [18:00:58.275] next [18:00:58.275] if (!grepl(pattern, name)) [18:00:58.275] next [18:00:58.275] invokeRestart(restart) [18:00:58.275] muffled <- TRUE [18:00:58.275] break [18:00:58.275] } [18:00:58.275] } [18:00:58.275] } [18:00:58.275] invisible(muffled) [18:00:58.275] } [18:00:58.275] muffleCondition(cond, pattern = "^muffle") [18:00:58.275] } [18:00:58.275] } [18:00:58.275] } [18:00:58.275] })) [18:00:58.275] }, error = function(ex) { [18:00:58.275] base::structure(base::list(value = NULL, visible = NULL, [18:00:58.275] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:00:58.275] ...future.rng), started = ...future.startTime, [18:00:58.275] finished = Sys.time(), session_uuid = NA_character_, [18:00:58.275] version = "1.8"), class = "FutureResult") [18:00:58.275] }, finally = { [18:00:58.275] if (!identical(...future.workdir, getwd())) [18:00:58.275] setwd(...future.workdir) [18:00:58.275] { [18:00:58.275] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:00:58.275] ...future.oldOptions$nwarnings <- NULL [18:00:58.275] } [18:00:58.275] base::options(...future.oldOptions) [18:00:58.275] if (.Platform$OS.type == "windows") { [18:00:58.275] old_names <- names(...future.oldEnvVars) [18:00:58.275] envs <- base::Sys.getenv() [18:00:58.275] names <- names(envs) [18:00:58.275] common <- intersect(names, old_names) [18:00:58.275] added <- setdiff(names, old_names) [18:00:58.275] removed <- setdiff(old_names, names) [18:00:58.275] changed <- common[...future.oldEnvVars[common] != [18:00:58.275] envs[common]] [18:00:58.275] NAMES <- toupper(changed) [18:00:58.275] args <- list() [18:00:58.275] for (kk in seq_along(NAMES)) { [18:00:58.275] name <- changed[[kk]] [18:00:58.275] NAME <- NAMES[[kk]] [18:00:58.275] if (name != NAME && is.element(NAME, old_names)) [18:00:58.275] next [18:00:58.275] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.275] } [18:00:58.275] NAMES <- toupper(added) [18:00:58.275] for (kk in seq_along(NAMES)) { [18:00:58.275] name <- added[[kk]] [18:00:58.275] NAME <- NAMES[[kk]] [18:00:58.275] if (name != NAME && is.element(NAME, old_names)) [18:00:58.275] next [18:00:58.275] args[[name]] <- "" [18:00:58.275] } [18:00:58.275] NAMES <- toupper(removed) [18:00:58.275] for (kk in seq_along(NAMES)) { [18:00:58.275] name <- removed[[kk]] [18:00:58.275] NAME <- NAMES[[kk]] [18:00:58.275] if (name != NAME && is.element(NAME, old_names)) [18:00:58.275] next [18:00:58.275] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:58.275] } [18:00:58.275] if (length(args) > 0) [18:00:58.275] base::do.call(base::Sys.setenv, args = args) [18:00:58.275] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:00:58.275] } [18:00:58.275] else { [18:00:58.275] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:00:58.275] } [18:00:58.275] { [18:00:58.275] if (base::length(...future.futureOptionsAdded) > [18:00:58.275] 0L) { [18:00:58.275] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:00:58.275] base::names(opts) <- ...future.futureOptionsAdded [18:00:58.275] base::options(opts) [18:00:58.275] } [18:00:58.275] { [18:00:58.275] { [18:00:58.275] NULL [18:00:58.275] RNGkind("Mersenne-Twister") [18:00:58.275] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:00:58.275] inherits = FALSE) [18:00:58.275] } [18:00:58.275] options(future.plan = NULL) [18:00:58.275] if (is.na(NA_character_)) [18:00:58.275] Sys.unsetenv("R_FUTURE_PLAN") [18:00:58.275] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:00:58.275] future::plan(list(function (..., envir = parent.frame()) [18:00:58.275] { [18:00:58.275] future <- SequentialFuture(..., envir = envir) [18:00:58.275] if (!future$lazy) [18:00:58.275] future <- run(future) [18:00:58.275] invisible(future) [18:00:58.275] }), .cleanup = FALSE, .init = FALSE) [18:00:58.275] } [18:00:58.275] } [18:00:58.275] } [18:00:58.275] }) [18:00:58.275] if (TRUE) { [18:00:58.275] base::sink(type = "output", split = FALSE) [18:00:58.275] if (TRUE) { [18:00:58.275] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:00:58.275] } [18:00:58.275] else { [18:00:58.275] ...future.result["stdout"] <- base::list(NULL) [18:00:58.275] } [18:00:58.275] base::close(...future.stdout) [18:00:58.275] ...future.stdout <- NULL [18:00:58.275] } [18:00:58.275] ...future.result$conditions <- ...future.conditions [18:00:58.275] ...future.result$finished <- base::Sys.time() [18:00:58.275] ...future.result [18:00:58.275] } [18:00:58.279] plan(): Setting new future strategy stack: [18:00:58.280] List of future strategies: [18:00:58.280] 1. sequential: [18:00:58.280] - args: function (..., envir = parent.frame()) [18:00:58.280] - tweaked: FALSE [18:00:58.280] - call: NULL [18:00:58.280] plan(): nbrOfWorkers() = 1 [18:00:58.281] plan(): Setting new future strategy stack: [18:00:58.282] List of future strategies: [18:00:58.282] 1. sequential: [18:00:58.282] - args: function (..., envir = parent.frame()) [18:00:58.282] - tweaked: FALSE [18:00:58.282] - call: future::plan("sequential") [18:00:58.282] plan(): nbrOfWorkers() = 1 [18:00:58.282] SequentialFuture started (and completed) [18:00:58.282] signalConditions() ... [18:00:58.283] - include = 'immediateCondition' [18:00:58.283] - exclude = [18:00:58.283] - resignal = FALSE [18:00:58.283] - Number of conditions: 1 [18:00:58.283] signalConditions() ... done [18:00:58.283] - Launch lazy future ... done [18:00:58.284] run() for 'SequentialFuture' ... done > v <- value(f, signal = FALSE) [18:00:58.284] signalConditions() ... [18:00:58.284] - include = 'immediateCondition' [18:00:58.284] - exclude = [18:00:58.284] - resignal = FALSE [18:00:58.285] - Number of conditions: 1 [18:00:58.285] signalConditions() ... done > > if (availableCores() >= 2L) { + message("- Non-resolved future ...") + plan(multisession, workers = 2L) + f <- future({ Sys.sleep(3); 42L; stop("Woops") }) + res <- tryCatch(backtrace(f), error = identity) + print(res) + stopifnot(inherits(res, "error")) + + ## If we don't resolve the future, the cluster of workers will not + ## be able to shut down naturally. They will eventually time out, + ## but that will happen long after 'R CMD check' terminates. Because + ## of this, 'R CMD check --as-cran' will report on "detritus in the + ## temp directory" when running on MS Windows. This happens because + ## MS Windows doesn't shut down child processes as Linux and macOS + ## does when the main R session terminates. + resolve(f) + } - Non-resolved future ... [18:00:58.290] plan(): Setting new future strategy stack: [18:00:58.291] List of future strategies: [18:00:58.291] 1. multisession: [18:00:58.291] - args: function (..., workers = 2L, envir = parent.frame()) [18:00:58.291] - tweaked: TRUE [18:00:58.291] - call: plan(multisession, workers = 2L) [18:00:58.305] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [18:00:58.305] multisession: [18:00:58.305] - args: function (..., workers = 2L, envir = parent.frame()) [18:00:58.305] - tweaked: TRUE [18:00:58.305] - call: plan(multisession, workers = 2L) [18:00:58.306] getGlobalsAndPackages() ... [18:00:58.306] Not searching for globals [18:00:58.307] - globals: [0] [18:00:58.307] getGlobalsAndPackages() ... DONE [18:00:58.307] [local output] makeClusterPSOCK() ... [18:00:58.338] [local output] Workers: [n = 2] 'localhost', 'localhost' [18:00:58.344] [local output] Base port: 24301 [18:00:58.345] [local output] Getting setup options for 2 cluster nodes ... [18:00:58.345] [local output] - Node 1 of 2 ... [18:00:58.345] [local output] localMachine=TRUE => revtunnel=FALSE [18:00:58.347] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpi8UiM2/worker.rank=1.parallelly.parent=26024.65a86e425cdb.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/Rtmpi8UiM2/worker.rank=1.parallelly.parent=26024.65a86e425cdb.pid\")"' [18:00:58.788] - Possible to infer worker's PID: TRUE [18:00:58.788] [local output] Rscript port: 24301 [18:00:58.789] [local output] - Node 2 of 2 ... [18:00:58.789] [local output] localMachine=TRUE => revtunnel=FALSE [18:00:58.790] [local output] Rscript port: 24301 [18:00:58.791] [local output] Getting setup options for 2 cluster nodes ... done [18:00:58.791] [local output] - Parallel setup requested for some PSOCK nodes [18:00:58.792] [local output] Setting up PSOCK nodes in parallel [18:00:58.792] List of 36 [18:00:58.792] $ worker : chr "localhost" [18:00:58.792] ..- attr(*, "localhost")= logi TRUE [18:00:58.792] $ master : chr "localhost" [18:00:58.792] $ port : int 24301 [18:00:58.792] $ connectTimeout : num 120 [18:00:58.792] $ timeout : num 120 [18:00:58.792] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [18:00:58.792] $ homogeneous : logi TRUE [18:00:58.792] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=backtrace.R:26024:CRANWIN3:CRAN\"| __truncated__ [18:00:58.792] $ rscript_envs : NULL [18:00:58.792] $ rscript_libs : chr [1:2] "D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c" "D:/RCompile/recent/R/library" [18:00:58.792] $ rscript_startup : NULL [18:00:58.792] $ rscript_sh : chr "cmd" [18:00:58.792] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:00:58.792] $ methods : logi TRUE [18:00:58.792] $ socketOptions : chr "no-delay" [18:00:58.792] $ useXDR : logi FALSE [18:00:58.792] $ outfile : chr "/dev/null" [18:00:58.792] $ renice : int NA [18:00:58.792] $ rshcmd : NULL [18:00:58.792] $ user : chr(0) [18:00:58.792] $ revtunnel : logi FALSE [18:00:58.792] $ rshlogfile : NULL [18:00:58.792] $ rshopts : chr(0) [18:00:58.792] $ rank : int 1 [18:00:58.792] $ manual : logi FALSE [18:00:58.792] $ dryrun : logi FALSE [18:00:58.792] $ quiet : logi FALSE [18:00:58.792] $ setup_strategy : chr "parallel" [18:00:58.792] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:00:58.792] $ pidfile : chr "D:/temp/Rtmpi8UiM2/worker.rank=1.parallelly.parent=26024.65a86e425cdb.pid" [18:00:58.792] $ rshcmd_label : NULL [18:00:58.792] $ rsh_call : NULL [18:00:58.792] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:00:58.792] $ localMachine : logi TRUE [18:00:58.792] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [18:00:58.792] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [18:00:58.792] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [18:00:58.792] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [18:00:58.792] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [18:00:58.792] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [18:00:58.792] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [18:00:58.792] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [18:00:58.792] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [18:00:58.792] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [18:00:58.792] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [18:00:58.792] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [18:00:58.792] "parallel"), action = c("launch", "options"), verbose = FALSE) [18:00:58.792] $ arguments :List of 28 [18:00:58.792] ..$ worker : chr "localhost" [18:00:58.792] ..$ master : NULL [18:00:58.792] ..$ port : int 24301 [18:00:58.792] ..$ connectTimeout : num 120 [18:00:58.792] ..$ timeout : num 120 [18:00:58.792] ..$ rscript : NULL [18:00:58.792] ..$ homogeneous : NULL [18:00:58.792] ..$ rscript_args : NULL [18:00:58.792] ..$ rscript_envs : NULL [18:00:58.792] ..$ rscript_libs : chr [1:2] "D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c" "D:/RCompile/recent/R/library" [18:00:58.792] ..$ rscript_startup : NULL [18:00:58.792] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [18:00:58.792] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:00:58.792] ..$ methods : logi TRUE [18:00:58.792] ..$ socketOptions : chr "no-delay" [18:00:58.792] ..$ useXDR : logi FALSE [18:00:58.792] ..$ outfile : chr "/dev/null" [18:00:58.792] ..$ renice : int NA [18:00:58.792] ..$ rshcmd : NULL [18:00:58.792] ..$ user : NULL [18:00:58.792] ..$ revtunnel : logi NA [18:00:58.792] ..$ rshlogfile : NULL [18:00:58.792] ..$ rshopts : NULL [18:00:58.792] ..$ rank : int 1 [18:00:58.792] ..$ manual : logi FALSE [18:00:58.792] ..$ dryrun : logi FALSE [18:00:58.792] ..$ quiet : logi FALSE [18:00:58.792] ..$ setup_strategy : chr "parallel" [18:00:58.792] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [18:00:58.816] [local output] System call to launch all workers: [18:00:58.816] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=backtrace.R:26024:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmpi8UiM2/worker.rank=1.parallelly.parent=26024.65a86e425cdb.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=24301 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [18:00:58.816] [local output] Starting PSOCK main server [18:00:58.824] [local output] Workers launched [18:00:58.825] [local output] Waiting for workers to connect back [18:00:58.825] - [local output] 0 workers out of 2 ready [18:00:58.996] - [local output] 0 workers out of 2 ready [18:00:58.996] - [local output] 1 workers out of 2 ready [18:00:58.997] - [local output] 2 workers out of 2 ready [18:00:58.997] [local output] Launching of workers completed [18:00:58.997] [local output] Collecting session information from workers [18:00:58.998] [local output] - Worker #1 of 2 [18:00:58.999] [local output] - Worker #2 of 2 [18:00:58.999] [local output] makeClusterPSOCK() ... done [18:00:59.012] Packages needed by the future expression (n = 0): [18:00:59.012] Packages needed by future strategies (n = 0): [18:00:59.013] { [18:00:59.013] { [18:00:59.013] { [18:00:59.013] ...future.startTime <- base::Sys.time() [18:00:59.013] { [18:00:59.013] { [18:00:59.013] { [18:00:59.013] { [18:00:59.013] base::local({ [18:00:59.013] has_future <- base::requireNamespace("future", [18:00:59.013] quietly = TRUE) [18:00:59.013] if (has_future) { [18:00:59.013] ns <- base::getNamespace("future") [18:00:59.013] version <- ns[[".package"]][["version"]] [18:00:59.013] if (is.null(version)) [18:00:59.013] version <- utils::packageVersion("future") [18:00:59.013] } [18:00:59.013] else { [18:00:59.013] version <- NULL [18:00:59.013] } [18:00:59.013] if (!has_future || version < "1.8.0") { [18:00:59.013] info <- base::c(r_version = base::gsub("R version ", [18:00:59.013] "", base::R.version$version.string), [18:00:59.013] platform = base::sprintf("%s (%s-bit)", [18:00:59.013] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:00:59.013] os = base::paste(base::Sys.info()[base::c("sysname", [18:00:59.013] "release", "version")], collapse = " "), [18:00:59.013] hostname = base::Sys.info()[["nodename"]]) [18:00:59.013] info <- base::sprintf("%s: %s", base::names(info), [18:00:59.013] info) [18:00:59.013] info <- base::paste(info, collapse = "; ") [18:00:59.013] if (!has_future) { [18:00:59.013] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:00:59.013] info) [18:00:59.013] } [18:00:59.013] else { [18:00:59.013] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:00:59.013] info, version) [18:00:59.013] } [18:00:59.013] base::stop(msg) [18:00:59.013] } [18:00:59.013] }) [18:00:59.013] } [18:00:59.013] ...future.mc.cores.old <- base::getOption("mc.cores") [18:00:59.013] base::options(mc.cores = 1L) [18:00:59.013] } [18:00:59.013] options(future.plan = NULL) [18:00:59.013] Sys.unsetenv("R_FUTURE_PLAN") [18:00:59.013] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:00:59.013] } [18:00:59.013] ...future.workdir <- getwd() [18:00:59.013] } [18:00:59.013] ...future.oldOptions <- base::as.list(base::.Options) [18:00:59.013] ...future.oldEnvVars <- base::Sys.getenv() [18:00:59.013] } [18:00:59.013] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:00:59.013] future.globals.maxSize = NULL, future.globals.method = NULL, [18:00:59.013] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:00:59.013] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:00:59.013] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:00:59.013] future.stdout.windows.reencode = NULL, width = 80L) [18:00:59.013] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:00:59.013] base::names(...future.oldOptions)) [18:00:59.013] } [18:00:59.013] if (FALSE) { [18:00:59.013] } [18:00:59.013] else { [18:00:59.013] if (TRUE) { [18:00:59.013] ...future.stdout <- base::rawConnection(base::raw(0L), [18:00:59.013] open = "w") [18:00:59.013] } [18:00:59.013] else { [18:00:59.013] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:00:59.013] windows = "NUL", "/dev/null"), open = "w") [18:00:59.013] } [18:00:59.013] base::sink(...future.stdout, type = "output", split = FALSE) [18:00:59.013] base::on.exit(if (!base::is.null(...future.stdout)) { [18:00:59.013] base::sink(type = "output", split = FALSE) [18:00:59.013] base::close(...future.stdout) [18:00:59.013] }, add = TRUE) [18:00:59.013] } [18:00:59.013] ...future.frame <- base::sys.nframe() [18:00:59.013] ...future.conditions <- base::list() [18:00:59.013] ...future.rng <- base::globalenv()$.Random.seed [18:00:59.013] if (FALSE) { [18:00:59.013] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:00:59.013] "...future.value", "...future.globalenv.names", ".Random.seed") [18:00:59.013] } [18:00:59.013] ...future.result <- base::tryCatch({ [18:00:59.013] base::withCallingHandlers({ [18:00:59.013] ...future.value <- base::withVisible(base::local({ [18:00:59.013] ...future.makeSendCondition <- local({ [18:00:59.013] sendCondition <- NULL [18:00:59.013] function(frame = 1L) { [18:00:59.013] if (is.function(sendCondition)) [18:00:59.013] return(sendCondition) [18:00:59.013] ns <- getNamespace("parallel") [18:00:59.013] if (exists("sendData", mode = "function", [18:00:59.013] envir = ns)) { [18:00:59.013] parallel_sendData <- get("sendData", mode = "function", [18:00:59.013] envir = ns) [18:00:59.013] envir <- sys.frame(frame) [18:00:59.013] master <- NULL [18:00:59.013] while (!identical(envir, .GlobalEnv) && [18:00:59.013] !identical(envir, emptyenv())) { [18:00:59.013] if (exists("master", mode = "list", envir = envir, [18:00:59.013] inherits = FALSE)) { [18:00:59.013] master <- get("master", mode = "list", [18:00:59.013] envir = envir, inherits = FALSE) [18:00:59.013] if (inherits(master, c("SOCKnode", [18:00:59.013] "SOCK0node"))) { [18:00:59.013] sendCondition <<- function(cond) { [18:00:59.013] data <- list(type = "VALUE", value = cond, [18:00:59.013] success = TRUE) [18:00:59.013] parallel_sendData(master, data) [18:00:59.013] } [18:00:59.013] return(sendCondition) [18:00:59.013] } [18:00:59.013] } [18:00:59.013] frame <- frame + 1L [18:00:59.013] envir <- sys.frame(frame) [18:00:59.013] } [18:00:59.013] } [18:00:59.013] sendCondition <<- function(cond) NULL [18:00:59.013] } [18:00:59.013] }) [18:00:59.013] withCallingHandlers({ [18:00:59.013] NA [18:00:59.013] }, immediateCondition = function(cond) { [18:00:59.013] sendCondition <- ...future.makeSendCondition() [18:00:59.013] sendCondition(cond) [18:00:59.013] muffleCondition <- function (cond, pattern = "^muffle") [18:00:59.013] { [18:00:59.013] inherits <- base::inherits [18:00:59.013] invokeRestart <- base::invokeRestart [18:00:59.013] is.null <- base::is.null [18:00:59.013] muffled <- FALSE [18:00:59.013] if (inherits(cond, "message")) { [18:00:59.013] muffled <- grepl(pattern, "muffleMessage") [18:00:59.013] if (muffled) [18:00:59.013] invokeRestart("muffleMessage") [18:00:59.013] } [18:00:59.013] else if (inherits(cond, "warning")) { [18:00:59.013] muffled <- grepl(pattern, "muffleWarning") [18:00:59.013] if (muffled) [18:00:59.013] invokeRestart("muffleWarning") [18:00:59.013] } [18:00:59.013] else if (inherits(cond, "condition")) { [18:00:59.013] if (!is.null(pattern)) { [18:00:59.013] computeRestarts <- base::computeRestarts [18:00:59.013] grepl <- base::grepl [18:00:59.013] restarts <- computeRestarts(cond) [18:00:59.013] for (restart in restarts) { [18:00:59.013] name <- restart$name [18:00:59.013] if (is.null(name)) [18:00:59.013] next [18:00:59.013] if (!grepl(pattern, name)) [18:00:59.013] next [18:00:59.013] invokeRestart(restart) [18:00:59.013] muffled <- TRUE [18:00:59.013] break [18:00:59.013] } [18:00:59.013] } [18:00:59.013] } [18:00:59.013] invisible(muffled) [18:00:59.013] } [18:00:59.013] muffleCondition(cond) [18:00:59.013] }) [18:00:59.013] })) [18:00:59.013] future::FutureResult(value = ...future.value$value, [18:00:59.013] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:00:59.013] ...future.rng), globalenv = if (FALSE) [18:00:59.013] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:00:59.013] ...future.globalenv.names)) [18:00:59.013] else NULL, started = ...future.startTime, version = "1.8") [18:00:59.013] }, condition = base::local({ [18:00:59.013] c <- base::c [18:00:59.013] inherits <- base::inherits [18:00:59.013] invokeRestart <- base::invokeRestart [18:00:59.013] length <- base::length [18:00:59.013] list <- base::list [18:00:59.013] seq.int <- base::seq.int [18:00:59.013] signalCondition <- base::signalCondition [18:00:59.013] sys.calls <- base::sys.calls [18:00:59.013] `[[` <- base::`[[` [18:00:59.013] `+` <- base::`+` [18:00:59.013] `<<-` <- base::`<<-` [18:00:59.013] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:00:59.013] calls[seq.int(from = from + 12L, to = length(calls) - [18:00:59.013] 3L)] [18:00:59.013] } [18:00:59.013] function(cond) { [18:00:59.013] is_error <- inherits(cond, "error") [18:00:59.013] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:00:59.013] NULL) [18:00:59.013] if (is_error) { [18:00:59.013] sessionInformation <- function() { [18:00:59.013] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:00:59.013] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:00:59.013] search = base::search(), system = base::Sys.info()) [18:00:59.013] } [18:00:59.013] ...future.conditions[[length(...future.conditions) + [18:00:59.013] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:00:59.013] cond$call), session = sessionInformation(), [18:00:59.013] timestamp = base::Sys.time(), signaled = 0L) [18:00:59.013] signalCondition(cond) [18:00:59.013] } [18:00:59.013] else if (!ignore && TRUE && inherits(cond, c("condition", [18:00:59.013] "immediateCondition"))) { [18:00:59.013] signal <- TRUE && inherits(cond, "immediateCondition") [18:00:59.013] ...future.conditions[[length(...future.conditions) + [18:00:59.013] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:00:59.013] if (TRUE && !signal) { [18:00:59.013] muffleCondition <- function (cond, pattern = "^muffle") [18:00:59.013] { [18:00:59.013] inherits <- base::inherits [18:00:59.013] invokeRestart <- base::invokeRestart [18:00:59.013] is.null <- base::is.null [18:00:59.013] muffled <- FALSE [18:00:59.013] if (inherits(cond, "message")) { [18:00:59.013] muffled <- grepl(pattern, "muffleMessage") [18:00:59.013] if (muffled) [18:00:59.013] invokeRestart("muffleMessage") [18:00:59.013] } [18:00:59.013] else if (inherits(cond, "warning")) { [18:00:59.013] muffled <- grepl(pattern, "muffleWarning") [18:00:59.013] if (muffled) [18:00:59.013] invokeRestart("muffleWarning") [18:00:59.013] } [18:00:59.013] else if (inherits(cond, "condition")) { [18:00:59.013] if (!is.null(pattern)) { [18:00:59.013] computeRestarts <- base::computeRestarts [18:00:59.013] grepl <- base::grepl [18:00:59.013] restarts <- computeRestarts(cond) [18:00:59.013] for (restart in restarts) { [18:00:59.013] name <- restart$name [18:00:59.013] if (is.null(name)) [18:00:59.013] next [18:00:59.013] if (!grepl(pattern, name)) [18:00:59.013] next [18:00:59.013] invokeRestart(restart) [18:00:59.013] muffled <- TRUE [18:00:59.013] break [18:00:59.013] } [18:00:59.013] } [18:00:59.013] } [18:00:59.013] invisible(muffled) [18:00:59.013] } [18:00:59.013] muffleCondition(cond, pattern = "^muffle") [18:00:59.013] } [18:00:59.013] } [18:00:59.013] else { [18:00:59.013] if (TRUE) { [18:00:59.013] muffleCondition <- function (cond, pattern = "^muffle") [18:00:59.013] { [18:00:59.013] inherits <- base::inherits [18:00:59.013] invokeRestart <- base::invokeRestart [18:00:59.013] is.null <- base::is.null [18:00:59.013] muffled <- FALSE [18:00:59.013] if (inherits(cond, "message")) { [18:00:59.013] muffled <- grepl(pattern, "muffleMessage") [18:00:59.013] if (muffled) [18:00:59.013] invokeRestart("muffleMessage") [18:00:59.013] } [18:00:59.013] else if (inherits(cond, "warning")) { [18:00:59.013] muffled <- grepl(pattern, "muffleWarning") [18:00:59.013] if (muffled) [18:00:59.013] invokeRestart("muffleWarning") [18:00:59.013] } [18:00:59.013] else if (inherits(cond, "condition")) { [18:00:59.013] if (!is.null(pattern)) { [18:00:59.013] computeRestarts <- base::computeRestarts [18:00:59.013] grepl <- base::grepl [18:00:59.013] restarts <- computeRestarts(cond) [18:00:59.013] for (restart in restarts) { [18:00:59.013] name <- restart$name [18:00:59.013] if (is.null(name)) [18:00:59.013] next [18:00:59.013] if (!grepl(pattern, name)) [18:00:59.013] next [18:00:59.013] invokeRestart(restart) [18:00:59.013] muffled <- TRUE [18:00:59.013] break [18:00:59.013] } [18:00:59.013] } [18:00:59.013] } [18:00:59.013] invisible(muffled) [18:00:59.013] } [18:00:59.013] muffleCondition(cond, pattern = "^muffle") [18:00:59.013] } [18:00:59.013] } [18:00:59.013] } [18:00:59.013] })) [18:00:59.013] }, error = function(ex) { [18:00:59.013] base::structure(base::list(value = NULL, visible = NULL, [18:00:59.013] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:00:59.013] ...future.rng), started = ...future.startTime, [18:00:59.013] finished = Sys.time(), session_uuid = NA_character_, [18:00:59.013] version = "1.8"), class = "FutureResult") [18:00:59.013] }, finally = { [18:00:59.013] if (!identical(...future.workdir, getwd())) [18:00:59.013] setwd(...future.workdir) [18:00:59.013] { [18:00:59.013] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:00:59.013] ...future.oldOptions$nwarnings <- NULL [18:00:59.013] } [18:00:59.013] base::options(...future.oldOptions) [18:00:59.013] if (.Platform$OS.type == "windows") { [18:00:59.013] old_names <- names(...future.oldEnvVars) [18:00:59.013] envs <- base::Sys.getenv() [18:00:59.013] names <- names(envs) [18:00:59.013] common <- intersect(names, old_names) [18:00:59.013] added <- setdiff(names, old_names) [18:00:59.013] removed <- setdiff(old_names, names) [18:00:59.013] changed <- common[...future.oldEnvVars[common] != [18:00:59.013] envs[common]] [18:00:59.013] NAMES <- toupper(changed) [18:00:59.013] args <- list() [18:00:59.013] for (kk in seq_along(NAMES)) { [18:00:59.013] name <- changed[[kk]] [18:00:59.013] NAME <- NAMES[[kk]] [18:00:59.013] if (name != NAME && is.element(NAME, old_names)) [18:00:59.013] next [18:00:59.013] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:59.013] } [18:00:59.013] NAMES <- toupper(added) [18:00:59.013] for (kk in seq_along(NAMES)) { [18:00:59.013] name <- added[[kk]] [18:00:59.013] NAME <- NAMES[[kk]] [18:00:59.013] if (name != NAME && is.element(NAME, old_names)) [18:00:59.013] next [18:00:59.013] args[[name]] <- "" [18:00:59.013] } [18:00:59.013] NAMES <- toupper(removed) [18:00:59.013] for (kk in seq_along(NAMES)) { [18:00:59.013] name <- removed[[kk]] [18:00:59.013] NAME <- NAMES[[kk]] [18:00:59.013] if (name != NAME && is.element(NAME, old_names)) [18:00:59.013] next [18:00:59.013] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:59.013] } [18:00:59.013] if (length(args) > 0) [18:00:59.013] base::do.call(base::Sys.setenv, args = args) [18:00:59.013] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:00:59.013] } [18:00:59.013] else { [18:00:59.013] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:00:59.013] } [18:00:59.013] { [18:00:59.013] if (base::length(...future.futureOptionsAdded) > [18:00:59.013] 0L) { [18:00:59.013] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:00:59.013] base::names(opts) <- ...future.futureOptionsAdded [18:00:59.013] base::options(opts) [18:00:59.013] } [18:00:59.013] { [18:00:59.013] { [18:00:59.013] base::options(mc.cores = ...future.mc.cores.old) [18:00:59.013] NULL [18:00:59.013] } [18:00:59.013] options(future.plan = NULL) [18:00:59.013] if (is.na(NA_character_)) [18:00:59.013] Sys.unsetenv("R_FUTURE_PLAN") [18:00:59.013] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:00:59.013] future::plan(list(function (..., workers = 2L, [18:00:59.013] envir = parent.frame()) [18:00:59.013] strategy(..., workers = workers, envir = envir)), [18:00:59.013] .cleanup = FALSE, .init = FALSE) [18:00:59.013] } [18:00:59.013] } [18:00:59.013] } [18:00:59.013] }) [18:00:59.013] if (TRUE) { [18:00:59.013] base::sink(type = "output", split = FALSE) [18:00:59.013] if (TRUE) { [18:00:59.013] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:00:59.013] } [18:00:59.013] else { [18:00:59.013] ...future.result["stdout"] <- base::list(NULL) [18:00:59.013] } [18:00:59.013] base::close(...future.stdout) [18:00:59.013] ...future.stdout <- NULL [18:00:59.013] } [18:00:59.013] ...future.result$conditions <- ...future.conditions [18:00:59.013] ...future.result$finished <- base::Sys.time() [18:00:59.013] ...future.result [18:00:59.013] } [18:00:59.096] MultisessionFuture started [18:00:59.097] result() for ClusterFuture ... [18:00:59.097] receiveMessageFromWorker() for ClusterFuture ... [18:00:59.097] - Validating connection of MultisessionFuture [18:00:59.151] - received message: FutureResult [18:00:59.151] - Received FutureResult [18:00:59.155] - Erased future from FutureRegistry [18:00:59.155] result() for ClusterFuture ... [18:00:59.155] - result already collected: FutureResult [18:00:59.155] result() for ClusterFuture ... done [18:00:59.155] receiveMessageFromWorker() for ClusterFuture ... done [18:00:59.156] result() for ClusterFuture ... done [18:00:59.156] result() for ClusterFuture ... [18:00:59.156] - result already collected: FutureResult [18:00:59.156] result() for ClusterFuture ... done [18:00:59.156] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [18:00:59.157] plan(): nbrOfWorkers() = 2 [18:00:59.157] getGlobalsAndPackages() ... [18:00:59.157] Searching for globals... [18:00:59.159] - globals found: [3] '{', 'Sys.sleep', 'stop' [18:00:59.159] Searching for globals ... DONE [18:00:59.159] Resolving globals: FALSE [18:00:59.160] [18:00:59.160] [18:00:59.160] getGlobalsAndPackages() ... DONE [18:00:59.161] run() for 'Future' ... [18:00:59.161] - state: 'created' [18:00:59.161] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [18:00:59.173] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [18:00:59.174] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [18:00:59.174] - Field: 'node' [18:00:59.174] - Field: 'label' [18:00:59.174] - Field: 'local' [18:00:59.174] - Field: 'owner' [18:00:59.174] - Field: 'envir' [18:00:59.175] - Field: 'workers' [18:00:59.175] - Field: 'packages' [18:00:59.175] - Field: 'gc' [18:00:59.175] - Field: 'conditions' [18:00:59.175] - Field: 'persistent' [18:00:59.176] - Field: 'expr' [18:00:59.176] - Field: 'uuid' [18:00:59.176] - Field: 'seed' [18:00:59.176] - Field: 'version' [18:00:59.176] - Field: 'result' [18:00:59.177] - Field: 'asynchronous' [18:00:59.177] - Field: 'calls' [18:00:59.177] - Field: 'globals' [18:00:59.177] - Field: 'stdout' [18:00:59.177] - Field: 'earlySignal' [18:00:59.178] - Field: 'lazy' [18:00:59.178] - Field: 'state' [18:00:59.178] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [18:00:59.178] - Launch lazy future ... [18:00:59.180] Packages needed by the future expression (n = 0): [18:00:59.181] Packages needed by future strategies (n = 0): [18:00:59.182] { [18:00:59.182] { [18:00:59.182] { [18:00:59.182] ...future.startTime <- base::Sys.time() [18:00:59.182] { [18:00:59.182] { [18:00:59.182] { [18:00:59.182] { [18:00:59.182] base::local({ [18:00:59.182] has_future <- base::requireNamespace("future", [18:00:59.182] quietly = TRUE) [18:00:59.182] if (has_future) { [18:00:59.182] ns <- base::getNamespace("future") [18:00:59.182] version <- ns[[".package"]][["version"]] [18:00:59.182] if (is.null(version)) [18:00:59.182] version <- utils::packageVersion("future") [18:00:59.182] } [18:00:59.182] else { [18:00:59.182] version <- NULL [18:00:59.182] } [18:00:59.182] if (!has_future || version < "1.8.0") { [18:00:59.182] info <- base::c(r_version = base::gsub("R version ", [18:00:59.182] "", base::R.version$version.string), [18:00:59.182] platform = base::sprintf("%s (%s-bit)", [18:00:59.182] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:00:59.182] os = base::paste(base::Sys.info()[base::c("sysname", [18:00:59.182] "release", "version")], collapse = " "), [18:00:59.182] hostname = base::Sys.info()[["nodename"]]) [18:00:59.182] info <- base::sprintf("%s: %s", base::names(info), [18:00:59.182] info) [18:00:59.182] info <- base::paste(info, collapse = "; ") [18:00:59.182] if (!has_future) { [18:00:59.182] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:00:59.182] info) [18:00:59.182] } [18:00:59.182] else { [18:00:59.182] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:00:59.182] info, version) [18:00:59.182] } [18:00:59.182] base::stop(msg) [18:00:59.182] } [18:00:59.182] }) [18:00:59.182] } [18:00:59.182] ...future.mc.cores.old <- base::getOption("mc.cores") [18:00:59.182] base::options(mc.cores = 1L) [18:00:59.182] } [18:00:59.182] options(future.plan = NULL) [18:00:59.182] Sys.unsetenv("R_FUTURE_PLAN") [18:00:59.182] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:00:59.182] } [18:00:59.182] ...future.workdir <- getwd() [18:00:59.182] } [18:00:59.182] ...future.oldOptions <- base::as.list(base::.Options) [18:00:59.182] ...future.oldEnvVars <- base::Sys.getenv() [18:00:59.182] } [18:00:59.182] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:00:59.182] future.globals.maxSize = NULL, future.globals.method = NULL, [18:00:59.182] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:00:59.182] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:00:59.182] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:00:59.182] future.stdout.windows.reencode = NULL, width = 80L) [18:00:59.182] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:00:59.182] base::names(...future.oldOptions)) [18:00:59.182] } [18:00:59.182] if (FALSE) { [18:00:59.182] } [18:00:59.182] else { [18:00:59.182] if (TRUE) { [18:00:59.182] ...future.stdout <- base::rawConnection(base::raw(0L), [18:00:59.182] open = "w") [18:00:59.182] } [18:00:59.182] else { [18:00:59.182] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:00:59.182] windows = "NUL", "/dev/null"), open = "w") [18:00:59.182] } [18:00:59.182] base::sink(...future.stdout, type = "output", split = FALSE) [18:00:59.182] base::on.exit(if (!base::is.null(...future.stdout)) { [18:00:59.182] base::sink(type = "output", split = FALSE) [18:00:59.182] base::close(...future.stdout) [18:00:59.182] }, add = TRUE) [18:00:59.182] } [18:00:59.182] ...future.frame <- base::sys.nframe() [18:00:59.182] ...future.conditions <- base::list() [18:00:59.182] ...future.rng <- base::globalenv()$.Random.seed [18:00:59.182] if (FALSE) { [18:00:59.182] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:00:59.182] "...future.value", "...future.globalenv.names", ".Random.seed") [18:00:59.182] } [18:00:59.182] ...future.result <- base::tryCatch({ [18:00:59.182] base::withCallingHandlers({ [18:00:59.182] ...future.value <- base::withVisible(base::local({ [18:00:59.182] ...future.makeSendCondition <- local({ [18:00:59.182] sendCondition <- NULL [18:00:59.182] function(frame = 1L) { [18:00:59.182] if (is.function(sendCondition)) [18:00:59.182] return(sendCondition) [18:00:59.182] ns <- getNamespace("parallel") [18:00:59.182] if (exists("sendData", mode = "function", [18:00:59.182] envir = ns)) { [18:00:59.182] parallel_sendData <- get("sendData", mode = "function", [18:00:59.182] envir = ns) [18:00:59.182] envir <- sys.frame(frame) [18:00:59.182] master <- NULL [18:00:59.182] while (!identical(envir, .GlobalEnv) && [18:00:59.182] !identical(envir, emptyenv())) { [18:00:59.182] if (exists("master", mode = "list", envir = envir, [18:00:59.182] inherits = FALSE)) { [18:00:59.182] master <- get("master", mode = "list", [18:00:59.182] envir = envir, inherits = FALSE) [18:00:59.182] if (inherits(master, c("SOCKnode", [18:00:59.182] "SOCK0node"))) { [18:00:59.182] sendCondition <<- function(cond) { [18:00:59.182] data <- list(type = "VALUE", value = cond, [18:00:59.182] success = TRUE) [18:00:59.182] parallel_sendData(master, data) [18:00:59.182] } [18:00:59.182] return(sendCondition) [18:00:59.182] } [18:00:59.182] } [18:00:59.182] frame <- frame + 1L [18:00:59.182] envir <- sys.frame(frame) [18:00:59.182] } [18:00:59.182] } [18:00:59.182] sendCondition <<- function(cond) NULL [18:00:59.182] } [18:00:59.182] }) [18:00:59.182] withCallingHandlers({ [18:00:59.182] { [18:00:59.182] Sys.sleep(3) [18:00:59.182] 42L [18:00:59.182] stop("Woops") [18:00:59.182] } [18:00:59.182] }, immediateCondition = function(cond) { [18:00:59.182] sendCondition <- ...future.makeSendCondition() [18:00:59.182] sendCondition(cond) [18:00:59.182] muffleCondition <- function (cond, pattern = "^muffle") [18:00:59.182] { [18:00:59.182] inherits <- base::inherits [18:00:59.182] invokeRestart <- base::invokeRestart [18:00:59.182] is.null <- base::is.null [18:00:59.182] muffled <- FALSE [18:00:59.182] if (inherits(cond, "message")) { [18:00:59.182] muffled <- grepl(pattern, "muffleMessage") [18:00:59.182] if (muffled) [18:00:59.182] invokeRestart("muffleMessage") [18:00:59.182] } [18:00:59.182] else if (inherits(cond, "warning")) { [18:00:59.182] muffled <- grepl(pattern, "muffleWarning") [18:00:59.182] if (muffled) [18:00:59.182] invokeRestart("muffleWarning") [18:00:59.182] } [18:00:59.182] else if (inherits(cond, "condition")) { [18:00:59.182] if (!is.null(pattern)) { [18:00:59.182] computeRestarts <- base::computeRestarts [18:00:59.182] grepl <- base::grepl [18:00:59.182] restarts <- computeRestarts(cond) [18:00:59.182] for (restart in restarts) { [18:00:59.182] name <- restart$name [18:00:59.182] if (is.null(name)) [18:00:59.182] next [18:00:59.182] if (!grepl(pattern, name)) [18:00:59.182] next [18:00:59.182] invokeRestart(restart) [18:00:59.182] muffled <- TRUE [18:00:59.182] break [18:00:59.182] } [18:00:59.182] } [18:00:59.182] } [18:00:59.182] invisible(muffled) [18:00:59.182] } [18:00:59.182] muffleCondition(cond) [18:00:59.182] }) [18:00:59.182] })) [18:00:59.182] future::FutureResult(value = ...future.value$value, [18:00:59.182] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:00:59.182] ...future.rng), globalenv = if (FALSE) [18:00:59.182] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:00:59.182] ...future.globalenv.names)) [18:00:59.182] else NULL, started = ...future.startTime, version = "1.8") [18:00:59.182] }, condition = base::local({ [18:00:59.182] c <- base::c [18:00:59.182] inherits <- base::inherits [18:00:59.182] invokeRestart <- base::invokeRestart [18:00:59.182] length <- base::length [18:00:59.182] list <- base::list [18:00:59.182] seq.int <- base::seq.int [18:00:59.182] signalCondition <- base::signalCondition [18:00:59.182] sys.calls <- base::sys.calls [18:00:59.182] `[[` <- base::`[[` [18:00:59.182] `+` <- base::`+` [18:00:59.182] `<<-` <- base::`<<-` [18:00:59.182] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:00:59.182] calls[seq.int(from = from + 12L, to = length(calls) - [18:00:59.182] 3L)] [18:00:59.182] } [18:00:59.182] function(cond) { [18:00:59.182] is_error <- inherits(cond, "error") [18:00:59.182] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:00:59.182] NULL) [18:00:59.182] if (is_error) { [18:00:59.182] sessionInformation <- function() { [18:00:59.182] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:00:59.182] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:00:59.182] search = base::search(), system = base::Sys.info()) [18:00:59.182] } [18:00:59.182] ...future.conditions[[length(...future.conditions) + [18:00:59.182] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:00:59.182] cond$call), session = sessionInformation(), [18:00:59.182] timestamp = base::Sys.time(), signaled = 0L) [18:00:59.182] signalCondition(cond) [18:00:59.182] } [18:00:59.182] else if (!ignore && TRUE && inherits(cond, c("condition", [18:00:59.182] "immediateCondition"))) { [18:00:59.182] signal <- TRUE && inherits(cond, "immediateCondition") [18:00:59.182] ...future.conditions[[length(...future.conditions) + [18:00:59.182] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:00:59.182] if (TRUE && !signal) { [18:00:59.182] muffleCondition <- function (cond, pattern = "^muffle") [18:00:59.182] { [18:00:59.182] inherits <- base::inherits [18:00:59.182] invokeRestart <- base::invokeRestart [18:00:59.182] is.null <- base::is.null [18:00:59.182] muffled <- FALSE [18:00:59.182] if (inherits(cond, "message")) { [18:00:59.182] muffled <- grepl(pattern, "muffleMessage") [18:00:59.182] if (muffled) [18:00:59.182] invokeRestart("muffleMessage") [18:00:59.182] } [18:00:59.182] else if (inherits(cond, "warning")) { [18:00:59.182] muffled <- grepl(pattern, "muffleWarning") [18:00:59.182] if (muffled) [18:00:59.182] invokeRestart("muffleWarning") [18:00:59.182] } [18:00:59.182] else if (inherits(cond, "condition")) { [18:00:59.182] if (!is.null(pattern)) { [18:00:59.182] computeRestarts <- base::computeRestarts [18:00:59.182] grepl <- base::grepl [18:00:59.182] restarts <- computeRestarts(cond) [18:00:59.182] for (restart in restarts) { [18:00:59.182] name <- restart$name [18:00:59.182] if (is.null(name)) [18:00:59.182] next [18:00:59.182] if (!grepl(pattern, name)) [18:00:59.182] next [18:00:59.182] invokeRestart(restart) [18:00:59.182] muffled <- TRUE [18:00:59.182] break [18:00:59.182] } [18:00:59.182] } [18:00:59.182] } [18:00:59.182] invisible(muffled) [18:00:59.182] } [18:00:59.182] muffleCondition(cond, pattern = "^muffle") [18:00:59.182] } [18:00:59.182] } [18:00:59.182] else { [18:00:59.182] if (TRUE) { [18:00:59.182] muffleCondition <- function (cond, pattern = "^muffle") [18:00:59.182] { [18:00:59.182] inherits <- base::inherits [18:00:59.182] invokeRestart <- base::invokeRestart [18:00:59.182] is.null <- base::is.null [18:00:59.182] muffled <- FALSE [18:00:59.182] if (inherits(cond, "message")) { [18:00:59.182] muffled <- grepl(pattern, "muffleMessage") [18:00:59.182] if (muffled) [18:00:59.182] invokeRestart("muffleMessage") [18:00:59.182] } [18:00:59.182] else if (inherits(cond, "warning")) { [18:00:59.182] muffled <- grepl(pattern, "muffleWarning") [18:00:59.182] if (muffled) [18:00:59.182] invokeRestart("muffleWarning") [18:00:59.182] } [18:00:59.182] else if (inherits(cond, "condition")) { [18:00:59.182] if (!is.null(pattern)) { [18:00:59.182] computeRestarts <- base::computeRestarts [18:00:59.182] grepl <- base::grepl [18:00:59.182] restarts <- computeRestarts(cond) [18:00:59.182] for (restart in restarts) { [18:00:59.182] name <- restart$name [18:00:59.182] if (is.null(name)) [18:00:59.182] next [18:00:59.182] if (!grepl(pattern, name)) [18:00:59.182] next [18:00:59.182] invokeRestart(restart) [18:00:59.182] muffled <- TRUE [18:00:59.182] break [18:00:59.182] } [18:00:59.182] } [18:00:59.182] } [18:00:59.182] invisible(muffled) [18:00:59.182] } [18:00:59.182] muffleCondition(cond, pattern = "^muffle") [18:00:59.182] } [18:00:59.182] } [18:00:59.182] } [18:00:59.182] })) [18:00:59.182] }, error = function(ex) { [18:00:59.182] base::structure(base::list(value = NULL, visible = NULL, [18:00:59.182] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:00:59.182] ...future.rng), started = ...future.startTime, [18:00:59.182] finished = Sys.time(), session_uuid = NA_character_, [18:00:59.182] version = "1.8"), class = "FutureResult") [18:00:59.182] }, finally = { [18:00:59.182] if (!identical(...future.workdir, getwd())) [18:00:59.182] setwd(...future.workdir) [18:00:59.182] { [18:00:59.182] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:00:59.182] ...future.oldOptions$nwarnings <- NULL [18:00:59.182] } [18:00:59.182] base::options(...future.oldOptions) [18:00:59.182] if (.Platform$OS.type == "windows") { [18:00:59.182] old_names <- names(...future.oldEnvVars) [18:00:59.182] envs <- base::Sys.getenv() [18:00:59.182] names <- names(envs) [18:00:59.182] common <- intersect(names, old_names) [18:00:59.182] added <- setdiff(names, old_names) [18:00:59.182] removed <- setdiff(old_names, names) [18:00:59.182] changed <- common[...future.oldEnvVars[common] != [18:00:59.182] envs[common]] [18:00:59.182] NAMES <- toupper(changed) [18:00:59.182] args <- list() [18:00:59.182] for (kk in seq_along(NAMES)) { [18:00:59.182] name <- changed[[kk]] [18:00:59.182] NAME <- NAMES[[kk]] [18:00:59.182] if (name != NAME && is.element(NAME, old_names)) [18:00:59.182] next [18:00:59.182] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:59.182] } [18:00:59.182] NAMES <- toupper(added) [18:00:59.182] for (kk in seq_along(NAMES)) { [18:00:59.182] name <- added[[kk]] [18:00:59.182] NAME <- NAMES[[kk]] [18:00:59.182] if (name != NAME && is.element(NAME, old_names)) [18:00:59.182] next [18:00:59.182] args[[name]] <- "" [18:00:59.182] } [18:00:59.182] NAMES <- toupper(removed) [18:00:59.182] for (kk in seq_along(NAMES)) { [18:00:59.182] name <- removed[[kk]] [18:00:59.182] NAME <- NAMES[[kk]] [18:00:59.182] if (name != NAME && is.element(NAME, old_names)) [18:00:59.182] next [18:00:59.182] args[[name]] <- ...future.oldEnvVars[[name]] [18:00:59.182] } [18:00:59.182] if (length(args) > 0) [18:00:59.182] base::do.call(base::Sys.setenv, args = args) [18:00:59.182] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:00:59.182] } [18:00:59.182] else { [18:00:59.182] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:00:59.182] } [18:00:59.182] { [18:00:59.182] if (base::length(...future.futureOptionsAdded) > [18:00:59.182] 0L) { [18:00:59.182] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:00:59.182] base::names(opts) <- ...future.futureOptionsAdded [18:00:59.182] base::options(opts) [18:00:59.182] } [18:00:59.182] { [18:00:59.182] { [18:00:59.182] base::options(mc.cores = ...future.mc.cores.old) [18:00:59.182] NULL [18:00:59.182] } [18:00:59.182] options(future.plan = NULL) [18:00:59.182] if (is.na(NA_character_)) [18:00:59.182] Sys.unsetenv("R_FUTURE_PLAN") [18:00:59.182] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:00:59.182] future::plan(list(function (..., workers = 2L, [18:00:59.182] envir = parent.frame()) [18:00:59.182] strategy(..., workers = workers, envir = envir)), [18:00:59.182] .cleanup = FALSE, .init = FALSE) [18:00:59.182] } [18:00:59.182] } [18:00:59.182] } [18:00:59.182] }) [18:00:59.182] if (TRUE) { [18:00:59.182] base::sink(type = "output", split = FALSE) [18:00:59.182] if (TRUE) { [18:00:59.182] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:00:59.182] } [18:00:59.182] else { [18:00:59.182] ...future.result["stdout"] <- base::list(NULL) [18:00:59.182] } [18:00:59.182] base::close(...future.stdout) [18:00:59.182] ...future.stdout <- NULL [18:00:59.182] } [18:00:59.182] ...future.result$conditions <- ...future.conditions [18:00:59.182] ...future.result$finished <- base::Sys.time() [18:00:59.182] ...future.result [18:00:59.182] } [18:00:59.189] MultisessionFuture started [18:00:59.190] - Launch lazy future ... done [18:00:59.190] run() for 'MultisessionFuture' ... done [18:01:02.277] receiveMessageFromWorker() for ClusterFuture ... [18:01:02.278] - Validating connection of MultisessionFuture [18:01:02.278] - received message: FutureResult [18:01:02.279] - Received FutureResult [18:01:02.279] - Erased future from FutureRegistry [18:01:02.279] result() for ClusterFuture ... [18:01:02.279] - result already collected: FutureResult [18:01:02.279] result() for ClusterFuture ... done [18:01:02.280] signalConditions() ... [18:01:02.280] - include = 'immediateCondition' [18:01:02.280] - exclude = [18:01:02.280] - resignal = FALSE [18:01:02.280] - Number of conditions: 1 [18:01:02.281] signalConditions() ... done [18:01:02.281] receiveMessageFromWorker() for ClusterFuture ... done [18:01:02.281] A MultisessionFuture was resolved (result was not collected) MultisessionFuture: Label: '' Expression: { Sys.sleep(3) 42L stop("Woops") } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 0 bytes of class 'NULL' Conditions captured: [n=1] 'simpleError' Early signaling: FALSE Owner process: e467d5e9-19f4-f0db-24c1-9213430c3a95 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' > > message("*** backtrace( ) - exceptions ... DONE") *** backtrace( ) - exceptions ... DONE > > > message("*** backtrace( ) ... DONE") *** backtrace( ) ... DONE > > source("incl/end.R") [18:01:02.284] plan(): Setting new future strategy stack: [18:01:02.284] List of future strategies: [18:01:02.284] 1. FutureStrategy: [18:01:02.284] - args: function (..., envir = parent.frame()) [18:01:02.284] - tweaked: FALSE [18:01:02.284] - call: future::plan(oplan) [18:01:02.285] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=201] '!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', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RETICULATE_AUTOCONFIGURE', '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_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_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_', '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.53 0.12 4.53