R Under development (unstable) (2024-03-25 r86192 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [17:25:59.825] plan(): Setting new future strategy stack: [17:25:59.827] List of future strategies: [17:25:59.827] 1. sequential: [17:25:59.827] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.827] - tweaked: FALSE [17:25:59.827] - call: future::plan("sequential") [17:25:59.842] plan(): nbrOfWorkers() = 1 > > message("*** backtrace( ) ...") *** backtrace( ) ... > > message("*** backtrace( ) - explicit future ...") *** backtrace( ) - explicit future ... > > f <- future({ 42L; stop("Woops") }) [17:25:59.849] getGlobalsAndPackages() ... [17:25:59.849] Searching for globals... [17:25:59.856] - globals found: [2] '{', 'stop' [17:25:59.856] Searching for globals ... DONE [17:25:59.857] Resolving globals: FALSE [17:25:59.857] [17:25:59.857] [17:25:59.858] getGlobalsAndPackages() ... DONE [17:25:59.858] run() for 'Future' ... [17:25:59.858] - state: 'created' [17:25:59.859] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:25:59.859] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:25:59.859] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:25:59.860] - Field: 'label' [17:25:59.860] - Field: 'local' [17:25:59.860] - Field: 'owner' [17:25:59.860] - Field: 'envir' [17:25:59.860] - Field: 'packages' [17:25:59.860] - Field: 'gc' [17:25:59.861] - Field: 'conditions' [17:25:59.861] - Field: 'expr' [17:25:59.861] - Field: 'uuid' [17:25:59.861] - Field: 'seed' [17:25:59.861] - Field: 'version' [17:25:59.862] - Field: 'result' [17:25:59.862] - Field: 'asynchronous' [17:25:59.862] - Field: 'calls' [17:25:59.862] - Field: 'globals' [17:25:59.862] - Field: 'stdout' [17:25:59.862] - Field: 'earlySignal' [17:25:59.863] - Field: 'lazy' [17:25:59.863] - Field: 'state' [17:25:59.863] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:25:59.863] - Launch lazy future ... [17:25:59.864] Packages needed by the future expression (n = 0): [17:25:59.864] Packages needed by future strategies (n = 0): [17:25:59.865] { [17:25:59.865] { [17:25:59.865] { [17:25:59.865] ...future.startTime <- base::Sys.time() [17:25:59.865] { [17:25:59.865] { [17:25:59.865] { [17:25:59.865] base::local({ [17:25:59.865] has_future <- base::requireNamespace("future", [17:25:59.865] quietly = TRUE) [17:25:59.865] if (has_future) { [17:25:59.865] ns <- base::getNamespace("future") [17:25:59.865] version <- ns[[".package"]][["version"]] [17:25:59.865] if (is.null(version)) [17:25:59.865] version <- utils::packageVersion("future") [17:25:59.865] } [17:25:59.865] else { [17:25:59.865] version <- NULL [17:25:59.865] } [17:25:59.865] if (!has_future || version < "1.8.0") { [17:25:59.865] info <- base::c(r_version = base::gsub("R version ", [17:25:59.865] "", base::R.version$version.string), [17:25:59.865] platform = base::sprintf("%s (%s-bit)", [17:25:59.865] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:59.865] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:59.865] "release", "version")], collapse = " "), [17:25:59.865] hostname = base::Sys.info()[["nodename"]]) [17:25:59.865] info <- base::sprintf("%s: %s", base::names(info), [17:25:59.865] info) [17:25:59.865] info <- base::paste(info, collapse = "; ") [17:25:59.865] if (!has_future) { [17:25:59.865] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:59.865] info) [17:25:59.865] } [17:25:59.865] else { [17:25:59.865] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:59.865] info, version) [17:25:59.865] } [17:25:59.865] base::stop(msg) [17:25:59.865] } [17:25:59.865] }) [17:25:59.865] } [17:25:59.865] ...future.strategy.old <- future::plan("list") [17:25:59.865] options(future.plan = NULL) [17:25:59.865] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.865] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:59.865] } [17:25:59.865] ...future.workdir <- getwd() [17:25:59.865] } [17:25:59.865] ...future.oldOptions <- base::as.list(base::.Options) [17:25:59.865] ...future.oldEnvVars <- base::Sys.getenv() [17:25:59.865] } [17:25:59.865] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:59.865] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:59.865] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:59.865] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:59.865] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:59.865] future.stdout.windows.reencode = NULL, width = 80L) [17:25:59.865] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:59.865] base::names(...future.oldOptions)) [17:25:59.865] } [17:25:59.865] if (FALSE) { [17:25:59.865] } [17:25:59.865] else { [17:25:59.865] if (TRUE) { [17:25:59.865] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:59.865] open = "w") [17:25:59.865] } [17:25:59.865] else { [17:25:59.865] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:59.865] windows = "NUL", "/dev/null"), open = "w") [17:25:59.865] } [17:25:59.865] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:59.865] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:59.865] base::sink(type = "output", split = FALSE) [17:25:59.865] base::close(...future.stdout) [17:25:59.865] }, add = TRUE) [17:25:59.865] } [17:25:59.865] ...future.frame <- base::sys.nframe() [17:25:59.865] ...future.conditions <- base::list() [17:25:59.865] ...future.rng <- base::globalenv()$.Random.seed [17:25:59.865] if (FALSE) { [17:25:59.865] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:59.865] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:59.865] } [17:25:59.865] ...future.result <- base::tryCatch({ [17:25:59.865] base::withCallingHandlers({ [17:25:59.865] ...future.value <- base::withVisible(base::local({ [17:25:59.865] 42L [17:25:59.865] stop("Woops") [17:25:59.865] })) [17:25:59.865] future::FutureResult(value = ...future.value$value, [17:25:59.865] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.865] ...future.rng), globalenv = if (FALSE) [17:25:59.865] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:59.865] ...future.globalenv.names)) [17:25:59.865] else NULL, started = ...future.startTime, version = "1.8") [17:25:59.865] }, condition = base::local({ [17:25:59.865] c <- base::c [17:25:59.865] inherits <- base::inherits [17:25:59.865] invokeRestart <- base::invokeRestart [17:25:59.865] length <- base::length [17:25:59.865] list <- base::list [17:25:59.865] seq.int <- base::seq.int [17:25:59.865] signalCondition <- base::signalCondition [17:25:59.865] sys.calls <- base::sys.calls [17:25:59.865] `[[` <- base::`[[` [17:25:59.865] `+` <- base::`+` [17:25:59.865] `<<-` <- base::`<<-` [17:25:59.865] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:59.865] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:59.865] 3L)] [17:25:59.865] } [17:25:59.865] function(cond) { [17:25:59.865] is_error <- inherits(cond, "error") [17:25:59.865] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:59.865] NULL) [17:25:59.865] if (is_error) { [17:25:59.865] sessionInformation <- function() { [17:25:59.865] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:59.865] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:59.865] search = base::search(), system = base::Sys.info()) [17:25:59.865] } [17:25:59.865] ...future.conditions[[length(...future.conditions) + [17:25:59.865] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:59.865] cond$call), session = sessionInformation(), [17:25:59.865] timestamp = base::Sys.time(), signaled = 0L) [17:25:59.865] signalCondition(cond) [17:25:59.865] } [17:25:59.865] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:59.865] "immediateCondition"))) { [17:25:59.865] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:59.865] ...future.conditions[[length(...future.conditions) + [17:25:59.865] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:59.865] if (TRUE && !signal) { [17:25:59.865] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.865] { [17:25:59.865] inherits <- base::inherits [17:25:59.865] invokeRestart <- base::invokeRestart [17:25:59.865] is.null <- base::is.null [17:25:59.865] muffled <- FALSE [17:25:59.865] if (inherits(cond, "message")) { [17:25:59.865] muffled <- grepl(pattern, "muffleMessage") [17:25:59.865] if (muffled) [17:25:59.865] invokeRestart("muffleMessage") [17:25:59.865] } [17:25:59.865] else if (inherits(cond, "warning")) { [17:25:59.865] muffled <- grepl(pattern, "muffleWarning") [17:25:59.865] if (muffled) [17:25:59.865] invokeRestart("muffleWarning") [17:25:59.865] } [17:25:59.865] else if (inherits(cond, "condition")) { [17:25:59.865] if (!is.null(pattern)) { [17:25:59.865] computeRestarts <- base::computeRestarts [17:25:59.865] grepl <- base::grepl [17:25:59.865] restarts <- computeRestarts(cond) [17:25:59.865] for (restart in restarts) { [17:25:59.865] name <- restart$name [17:25:59.865] if (is.null(name)) [17:25:59.865] next [17:25:59.865] if (!grepl(pattern, name)) [17:25:59.865] next [17:25:59.865] invokeRestart(restart) [17:25:59.865] muffled <- TRUE [17:25:59.865] break [17:25:59.865] } [17:25:59.865] } [17:25:59.865] } [17:25:59.865] invisible(muffled) [17:25:59.865] } [17:25:59.865] muffleCondition(cond, pattern = "^muffle") [17:25:59.865] } [17:25:59.865] } [17:25:59.865] else { [17:25:59.865] if (TRUE) { [17:25:59.865] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.865] { [17:25:59.865] inherits <- base::inherits [17:25:59.865] invokeRestart <- base::invokeRestart [17:25:59.865] is.null <- base::is.null [17:25:59.865] muffled <- FALSE [17:25:59.865] if (inherits(cond, "message")) { [17:25:59.865] muffled <- grepl(pattern, "muffleMessage") [17:25:59.865] if (muffled) [17:25:59.865] invokeRestart("muffleMessage") [17:25:59.865] } [17:25:59.865] else if (inherits(cond, "warning")) { [17:25:59.865] muffled <- grepl(pattern, "muffleWarning") [17:25:59.865] if (muffled) [17:25:59.865] invokeRestart("muffleWarning") [17:25:59.865] } [17:25:59.865] else if (inherits(cond, "condition")) { [17:25:59.865] if (!is.null(pattern)) { [17:25:59.865] computeRestarts <- base::computeRestarts [17:25:59.865] grepl <- base::grepl [17:25:59.865] restarts <- computeRestarts(cond) [17:25:59.865] for (restart in restarts) { [17:25:59.865] name <- restart$name [17:25:59.865] if (is.null(name)) [17:25:59.865] next [17:25:59.865] if (!grepl(pattern, name)) [17:25:59.865] next [17:25:59.865] invokeRestart(restart) [17:25:59.865] muffled <- TRUE [17:25:59.865] break [17:25:59.865] } [17:25:59.865] } [17:25:59.865] } [17:25:59.865] invisible(muffled) [17:25:59.865] } [17:25:59.865] muffleCondition(cond, pattern = "^muffle") [17:25:59.865] } [17:25:59.865] } [17:25:59.865] } [17:25:59.865] })) [17:25:59.865] }, error = function(ex) { [17:25:59.865] base::structure(base::list(value = NULL, visible = NULL, [17:25:59.865] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.865] ...future.rng), started = ...future.startTime, [17:25:59.865] finished = Sys.time(), session_uuid = NA_character_, [17:25:59.865] version = "1.8"), class = "FutureResult") [17:25:59.865] }, finally = { [17:25:59.865] if (!identical(...future.workdir, getwd())) [17:25:59.865] setwd(...future.workdir) [17:25:59.865] { [17:25:59.865] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:59.865] ...future.oldOptions$nwarnings <- NULL [17:25:59.865] } [17:25:59.865] base::options(...future.oldOptions) [17:25:59.865] if (.Platform$OS.type == "windows") { [17:25:59.865] old_names <- names(...future.oldEnvVars) [17:25:59.865] envs <- base::Sys.getenv() [17:25:59.865] names <- names(envs) [17:25:59.865] common <- intersect(names, old_names) [17:25:59.865] added <- setdiff(names, old_names) [17:25:59.865] removed <- setdiff(old_names, names) [17:25:59.865] changed <- common[...future.oldEnvVars[common] != [17:25:59.865] envs[common]] [17:25:59.865] NAMES <- toupper(changed) [17:25:59.865] args <- list() [17:25:59.865] for (kk in seq_along(NAMES)) { [17:25:59.865] name <- changed[[kk]] [17:25:59.865] NAME <- NAMES[[kk]] [17:25:59.865] if (name != NAME && is.element(NAME, old_names)) [17:25:59.865] next [17:25:59.865] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.865] } [17:25:59.865] NAMES <- toupper(added) [17:25:59.865] for (kk in seq_along(NAMES)) { [17:25:59.865] name <- added[[kk]] [17:25:59.865] NAME <- NAMES[[kk]] [17:25:59.865] if (name != NAME && is.element(NAME, old_names)) [17:25:59.865] next [17:25:59.865] args[[name]] <- "" [17:25:59.865] } [17:25:59.865] NAMES <- toupper(removed) [17:25:59.865] for (kk in seq_along(NAMES)) { [17:25:59.865] name <- removed[[kk]] [17:25:59.865] NAME <- NAMES[[kk]] [17:25:59.865] if (name != NAME && is.element(NAME, old_names)) [17:25:59.865] next [17:25:59.865] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.865] } [17:25:59.865] if (length(args) > 0) [17:25:59.865] base::do.call(base::Sys.setenv, args = args) [17:25:59.865] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:59.865] } [17:25:59.865] else { [17:25:59.865] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:59.865] } [17:25:59.865] { [17:25:59.865] if (base::length(...future.futureOptionsAdded) > [17:25:59.865] 0L) { [17:25:59.865] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:59.865] base::names(opts) <- ...future.futureOptionsAdded [17:25:59.865] base::options(opts) [17:25:59.865] } [17:25:59.865] { [17:25:59.865] { [17:25:59.865] NULL [17:25:59.865] RNGkind("Mersenne-Twister") [17:25:59.865] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:25:59.865] inherits = FALSE) [17:25:59.865] } [17:25:59.865] options(future.plan = NULL) [17:25:59.865] if (is.na(NA_character_)) [17:25:59.865] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.865] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:59.865] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:59.865] .init = FALSE) [17:25:59.865] } [17:25:59.865] } [17:25:59.865] } [17:25:59.865] }) [17:25:59.865] if (TRUE) { [17:25:59.865] base::sink(type = "output", split = FALSE) [17:25:59.865] if (TRUE) { [17:25:59.865] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:59.865] } [17:25:59.865] else { [17:25:59.865] ...future.result["stdout"] <- base::list(NULL) [17:25:59.865] } [17:25:59.865] base::close(...future.stdout) [17:25:59.865] ...future.stdout <- NULL [17:25:59.865] } [17:25:59.865] ...future.result$conditions <- ...future.conditions [17:25:59.865] ...future.result$finished <- base::Sys.time() [17:25:59.865] ...future.result [17:25:59.865] } [17:25:59.869] plan(): Setting new future strategy stack: [17:25:59.870] List of future strategies: [17:25:59.870] 1. sequential: [17:25:59.870] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.870] - tweaked: FALSE [17:25:59.870] - call: NULL [17:25:59.870] plan(): nbrOfWorkers() = 1 [17:25:59.872] plan(): Setting new future strategy stack: [17:25:59.872] List of future strategies: [17:25:59.872] 1. sequential: [17:25:59.872] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.872] - tweaked: FALSE [17:25:59.872] - call: future::plan("sequential") [17:25:59.873] plan(): nbrOfWorkers() = 1 [17:25:59.873] SequentialFuture started (and completed) [17:25:59.873] signalConditions() ... [17:25:59.874] - include = 'immediateCondition' [17:25:59.874] - exclude = [17:25:59.874] - resignal = FALSE [17:25:59.874] - Number of conditions: 1 [17:25:59.874] signalConditions() ... done [17:25:59.875] - Launch lazy future ... done [17:25:59.875] run() for 'SequentialFuture' ... done > v <- value(f, signal = FALSE) [17:25:59.877] signalConditions() ... [17:25:59.877] - include = 'immediateCondition' [17:25:59.877] - exclude = [17:25:59.877] - resignal = FALSE [17:25:59.878] - Number of conditions: 1 [17:25:59.878] signalConditions() ... done > print(v) > calls <- backtrace(f) [17:25:59.879] resolved() for 'SequentialFuture' ... [17:25:59.879] - state: 'finished' [17:25:59.879] - run: TRUE [17:25:59.880] - result: 'FutureResult' [17:25:59.880] 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") } [17:25:59.881] getGlobalsAndPackages() ... [17:25:59.881] Searching for globals... [17:25:59.882] - globals found: [2] '{', 'stop' [17:25:59.882] Searching for globals ... DONE [17:25:59.882] Resolving globals: FALSE [17:25:59.883] [17:25:59.883] [17:25:59.883] getGlobalsAndPackages() ... DONE [17:25:59.883] run() for 'Future' ... [17:25:59.884] - state: 'created' [17:25:59.884] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:25:59.884] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:25:59.884] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:25:59.885] - Field: 'label' [17:25:59.885] - Field: 'local' [17:25:59.885] - Field: 'owner' [17:25:59.885] - Field: 'envir' [17:25:59.885] - Field: 'packages' [17:25:59.885] - Field: 'gc' [17:25:59.886] - Field: 'conditions' [17:25:59.886] - Field: 'expr' [17:25:59.886] - Field: 'uuid' [17:25:59.886] - Field: 'seed' [17:25:59.886] - Field: 'version' [17:25:59.886] - Field: 'result' [17:25:59.887] - Field: 'asynchronous' [17:25:59.887] - Field: 'calls' [17:25:59.887] - Field: 'globals' [17:25:59.887] - Field: 'stdout' [17:25:59.887] - Field: 'earlySignal' [17:25:59.887] - Field: 'lazy' [17:25:59.888] - Field: 'state' [17:25:59.888] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:25:59.888] - Launch lazy future ... [17:25:59.888] Packages needed by the future expression (n = 0): [17:25:59.888] Packages needed by future strategies (n = 0): [17:25:59.889] { [17:25:59.889] { [17:25:59.889] { [17:25:59.889] ...future.startTime <- base::Sys.time() [17:25:59.889] { [17:25:59.889] { [17:25:59.889] { [17:25:59.889] base::local({ [17:25:59.889] has_future <- base::requireNamespace("future", [17:25:59.889] quietly = TRUE) [17:25:59.889] if (has_future) { [17:25:59.889] ns <- base::getNamespace("future") [17:25:59.889] version <- ns[[".package"]][["version"]] [17:25:59.889] if (is.null(version)) [17:25:59.889] version <- utils::packageVersion("future") [17:25:59.889] } [17:25:59.889] else { [17:25:59.889] version <- NULL [17:25:59.889] } [17:25:59.889] if (!has_future || version < "1.8.0") { [17:25:59.889] info <- base::c(r_version = base::gsub("R version ", [17:25:59.889] "", base::R.version$version.string), [17:25:59.889] platform = base::sprintf("%s (%s-bit)", [17:25:59.889] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:59.889] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:59.889] "release", "version")], collapse = " "), [17:25:59.889] hostname = base::Sys.info()[["nodename"]]) [17:25:59.889] info <- base::sprintf("%s: %s", base::names(info), [17:25:59.889] info) [17:25:59.889] info <- base::paste(info, collapse = "; ") [17:25:59.889] if (!has_future) { [17:25:59.889] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:59.889] info) [17:25:59.889] } [17:25:59.889] else { [17:25:59.889] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:59.889] info, version) [17:25:59.889] } [17:25:59.889] base::stop(msg) [17:25:59.889] } [17:25:59.889] }) [17:25:59.889] } [17:25:59.889] ...future.strategy.old <- future::plan("list") [17:25:59.889] options(future.plan = NULL) [17:25:59.889] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.889] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:59.889] } [17:25:59.889] ...future.workdir <- getwd() [17:25:59.889] } [17:25:59.889] ...future.oldOptions <- base::as.list(base::.Options) [17:25:59.889] ...future.oldEnvVars <- base::Sys.getenv() [17:25:59.889] } [17:25:59.889] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:59.889] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:59.889] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:59.889] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:59.889] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:59.889] future.stdout.windows.reencode = NULL, width = 80L) [17:25:59.889] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:59.889] base::names(...future.oldOptions)) [17:25:59.889] } [17:25:59.889] if (FALSE) { [17:25:59.889] } [17:25:59.889] else { [17:25:59.889] if (TRUE) { [17:25:59.889] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:59.889] open = "w") [17:25:59.889] } [17:25:59.889] else { [17:25:59.889] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:59.889] windows = "NUL", "/dev/null"), open = "w") [17:25:59.889] } [17:25:59.889] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:59.889] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:59.889] base::sink(type = "output", split = FALSE) [17:25:59.889] base::close(...future.stdout) [17:25:59.889] }, add = TRUE) [17:25:59.889] } [17:25:59.889] ...future.frame <- base::sys.nframe() [17:25:59.889] ...future.conditions <- base::list() [17:25:59.889] ...future.rng <- base::globalenv()$.Random.seed [17:25:59.889] if (FALSE) { [17:25:59.889] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:59.889] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:59.889] } [17:25:59.889] ...future.result <- base::tryCatch({ [17:25:59.889] base::withCallingHandlers({ [17:25:59.889] ...future.value <- base::withVisible(base::local({ [17:25:59.889] 42L [17:25:59.889] stop("Woops") [17:25:59.889] })) [17:25:59.889] future::FutureResult(value = ...future.value$value, [17:25:59.889] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.889] ...future.rng), globalenv = if (FALSE) [17:25:59.889] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:59.889] ...future.globalenv.names)) [17:25:59.889] else NULL, started = ...future.startTime, version = "1.8") [17:25:59.889] }, condition = base::local({ [17:25:59.889] c <- base::c [17:25:59.889] inherits <- base::inherits [17:25:59.889] invokeRestart <- base::invokeRestart [17:25:59.889] length <- base::length [17:25:59.889] list <- base::list [17:25:59.889] seq.int <- base::seq.int [17:25:59.889] signalCondition <- base::signalCondition [17:25:59.889] sys.calls <- base::sys.calls [17:25:59.889] `[[` <- base::`[[` [17:25:59.889] `+` <- base::`+` [17:25:59.889] `<<-` <- base::`<<-` [17:25:59.889] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:59.889] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:59.889] 3L)] [17:25:59.889] } [17:25:59.889] function(cond) { [17:25:59.889] is_error <- inherits(cond, "error") [17:25:59.889] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:59.889] NULL) [17:25:59.889] if (is_error) { [17:25:59.889] sessionInformation <- function() { [17:25:59.889] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:59.889] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:59.889] search = base::search(), system = base::Sys.info()) [17:25:59.889] } [17:25:59.889] ...future.conditions[[length(...future.conditions) + [17:25:59.889] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:59.889] cond$call), session = sessionInformation(), [17:25:59.889] timestamp = base::Sys.time(), signaled = 0L) [17:25:59.889] signalCondition(cond) [17:25:59.889] } [17:25:59.889] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:59.889] "immediateCondition"))) { [17:25:59.889] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:59.889] ...future.conditions[[length(...future.conditions) + [17:25:59.889] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:59.889] if (TRUE && !signal) { [17:25:59.889] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.889] { [17:25:59.889] inherits <- base::inherits [17:25:59.889] invokeRestart <- base::invokeRestart [17:25:59.889] is.null <- base::is.null [17:25:59.889] muffled <- FALSE [17:25:59.889] if (inherits(cond, "message")) { [17:25:59.889] muffled <- grepl(pattern, "muffleMessage") [17:25:59.889] if (muffled) [17:25:59.889] invokeRestart("muffleMessage") [17:25:59.889] } [17:25:59.889] else if (inherits(cond, "warning")) { [17:25:59.889] muffled <- grepl(pattern, "muffleWarning") [17:25:59.889] if (muffled) [17:25:59.889] invokeRestart("muffleWarning") [17:25:59.889] } [17:25:59.889] else if (inherits(cond, "condition")) { [17:25:59.889] if (!is.null(pattern)) { [17:25:59.889] computeRestarts <- base::computeRestarts [17:25:59.889] grepl <- base::grepl [17:25:59.889] restarts <- computeRestarts(cond) [17:25:59.889] for (restart in restarts) { [17:25:59.889] name <- restart$name [17:25:59.889] if (is.null(name)) [17:25:59.889] next [17:25:59.889] if (!grepl(pattern, name)) [17:25:59.889] next [17:25:59.889] invokeRestart(restart) [17:25:59.889] muffled <- TRUE [17:25:59.889] break [17:25:59.889] } [17:25:59.889] } [17:25:59.889] } [17:25:59.889] invisible(muffled) [17:25:59.889] } [17:25:59.889] muffleCondition(cond, pattern = "^muffle") [17:25:59.889] } [17:25:59.889] } [17:25:59.889] else { [17:25:59.889] if (TRUE) { [17:25:59.889] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.889] { [17:25:59.889] inherits <- base::inherits [17:25:59.889] invokeRestart <- base::invokeRestart [17:25:59.889] is.null <- base::is.null [17:25:59.889] muffled <- FALSE [17:25:59.889] if (inherits(cond, "message")) { [17:25:59.889] muffled <- grepl(pattern, "muffleMessage") [17:25:59.889] if (muffled) [17:25:59.889] invokeRestart("muffleMessage") [17:25:59.889] } [17:25:59.889] else if (inherits(cond, "warning")) { [17:25:59.889] muffled <- grepl(pattern, "muffleWarning") [17:25:59.889] if (muffled) [17:25:59.889] invokeRestart("muffleWarning") [17:25:59.889] } [17:25:59.889] else if (inherits(cond, "condition")) { [17:25:59.889] if (!is.null(pattern)) { [17:25:59.889] computeRestarts <- base::computeRestarts [17:25:59.889] grepl <- base::grepl [17:25:59.889] restarts <- computeRestarts(cond) [17:25:59.889] for (restart in restarts) { [17:25:59.889] name <- restart$name [17:25:59.889] if (is.null(name)) [17:25:59.889] next [17:25:59.889] if (!grepl(pattern, name)) [17:25:59.889] next [17:25:59.889] invokeRestart(restart) [17:25:59.889] muffled <- TRUE [17:25:59.889] break [17:25:59.889] } [17:25:59.889] } [17:25:59.889] } [17:25:59.889] invisible(muffled) [17:25:59.889] } [17:25:59.889] muffleCondition(cond, pattern = "^muffle") [17:25:59.889] } [17:25:59.889] } [17:25:59.889] } [17:25:59.889] })) [17:25:59.889] }, error = function(ex) { [17:25:59.889] base::structure(base::list(value = NULL, visible = NULL, [17:25:59.889] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.889] ...future.rng), started = ...future.startTime, [17:25:59.889] finished = Sys.time(), session_uuid = NA_character_, [17:25:59.889] version = "1.8"), class = "FutureResult") [17:25:59.889] }, finally = { [17:25:59.889] if (!identical(...future.workdir, getwd())) [17:25:59.889] setwd(...future.workdir) [17:25:59.889] { [17:25:59.889] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:59.889] ...future.oldOptions$nwarnings <- NULL [17:25:59.889] } [17:25:59.889] base::options(...future.oldOptions) [17:25:59.889] if (.Platform$OS.type == "windows") { [17:25:59.889] old_names <- names(...future.oldEnvVars) [17:25:59.889] envs <- base::Sys.getenv() [17:25:59.889] names <- names(envs) [17:25:59.889] common <- intersect(names, old_names) [17:25:59.889] added <- setdiff(names, old_names) [17:25:59.889] removed <- setdiff(old_names, names) [17:25:59.889] changed <- common[...future.oldEnvVars[common] != [17:25:59.889] envs[common]] [17:25:59.889] NAMES <- toupper(changed) [17:25:59.889] args <- list() [17:25:59.889] for (kk in seq_along(NAMES)) { [17:25:59.889] name <- changed[[kk]] [17:25:59.889] NAME <- NAMES[[kk]] [17:25:59.889] if (name != NAME && is.element(NAME, old_names)) [17:25:59.889] next [17:25:59.889] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.889] } [17:25:59.889] NAMES <- toupper(added) [17:25:59.889] for (kk in seq_along(NAMES)) { [17:25:59.889] name <- added[[kk]] [17:25:59.889] NAME <- NAMES[[kk]] [17:25:59.889] if (name != NAME && is.element(NAME, old_names)) [17:25:59.889] next [17:25:59.889] args[[name]] <- "" [17:25:59.889] } [17:25:59.889] NAMES <- toupper(removed) [17:25:59.889] for (kk in seq_along(NAMES)) { [17:25:59.889] name <- removed[[kk]] [17:25:59.889] NAME <- NAMES[[kk]] [17:25:59.889] if (name != NAME && is.element(NAME, old_names)) [17:25:59.889] next [17:25:59.889] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.889] } [17:25:59.889] if (length(args) > 0) [17:25:59.889] base::do.call(base::Sys.setenv, args = args) [17:25:59.889] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:59.889] } [17:25:59.889] else { [17:25:59.889] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:59.889] } [17:25:59.889] { [17:25:59.889] if (base::length(...future.futureOptionsAdded) > [17:25:59.889] 0L) { [17:25:59.889] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:59.889] base::names(opts) <- ...future.futureOptionsAdded [17:25:59.889] base::options(opts) [17:25:59.889] } [17:25:59.889] { [17:25:59.889] { [17:25:59.889] NULL [17:25:59.889] RNGkind("Mersenne-Twister") [17:25:59.889] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:25:59.889] inherits = FALSE) [17:25:59.889] } [17:25:59.889] options(future.plan = NULL) [17:25:59.889] if (is.na(NA_character_)) [17:25:59.889] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.889] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:59.889] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:59.889] .init = FALSE) [17:25:59.889] } [17:25:59.889] } [17:25:59.889] } [17:25:59.889] }) [17:25:59.889] if (TRUE) { [17:25:59.889] base::sink(type = "output", split = FALSE) [17:25:59.889] if (TRUE) { [17:25:59.889] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:59.889] } [17:25:59.889] else { [17:25:59.889] ...future.result["stdout"] <- base::list(NULL) [17:25:59.889] } [17:25:59.889] base::close(...future.stdout) [17:25:59.889] ...future.stdout <- NULL [17:25:59.889] } [17:25:59.889] ...future.result$conditions <- ...future.conditions [17:25:59.889] ...future.result$finished <- base::Sys.time() [17:25:59.889] ...future.result [17:25:59.889] } [17:25:59.893] plan(): Setting new future strategy stack: [17:25:59.893] List of future strategies: [17:25:59.893] 1. sequential: [17:25:59.893] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.893] - tweaked: FALSE [17:25:59.893] - call: NULL [17:25:59.894] plan(): nbrOfWorkers() = 1 [17:25:59.895] plan(): Setting new future strategy stack: [17:25:59.895] List of future strategies: [17:25:59.895] 1. sequential: [17:25:59.895] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.895] - tweaked: FALSE [17:25:59.895] - call: future::plan("sequential") [17:25:59.896] plan(): nbrOfWorkers() = 1 [17:25:59.896] SequentialFuture started (and completed) [17:25:59.896] signalConditions() ... [17:25:59.896] - include = 'immediateCondition' [17:25:59.897] - exclude = [17:25:59.897] - resignal = FALSE [17:25:59.897] - Number of conditions: 1 [17:25:59.897] signalConditions() ... done [17:25:59.897] - Launch lazy future ... done [17:25:59.897] run() for 'SequentialFuture' ... done > calls <- backtrace(v) [17:25:59.898] resolved() for 'SequentialFuture' ... [17:25:59.898] - state: 'finished' [17:25:59.898] - run: TRUE [17:25:59.898] - result: 'FutureResult' [17:25:59.899] 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") } [17:25:59.900] getGlobalsAndPackages() ... [17:25:59.900] Searching for globals... [17:25:59.901] - globals found: [2] '{', 'stop' [17:25:59.901] Searching for globals ... DONE [17:25:59.902] Resolving globals: FALSE [17:25:59.902] [17:25:59.902] [17:25:59.902] getGlobalsAndPackages() ... DONE [17:25:59.903] run() for 'Future' ... [17:25:59.903] - state: 'created' [17:25:59.903] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:25:59.903] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:25:59.904] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:25:59.904] - Field: 'label' [17:25:59.904] - Field: 'local' [17:25:59.904] - Field: 'owner' [17:25:59.904] - Field: 'envir' [17:25:59.904] - Field: 'packages' [17:25:59.905] - Field: 'gc' [17:25:59.905] - Field: 'conditions' [17:25:59.905] - Field: 'expr' [17:25:59.905] - Field: 'uuid' [17:25:59.905] - Field: 'seed' [17:25:59.905] - Field: 'version' [17:25:59.906] - Field: 'result' [17:25:59.906] - Field: 'asynchronous' [17:25:59.906] - Field: 'calls' [17:25:59.906] - Field: 'globals' [17:25:59.906] - Field: 'stdout' [17:25:59.906] - Field: 'earlySignal' [17:25:59.907] - Field: 'lazy' [17:25:59.907] - Field: 'state' [17:25:59.907] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:25:59.907] - Launch lazy future ... [17:25:59.907] Packages needed by the future expression (n = 0): [17:25:59.908] Packages needed by future strategies (n = 0): [17:25:59.908] { [17:25:59.908] { [17:25:59.908] { [17:25:59.908] ...future.startTime <- base::Sys.time() [17:25:59.908] { [17:25:59.908] { [17:25:59.908] { [17:25:59.908] base::local({ [17:25:59.908] has_future <- base::requireNamespace("future", [17:25:59.908] quietly = TRUE) [17:25:59.908] if (has_future) { [17:25:59.908] ns <- base::getNamespace("future") [17:25:59.908] version <- ns[[".package"]][["version"]] [17:25:59.908] if (is.null(version)) [17:25:59.908] version <- utils::packageVersion("future") [17:25:59.908] } [17:25:59.908] else { [17:25:59.908] version <- NULL [17:25:59.908] } [17:25:59.908] if (!has_future || version < "1.8.0") { [17:25:59.908] info <- base::c(r_version = base::gsub("R version ", [17:25:59.908] "", base::R.version$version.string), [17:25:59.908] platform = base::sprintf("%s (%s-bit)", [17:25:59.908] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:59.908] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:59.908] "release", "version")], collapse = " "), [17:25:59.908] hostname = base::Sys.info()[["nodename"]]) [17:25:59.908] info <- base::sprintf("%s: %s", base::names(info), [17:25:59.908] info) [17:25:59.908] info <- base::paste(info, collapse = "; ") [17:25:59.908] if (!has_future) { [17:25:59.908] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:59.908] info) [17:25:59.908] } [17:25:59.908] else { [17:25:59.908] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:59.908] info, version) [17:25:59.908] } [17:25:59.908] base::stop(msg) [17:25:59.908] } [17:25:59.908] }) [17:25:59.908] } [17:25:59.908] ...future.strategy.old <- future::plan("list") [17:25:59.908] options(future.plan = NULL) [17:25:59.908] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.908] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:59.908] } [17:25:59.908] ...future.workdir <- getwd() [17:25:59.908] } [17:25:59.908] ...future.oldOptions <- base::as.list(base::.Options) [17:25:59.908] ...future.oldEnvVars <- base::Sys.getenv() [17:25:59.908] } [17:25:59.908] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:59.908] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:59.908] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:59.908] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:59.908] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:59.908] future.stdout.windows.reencode = NULL, width = 80L) [17:25:59.908] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:59.908] base::names(...future.oldOptions)) [17:25:59.908] } [17:25:59.908] if (FALSE) { [17:25:59.908] } [17:25:59.908] else { [17:25:59.908] if (TRUE) { [17:25:59.908] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:59.908] open = "w") [17:25:59.908] } [17:25:59.908] else { [17:25:59.908] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:59.908] windows = "NUL", "/dev/null"), open = "w") [17:25:59.908] } [17:25:59.908] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:59.908] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:59.908] base::sink(type = "output", split = FALSE) [17:25:59.908] base::close(...future.stdout) [17:25:59.908] }, add = TRUE) [17:25:59.908] } [17:25:59.908] ...future.frame <- base::sys.nframe() [17:25:59.908] ...future.conditions <- base::list() [17:25:59.908] ...future.rng <- base::globalenv()$.Random.seed [17:25:59.908] if (FALSE) { [17:25:59.908] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:59.908] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:59.908] } [17:25:59.908] ...future.result <- base::tryCatch({ [17:25:59.908] base::withCallingHandlers({ [17:25:59.908] ...future.value <- base::withVisible(base::local({ [17:25:59.908] 42L [17:25:59.908] stop("Woops") [17:25:59.908] })) [17:25:59.908] future::FutureResult(value = ...future.value$value, [17:25:59.908] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.908] ...future.rng), globalenv = if (FALSE) [17:25:59.908] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:59.908] ...future.globalenv.names)) [17:25:59.908] else NULL, started = ...future.startTime, version = "1.8") [17:25:59.908] }, condition = base::local({ [17:25:59.908] c <- base::c [17:25:59.908] inherits <- base::inherits [17:25:59.908] invokeRestart <- base::invokeRestart [17:25:59.908] length <- base::length [17:25:59.908] list <- base::list [17:25:59.908] seq.int <- base::seq.int [17:25:59.908] signalCondition <- base::signalCondition [17:25:59.908] sys.calls <- base::sys.calls [17:25:59.908] `[[` <- base::`[[` [17:25:59.908] `+` <- base::`+` [17:25:59.908] `<<-` <- base::`<<-` [17:25:59.908] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:59.908] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:59.908] 3L)] [17:25:59.908] } [17:25:59.908] function(cond) { [17:25:59.908] is_error <- inherits(cond, "error") [17:25:59.908] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:59.908] NULL) [17:25:59.908] if (is_error) { [17:25:59.908] sessionInformation <- function() { [17:25:59.908] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:59.908] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:59.908] search = base::search(), system = base::Sys.info()) [17:25:59.908] } [17:25:59.908] ...future.conditions[[length(...future.conditions) + [17:25:59.908] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:59.908] cond$call), session = sessionInformation(), [17:25:59.908] timestamp = base::Sys.time(), signaled = 0L) [17:25:59.908] signalCondition(cond) [17:25:59.908] } [17:25:59.908] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:59.908] "immediateCondition"))) { [17:25:59.908] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:59.908] ...future.conditions[[length(...future.conditions) + [17:25:59.908] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:59.908] if (TRUE && !signal) { [17:25:59.908] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.908] { [17:25:59.908] inherits <- base::inherits [17:25:59.908] invokeRestart <- base::invokeRestart [17:25:59.908] is.null <- base::is.null [17:25:59.908] muffled <- FALSE [17:25:59.908] if (inherits(cond, "message")) { [17:25:59.908] muffled <- grepl(pattern, "muffleMessage") [17:25:59.908] if (muffled) [17:25:59.908] invokeRestart("muffleMessage") [17:25:59.908] } [17:25:59.908] else if (inherits(cond, "warning")) { [17:25:59.908] muffled <- grepl(pattern, "muffleWarning") [17:25:59.908] if (muffled) [17:25:59.908] invokeRestart("muffleWarning") [17:25:59.908] } [17:25:59.908] else if (inherits(cond, "condition")) { [17:25:59.908] if (!is.null(pattern)) { [17:25:59.908] computeRestarts <- base::computeRestarts [17:25:59.908] grepl <- base::grepl [17:25:59.908] restarts <- computeRestarts(cond) [17:25:59.908] for (restart in restarts) { [17:25:59.908] name <- restart$name [17:25:59.908] if (is.null(name)) [17:25:59.908] next [17:25:59.908] if (!grepl(pattern, name)) [17:25:59.908] next [17:25:59.908] invokeRestart(restart) [17:25:59.908] muffled <- TRUE [17:25:59.908] break [17:25:59.908] } [17:25:59.908] } [17:25:59.908] } [17:25:59.908] invisible(muffled) [17:25:59.908] } [17:25:59.908] muffleCondition(cond, pattern = "^muffle") [17:25:59.908] } [17:25:59.908] } [17:25:59.908] else { [17:25:59.908] if (TRUE) { [17:25:59.908] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.908] { [17:25:59.908] inherits <- base::inherits [17:25:59.908] invokeRestart <- base::invokeRestart [17:25:59.908] is.null <- base::is.null [17:25:59.908] muffled <- FALSE [17:25:59.908] if (inherits(cond, "message")) { [17:25:59.908] muffled <- grepl(pattern, "muffleMessage") [17:25:59.908] if (muffled) [17:25:59.908] invokeRestart("muffleMessage") [17:25:59.908] } [17:25:59.908] else if (inherits(cond, "warning")) { [17:25:59.908] muffled <- grepl(pattern, "muffleWarning") [17:25:59.908] if (muffled) [17:25:59.908] invokeRestart("muffleWarning") [17:25:59.908] } [17:25:59.908] else if (inherits(cond, "condition")) { [17:25:59.908] if (!is.null(pattern)) { [17:25:59.908] computeRestarts <- base::computeRestarts [17:25:59.908] grepl <- base::grepl [17:25:59.908] restarts <- computeRestarts(cond) [17:25:59.908] for (restart in restarts) { [17:25:59.908] name <- restart$name [17:25:59.908] if (is.null(name)) [17:25:59.908] next [17:25:59.908] if (!grepl(pattern, name)) [17:25:59.908] next [17:25:59.908] invokeRestart(restart) [17:25:59.908] muffled <- TRUE [17:25:59.908] break [17:25:59.908] } [17:25:59.908] } [17:25:59.908] } [17:25:59.908] invisible(muffled) [17:25:59.908] } [17:25:59.908] muffleCondition(cond, pattern = "^muffle") [17:25:59.908] } [17:25:59.908] } [17:25:59.908] } [17:25:59.908] })) [17:25:59.908] }, error = function(ex) { [17:25:59.908] base::structure(base::list(value = NULL, visible = NULL, [17:25:59.908] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.908] ...future.rng), started = ...future.startTime, [17:25:59.908] finished = Sys.time(), session_uuid = NA_character_, [17:25:59.908] version = "1.8"), class = "FutureResult") [17:25:59.908] }, finally = { [17:25:59.908] if (!identical(...future.workdir, getwd())) [17:25:59.908] setwd(...future.workdir) [17:25:59.908] { [17:25:59.908] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:59.908] ...future.oldOptions$nwarnings <- NULL [17:25:59.908] } [17:25:59.908] base::options(...future.oldOptions) [17:25:59.908] if (.Platform$OS.type == "windows") { [17:25:59.908] old_names <- names(...future.oldEnvVars) [17:25:59.908] envs <- base::Sys.getenv() [17:25:59.908] names <- names(envs) [17:25:59.908] common <- intersect(names, old_names) [17:25:59.908] added <- setdiff(names, old_names) [17:25:59.908] removed <- setdiff(old_names, names) [17:25:59.908] changed <- common[...future.oldEnvVars[common] != [17:25:59.908] envs[common]] [17:25:59.908] NAMES <- toupper(changed) [17:25:59.908] args <- list() [17:25:59.908] for (kk in seq_along(NAMES)) { [17:25:59.908] name <- changed[[kk]] [17:25:59.908] NAME <- NAMES[[kk]] [17:25:59.908] if (name != NAME && is.element(NAME, old_names)) [17:25:59.908] next [17:25:59.908] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.908] } [17:25:59.908] NAMES <- toupper(added) [17:25:59.908] for (kk in seq_along(NAMES)) { [17:25:59.908] name <- added[[kk]] [17:25:59.908] NAME <- NAMES[[kk]] [17:25:59.908] if (name != NAME && is.element(NAME, old_names)) [17:25:59.908] next [17:25:59.908] args[[name]] <- "" [17:25:59.908] } [17:25:59.908] NAMES <- toupper(removed) [17:25:59.908] for (kk in seq_along(NAMES)) { [17:25:59.908] name <- removed[[kk]] [17:25:59.908] NAME <- NAMES[[kk]] [17:25:59.908] if (name != NAME && is.element(NAME, old_names)) [17:25:59.908] next [17:25:59.908] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.908] } [17:25:59.908] if (length(args) > 0) [17:25:59.908] base::do.call(base::Sys.setenv, args = args) [17:25:59.908] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:59.908] } [17:25:59.908] else { [17:25:59.908] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:59.908] } [17:25:59.908] { [17:25:59.908] if (base::length(...future.futureOptionsAdded) > [17:25:59.908] 0L) { [17:25:59.908] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:59.908] base::names(opts) <- ...future.futureOptionsAdded [17:25:59.908] base::options(opts) [17:25:59.908] } [17:25:59.908] { [17:25:59.908] { [17:25:59.908] NULL [17:25:59.908] RNGkind("Mersenne-Twister") [17:25:59.908] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:25:59.908] inherits = FALSE) [17:25:59.908] } [17:25:59.908] options(future.plan = NULL) [17:25:59.908] if (is.na(NA_character_)) [17:25:59.908] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.908] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:59.908] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:59.908] .init = FALSE) [17:25:59.908] } [17:25:59.908] } [17:25:59.908] } [17:25:59.908] }) [17:25:59.908] if (TRUE) { [17:25:59.908] base::sink(type = "output", split = FALSE) [17:25:59.908] if (TRUE) { [17:25:59.908] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:59.908] } [17:25:59.908] else { [17:25:59.908] ...future.result["stdout"] <- base::list(NULL) [17:25:59.908] } [17:25:59.908] base::close(...future.stdout) [17:25:59.908] ...future.stdout <- NULL [17:25:59.908] } [17:25:59.908] ...future.result$conditions <- ...future.conditions [17:25:59.908] ...future.result$finished <- base::Sys.time() [17:25:59.908] ...future.result [17:25:59.908] } [17:25:59.912] plan(): Setting new future strategy stack: [17:25:59.912] List of future strategies: [17:25:59.912] 1. sequential: [17:25:59.912] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.912] - tweaked: FALSE [17:25:59.912] - call: NULL [17:25:59.913] plan(): nbrOfWorkers() = 1 [17:25:59.914] plan(): Setting new future strategy stack: [17:25:59.914] List of future strategies: [17:25:59.914] 1. sequential: [17:25:59.914] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.914] - tweaked: FALSE [17:25:59.914] - call: future::plan("sequential") [17:25:59.915] plan(): nbrOfWorkers() = 1 [17:25:59.915] SequentialFuture started (and completed) [17:25:59.915] signalConditions() ... [17:25:59.916] - include = 'immediateCondition' [17:25:59.916] - exclude = [17:25:59.916] - resignal = FALSE [17:25:59.916] - Number of conditions: 1 [17:25:59.916] signalConditions() ... done [17:25:59.916] - Launch lazy future ... done [17:25:59.917] run() for 'SequentialFuture' ... done > env[["b"]] %<-% { 42L; stop("Woops") } [17:25:59.917] getGlobalsAndPackages() ... [17:25:59.917] Searching for globals... [17:25:59.918] - globals found: [2] '{', 'stop' [17:25:59.919] Searching for globals ... DONE [17:25:59.919] Resolving globals: FALSE [17:25:59.919] [17:25:59.919] [17:25:59.919] getGlobalsAndPackages() ... DONE [17:25:59.920] run() for 'Future' ... [17:25:59.921] - state: 'created' [17:25:59.921] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:25:59.921] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:25:59.922] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:25:59.922] - Field: 'label' [17:25:59.922] - Field: 'local' [17:25:59.922] - Field: 'owner' [17:25:59.922] - Field: 'envir' [17:25:59.923] - Field: 'packages' [17:25:59.923] - Field: 'gc' [17:25:59.923] - Field: 'conditions' [17:25:59.923] - Field: 'expr' [17:25:59.923] - Field: 'uuid' [17:25:59.923] - Field: 'seed' [17:25:59.924] - Field: 'version' [17:25:59.924] - Field: 'result' [17:25:59.924] - Field: 'asynchronous' [17:25:59.924] - Field: 'calls' [17:25:59.924] - Field: 'globals' [17:25:59.924] - Field: 'stdout' [17:25:59.925] - Field: 'earlySignal' [17:25:59.925] - Field: 'lazy' [17:25:59.925] - Field: 'state' [17:25:59.925] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:25:59.925] - Launch lazy future ... [17:25:59.925] Packages needed by the future expression (n = 0): [17:25:59.926] Packages needed by future strategies (n = 0): [17:25:59.926] { [17:25:59.926] { [17:25:59.926] { [17:25:59.926] ...future.startTime <- base::Sys.time() [17:25:59.926] { [17:25:59.926] { [17:25:59.926] { [17:25:59.926] base::local({ [17:25:59.926] has_future <- base::requireNamespace("future", [17:25:59.926] quietly = TRUE) [17:25:59.926] if (has_future) { [17:25:59.926] ns <- base::getNamespace("future") [17:25:59.926] version <- ns[[".package"]][["version"]] [17:25:59.926] if (is.null(version)) [17:25:59.926] version <- utils::packageVersion("future") [17:25:59.926] } [17:25:59.926] else { [17:25:59.926] version <- NULL [17:25:59.926] } [17:25:59.926] if (!has_future || version < "1.8.0") { [17:25:59.926] info <- base::c(r_version = base::gsub("R version ", [17:25:59.926] "", base::R.version$version.string), [17:25:59.926] platform = base::sprintf("%s (%s-bit)", [17:25:59.926] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:59.926] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:59.926] "release", "version")], collapse = " "), [17:25:59.926] hostname = base::Sys.info()[["nodename"]]) [17:25:59.926] info <- base::sprintf("%s: %s", base::names(info), [17:25:59.926] info) [17:25:59.926] info <- base::paste(info, collapse = "; ") [17:25:59.926] if (!has_future) { [17:25:59.926] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:59.926] info) [17:25:59.926] } [17:25:59.926] else { [17:25:59.926] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:59.926] info, version) [17:25:59.926] } [17:25:59.926] base::stop(msg) [17:25:59.926] } [17:25:59.926] }) [17:25:59.926] } [17:25:59.926] ...future.strategy.old <- future::plan("list") [17:25:59.926] options(future.plan = NULL) [17:25:59.926] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.926] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:59.926] } [17:25:59.926] ...future.workdir <- getwd() [17:25:59.926] } [17:25:59.926] ...future.oldOptions <- base::as.list(base::.Options) [17:25:59.926] ...future.oldEnvVars <- base::Sys.getenv() [17:25:59.926] } [17:25:59.926] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:59.926] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:59.926] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:59.926] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:59.926] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:59.926] future.stdout.windows.reencode = NULL, width = 80L) [17:25:59.926] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:59.926] base::names(...future.oldOptions)) [17:25:59.926] } [17:25:59.926] if (FALSE) { [17:25:59.926] } [17:25:59.926] else { [17:25:59.926] if (TRUE) { [17:25:59.926] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:59.926] open = "w") [17:25:59.926] } [17:25:59.926] else { [17:25:59.926] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:59.926] windows = "NUL", "/dev/null"), open = "w") [17:25:59.926] } [17:25:59.926] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:59.926] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:59.926] base::sink(type = "output", split = FALSE) [17:25:59.926] base::close(...future.stdout) [17:25:59.926] }, add = TRUE) [17:25:59.926] } [17:25:59.926] ...future.frame <- base::sys.nframe() [17:25:59.926] ...future.conditions <- base::list() [17:25:59.926] ...future.rng <- base::globalenv()$.Random.seed [17:25:59.926] if (FALSE) { [17:25:59.926] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:59.926] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:59.926] } [17:25:59.926] ...future.result <- base::tryCatch({ [17:25:59.926] base::withCallingHandlers({ [17:25:59.926] ...future.value <- base::withVisible(base::local({ [17:25:59.926] 42L [17:25:59.926] stop("Woops") [17:25:59.926] })) [17:25:59.926] future::FutureResult(value = ...future.value$value, [17:25:59.926] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.926] ...future.rng), globalenv = if (FALSE) [17:25:59.926] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:59.926] ...future.globalenv.names)) [17:25:59.926] else NULL, started = ...future.startTime, version = "1.8") [17:25:59.926] }, condition = base::local({ [17:25:59.926] c <- base::c [17:25:59.926] inherits <- base::inherits [17:25:59.926] invokeRestart <- base::invokeRestart [17:25:59.926] length <- base::length [17:25:59.926] list <- base::list [17:25:59.926] seq.int <- base::seq.int [17:25:59.926] signalCondition <- base::signalCondition [17:25:59.926] sys.calls <- base::sys.calls [17:25:59.926] `[[` <- base::`[[` [17:25:59.926] `+` <- base::`+` [17:25:59.926] `<<-` <- base::`<<-` [17:25:59.926] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:59.926] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:59.926] 3L)] [17:25:59.926] } [17:25:59.926] function(cond) { [17:25:59.926] is_error <- inherits(cond, "error") [17:25:59.926] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:59.926] NULL) [17:25:59.926] if (is_error) { [17:25:59.926] sessionInformation <- function() { [17:25:59.926] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:59.926] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:59.926] search = base::search(), system = base::Sys.info()) [17:25:59.926] } [17:25:59.926] ...future.conditions[[length(...future.conditions) + [17:25:59.926] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:59.926] cond$call), session = sessionInformation(), [17:25:59.926] timestamp = base::Sys.time(), signaled = 0L) [17:25:59.926] signalCondition(cond) [17:25:59.926] } [17:25:59.926] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:59.926] "immediateCondition"))) { [17:25:59.926] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:59.926] ...future.conditions[[length(...future.conditions) + [17:25:59.926] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:59.926] if (TRUE && !signal) { [17:25:59.926] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.926] { [17:25:59.926] inherits <- base::inherits [17:25:59.926] invokeRestart <- base::invokeRestart [17:25:59.926] is.null <- base::is.null [17:25:59.926] muffled <- FALSE [17:25:59.926] if (inherits(cond, "message")) { [17:25:59.926] muffled <- grepl(pattern, "muffleMessage") [17:25:59.926] if (muffled) [17:25:59.926] invokeRestart("muffleMessage") [17:25:59.926] } [17:25:59.926] else if (inherits(cond, "warning")) { [17:25:59.926] muffled <- grepl(pattern, "muffleWarning") [17:25:59.926] if (muffled) [17:25:59.926] invokeRestart("muffleWarning") [17:25:59.926] } [17:25:59.926] else if (inherits(cond, "condition")) { [17:25:59.926] if (!is.null(pattern)) { [17:25:59.926] computeRestarts <- base::computeRestarts [17:25:59.926] grepl <- base::grepl [17:25:59.926] restarts <- computeRestarts(cond) [17:25:59.926] for (restart in restarts) { [17:25:59.926] name <- restart$name [17:25:59.926] if (is.null(name)) [17:25:59.926] next [17:25:59.926] if (!grepl(pattern, name)) [17:25:59.926] next [17:25:59.926] invokeRestart(restart) [17:25:59.926] muffled <- TRUE [17:25:59.926] break [17:25:59.926] } [17:25:59.926] } [17:25:59.926] } [17:25:59.926] invisible(muffled) [17:25:59.926] } [17:25:59.926] muffleCondition(cond, pattern = "^muffle") [17:25:59.926] } [17:25:59.926] } [17:25:59.926] else { [17:25:59.926] if (TRUE) { [17:25:59.926] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.926] { [17:25:59.926] inherits <- base::inherits [17:25:59.926] invokeRestart <- base::invokeRestart [17:25:59.926] is.null <- base::is.null [17:25:59.926] muffled <- FALSE [17:25:59.926] if (inherits(cond, "message")) { [17:25:59.926] muffled <- grepl(pattern, "muffleMessage") [17:25:59.926] if (muffled) [17:25:59.926] invokeRestart("muffleMessage") [17:25:59.926] } [17:25:59.926] else if (inherits(cond, "warning")) { [17:25:59.926] muffled <- grepl(pattern, "muffleWarning") [17:25:59.926] if (muffled) [17:25:59.926] invokeRestart("muffleWarning") [17:25:59.926] } [17:25:59.926] else if (inherits(cond, "condition")) { [17:25:59.926] if (!is.null(pattern)) { [17:25:59.926] computeRestarts <- base::computeRestarts [17:25:59.926] grepl <- base::grepl [17:25:59.926] restarts <- computeRestarts(cond) [17:25:59.926] for (restart in restarts) { [17:25:59.926] name <- restart$name [17:25:59.926] if (is.null(name)) [17:25:59.926] next [17:25:59.926] if (!grepl(pattern, name)) [17:25:59.926] next [17:25:59.926] invokeRestart(restart) [17:25:59.926] muffled <- TRUE [17:25:59.926] break [17:25:59.926] } [17:25:59.926] } [17:25:59.926] } [17:25:59.926] invisible(muffled) [17:25:59.926] } [17:25:59.926] muffleCondition(cond, pattern = "^muffle") [17:25:59.926] } [17:25:59.926] } [17:25:59.926] } [17:25:59.926] })) [17:25:59.926] }, error = function(ex) { [17:25:59.926] base::structure(base::list(value = NULL, visible = NULL, [17:25:59.926] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.926] ...future.rng), started = ...future.startTime, [17:25:59.926] finished = Sys.time(), session_uuid = NA_character_, [17:25:59.926] version = "1.8"), class = "FutureResult") [17:25:59.926] }, finally = { [17:25:59.926] if (!identical(...future.workdir, getwd())) [17:25:59.926] setwd(...future.workdir) [17:25:59.926] { [17:25:59.926] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:59.926] ...future.oldOptions$nwarnings <- NULL [17:25:59.926] } [17:25:59.926] base::options(...future.oldOptions) [17:25:59.926] if (.Platform$OS.type == "windows") { [17:25:59.926] old_names <- names(...future.oldEnvVars) [17:25:59.926] envs <- base::Sys.getenv() [17:25:59.926] names <- names(envs) [17:25:59.926] common <- intersect(names, old_names) [17:25:59.926] added <- setdiff(names, old_names) [17:25:59.926] removed <- setdiff(old_names, names) [17:25:59.926] changed <- common[...future.oldEnvVars[common] != [17:25:59.926] envs[common]] [17:25:59.926] NAMES <- toupper(changed) [17:25:59.926] args <- list() [17:25:59.926] for (kk in seq_along(NAMES)) { [17:25:59.926] name <- changed[[kk]] [17:25:59.926] NAME <- NAMES[[kk]] [17:25:59.926] if (name != NAME && is.element(NAME, old_names)) [17:25:59.926] next [17:25:59.926] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.926] } [17:25:59.926] NAMES <- toupper(added) [17:25:59.926] for (kk in seq_along(NAMES)) { [17:25:59.926] name <- added[[kk]] [17:25:59.926] NAME <- NAMES[[kk]] [17:25:59.926] if (name != NAME && is.element(NAME, old_names)) [17:25:59.926] next [17:25:59.926] args[[name]] <- "" [17:25:59.926] } [17:25:59.926] NAMES <- toupper(removed) [17:25:59.926] for (kk in seq_along(NAMES)) { [17:25:59.926] name <- removed[[kk]] [17:25:59.926] NAME <- NAMES[[kk]] [17:25:59.926] if (name != NAME && is.element(NAME, old_names)) [17:25:59.926] next [17:25:59.926] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.926] } [17:25:59.926] if (length(args) > 0) [17:25:59.926] base::do.call(base::Sys.setenv, args = args) [17:25:59.926] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:59.926] } [17:25:59.926] else { [17:25:59.926] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:59.926] } [17:25:59.926] { [17:25:59.926] if (base::length(...future.futureOptionsAdded) > [17:25:59.926] 0L) { [17:25:59.926] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:59.926] base::names(opts) <- ...future.futureOptionsAdded [17:25:59.926] base::options(opts) [17:25:59.926] } [17:25:59.926] { [17:25:59.926] { [17:25:59.926] NULL [17:25:59.926] RNGkind("Mersenne-Twister") [17:25:59.926] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:25:59.926] inherits = FALSE) [17:25:59.926] } [17:25:59.926] options(future.plan = NULL) [17:25:59.926] if (is.na(NA_character_)) [17:25:59.926] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.926] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:59.926] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:59.926] .init = FALSE) [17:25:59.926] } [17:25:59.926] } [17:25:59.926] } [17:25:59.926] }) [17:25:59.926] if (TRUE) { [17:25:59.926] base::sink(type = "output", split = FALSE) [17:25:59.926] if (TRUE) { [17:25:59.926] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:59.926] } [17:25:59.926] else { [17:25:59.926] ...future.result["stdout"] <- base::list(NULL) [17:25:59.926] } [17:25:59.926] base::close(...future.stdout) [17:25:59.926] ...future.stdout <- NULL [17:25:59.926] } [17:25:59.926] ...future.result$conditions <- ...future.conditions [17:25:59.926] ...future.result$finished <- base::Sys.time() [17:25:59.926] ...future.result [17:25:59.926] } [17:25:59.930] plan(): Setting new future strategy stack: [17:25:59.930] List of future strategies: [17:25:59.930] 1. sequential: [17:25:59.930] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.930] - tweaked: FALSE [17:25:59.930] - call: NULL [17:25:59.931] plan(): nbrOfWorkers() = 1 [17:25:59.932] plan(): Setting new future strategy stack: [17:25:59.932] List of future strategies: [17:25:59.932] 1. sequential: [17:25:59.932] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.932] - tweaked: FALSE [17:25:59.932] - call: future::plan("sequential") [17:25:59.933] plan(): nbrOfWorkers() = 1 [17:25:59.933] SequentialFuture started (and completed) [17:25:59.933] signalConditions() ... [17:25:59.934] - include = 'immediateCondition' [17:25:59.934] - exclude = [17:25:59.934] - resignal = FALSE [17:25:59.934] - Number of conditions: 1 [17:25:59.934] signalConditions() ... done [17:25:59.934] - Launch lazy future ... done [17:25:59.935] run() for 'SequentialFuture' ... done > calls <- backtrace(env[["b"]]) [17:25:59.935] resolved() for 'SequentialFuture' ... [17:25:59.935] - state: 'finished' [17:25:59.935] - run: TRUE [17:25:59.936] - result: 'FutureResult' [17:25:59.936] 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") } [17:25:59.937] getGlobalsAndPackages() ... [17:25:59.938] Searching for globals... [17:25:59.939] - globals found: [2] '{', 'stop' [17:25:59.939] Searching for globals ... DONE [17:25:59.939] Resolving globals: FALSE [17:25:59.939] [17:25:59.940] [17:25:59.940] getGlobalsAndPackages() ... DONE [17:25:59.940] run() for 'Future' ... [17:25:59.940] - state: 'created' [17:25:59.940] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:25:59.941] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:25:59.941] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:25:59.941] - Field: 'label' [17:25:59.941] - Field: 'local' [17:25:59.941] - Field: 'owner' [17:25:59.942] - Field: 'envir' [17:25:59.942] - Field: 'packages' [17:25:59.942] - Field: 'gc' [17:25:59.942] - Field: 'conditions' [17:25:59.942] - Field: 'expr' [17:25:59.942] - Field: 'uuid' [17:25:59.943] - Field: 'seed' [17:25:59.943] - Field: 'version' [17:25:59.943] - Field: 'result' [17:25:59.943] - Field: 'asynchronous' [17:25:59.943] - Field: 'calls' [17:25:59.943] - Field: 'globals' [17:25:59.944] - Field: 'stdout' [17:25:59.944] - Field: 'earlySignal' [17:25:59.944] - Field: 'lazy' [17:25:59.944] - Field: 'state' [17:25:59.945] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:25:59.945] - Launch lazy future ... [17:25:59.945] Packages needed by the future expression (n = 0): [17:25:59.946] Packages needed by future strategies (n = 0): [17:25:59.947] { [17:25:59.947] { [17:25:59.947] { [17:25:59.947] ...future.startTime <- base::Sys.time() [17:25:59.947] { [17:25:59.947] { [17:25:59.947] { [17:25:59.947] base::local({ [17:25:59.947] has_future <- base::requireNamespace("future", [17:25:59.947] quietly = TRUE) [17:25:59.947] if (has_future) { [17:25:59.947] ns <- base::getNamespace("future") [17:25:59.947] version <- ns[[".package"]][["version"]] [17:25:59.947] if (is.null(version)) [17:25:59.947] version <- utils::packageVersion("future") [17:25:59.947] } [17:25:59.947] else { [17:25:59.947] version <- NULL [17:25:59.947] } [17:25:59.947] if (!has_future || version < "1.8.0") { [17:25:59.947] info <- base::c(r_version = base::gsub("R version ", [17:25:59.947] "", base::R.version$version.string), [17:25:59.947] platform = base::sprintf("%s (%s-bit)", [17:25:59.947] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:59.947] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:59.947] "release", "version")], collapse = " "), [17:25:59.947] hostname = base::Sys.info()[["nodename"]]) [17:25:59.947] info <- base::sprintf("%s: %s", base::names(info), [17:25:59.947] info) [17:25:59.947] info <- base::paste(info, collapse = "; ") [17:25:59.947] if (!has_future) { [17:25:59.947] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:59.947] info) [17:25:59.947] } [17:25:59.947] else { [17:25:59.947] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:59.947] info, version) [17:25:59.947] } [17:25:59.947] base::stop(msg) [17:25:59.947] } [17:25:59.947] }) [17:25:59.947] } [17:25:59.947] ...future.strategy.old <- future::plan("list") [17:25:59.947] options(future.plan = NULL) [17:25:59.947] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.947] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:59.947] } [17:25:59.947] ...future.workdir <- getwd() [17:25:59.947] } [17:25:59.947] ...future.oldOptions <- base::as.list(base::.Options) [17:25:59.947] ...future.oldEnvVars <- base::Sys.getenv() [17:25:59.947] } [17:25:59.947] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:59.947] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:59.947] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:59.947] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:59.947] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:59.947] future.stdout.windows.reencode = NULL, width = 80L) [17:25:59.947] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:59.947] base::names(...future.oldOptions)) [17:25:59.947] } [17:25:59.947] if (FALSE) { [17:25:59.947] } [17:25:59.947] else { [17:25:59.947] if (TRUE) { [17:25:59.947] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:59.947] open = "w") [17:25:59.947] } [17:25:59.947] else { [17:25:59.947] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:59.947] windows = "NUL", "/dev/null"), open = "w") [17:25:59.947] } [17:25:59.947] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:59.947] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:59.947] base::sink(type = "output", split = FALSE) [17:25:59.947] base::close(...future.stdout) [17:25:59.947] }, add = TRUE) [17:25:59.947] } [17:25:59.947] ...future.frame <- base::sys.nframe() [17:25:59.947] ...future.conditions <- base::list() [17:25:59.947] ...future.rng <- base::globalenv()$.Random.seed [17:25:59.947] if (FALSE) { [17:25:59.947] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:59.947] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:59.947] } [17:25:59.947] ...future.result <- base::tryCatch({ [17:25:59.947] base::withCallingHandlers({ [17:25:59.947] ...future.value <- base::withVisible(base::local({ [17:25:59.947] 42L [17:25:59.947] stop("Woops") [17:25:59.947] })) [17:25:59.947] future::FutureResult(value = ...future.value$value, [17:25:59.947] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.947] ...future.rng), globalenv = if (FALSE) [17:25:59.947] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:59.947] ...future.globalenv.names)) [17:25:59.947] else NULL, started = ...future.startTime, version = "1.8") [17:25:59.947] }, condition = base::local({ [17:25:59.947] c <- base::c [17:25:59.947] inherits <- base::inherits [17:25:59.947] invokeRestart <- base::invokeRestart [17:25:59.947] length <- base::length [17:25:59.947] list <- base::list [17:25:59.947] seq.int <- base::seq.int [17:25:59.947] signalCondition <- base::signalCondition [17:25:59.947] sys.calls <- base::sys.calls [17:25:59.947] `[[` <- base::`[[` [17:25:59.947] `+` <- base::`+` [17:25:59.947] `<<-` <- base::`<<-` [17:25:59.947] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:59.947] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:59.947] 3L)] [17:25:59.947] } [17:25:59.947] function(cond) { [17:25:59.947] is_error <- inherits(cond, "error") [17:25:59.947] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:59.947] NULL) [17:25:59.947] if (is_error) { [17:25:59.947] sessionInformation <- function() { [17:25:59.947] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:59.947] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:59.947] search = base::search(), system = base::Sys.info()) [17:25:59.947] } [17:25:59.947] ...future.conditions[[length(...future.conditions) + [17:25:59.947] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:59.947] cond$call), session = sessionInformation(), [17:25:59.947] timestamp = base::Sys.time(), signaled = 0L) [17:25:59.947] signalCondition(cond) [17:25:59.947] } [17:25:59.947] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:59.947] "immediateCondition"))) { [17:25:59.947] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:59.947] ...future.conditions[[length(...future.conditions) + [17:25:59.947] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:59.947] if (TRUE && !signal) { [17:25:59.947] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.947] { [17:25:59.947] inherits <- base::inherits [17:25:59.947] invokeRestart <- base::invokeRestart [17:25:59.947] is.null <- base::is.null [17:25:59.947] muffled <- FALSE [17:25:59.947] if (inherits(cond, "message")) { [17:25:59.947] muffled <- grepl(pattern, "muffleMessage") [17:25:59.947] if (muffled) [17:25:59.947] invokeRestart("muffleMessage") [17:25:59.947] } [17:25:59.947] else if (inherits(cond, "warning")) { [17:25:59.947] muffled <- grepl(pattern, "muffleWarning") [17:25:59.947] if (muffled) [17:25:59.947] invokeRestart("muffleWarning") [17:25:59.947] } [17:25:59.947] else if (inherits(cond, "condition")) { [17:25:59.947] if (!is.null(pattern)) { [17:25:59.947] computeRestarts <- base::computeRestarts [17:25:59.947] grepl <- base::grepl [17:25:59.947] restarts <- computeRestarts(cond) [17:25:59.947] for (restart in restarts) { [17:25:59.947] name <- restart$name [17:25:59.947] if (is.null(name)) [17:25:59.947] next [17:25:59.947] if (!grepl(pattern, name)) [17:25:59.947] next [17:25:59.947] invokeRestart(restart) [17:25:59.947] muffled <- TRUE [17:25:59.947] break [17:25:59.947] } [17:25:59.947] } [17:25:59.947] } [17:25:59.947] invisible(muffled) [17:25:59.947] } [17:25:59.947] muffleCondition(cond, pattern = "^muffle") [17:25:59.947] } [17:25:59.947] } [17:25:59.947] else { [17:25:59.947] if (TRUE) { [17:25:59.947] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.947] { [17:25:59.947] inherits <- base::inherits [17:25:59.947] invokeRestart <- base::invokeRestart [17:25:59.947] is.null <- base::is.null [17:25:59.947] muffled <- FALSE [17:25:59.947] if (inherits(cond, "message")) { [17:25:59.947] muffled <- grepl(pattern, "muffleMessage") [17:25:59.947] if (muffled) [17:25:59.947] invokeRestart("muffleMessage") [17:25:59.947] } [17:25:59.947] else if (inherits(cond, "warning")) { [17:25:59.947] muffled <- grepl(pattern, "muffleWarning") [17:25:59.947] if (muffled) [17:25:59.947] invokeRestart("muffleWarning") [17:25:59.947] } [17:25:59.947] else if (inherits(cond, "condition")) { [17:25:59.947] if (!is.null(pattern)) { [17:25:59.947] computeRestarts <- base::computeRestarts [17:25:59.947] grepl <- base::grepl [17:25:59.947] restarts <- computeRestarts(cond) [17:25:59.947] for (restart in restarts) { [17:25:59.947] name <- restart$name [17:25:59.947] if (is.null(name)) [17:25:59.947] next [17:25:59.947] if (!grepl(pattern, name)) [17:25:59.947] next [17:25:59.947] invokeRestart(restart) [17:25:59.947] muffled <- TRUE [17:25:59.947] break [17:25:59.947] } [17:25:59.947] } [17:25:59.947] } [17:25:59.947] invisible(muffled) [17:25:59.947] } [17:25:59.947] muffleCondition(cond, pattern = "^muffle") [17:25:59.947] } [17:25:59.947] } [17:25:59.947] } [17:25:59.947] })) [17:25:59.947] }, error = function(ex) { [17:25:59.947] base::structure(base::list(value = NULL, visible = NULL, [17:25:59.947] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.947] ...future.rng), started = ...future.startTime, [17:25:59.947] finished = Sys.time(), session_uuid = NA_character_, [17:25:59.947] version = "1.8"), class = "FutureResult") [17:25:59.947] }, finally = { [17:25:59.947] if (!identical(...future.workdir, getwd())) [17:25:59.947] setwd(...future.workdir) [17:25:59.947] { [17:25:59.947] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:59.947] ...future.oldOptions$nwarnings <- NULL [17:25:59.947] } [17:25:59.947] base::options(...future.oldOptions) [17:25:59.947] if (.Platform$OS.type == "windows") { [17:25:59.947] old_names <- names(...future.oldEnvVars) [17:25:59.947] envs <- base::Sys.getenv() [17:25:59.947] names <- names(envs) [17:25:59.947] common <- intersect(names, old_names) [17:25:59.947] added <- setdiff(names, old_names) [17:25:59.947] removed <- setdiff(old_names, names) [17:25:59.947] changed <- common[...future.oldEnvVars[common] != [17:25:59.947] envs[common]] [17:25:59.947] NAMES <- toupper(changed) [17:25:59.947] args <- list() [17:25:59.947] for (kk in seq_along(NAMES)) { [17:25:59.947] name <- changed[[kk]] [17:25:59.947] NAME <- NAMES[[kk]] [17:25:59.947] if (name != NAME && is.element(NAME, old_names)) [17:25:59.947] next [17:25:59.947] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.947] } [17:25:59.947] NAMES <- toupper(added) [17:25:59.947] for (kk in seq_along(NAMES)) { [17:25:59.947] name <- added[[kk]] [17:25:59.947] NAME <- NAMES[[kk]] [17:25:59.947] if (name != NAME && is.element(NAME, old_names)) [17:25:59.947] next [17:25:59.947] args[[name]] <- "" [17:25:59.947] } [17:25:59.947] NAMES <- toupper(removed) [17:25:59.947] for (kk in seq_along(NAMES)) { [17:25:59.947] name <- removed[[kk]] [17:25:59.947] NAME <- NAMES[[kk]] [17:25:59.947] if (name != NAME && is.element(NAME, old_names)) [17:25:59.947] next [17:25:59.947] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.947] } [17:25:59.947] if (length(args) > 0) [17:25:59.947] base::do.call(base::Sys.setenv, args = args) [17:25:59.947] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:59.947] } [17:25:59.947] else { [17:25:59.947] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:59.947] } [17:25:59.947] { [17:25:59.947] if (base::length(...future.futureOptionsAdded) > [17:25:59.947] 0L) { [17:25:59.947] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:59.947] base::names(opts) <- ...future.futureOptionsAdded [17:25:59.947] base::options(opts) [17:25:59.947] } [17:25:59.947] { [17:25:59.947] { [17:25:59.947] NULL [17:25:59.947] RNGkind("Mersenne-Twister") [17:25:59.947] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:25:59.947] inherits = FALSE) [17:25:59.947] } [17:25:59.947] options(future.plan = NULL) [17:25:59.947] if (is.na(NA_character_)) [17:25:59.947] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.947] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:59.947] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:59.947] .init = FALSE) [17:25:59.947] } [17:25:59.947] } [17:25:59.947] } [17:25:59.947] }) [17:25:59.947] if (TRUE) { [17:25:59.947] base::sink(type = "output", split = FALSE) [17:25:59.947] if (TRUE) { [17:25:59.947] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:59.947] } [17:25:59.947] else { [17:25:59.947] ...future.result["stdout"] <- base::list(NULL) [17:25:59.947] } [17:25:59.947] base::close(...future.stdout) [17:25:59.947] ...future.stdout <- NULL [17:25:59.947] } [17:25:59.947] ...future.result$conditions <- ...future.conditions [17:25:59.947] ...future.result$finished <- base::Sys.time() [17:25:59.947] ...future.result [17:25:59.947] } [17:25:59.952] plan(): Setting new future strategy stack: [17:25:59.952] List of future strategies: [17:25:59.952] 1. sequential: [17:25:59.952] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.952] - tweaked: FALSE [17:25:59.952] - call: NULL [17:25:59.952] plan(): nbrOfWorkers() = 1 [17:25:59.954] plan(): Setting new future strategy stack: [17:25:59.954] List of future strategies: [17:25:59.954] 1. sequential: [17:25:59.954] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.954] - tweaked: FALSE [17:25:59.954] - call: future::plan("sequential") [17:25:59.954] plan(): nbrOfWorkers() = 1 [17:25:59.955] SequentialFuture started (and completed) [17:25:59.955] signalConditions() ... [17:25:59.955] - include = 'immediateCondition' [17:25:59.955] - exclude = [17:25:59.955] - resignal = FALSE [17:25:59.956] - Number of conditions: 1 [17:25:59.956] signalConditions() ... done [17:25:59.956] - Launch lazy future ... done [17:25:59.956] run() for 'SequentialFuture' ... done > lenv[[2]] %<-% { 42L; stop("Woops") } [17:25:59.957] getGlobalsAndPackages() ... [17:25:59.957] Searching for globals... [17:25:59.958] - globals found: [2] '{', 'stop' [17:25:59.958] Searching for globals ... DONE [17:25:59.958] Resolving globals: FALSE [17:25:59.959] [17:25:59.959] [17:25:59.959] getGlobalsAndPackages() ... DONE [17:25:59.959] run() for 'Future' ... [17:25:59.960] - state: 'created' [17:25:59.960] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:25:59.960] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:25:59.960] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:25:59.961] - Field: 'label' [17:25:59.961] - Field: 'local' [17:25:59.961] - Field: 'owner' [17:25:59.961] - Field: 'envir' [17:25:59.961] - Field: 'packages' [17:25:59.962] - Field: 'gc' [17:25:59.962] - Field: 'conditions' [17:25:59.962] - Field: 'expr' [17:25:59.962] - Field: 'uuid' [17:25:59.962] - Field: 'seed' [17:25:59.962] - Field: 'version' [17:25:59.963] - Field: 'result' [17:25:59.963] - Field: 'asynchronous' [17:25:59.963] - Field: 'calls' [17:25:59.963] - Field: 'globals' [17:25:59.963] - Field: 'stdout' [17:25:59.964] - Field: 'earlySignal' [17:25:59.964] - Field: 'lazy' [17:25:59.964] - Field: 'state' [17:25:59.964] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:25:59.964] - Launch lazy future ... [17:25:59.964] Packages needed by the future expression (n = 0): [17:25:59.965] Packages needed by future strategies (n = 0): [17:25:59.965] { [17:25:59.965] { [17:25:59.965] { [17:25:59.965] ...future.startTime <- base::Sys.time() [17:25:59.965] { [17:25:59.965] { [17:25:59.965] { [17:25:59.965] base::local({ [17:25:59.965] has_future <- base::requireNamespace("future", [17:25:59.965] quietly = TRUE) [17:25:59.965] if (has_future) { [17:25:59.965] ns <- base::getNamespace("future") [17:25:59.965] version <- ns[[".package"]][["version"]] [17:25:59.965] if (is.null(version)) [17:25:59.965] version <- utils::packageVersion("future") [17:25:59.965] } [17:25:59.965] else { [17:25:59.965] version <- NULL [17:25:59.965] } [17:25:59.965] if (!has_future || version < "1.8.0") { [17:25:59.965] info <- base::c(r_version = base::gsub("R version ", [17:25:59.965] "", base::R.version$version.string), [17:25:59.965] platform = base::sprintf("%s (%s-bit)", [17:25:59.965] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:59.965] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:59.965] "release", "version")], collapse = " "), [17:25:59.965] hostname = base::Sys.info()[["nodename"]]) [17:25:59.965] info <- base::sprintf("%s: %s", base::names(info), [17:25:59.965] info) [17:25:59.965] info <- base::paste(info, collapse = "; ") [17:25:59.965] if (!has_future) { [17:25:59.965] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:59.965] info) [17:25:59.965] } [17:25:59.965] else { [17:25:59.965] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:59.965] info, version) [17:25:59.965] } [17:25:59.965] base::stop(msg) [17:25:59.965] } [17:25:59.965] }) [17:25:59.965] } [17:25:59.965] ...future.strategy.old <- future::plan("list") [17:25:59.965] options(future.plan = NULL) [17:25:59.965] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.965] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:59.965] } [17:25:59.965] ...future.workdir <- getwd() [17:25:59.965] } [17:25:59.965] ...future.oldOptions <- base::as.list(base::.Options) [17:25:59.965] ...future.oldEnvVars <- base::Sys.getenv() [17:25:59.965] } [17:25:59.965] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:59.965] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:59.965] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:59.965] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:59.965] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:59.965] future.stdout.windows.reencode = NULL, width = 80L) [17:25:59.965] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:59.965] base::names(...future.oldOptions)) [17:25:59.965] } [17:25:59.965] if (FALSE) { [17:25:59.965] } [17:25:59.965] else { [17:25:59.965] if (TRUE) { [17:25:59.965] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:59.965] open = "w") [17:25:59.965] } [17:25:59.965] else { [17:25:59.965] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:59.965] windows = "NUL", "/dev/null"), open = "w") [17:25:59.965] } [17:25:59.965] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:59.965] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:59.965] base::sink(type = "output", split = FALSE) [17:25:59.965] base::close(...future.stdout) [17:25:59.965] }, add = TRUE) [17:25:59.965] } [17:25:59.965] ...future.frame <- base::sys.nframe() [17:25:59.965] ...future.conditions <- base::list() [17:25:59.965] ...future.rng <- base::globalenv()$.Random.seed [17:25:59.965] if (FALSE) { [17:25:59.965] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:59.965] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:59.965] } [17:25:59.965] ...future.result <- base::tryCatch({ [17:25:59.965] base::withCallingHandlers({ [17:25:59.965] ...future.value <- base::withVisible(base::local({ [17:25:59.965] 42L [17:25:59.965] stop("Woops") [17:25:59.965] })) [17:25:59.965] future::FutureResult(value = ...future.value$value, [17:25:59.965] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.965] ...future.rng), globalenv = if (FALSE) [17:25:59.965] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:59.965] ...future.globalenv.names)) [17:25:59.965] else NULL, started = ...future.startTime, version = "1.8") [17:25:59.965] }, condition = base::local({ [17:25:59.965] c <- base::c [17:25:59.965] inherits <- base::inherits [17:25:59.965] invokeRestart <- base::invokeRestart [17:25:59.965] length <- base::length [17:25:59.965] list <- base::list [17:25:59.965] seq.int <- base::seq.int [17:25:59.965] signalCondition <- base::signalCondition [17:25:59.965] sys.calls <- base::sys.calls [17:25:59.965] `[[` <- base::`[[` [17:25:59.965] `+` <- base::`+` [17:25:59.965] `<<-` <- base::`<<-` [17:25:59.965] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:59.965] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:59.965] 3L)] [17:25:59.965] } [17:25:59.965] function(cond) { [17:25:59.965] is_error <- inherits(cond, "error") [17:25:59.965] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:59.965] NULL) [17:25:59.965] if (is_error) { [17:25:59.965] sessionInformation <- function() { [17:25:59.965] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:59.965] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:59.965] search = base::search(), system = base::Sys.info()) [17:25:59.965] } [17:25:59.965] ...future.conditions[[length(...future.conditions) + [17:25:59.965] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:59.965] cond$call), session = sessionInformation(), [17:25:59.965] timestamp = base::Sys.time(), signaled = 0L) [17:25:59.965] signalCondition(cond) [17:25:59.965] } [17:25:59.965] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:59.965] "immediateCondition"))) { [17:25:59.965] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:59.965] ...future.conditions[[length(...future.conditions) + [17:25:59.965] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:59.965] if (TRUE && !signal) { [17:25:59.965] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.965] { [17:25:59.965] inherits <- base::inherits [17:25:59.965] invokeRestart <- base::invokeRestart [17:25:59.965] is.null <- base::is.null [17:25:59.965] muffled <- FALSE [17:25:59.965] if (inherits(cond, "message")) { [17:25:59.965] muffled <- grepl(pattern, "muffleMessage") [17:25:59.965] if (muffled) [17:25:59.965] invokeRestart("muffleMessage") [17:25:59.965] } [17:25:59.965] else if (inherits(cond, "warning")) { [17:25:59.965] muffled <- grepl(pattern, "muffleWarning") [17:25:59.965] if (muffled) [17:25:59.965] invokeRestart("muffleWarning") [17:25:59.965] } [17:25:59.965] else if (inherits(cond, "condition")) { [17:25:59.965] if (!is.null(pattern)) { [17:25:59.965] computeRestarts <- base::computeRestarts [17:25:59.965] grepl <- base::grepl [17:25:59.965] restarts <- computeRestarts(cond) [17:25:59.965] for (restart in restarts) { [17:25:59.965] name <- restart$name [17:25:59.965] if (is.null(name)) [17:25:59.965] next [17:25:59.965] if (!grepl(pattern, name)) [17:25:59.965] next [17:25:59.965] invokeRestart(restart) [17:25:59.965] muffled <- TRUE [17:25:59.965] break [17:25:59.965] } [17:25:59.965] } [17:25:59.965] } [17:25:59.965] invisible(muffled) [17:25:59.965] } [17:25:59.965] muffleCondition(cond, pattern = "^muffle") [17:25:59.965] } [17:25:59.965] } [17:25:59.965] else { [17:25:59.965] if (TRUE) { [17:25:59.965] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.965] { [17:25:59.965] inherits <- base::inherits [17:25:59.965] invokeRestart <- base::invokeRestart [17:25:59.965] is.null <- base::is.null [17:25:59.965] muffled <- FALSE [17:25:59.965] if (inherits(cond, "message")) { [17:25:59.965] muffled <- grepl(pattern, "muffleMessage") [17:25:59.965] if (muffled) [17:25:59.965] invokeRestart("muffleMessage") [17:25:59.965] } [17:25:59.965] else if (inherits(cond, "warning")) { [17:25:59.965] muffled <- grepl(pattern, "muffleWarning") [17:25:59.965] if (muffled) [17:25:59.965] invokeRestart("muffleWarning") [17:25:59.965] } [17:25:59.965] else if (inherits(cond, "condition")) { [17:25:59.965] if (!is.null(pattern)) { [17:25:59.965] computeRestarts <- base::computeRestarts [17:25:59.965] grepl <- base::grepl [17:25:59.965] restarts <- computeRestarts(cond) [17:25:59.965] for (restart in restarts) { [17:25:59.965] name <- restart$name [17:25:59.965] if (is.null(name)) [17:25:59.965] next [17:25:59.965] if (!grepl(pattern, name)) [17:25:59.965] next [17:25:59.965] invokeRestart(restart) [17:25:59.965] muffled <- TRUE [17:25:59.965] break [17:25:59.965] } [17:25:59.965] } [17:25:59.965] } [17:25:59.965] invisible(muffled) [17:25:59.965] } [17:25:59.965] muffleCondition(cond, pattern = "^muffle") [17:25:59.965] } [17:25:59.965] } [17:25:59.965] } [17:25:59.965] })) [17:25:59.965] }, error = function(ex) { [17:25:59.965] base::structure(base::list(value = NULL, visible = NULL, [17:25:59.965] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.965] ...future.rng), started = ...future.startTime, [17:25:59.965] finished = Sys.time(), session_uuid = NA_character_, [17:25:59.965] version = "1.8"), class = "FutureResult") [17:25:59.965] }, finally = { [17:25:59.965] if (!identical(...future.workdir, getwd())) [17:25:59.965] setwd(...future.workdir) [17:25:59.965] { [17:25:59.965] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:59.965] ...future.oldOptions$nwarnings <- NULL [17:25:59.965] } [17:25:59.965] base::options(...future.oldOptions) [17:25:59.965] if (.Platform$OS.type == "windows") { [17:25:59.965] old_names <- names(...future.oldEnvVars) [17:25:59.965] envs <- base::Sys.getenv() [17:25:59.965] names <- names(envs) [17:25:59.965] common <- intersect(names, old_names) [17:25:59.965] added <- setdiff(names, old_names) [17:25:59.965] removed <- setdiff(old_names, names) [17:25:59.965] changed <- common[...future.oldEnvVars[common] != [17:25:59.965] envs[common]] [17:25:59.965] NAMES <- toupper(changed) [17:25:59.965] args <- list() [17:25:59.965] for (kk in seq_along(NAMES)) { [17:25:59.965] name <- changed[[kk]] [17:25:59.965] NAME <- NAMES[[kk]] [17:25:59.965] if (name != NAME && is.element(NAME, old_names)) [17:25:59.965] next [17:25:59.965] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.965] } [17:25:59.965] NAMES <- toupper(added) [17:25:59.965] for (kk in seq_along(NAMES)) { [17:25:59.965] name <- added[[kk]] [17:25:59.965] NAME <- NAMES[[kk]] [17:25:59.965] if (name != NAME && is.element(NAME, old_names)) [17:25:59.965] next [17:25:59.965] args[[name]] <- "" [17:25:59.965] } [17:25:59.965] NAMES <- toupper(removed) [17:25:59.965] for (kk in seq_along(NAMES)) { [17:25:59.965] name <- removed[[kk]] [17:25:59.965] NAME <- NAMES[[kk]] [17:25:59.965] if (name != NAME && is.element(NAME, old_names)) [17:25:59.965] next [17:25:59.965] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.965] } [17:25:59.965] if (length(args) > 0) [17:25:59.965] base::do.call(base::Sys.setenv, args = args) [17:25:59.965] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:59.965] } [17:25:59.965] else { [17:25:59.965] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:59.965] } [17:25:59.965] { [17:25:59.965] if (base::length(...future.futureOptionsAdded) > [17:25:59.965] 0L) { [17:25:59.965] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:59.965] base::names(opts) <- ...future.futureOptionsAdded [17:25:59.965] base::options(opts) [17:25:59.965] } [17:25:59.965] { [17:25:59.965] { [17:25:59.965] NULL [17:25:59.965] RNGkind("Mersenne-Twister") [17:25:59.965] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:25:59.965] inherits = FALSE) [17:25:59.965] } [17:25:59.965] options(future.plan = NULL) [17:25:59.965] if (is.na(NA_character_)) [17:25:59.965] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.965] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:59.965] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:59.965] .init = FALSE) [17:25:59.965] } [17:25:59.965] } [17:25:59.965] } [17:25:59.965] }) [17:25:59.965] if (TRUE) { [17:25:59.965] base::sink(type = "output", split = FALSE) [17:25:59.965] if (TRUE) { [17:25:59.965] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:59.965] } [17:25:59.965] else { [17:25:59.965] ...future.result["stdout"] <- base::list(NULL) [17:25:59.965] } [17:25:59.965] base::close(...future.stdout) [17:25:59.965] ...future.stdout <- NULL [17:25:59.965] } [17:25:59.965] ...future.result$conditions <- ...future.conditions [17:25:59.965] ...future.result$finished <- base::Sys.time() [17:25:59.965] ...future.result [17:25:59.965] } [17:25:59.970] plan(): Setting new future strategy stack: [17:25:59.970] List of future strategies: [17:25:59.970] 1. sequential: [17:25:59.970] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.970] - tweaked: FALSE [17:25:59.970] - call: NULL [17:25:59.971] plan(): nbrOfWorkers() = 1 [17:25:59.972] plan(): Setting new future strategy stack: [17:25:59.972] List of future strategies: [17:25:59.972] 1. sequential: [17:25:59.972] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.972] - tweaked: FALSE [17:25:59.972] - call: future::plan("sequential") [17:25:59.973] plan(): nbrOfWorkers() = 1 [17:25:59.973] SequentialFuture started (and completed) [17:25:59.974] signalConditions() ... [17:25:59.974] - include = 'immediateCondition' [17:25:59.974] - exclude = [17:25:59.974] - resignal = FALSE [17:25:59.974] - Number of conditions: 1 [17:25:59.974] signalConditions() ... done [17:25:59.975] - Launch lazy future ... done [17:25:59.975] run() for 'SequentialFuture' ... done > calls <- backtrace(lenv[[2]]) [17:25:59.975] resolved() for 'SequentialFuture' ... [17:25:59.975] - state: 'finished' [17:25:59.976] - run: TRUE [17:25:59.976] - result: 'FutureResult' [17:25:59.976] 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") }) [17:25:59.977] getGlobalsAndPackages() ... [17:25:59.977] Searching for globals... [17:25:59.978] - globals found: [2] '{', 'stop' [17:25:59.978] Searching for globals ... DONE [17:25:59.979] Resolving globals: FALSE [17:25:59.979] [17:25:59.979] [17:25:59.979] getGlobalsAndPackages() ... DONE [17:25:59.980] run() for 'Future' ... [17:25:59.980] - state: 'created' [17:25:59.980] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:25:59.980] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:25:59.980] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:25:59.981] - Field: 'label' [17:25:59.981] - Field: 'local' [17:25:59.981] - Field: 'owner' [17:25:59.981] - Field: 'envir' [17:25:59.981] - Field: 'packages' [17:25:59.982] - Field: 'gc' [17:25:59.982] - Field: 'conditions' [17:25:59.982] - Field: 'expr' [17:25:59.982] - Field: 'uuid' [17:25:59.982] - Field: 'seed' [17:25:59.982] - Field: 'version' [17:25:59.983] - Field: 'result' [17:25:59.983] - Field: 'asynchronous' [17:25:59.983] - Field: 'calls' [17:25:59.983] - Field: 'globals' [17:25:59.983] - Field: 'stdout' [17:25:59.983] - Field: 'earlySignal' [17:25:59.984] - Field: 'lazy' [17:25:59.984] - Field: 'state' [17:25:59.984] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:25:59.984] - Launch lazy future ... [17:25:59.984] Packages needed by the future expression (n = 0): [17:25:59.984] Packages needed by future strategies (n = 0): [17:25:59.985] { [17:25:59.985] { [17:25:59.985] { [17:25:59.985] ...future.startTime <- base::Sys.time() [17:25:59.985] { [17:25:59.985] { [17:25:59.985] { [17:25:59.985] base::local({ [17:25:59.985] has_future <- base::requireNamespace("future", [17:25:59.985] quietly = TRUE) [17:25:59.985] if (has_future) { [17:25:59.985] ns <- base::getNamespace("future") [17:25:59.985] version <- ns[[".package"]][["version"]] [17:25:59.985] if (is.null(version)) [17:25:59.985] version <- utils::packageVersion("future") [17:25:59.985] } [17:25:59.985] else { [17:25:59.985] version <- NULL [17:25:59.985] } [17:25:59.985] if (!has_future || version < "1.8.0") { [17:25:59.985] info <- base::c(r_version = base::gsub("R version ", [17:25:59.985] "", base::R.version$version.string), [17:25:59.985] platform = base::sprintf("%s (%s-bit)", [17:25:59.985] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:59.985] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:59.985] "release", "version")], collapse = " "), [17:25:59.985] hostname = base::Sys.info()[["nodename"]]) [17:25:59.985] info <- base::sprintf("%s: %s", base::names(info), [17:25:59.985] info) [17:25:59.985] info <- base::paste(info, collapse = "; ") [17:25:59.985] if (!has_future) { [17:25:59.985] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:59.985] info) [17:25:59.985] } [17:25:59.985] else { [17:25:59.985] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:59.985] info, version) [17:25:59.985] } [17:25:59.985] base::stop(msg) [17:25:59.985] } [17:25:59.985] }) [17:25:59.985] } [17:25:59.985] ...future.strategy.old <- future::plan("list") [17:25:59.985] options(future.plan = NULL) [17:25:59.985] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.985] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:59.985] } [17:25:59.985] ...future.workdir <- getwd() [17:25:59.985] } [17:25:59.985] ...future.oldOptions <- base::as.list(base::.Options) [17:25:59.985] ...future.oldEnvVars <- base::Sys.getenv() [17:25:59.985] } [17:25:59.985] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:59.985] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:59.985] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:59.985] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:59.985] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:59.985] future.stdout.windows.reencode = NULL, width = 80L) [17:25:59.985] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:59.985] base::names(...future.oldOptions)) [17:25:59.985] } [17:25:59.985] if (FALSE) { [17:25:59.985] } [17:25:59.985] else { [17:25:59.985] if (TRUE) { [17:25:59.985] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:59.985] open = "w") [17:25:59.985] } [17:25:59.985] else { [17:25:59.985] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:59.985] windows = "NUL", "/dev/null"), open = "w") [17:25:59.985] } [17:25:59.985] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:59.985] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:59.985] base::sink(type = "output", split = FALSE) [17:25:59.985] base::close(...future.stdout) [17:25:59.985] }, add = TRUE) [17:25:59.985] } [17:25:59.985] ...future.frame <- base::sys.nframe() [17:25:59.985] ...future.conditions <- base::list() [17:25:59.985] ...future.rng <- base::globalenv()$.Random.seed [17:25:59.985] if (FALSE) { [17:25:59.985] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:59.985] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:59.985] } [17:25:59.985] ...future.result <- base::tryCatch({ [17:25:59.985] base::withCallingHandlers({ [17:25:59.985] ...future.value <- base::withVisible(base::local({ [17:25:59.985] 42L [17:25:59.985] stop("Woops") [17:25:59.985] })) [17:25:59.985] future::FutureResult(value = ...future.value$value, [17:25:59.985] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.985] ...future.rng), globalenv = if (FALSE) [17:25:59.985] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:59.985] ...future.globalenv.names)) [17:25:59.985] else NULL, started = ...future.startTime, version = "1.8") [17:25:59.985] }, condition = base::local({ [17:25:59.985] c <- base::c [17:25:59.985] inherits <- base::inherits [17:25:59.985] invokeRestart <- base::invokeRestart [17:25:59.985] length <- base::length [17:25:59.985] list <- base::list [17:25:59.985] seq.int <- base::seq.int [17:25:59.985] signalCondition <- base::signalCondition [17:25:59.985] sys.calls <- base::sys.calls [17:25:59.985] `[[` <- base::`[[` [17:25:59.985] `+` <- base::`+` [17:25:59.985] `<<-` <- base::`<<-` [17:25:59.985] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:59.985] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:59.985] 3L)] [17:25:59.985] } [17:25:59.985] function(cond) { [17:25:59.985] is_error <- inherits(cond, "error") [17:25:59.985] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:59.985] NULL) [17:25:59.985] if (is_error) { [17:25:59.985] sessionInformation <- function() { [17:25:59.985] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:59.985] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:59.985] search = base::search(), system = base::Sys.info()) [17:25:59.985] } [17:25:59.985] ...future.conditions[[length(...future.conditions) + [17:25:59.985] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:59.985] cond$call), session = sessionInformation(), [17:25:59.985] timestamp = base::Sys.time(), signaled = 0L) [17:25:59.985] signalCondition(cond) [17:25:59.985] } [17:25:59.985] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:59.985] "immediateCondition"))) { [17:25:59.985] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:59.985] ...future.conditions[[length(...future.conditions) + [17:25:59.985] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:59.985] if (TRUE && !signal) { [17:25:59.985] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.985] { [17:25:59.985] inherits <- base::inherits [17:25:59.985] invokeRestart <- base::invokeRestart [17:25:59.985] is.null <- base::is.null [17:25:59.985] muffled <- FALSE [17:25:59.985] if (inherits(cond, "message")) { [17:25:59.985] muffled <- grepl(pattern, "muffleMessage") [17:25:59.985] if (muffled) [17:25:59.985] invokeRestart("muffleMessage") [17:25:59.985] } [17:25:59.985] else if (inherits(cond, "warning")) { [17:25:59.985] muffled <- grepl(pattern, "muffleWarning") [17:25:59.985] if (muffled) [17:25:59.985] invokeRestart("muffleWarning") [17:25:59.985] } [17:25:59.985] else if (inherits(cond, "condition")) { [17:25:59.985] if (!is.null(pattern)) { [17:25:59.985] computeRestarts <- base::computeRestarts [17:25:59.985] grepl <- base::grepl [17:25:59.985] restarts <- computeRestarts(cond) [17:25:59.985] for (restart in restarts) { [17:25:59.985] name <- restart$name [17:25:59.985] if (is.null(name)) [17:25:59.985] next [17:25:59.985] if (!grepl(pattern, name)) [17:25:59.985] next [17:25:59.985] invokeRestart(restart) [17:25:59.985] muffled <- TRUE [17:25:59.985] break [17:25:59.985] } [17:25:59.985] } [17:25:59.985] } [17:25:59.985] invisible(muffled) [17:25:59.985] } [17:25:59.985] muffleCondition(cond, pattern = "^muffle") [17:25:59.985] } [17:25:59.985] } [17:25:59.985] else { [17:25:59.985] if (TRUE) { [17:25:59.985] muffleCondition <- function (cond, pattern = "^muffle") [17:25:59.985] { [17:25:59.985] inherits <- base::inherits [17:25:59.985] invokeRestart <- base::invokeRestart [17:25:59.985] is.null <- base::is.null [17:25:59.985] muffled <- FALSE [17:25:59.985] if (inherits(cond, "message")) { [17:25:59.985] muffled <- grepl(pattern, "muffleMessage") [17:25:59.985] if (muffled) [17:25:59.985] invokeRestart("muffleMessage") [17:25:59.985] } [17:25:59.985] else if (inherits(cond, "warning")) { [17:25:59.985] muffled <- grepl(pattern, "muffleWarning") [17:25:59.985] if (muffled) [17:25:59.985] invokeRestart("muffleWarning") [17:25:59.985] } [17:25:59.985] else if (inherits(cond, "condition")) { [17:25:59.985] if (!is.null(pattern)) { [17:25:59.985] computeRestarts <- base::computeRestarts [17:25:59.985] grepl <- base::grepl [17:25:59.985] restarts <- computeRestarts(cond) [17:25:59.985] for (restart in restarts) { [17:25:59.985] name <- restart$name [17:25:59.985] if (is.null(name)) [17:25:59.985] next [17:25:59.985] if (!grepl(pattern, name)) [17:25:59.985] next [17:25:59.985] invokeRestart(restart) [17:25:59.985] muffled <- TRUE [17:25:59.985] break [17:25:59.985] } [17:25:59.985] } [17:25:59.985] } [17:25:59.985] invisible(muffled) [17:25:59.985] } [17:25:59.985] muffleCondition(cond, pattern = "^muffle") [17:25:59.985] } [17:25:59.985] } [17:25:59.985] } [17:25:59.985] })) [17:25:59.985] }, error = function(ex) { [17:25:59.985] base::structure(base::list(value = NULL, visible = NULL, [17:25:59.985] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:59.985] ...future.rng), started = ...future.startTime, [17:25:59.985] finished = Sys.time(), session_uuid = NA_character_, [17:25:59.985] version = "1.8"), class = "FutureResult") [17:25:59.985] }, finally = { [17:25:59.985] if (!identical(...future.workdir, getwd())) [17:25:59.985] setwd(...future.workdir) [17:25:59.985] { [17:25:59.985] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:59.985] ...future.oldOptions$nwarnings <- NULL [17:25:59.985] } [17:25:59.985] base::options(...future.oldOptions) [17:25:59.985] if (.Platform$OS.type == "windows") { [17:25:59.985] old_names <- names(...future.oldEnvVars) [17:25:59.985] envs <- base::Sys.getenv() [17:25:59.985] names <- names(envs) [17:25:59.985] common <- intersect(names, old_names) [17:25:59.985] added <- setdiff(names, old_names) [17:25:59.985] removed <- setdiff(old_names, names) [17:25:59.985] changed <- common[...future.oldEnvVars[common] != [17:25:59.985] envs[common]] [17:25:59.985] NAMES <- toupper(changed) [17:25:59.985] args <- list() [17:25:59.985] for (kk in seq_along(NAMES)) { [17:25:59.985] name <- changed[[kk]] [17:25:59.985] NAME <- NAMES[[kk]] [17:25:59.985] if (name != NAME && is.element(NAME, old_names)) [17:25:59.985] next [17:25:59.985] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.985] } [17:25:59.985] NAMES <- toupper(added) [17:25:59.985] for (kk in seq_along(NAMES)) { [17:25:59.985] name <- added[[kk]] [17:25:59.985] NAME <- NAMES[[kk]] [17:25:59.985] if (name != NAME && is.element(NAME, old_names)) [17:25:59.985] next [17:25:59.985] args[[name]] <- "" [17:25:59.985] } [17:25:59.985] NAMES <- toupper(removed) [17:25:59.985] for (kk in seq_along(NAMES)) { [17:25:59.985] name <- removed[[kk]] [17:25:59.985] NAME <- NAMES[[kk]] [17:25:59.985] if (name != NAME && is.element(NAME, old_names)) [17:25:59.985] next [17:25:59.985] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:59.985] } [17:25:59.985] if (length(args) > 0) [17:25:59.985] base::do.call(base::Sys.setenv, args = args) [17:25:59.985] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:59.985] } [17:25:59.985] else { [17:25:59.985] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:59.985] } [17:25:59.985] { [17:25:59.985] if (base::length(...future.futureOptionsAdded) > [17:25:59.985] 0L) { [17:25:59.985] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:59.985] base::names(opts) <- ...future.futureOptionsAdded [17:25:59.985] base::options(opts) [17:25:59.985] } [17:25:59.985] { [17:25:59.985] { [17:25:59.985] NULL [17:25:59.985] RNGkind("Mersenne-Twister") [17:25:59.985] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:25:59.985] inherits = FALSE) [17:25:59.985] } [17:25:59.985] options(future.plan = NULL) [17:25:59.985] if (is.na(NA_character_)) [17:25:59.985] Sys.unsetenv("R_FUTURE_PLAN") [17:25:59.985] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:59.985] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:59.985] .init = FALSE) [17:25:59.985] } [17:25:59.985] } [17:25:59.985] } [17:25:59.985] }) [17:25:59.985] if (TRUE) { [17:25:59.985] base::sink(type = "output", split = FALSE) [17:25:59.985] if (TRUE) { [17:25:59.985] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:59.985] } [17:25:59.985] else { [17:25:59.985] ...future.result["stdout"] <- base::list(NULL) [17:25:59.985] } [17:25:59.985] base::close(...future.stdout) [17:25:59.985] ...future.stdout <- NULL [17:25:59.985] } [17:25:59.985] ...future.result$conditions <- ...future.conditions [17:25:59.985] ...future.result$finished <- base::Sys.time() [17:25:59.985] ...future.result [17:25:59.985] } [17:25:59.989] plan(): Setting new future strategy stack: [17:25:59.989] List of future strategies: [17:25:59.989] 1. sequential: [17:25:59.989] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.989] - tweaked: FALSE [17:25:59.989] - call: NULL [17:25:59.990] plan(): nbrOfWorkers() = 1 [17:25:59.991] plan(): Setting new future strategy stack: [17:25:59.991] List of future strategies: [17:25:59.991] 1. sequential: [17:25:59.991] - args: function (..., envir = parent.frame(), workers = "") [17:25:59.991] - tweaked: FALSE [17:25:59.991] - call: future::plan("sequential") [17:25:59.992] plan(): nbrOfWorkers() = 1 [17:25:59.992] SequentialFuture started (and completed) [17:25:59.992] signalConditions() ... [17:25:59.992] - include = 'immediateCondition' [17:25:59.993] - exclude = [17:25:59.993] - resignal = FALSE [17:25:59.993] - Number of conditions: 1 [17:25:59.993] signalConditions() ... done [17:25:59.993] - Launch lazy future ... done [17:25:59.993] run() for 'SequentialFuture' ... done > ll[[2]] <- future({ 42L; stop("Woops") }) [17:25:59.994] getGlobalsAndPackages() ... [17:25:59.994] Searching for globals... [17:25:59.995] - globals found: [2] '{', 'stop' [17:25:59.995] Searching for globals ... DONE [17:25:59.995] Resolving globals: FALSE [17:25:59.996] [17:25:59.996] [17:25:59.996] getGlobalsAndPackages() ... DONE [17:25:59.996] run() for 'Future' ... [17:25:59.996] - state: 'created' [17:25:59.997] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:25:59.997] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:25:59.997] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:25:59.997] - Field: 'label' [17:25:59.997] - Field: 'local' [17:25:59.998] - Field: 'owner' [17:25:59.998] - Field: 'envir' [17:25:59.998] - Field: 'packages' [17:25:59.998] - Field: 'gc' [17:25:59.998] - Field: 'conditions' [17:25:59.999] - Field: 'expr' [17:25:59.999] - Field: 'uuid' [17:25:59.999] - Field: 'seed' [17:25:59.999] - Field: 'version' [17:25:59.999] - Field: 'result' [17:25:59.999] - Field: 'asynchronous' [17:26:00.000] - Field: 'calls' [17:26:00.000] - Field: 'globals' [17:26:00.000] - Field: 'stdout' [17:26:00.000] - Field: 'earlySignal' [17:26:00.000] - Field: 'lazy' [17:26:00.000] - Field: 'state' [17:26:00.001] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:00.001] - Launch lazy future ... [17:26:00.001] Packages needed by the future expression (n = 0): [17:26:00.001] Packages needed by future strategies (n = 0): [17:26:00.002] { [17:26:00.002] { [17:26:00.002] { [17:26:00.002] ...future.startTime <- base::Sys.time() [17:26:00.002] { [17:26:00.002] { [17:26:00.002] { [17:26:00.002] base::local({ [17:26:00.002] has_future <- base::requireNamespace("future", [17:26:00.002] quietly = TRUE) [17:26:00.002] if (has_future) { [17:26:00.002] ns <- base::getNamespace("future") [17:26:00.002] version <- ns[[".package"]][["version"]] [17:26:00.002] if (is.null(version)) [17:26:00.002] version <- utils::packageVersion("future") [17:26:00.002] } [17:26:00.002] else { [17:26:00.002] version <- NULL [17:26:00.002] } [17:26:00.002] if (!has_future || version < "1.8.0") { [17:26:00.002] info <- base::c(r_version = base::gsub("R version ", [17:26:00.002] "", base::R.version$version.string), [17:26:00.002] platform = base::sprintf("%s (%s-bit)", [17:26:00.002] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:00.002] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:00.002] "release", "version")], collapse = " "), [17:26:00.002] hostname = base::Sys.info()[["nodename"]]) [17:26:00.002] info <- base::sprintf("%s: %s", base::names(info), [17:26:00.002] info) [17:26:00.002] info <- base::paste(info, collapse = "; ") [17:26:00.002] if (!has_future) { [17:26:00.002] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:00.002] info) [17:26:00.002] } [17:26:00.002] else { [17:26:00.002] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:00.002] info, version) [17:26:00.002] } [17:26:00.002] base::stop(msg) [17:26:00.002] } [17:26:00.002] }) [17:26:00.002] } [17:26:00.002] ...future.strategy.old <- future::plan("list") [17:26:00.002] options(future.plan = NULL) [17:26:00.002] Sys.unsetenv("R_FUTURE_PLAN") [17:26:00.002] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:00.002] } [17:26:00.002] ...future.workdir <- getwd() [17:26:00.002] } [17:26:00.002] ...future.oldOptions <- base::as.list(base::.Options) [17:26:00.002] ...future.oldEnvVars <- base::Sys.getenv() [17:26:00.002] } [17:26:00.002] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:00.002] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:00.002] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:00.002] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:00.002] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:00.002] future.stdout.windows.reencode = NULL, width = 80L) [17:26:00.002] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:00.002] base::names(...future.oldOptions)) [17:26:00.002] } [17:26:00.002] if (FALSE) { [17:26:00.002] } [17:26:00.002] else { [17:26:00.002] if (TRUE) { [17:26:00.002] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:00.002] open = "w") [17:26:00.002] } [17:26:00.002] else { [17:26:00.002] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:00.002] windows = "NUL", "/dev/null"), open = "w") [17:26:00.002] } [17:26:00.002] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:00.002] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:00.002] base::sink(type = "output", split = FALSE) [17:26:00.002] base::close(...future.stdout) [17:26:00.002] }, add = TRUE) [17:26:00.002] } [17:26:00.002] ...future.frame <- base::sys.nframe() [17:26:00.002] ...future.conditions <- base::list() [17:26:00.002] ...future.rng <- base::globalenv()$.Random.seed [17:26:00.002] if (FALSE) { [17:26:00.002] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:00.002] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:00.002] } [17:26:00.002] ...future.result <- base::tryCatch({ [17:26:00.002] base::withCallingHandlers({ [17:26:00.002] ...future.value <- base::withVisible(base::local({ [17:26:00.002] 42L [17:26:00.002] stop("Woops") [17:26:00.002] })) [17:26:00.002] future::FutureResult(value = ...future.value$value, [17:26:00.002] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:00.002] ...future.rng), globalenv = if (FALSE) [17:26:00.002] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:00.002] ...future.globalenv.names)) [17:26:00.002] else NULL, started = ...future.startTime, version = "1.8") [17:26:00.002] }, condition = base::local({ [17:26:00.002] c <- base::c [17:26:00.002] inherits <- base::inherits [17:26:00.002] invokeRestart <- base::invokeRestart [17:26:00.002] length <- base::length [17:26:00.002] list <- base::list [17:26:00.002] seq.int <- base::seq.int [17:26:00.002] signalCondition <- base::signalCondition [17:26:00.002] sys.calls <- base::sys.calls [17:26:00.002] `[[` <- base::`[[` [17:26:00.002] `+` <- base::`+` [17:26:00.002] `<<-` <- base::`<<-` [17:26:00.002] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:00.002] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:00.002] 3L)] [17:26:00.002] } [17:26:00.002] function(cond) { [17:26:00.002] is_error <- inherits(cond, "error") [17:26:00.002] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:00.002] NULL) [17:26:00.002] if (is_error) { [17:26:00.002] sessionInformation <- function() { [17:26:00.002] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:00.002] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:00.002] search = base::search(), system = base::Sys.info()) [17:26:00.002] } [17:26:00.002] ...future.conditions[[length(...future.conditions) + [17:26:00.002] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:00.002] cond$call), session = sessionInformation(), [17:26:00.002] timestamp = base::Sys.time(), signaled = 0L) [17:26:00.002] signalCondition(cond) [17:26:00.002] } [17:26:00.002] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:00.002] "immediateCondition"))) { [17:26:00.002] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:00.002] ...future.conditions[[length(...future.conditions) + [17:26:00.002] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:00.002] if (TRUE && !signal) { [17:26:00.002] muffleCondition <- function (cond, pattern = "^muffle") [17:26:00.002] { [17:26:00.002] inherits <- base::inherits [17:26:00.002] invokeRestart <- base::invokeRestart [17:26:00.002] is.null <- base::is.null [17:26:00.002] muffled <- FALSE [17:26:00.002] if (inherits(cond, "message")) { [17:26:00.002] muffled <- grepl(pattern, "muffleMessage") [17:26:00.002] if (muffled) [17:26:00.002] invokeRestart("muffleMessage") [17:26:00.002] } [17:26:00.002] else if (inherits(cond, "warning")) { [17:26:00.002] muffled <- grepl(pattern, "muffleWarning") [17:26:00.002] if (muffled) [17:26:00.002] invokeRestart("muffleWarning") [17:26:00.002] } [17:26:00.002] else if (inherits(cond, "condition")) { [17:26:00.002] if (!is.null(pattern)) { [17:26:00.002] computeRestarts <- base::computeRestarts [17:26:00.002] grepl <- base::grepl [17:26:00.002] restarts <- computeRestarts(cond) [17:26:00.002] for (restart in restarts) { [17:26:00.002] name <- restart$name [17:26:00.002] if (is.null(name)) [17:26:00.002] next [17:26:00.002] if (!grepl(pattern, name)) [17:26:00.002] next [17:26:00.002] invokeRestart(restart) [17:26:00.002] muffled <- TRUE [17:26:00.002] break [17:26:00.002] } [17:26:00.002] } [17:26:00.002] } [17:26:00.002] invisible(muffled) [17:26:00.002] } [17:26:00.002] muffleCondition(cond, pattern = "^muffle") [17:26:00.002] } [17:26:00.002] } [17:26:00.002] else { [17:26:00.002] if (TRUE) { [17:26:00.002] muffleCondition <- function (cond, pattern = "^muffle") [17:26:00.002] { [17:26:00.002] inherits <- base::inherits [17:26:00.002] invokeRestart <- base::invokeRestart [17:26:00.002] is.null <- base::is.null [17:26:00.002] muffled <- FALSE [17:26:00.002] if (inherits(cond, "message")) { [17:26:00.002] muffled <- grepl(pattern, "muffleMessage") [17:26:00.002] if (muffled) [17:26:00.002] invokeRestart("muffleMessage") [17:26:00.002] } [17:26:00.002] else if (inherits(cond, "warning")) { [17:26:00.002] muffled <- grepl(pattern, "muffleWarning") [17:26:00.002] if (muffled) [17:26:00.002] invokeRestart("muffleWarning") [17:26:00.002] } [17:26:00.002] else if (inherits(cond, "condition")) { [17:26:00.002] if (!is.null(pattern)) { [17:26:00.002] computeRestarts <- base::computeRestarts [17:26:00.002] grepl <- base::grepl [17:26:00.002] restarts <- computeRestarts(cond) [17:26:00.002] for (restart in restarts) { [17:26:00.002] name <- restart$name [17:26:00.002] if (is.null(name)) [17:26:00.002] next [17:26:00.002] if (!grepl(pattern, name)) [17:26:00.002] next [17:26:00.002] invokeRestart(restart) [17:26:00.002] muffled <- TRUE [17:26:00.002] break [17:26:00.002] } [17:26:00.002] } [17:26:00.002] } [17:26:00.002] invisible(muffled) [17:26:00.002] } [17:26:00.002] muffleCondition(cond, pattern = "^muffle") [17:26:00.002] } [17:26:00.002] } [17:26:00.002] } [17:26:00.002] })) [17:26:00.002] }, error = function(ex) { [17:26:00.002] base::structure(base::list(value = NULL, visible = NULL, [17:26:00.002] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:00.002] ...future.rng), started = ...future.startTime, [17:26:00.002] finished = Sys.time(), session_uuid = NA_character_, [17:26:00.002] version = "1.8"), class = "FutureResult") [17:26:00.002] }, finally = { [17:26:00.002] if (!identical(...future.workdir, getwd())) [17:26:00.002] setwd(...future.workdir) [17:26:00.002] { [17:26:00.002] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:00.002] ...future.oldOptions$nwarnings <- NULL [17:26:00.002] } [17:26:00.002] base::options(...future.oldOptions) [17:26:00.002] if (.Platform$OS.type == "windows") { [17:26:00.002] old_names <- names(...future.oldEnvVars) [17:26:00.002] envs <- base::Sys.getenv() [17:26:00.002] names <- names(envs) [17:26:00.002] common <- intersect(names, old_names) [17:26:00.002] added <- setdiff(names, old_names) [17:26:00.002] removed <- setdiff(old_names, names) [17:26:00.002] changed <- common[...future.oldEnvVars[common] != [17:26:00.002] envs[common]] [17:26:00.002] NAMES <- toupper(changed) [17:26:00.002] args <- list() [17:26:00.002] for (kk in seq_along(NAMES)) { [17:26:00.002] name <- changed[[kk]] [17:26:00.002] NAME <- NAMES[[kk]] [17:26:00.002] if (name != NAME && is.element(NAME, old_names)) [17:26:00.002] next [17:26:00.002] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:00.002] } [17:26:00.002] NAMES <- toupper(added) [17:26:00.002] for (kk in seq_along(NAMES)) { [17:26:00.002] name <- added[[kk]] [17:26:00.002] NAME <- NAMES[[kk]] [17:26:00.002] if (name != NAME && is.element(NAME, old_names)) [17:26:00.002] next [17:26:00.002] args[[name]] <- "" [17:26:00.002] } [17:26:00.002] NAMES <- toupper(removed) [17:26:00.002] for (kk in seq_along(NAMES)) { [17:26:00.002] name <- removed[[kk]] [17:26:00.002] NAME <- NAMES[[kk]] [17:26:00.002] if (name != NAME && is.element(NAME, old_names)) [17:26:00.002] next [17:26:00.002] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:00.002] } [17:26:00.002] if (length(args) > 0) [17:26:00.002] base::do.call(base::Sys.setenv, args = args) [17:26:00.002] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:00.002] } [17:26:00.002] else { [17:26:00.002] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:00.002] } [17:26:00.002] { [17:26:00.002] if (base::length(...future.futureOptionsAdded) > [17:26:00.002] 0L) { [17:26:00.002] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:00.002] base::names(opts) <- ...future.futureOptionsAdded [17:26:00.002] base::options(opts) [17:26:00.002] } [17:26:00.002] { [17:26:00.002] { [17:26:00.002] NULL [17:26:00.002] RNGkind("Mersenne-Twister") [17:26:00.002] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:00.002] inherits = FALSE) [17:26:00.002] } [17:26:00.002] options(future.plan = NULL) [17:26:00.002] if (is.na(NA_character_)) [17:26:00.002] Sys.unsetenv("R_FUTURE_PLAN") [17:26:00.002] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:00.002] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:00.002] .init = FALSE) [17:26:00.002] } [17:26:00.002] } [17:26:00.002] } [17:26:00.002] }) [17:26:00.002] if (TRUE) { [17:26:00.002] base::sink(type = "output", split = FALSE) [17:26:00.002] if (TRUE) { [17:26:00.002] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:00.002] } [17:26:00.002] else { [17:26:00.002] ...future.result["stdout"] <- base::list(NULL) [17:26:00.002] } [17:26:00.002] base::close(...future.stdout) [17:26:00.002] ...future.stdout <- NULL [17:26:00.002] } [17:26:00.002] ...future.result$conditions <- ...future.conditions [17:26:00.002] ...future.result$finished <- base::Sys.time() [17:26:00.002] ...future.result [17:26:00.002] } [17:26:00.006] plan(): Setting new future strategy stack: [17:26:00.006] List of future strategies: [17:26:00.006] 1. sequential: [17:26:00.006] - args: function (..., envir = parent.frame(), workers = "") [17:26:00.006] - tweaked: FALSE [17:26:00.006] - call: NULL [17:26:00.006] plan(): nbrOfWorkers() = 1 [17:26:00.008] plan(): Setting new future strategy stack: [17:26:00.008] List of future strategies: [17:26:00.008] 1. sequential: [17:26:00.008] - args: function (..., envir = parent.frame(), workers = "") [17:26:00.008] - tweaked: FALSE [17:26:00.008] - call: future::plan("sequential") [17:26:00.009] plan(): nbrOfWorkers() = 1 [17:26:00.009] SequentialFuture started (and completed) [17:26:00.009] signalConditions() ... [17:26:00.009] - include = 'immediateCondition' [17:26:00.009] - exclude = [17:26:00.010] - resignal = FALSE [17:26:00.010] - Number of conditions: 1 [17:26:00.010] signalConditions() ... done [17:26:00.010] - Launch lazy future ... done [17:26:00.010] run() for 'SequentialFuture' ... done > vs <- value(ll, signal = FALSE) [17:26:00.011] resolve() on list ... [17:26:00.011] recursive: 0 [17:26:00.011] length: 2 [17:26:00.012] [17:26:00.012] resolved() for 'SequentialFuture' ... [17:26:00.013] - state: 'finished' [17:26:00.013] - run: TRUE [17:26:00.014] - result: 'FutureResult' [17:26:00.014] resolved() for 'SequentialFuture' ... done [17:26:00.014] Future #1 [17:26:00.014] signalConditions() ... [17:26:00.014] - include = 'immediateCondition' [17:26:00.015] - exclude = [17:26:00.015] - resignal = FALSE [17:26:00.015] - Number of conditions: 1 [17:26:00.015] signalConditions() ... done [17:26:00.015] signalConditionsASAP(SequentialFuture, pos=1) ... [17:26:00.015] - nx: 2 [17:26:00.016] - relay: TRUE [17:26:00.016] - stdout: TRUE [17:26:00.016] - signal: FALSE [17:26:00.016] - resignal: FALSE [17:26:00.016] - force: TRUE [17:26:00.016] - relayed: [n=2] FALSE, FALSE [17:26:00.016] - queued futures: [n=2] FALSE, FALSE [17:26:00.017] - until=1 [17:26:00.017] - relaying element #1 [17:26:00.017] signalConditions() ... [17:26:00.017] - include = 'immediateCondition' [17:26:00.017] - exclude = [17:26:00.017] - resignal = FALSE [17:26:00.018] - Number of conditions: 1 [17:26:00.018] signalConditions() ... done [17:26:00.018] - relayed: [n=2] TRUE, FALSE [17:26:00.018] - queued futures: [n=2] TRUE, FALSE [17:26:00.018] signalConditionsASAP(SequentialFuture, pos=1) ... done [17:26:00.019] length: 1 (resolved future 1) [17:26:00.019] resolved() for 'SequentialFuture' ... [17:26:00.019] - state: 'finished' [17:26:00.019] - run: TRUE [17:26:00.019] - result: 'FutureResult' [17:26:00.019] resolved() for 'SequentialFuture' ... done [17:26:00.020] Future #2 [17:26:00.020] signalConditions() ... [17:26:00.020] - include = 'immediateCondition' [17:26:00.020] - exclude = [17:26:00.020] - resignal = FALSE [17:26:00.020] - Number of conditions: 1 [17:26:00.021] signalConditions() ... done [17:26:00.021] signalConditionsASAP(SequentialFuture, pos=2) ... [17:26:00.021] - nx: 2 [17:26:00.021] - relay: TRUE [17:26:00.021] - stdout: TRUE [17:26:00.021] - signal: FALSE [17:26:00.022] - resignal: FALSE [17:26:00.022] - force: TRUE [17:26:00.022] - relayed: [n=2] TRUE, FALSE [17:26:00.022] - queued futures: [n=2] TRUE, FALSE [17:26:00.022] - until=2 [17:26:00.022] - relaying element #2 [17:26:00.023] signalConditions() ... [17:26:00.023] - include = 'immediateCondition' [17:26:00.023] - exclude = [17:26:00.023] - resignal = FALSE [17:26:00.023] - Number of conditions: 1 [17:26:00.023] signalConditions() ... done [17:26:00.024] - relayed: [n=2] TRUE, TRUE [17:26:00.024] - queued futures: [n=2] TRUE, TRUE [17:26:00.024] signalConditionsASAP(SequentialFuture, pos=2) ... done [17:26:00.024] length: 0 (resolved future 2) [17:26:00.024] Relaying remaining futures [17:26:00.024] signalConditionsASAP(NULL, pos=0) ... [17:26:00.025] - nx: 2 [17:26:00.025] - relay: TRUE [17:26:00.025] - stdout: TRUE [17:26:00.025] - signal: FALSE [17:26:00.025] - resignal: FALSE [17:26:00.025] - force: TRUE [17:26:00.025] - relayed: [n=2] TRUE, TRUE [17:26:00.026] - queued futures: [n=2] TRUE, TRUE - flush all [17:26:00.026] - relayed: [n=2] TRUE, TRUE [17:26:00.026] - queued futures: [n=2] TRUE, TRUE [17:26:00.026] signalConditionsASAP(NULL, pos=0) ... done [17:26:00.026] resolve() on list ... DONE [17:26:00.026] signalConditions() ... [17:26:00.027] - include = 'immediateCondition' [17:26:00.027] - exclude = [17:26:00.027] - resignal = FALSE [17:26:00.027] - Number of conditions: 1 [17:26:00.027] signalConditions() ... done [17:26:00.027] signalConditions() ... [17:26:00.028] - include = 'immediateCondition' [17:26:00.028] - exclude = [17:26:00.028] - resignal = FALSE [17:26:00.028] - Number of conditions: 1 [17:26:00.028] signalConditions() ... done > calls <- backtrace(ll[[2]]) [17:26:00.029] resolved() for 'SequentialFuture' ... [17:26:00.029] - state: 'finished' [17:26:00.029] - run: TRUE [17:26:00.029] - result: 'FutureResult' [17:26:00.030] 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) [17:26:00.030] getGlobalsAndPackages() ... [17:26:00.030] Searching for globals... [17:26:00.031] [17:26:00.031] Searching for globals ... DONE [17:26:00.031] - globals: [0] [17:26:00.031] getGlobalsAndPackages() ... DONE [17:26:00.032] run() for 'Future' ... [17:26:00.032] - state: 'created' [17:26:00.032] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:00.032] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:00.033] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:00.033] - Field: 'label' [17:26:00.033] - Field: 'local' [17:26:00.033] - Field: 'owner' [17:26:00.033] - Field: 'envir' [17:26:00.033] - Field: 'packages' [17:26:00.034] - Field: 'gc' [17:26:00.034] - Field: 'conditions' [17:26:00.034] - Field: 'expr' [17:26:00.034] - Field: 'uuid' [17:26:00.034] - Field: 'seed' [17:26:00.034] - Field: 'version' [17:26:00.035] - Field: 'result' [17:26:00.035] - Field: 'asynchronous' [17:26:00.035] - Field: 'calls' [17:26:00.035] - Field: 'globals' [17:26:00.035] - Field: 'stdout' [17:26:00.035] - Field: 'earlySignal' [17:26:00.036] - Field: 'lazy' [17:26:00.036] - Field: 'state' [17:26:00.036] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:00.036] - Launch lazy future ... [17:26:00.037] Packages needed by the future expression (n = 0): [17:26:00.037] Packages needed by future strategies (n = 0): [17:26:00.037] { [17:26:00.037] { [17:26:00.037] { [17:26:00.037] ...future.startTime <- base::Sys.time() [17:26:00.037] { [17:26:00.037] { [17:26:00.037] { [17:26:00.037] base::local({ [17:26:00.037] has_future <- base::requireNamespace("future", [17:26:00.037] quietly = TRUE) [17:26:00.037] if (has_future) { [17:26:00.037] ns <- base::getNamespace("future") [17:26:00.037] version <- ns[[".package"]][["version"]] [17:26:00.037] if (is.null(version)) [17:26:00.037] version <- utils::packageVersion("future") [17:26:00.037] } [17:26:00.037] else { [17:26:00.037] version <- NULL [17:26:00.037] } [17:26:00.037] if (!has_future || version < "1.8.0") { [17:26:00.037] info <- base::c(r_version = base::gsub("R version ", [17:26:00.037] "", base::R.version$version.string), [17:26:00.037] platform = base::sprintf("%s (%s-bit)", [17:26:00.037] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:00.037] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:00.037] "release", "version")], collapse = " "), [17:26:00.037] hostname = base::Sys.info()[["nodename"]]) [17:26:00.037] info <- base::sprintf("%s: %s", base::names(info), [17:26:00.037] info) [17:26:00.037] info <- base::paste(info, collapse = "; ") [17:26:00.037] if (!has_future) { [17:26:00.037] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:00.037] info) [17:26:00.037] } [17:26:00.037] else { [17:26:00.037] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:00.037] info, version) [17:26:00.037] } [17:26:00.037] base::stop(msg) [17:26:00.037] } [17:26:00.037] }) [17:26:00.037] } [17:26:00.037] ...future.strategy.old <- future::plan("list") [17:26:00.037] options(future.plan = NULL) [17:26:00.037] Sys.unsetenv("R_FUTURE_PLAN") [17:26:00.037] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:00.037] } [17:26:00.037] ...future.workdir <- getwd() [17:26:00.037] } [17:26:00.037] ...future.oldOptions <- base::as.list(base::.Options) [17:26:00.037] ...future.oldEnvVars <- base::Sys.getenv() [17:26:00.037] } [17:26:00.037] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:00.037] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:00.037] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:00.037] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:00.037] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:00.037] future.stdout.windows.reencode = NULL, width = 80L) [17:26:00.037] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:00.037] base::names(...future.oldOptions)) [17:26:00.037] } [17:26:00.037] if (FALSE) { [17:26:00.037] } [17:26:00.037] else { [17:26:00.037] if (TRUE) { [17:26:00.037] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:00.037] open = "w") [17:26:00.037] } [17:26:00.037] else { [17:26:00.037] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:00.037] windows = "NUL", "/dev/null"), open = "w") [17:26:00.037] } [17:26:00.037] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:00.037] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:00.037] base::sink(type = "output", split = FALSE) [17:26:00.037] base::close(...future.stdout) [17:26:00.037] }, add = TRUE) [17:26:00.037] } [17:26:00.037] ...future.frame <- base::sys.nframe() [17:26:00.037] ...future.conditions <- base::list() [17:26:00.037] ...future.rng <- base::globalenv()$.Random.seed [17:26:00.037] if (FALSE) { [17:26:00.037] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:00.037] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:00.037] } [17:26:00.037] ...future.result <- base::tryCatch({ [17:26:00.037] base::withCallingHandlers({ [17:26:00.037] ...future.value <- base::withVisible(base::local(42L)) [17:26:00.037] future::FutureResult(value = ...future.value$value, [17:26:00.037] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:00.037] ...future.rng), globalenv = if (FALSE) [17:26:00.037] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:00.037] ...future.globalenv.names)) [17:26:00.037] else NULL, started = ...future.startTime, version = "1.8") [17:26:00.037] }, condition = base::local({ [17:26:00.037] c <- base::c [17:26:00.037] inherits <- base::inherits [17:26:00.037] invokeRestart <- base::invokeRestart [17:26:00.037] length <- base::length [17:26:00.037] list <- base::list [17:26:00.037] seq.int <- base::seq.int [17:26:00.037] signalCondition <- base::signalCondition [17:26:00.037] sys.calls <- base::sys.calls [17:26:00.037] `[[` <- base::`[[` [17:26:00.037] `+` <- base::`+` [17:26:00.037] `<<-` <- base::`<<-` [17:26:00.037] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:00.037] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:00.037] 3L)] [17:26:00.037] } [17:26:00.037] function(cond) { [17:26:00.037] is_error <- inherits(cond, "error") [17:26:00.037] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:00.037] NULL) [17:26:00.037] if (is_error) { [17:26:00.037] sessionInformation <- function() { [17:26:00.037] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:00.037] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:00.037] search = base::search(), system = base::Sys.info()) [17:26:00.037] } [17:26:00.037] ...future.conditions[[length(...future.conditions) + [17:26:00.037] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:00.037] cond$call), session = sessionInformation(), [17:26:00.037] timestamp = base::Sys.time(), signaled = 0L) [17:26:00.037] signalCondition(cond) [17:26:00.037] } [17:26:00.037] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:00.037] "immediateCondition"))) { [17:26:00.037] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:00.037] ...future.conditions[[length(...future.conditions) + [17:26:00.037] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:00.037] if (TRUE && !signal) { [17:26:00.037] muffleCondition <- function (cond, pattern = "^muffle") [17:26:00.037] { [17:26:00.037] inherits <- base::inherits [17:26:00.037] invokeRestart <- base::invokeRestart [17:26:00.037] is.null <- base::is.null [17:26:00.037] muffled <- FALSE [17:26:00.037] if (inherits(cond, "message")) { [17:26:00.037] muffled <- grepl(pattern, "muffleMessage") [17:26:00.037] if (muffled) [17:26:00.037] invokeRestart("muffleMessage") [17:26:00.037] } [17:26:00.037] else if (inherits(cond, "warning")) { [17:26:00.037] muffled <- grepl(pattern, "muffleWarning") [17:26:00.037] if (muffled) [17:26:00.037] invokeRestart("muffleWarning") [17:26:00.037] } [17:26:00.037] else if (inherits(cond, "condition")) { [17:26:00.037] if (!is.null(pattern)) { [17:26:00.037] computeRestarts <- base::computeRestarts [17:26:00.037] grepl <- base::grepl [17:26:00.037] restarts <- computeRestarts(cond) [17:26:00.037] for (restart in restarts) { [17:26:00.037] name <- restart$name [17:26:00.037] if (is.null(name)) [17:26:00.037] next [17:26:00.037] if (!grepl(pattern, name)) [17:26:00.037] next [17:26:00.037] invokeRestart(restart) [17:26:00.037] muffled <- TRUE [17:26:00.037] break [17:26:00.037] } [17:26:00.037] } [17:26:00.037] } [17:26:00.037] invisible(muffled) [17:26:00.037] } [17:26:00.037] muffleCondition(cond, pattern = "^muffle") [17:26:00.037] } [17:26:00.037] } [17:26:00.037] else { [17:26:00.037] if (TRUE) { [17:26:00.037] muffleCondition <- function (cond, pattern = "^muffle") [17:26:00.037] { [17:26:00.037] inherits <- base::inherits [17:26:00.037] invokeRestart <- base::invokeRestart [17:26:00.037] is.null <- base::is.null [17:26:00.037] muffled <- FALSE [17:26:00.037] if (inherits(cond, "message")) { [17:26:00.037] muffled <- grepl(pattern, "muffleMessage") [17:26:00.037] if (muffled) [17:26:00.037] invokeRestart("muffleMessage") [17:26:00.037] } [17:26:00.037] else if (inherits(cond, "warning")) { [17:26:00.037] muffled <- grepl(pattern, "muffleWarning") [17:26:00.037] if (muffled) [17:26:00.037] invokeRestart("muffleWarning") [17:26:00.037] } [17:26:00.037] else if (inherits(cond, "condition")) { [17:26:00.037] if (!is.null(pattern)) { [17:26:00.037] computeRestarts <- base::computeRestarts [17:26:00.037] grepl <- base::grepl [17:26:00.037] restarts <- computeRestarts(cond) [17:26:00.037] for (restart in restarts) { [17:26:00.037] name <- restart$name [17:26:00.037] if (is.null(name)) [17:26:00.037] next [17:26:00.037] if (!grepl(pattern, name)) [17:26:00.037] next [17:26:00.037] invokeRestart(restart) [17:26:00.037] muffled <- TRUE [17:26:00.037] break [17:26:00.037] } [17:26:00.037] } [17:26:00.037] } [17:26:00.037] invisible(muffled) [17:26:00.037] } [17:26:00.037] muffleCondition(cond, pattern = "^muffle") [17:26:00.037] } [17:26:00.037] } [17:26:00.037] } [17:26:00.037] })) [17:26:00.037] }, error = function(ex) { [17:26:00.037] base::structure(base::list(value = NULL, visible = NULL, [17:26:00.037] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:00.037] ...future.rng), started = ...future.startTime, [17:26:00.037] finished = Sys.time(), session_uuid = NA_character_, [17:26:00.037] version = "1.8"), class = "FutureResult") [17:26:00.037] }, finally = { [17:26:00.037] if (!identical(...future.workdir, getwd())) [17:26:00.037] setwd(...future.workdir) [17:26:00.037] { [17:26:00.037] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:00.037] ...future.oldOptions$nwarnings <- NULL [17:26:00.037] } [17:26:00.037] base::options(...future.oldOptions) [17:26:00.037] if (.Platform$OS.type == "windows") { [17:26:00.037] old_names <- names(...future.oldEnvVars) [17:26:00.037] envs <- base::Sys.getenv() [17:26:00.037] names <- names(envs) [17:26:00.037] common <- intersect(names, old_names) [17:26:00.037] added <- setdiff(names, old_names) [17:26:00.037] removed <- setdiff(old_names, names) [17:26:00.037] changed <- common[...future.oldEnvVars[common] != [17:26:00.037] envs[common]] [17:26:00.037] NAMES <- toupper(changed) [17:26:00.037] args <- list() [17:26:00.037] for (kk in seq_along(NAMES)) { [17:26:00.037] name <- changed[[kk]] [17:26:00.037] NAME <- NAMES[[kk]] [17:26:00.037] if (name != NAME && is.element(NAME, old_names)) [17:26:00.037] next [17:26:00.037] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:00.037] } [17:26:00.037] NAMES <- toupper(added) [17:26:00.037] for (kk in seq_along(NAMES)) { [17:26:00.037] name <- added[[kk]] [17:26:00.037] NAME <- NAMES[[kk]] [17:26:00.037] if (name != NAME && is.element(NAME, old_names)) [17:26:00.037] next [17:26:00.037] args[[name]] <- "" [17:26:00.037] } [17:26:00.037] NAMES <- toupper(removed) [17:26:00.037] for (kk in seq_along(NAMES)) { [17:26:00.037] name <- removed[[kk]] [17:26:00.037] NAME <- NAMES[[kk]] [17:26:00.037] if (name != NAME && is.element(NAME, old_names)) [17:26:00.037] next [17:26:00.037] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:00.037] } [17:26:00.037] if (length(args) > 0) [17:26:00.037] base::do.call(base::Sys.setenv, args = args) [17:26:00.037] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:00.037] } [17:26:00.037] else { [17:26:00.037] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:00.037] } [17:26:00.037] { [17:26:00.037] if (base::length(...future.futureOptionsAdded) > [17:26:00.037] 0L) { [17:26:00.037] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:00.037] base::names(opts) <- ...future.futureOptionsAdded [17:26:00.037] base::options(opts) [17:26:00.037] } [17:26:00.037] { [17:26:00.037] { [17:26:00.037] NULL [17:26:00.037] RNGkind("Mersenne-Twister") [17:26:00.037] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:00.037] inherits = FALSE) [17:26:00.037] } [17:26:00.037] options(future.plan = NULL) [17:26:00.037] if (is.na(NA_character_)) [17:26:00.037] Sys.unsetenv("R_FUTURE_PLAN") [17:26:00.037] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:00.037] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:00.037] .init = FALSE) [17:26:00.037] } [17:26:00.037] } [17:26:00.037] } [17:26:00.037] }) [17:26:00.037] if (TRUE) { [17:26:00.037] base::sink(type = "output", split = FALSE) [17:26:00.037] if (TRUE) { [17:26:00.037] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:00.037] } [17:26:00.037] else { [17:26:00.037] ...future.result["stdout"] <- base::list(NULL) [17:26:00.037] } [17:26:00.037] base::close(...future.stdout) [17:26:00.037] ...future.stdout <- NULL [17:26:00.037] } [17:26:00.037] ...future.result$conditions <- ...future.conditions [17:26:00.037] ...future.result$finished <- base::Sys.time() [17:26:00.037] ...future.result [17:26:00.037] } [17:26:00.041] plan(): Setting new future strategy stack: [17:26:00.042] List of future strategies: [17:26:00.042] 1. sequential: [17:26:00.042] - args: function (..., envir = parent.frame(), workers = "") [17:26:00.042] - tweaked: FALSE [17:26:00.042] - call: NULL [17:26:00.042] plan(): nbrOfWorkers() = 1 [17:26:00.044] plan(): Setting new future strategy stack: [17:26:00.044] List of future strategies: [17:26:00.044] 1. sequential: [17:26:00.044] - args: function (..., envir = parent.frame(), workers = "") [17:26:00.044] - tweaked: FALSE [17:26:00.044] - call: future::plan("sequential") [17:26:00.045] plan(): nbrOfWorkers() = 1 [17:26:00.045] SequentialFuture started (and completed) [17:26:00.045] - Launch lazy future ... done [17:26:00.045] run() for 'SequentialFuture' ... done > res <- tryCatch(backtrace(f), error = identity) [17:26:00.046] resolved() for 'SequentialFuture' ... [17:26:00.046] - state: 'finished' [17:26:00.046] - run: TRUE [17:26:00.046] - result: 'FutureResult' [17:26:00.047] resolved() for 'SequentialFuture' ... done > print(res) > stopifnot(inherits(res, "error")) > > message("- No call stack ...") - No call stack ... > f <- future({ 42L; stop("Woops") }) [17:26:00.047] getGlobalsAndPackages() ... [17:26:00.047] Searching for globals... [17:26:00.048] - globals found: [2] '{', 'stop' [17:26:00.049] Searching for globals ... DONE [17:26:00.049] Resolving globals: FALSE [17:26:00.049] [17:26:00.049] [17:26:00.049] getGlobalsAndPackages() ... DONE [17:26:00.050] run() for 'Future' ... [17:26:00.050] - state: 'created' [17:26:00.050] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:00.051] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:00.051] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:00.051] - Field: 'label' [17:26:00.051] - Field: 'local' [17:26:00.051] - Field: 'owner' [17:26:00.051] - Field: 'envir' [17:26:00.053] - Field: 'packages' [17:26:00.053] - Field: 'gc' [17:26:00.053] - Field: 'conditions' [17:26:00.053] - Field: 'expr' [17:26:00.054] - Field: 'uuid' [17:26:00.054] - Field: 'seed' [17:26:00.054] - Field: 'version' [17:26:00.054] - Field: 'result' [17:26:00.054] - Field: 'asynchronous' [17:26:00.054] - Field: 'calls' [17:26:00.055] - Field: 'globals' [17:26:00.055] - Field: 'stdout' [17:26:00.055] - Field: 'earlySignal' [17:26:00.055] - Field: 'lazy' [17:26:00.055] - Field: 'state' [17:26:00.055] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:00.056] - Launch lazy future ... [17:26:00.056] Packages needed by the future expression (n = 0): [17:26:00.056] Packages needed by future strategies (n = 0): [17:26:00.057] { [17:26:00.057] { [17:26:00.057] { [17:26:00.057] ...future.startTime <- base::Sys.time() [17:26:00.057] { [17:26:00.057] { [17:26:00.057] { [17:26:00.057] base::local({ [17:26:00.057] has_future <- base::requireNamespace("future", [17:26:00.057] quietly = TRUE) [17:26:00.057] if (has_future) { [17:26:00.057] ns <- base::getNamespace("future") [17:26:00.057] version <- ns[[".package"]][["version"]] [17:26:00.057] if (is.null(version)) [17:26:00.057] version <- utils::packageVersion("future") [17:26:00.057] } [17:26:00.057] else { [17:26:00.057] version <- NULL [17:26:00.057] } [17:26:00.057] if (!has_future || version < "1.8.0") { [17:26:00.057] info <- base::c(r_version = base::gsub("R version ", [17:26:00.057] "", base::R.version$version.string), [17:26:00.057] platform = base::sprintf("%s (%s-bit)", [17:26:00.057] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:00.057] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:00.057] "release", "version")], collapse = " "), [17:26:00.057] hostname = base::Sys.info()[["nodename"]]) [17:26:00.057] info <- base::sprintf("%s: %s", base::names(info), [17:26:00.057] info) [17:26:00.057] info <- base::paste(info, collapse = "; ") [17:26:00.057] if (!has_future) { [17:26:00.057] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:00.057] info) [17:26:00.057] } [17:26:00.057] else { [17:26:00.057] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:00.057] info, version) [17:26:00.057] } [17:26:00.057] base::stop(msg) [17:26:00.057] } [17:26:00.057] }) [17:26:00.057] } [17:26:00.057] ...future.strategy.old <- future::plan("list") [17:26:00.057] options(future.plan = NULL) [17:26:00.057] Sys.unsetenv("R_FUTURE_PLAN") [17:26:00.057] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:00.057] } [17:26:00.057] ...future.workdir <- getwd() [17:26:00.057] } [17:26:00.057] ...future.oldOptions <- base::as.list(base::.Options) [17:26:00.057] ...future.oldEnvVars <- base::Sys.getenv() [17:26:00.057] } [17:26:00.057] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:00.057] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:00.057] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:00.057] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:00.057] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:00.057] future.stdout.windows.reencode = NULL, width = 80L) [17:26:00.057] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:00.057] base::names(...future.oldOptions)) [17:26:00.057] } [17:26:00.057] if (FALSE) { [17:26:00.057] } [17:26:00.057] else { [17:26:00.057] if (TRUE) { [17:26:00.057] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:00.057] open = "w") [17:26:00.057] } [17:26:00.057] else { [17:26:00.057] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:00.057] windows = "NUL", "/dev/null"), open = "w") [17:26:00.057] } [17:26:00.057] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:00.057] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:00.057] base::sink(type = "output", split = FALSE) [17:26:00.057] base::close(...future.stdout) [17:26:00.057] }, add = TRUE) [17:26:00.057] } [17:26:00.057] ...future.frame <- base::sys.nframe() [17:26:00.057] ...future.conditions <- base::list() [17:26:00.057] ...future.rng <- base::globalenv()$.Random.seed [17:26:00.057] if (FALSE) { [17:26:00.057] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:00.057] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:00.057] } [17:26:00.057] ...future.result <- base::tryCatch({ [17:26:00.057] base::withCallingHandlers({ [17:26:00.057] ...future.value <- base::withVisible(base::local({ [17:26:00.057] 42L [17:26:00.057] stop("Woops") [17:26:00.057] })) [17:26:00.057] future::FutureResult(value = ...future.value$value, [17:26:00.057] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:00.057] ...future.rng), globalenv = if (FALSE) [17:26:00.057] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:00.057] ...future.globalenv.names)) [17:26:00.057] else NULL, started = ...future.startTime, version = "1.8") [17:26:00.057] }, condition = base::local({ [17:26:00.057] c <- base::c [17:26:00.057] inherits <- base::inherits [17:26:00.057] invokeRestart <- base::invokeRestart [17:26:00.057] length <- base::length [17:26:00.057] list <- base::list [17:26:00.057] seq.int <- base::seq.int [17:26:00.057] signalCondition <- base::signalCondition [17:26:00.057] sys.calls <- base::sys.calls [17:26:00.057] `[[` <- base::`[[` [17:26:00.057] `+` <- base::`+` [17:26:00.057] `<<-` <- base::`<<-` [17:26:00.057] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:00.057] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:00.057] 3L)] [17:26:00.057] } [17:26:00.057] function(cond) { [17:26:00.057] is_error <- inherits(cond, "error") [17:26:00.057] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:00.057] NULL) [17:26:00.057] if (is_error) { [17:26:00.057] sessionInformation <- function() { [17:26:00.057] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:00.057] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:00.057] search = base::search(), system = base::Sys.info()) [17:26:00.057] } [17:26:00.057] ...future.conditions[[length(...future.conditions) + [17:26:00.057] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:00.057] cond$call), session = sessionInformation(), [17:26:00.057] timestamp = base::Sys.time(), signaled = 0L) [17:26:00.057] signalCondition(cond) [17:26:00.057] } [17:26:00.057] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:00.057] "immediateCondition"))) { [17:26:00.057] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:00.057] ...future.conditions[[length(...future.conditions) + [17:26:00.057] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:00.057] if (TRUE && !signal) { [17:26:00.057] muffleCondition <- function (cond, pattern = "^muffle") [17:26:00.057] { [17:26:00.057] inherits <- base::inherits [17:26:00.057] invokeRestart <- base::invokeRestart [17:26:00.057] is.null <- base::is.null [17:26:00.057] muffled <- FALSE [17:26:00.057] if (inherits(cond, "message")) { [17:26:00.057] muffled <- grepl(pattern, "muffleMessage") [17:26:00.057] if (muffled) [17:26:00.057] invokeRestart("muffleMessage") [17:26:00.057] } [17:26:00.057] else if (inherits(cond, "warning")) { [17:26:00.057] muffled <- grepl(pattern, "muffleWarning") [17:26:00.057] if (muffled) [17:26:00.057] invokeRestart("muffleWarning") [17:26:00.057] } [17:26:00.057] else if (inherits(cond, "condition")) { [17:26:00.057] if (!is.null(pattern)) { [17:26:00.057] computeRestarts <- base::computeRestarts [17:26:00.057] grepl <- base::grepl [17:26:00.057] restarts <- computeRestarts(cond) [17:26:00.057] for (restart in restarts) { [17:26:00.057] name <- restart$name [17:26:00.057] if (is.null(name)) [17:26:00.057] next [17:26:00.057] if (!grepl(pattern, name)) [17:26:00.057] next [17:26:00.057] invokeRestart(restart) [17:26:00.057] muffled <- TRUE [17:26:00.057] break [17:26:00.057] } [17:26:00.057] } [17:26:00.057] } [17:26:00.057] invisible(muffled) [17:26:00.057] } [17:26:00.057] muffleCondition(cond, pattern = "^muffle") [17:26:00.057] } [17:26:00.057] } [17:26:00.057] else { [17:26:00.057] if (TRUE) { [17:26:00.057] muffleCondition <- function (cond, pattern = "^muffle") [17:26:00.057] { [17:26:00.057] inherits <- base::inherits [17:26:00.057] invokeRestart <- base::invokeRestart [17:26:00.057] is.null <- base::is.null [17:26:00.057] muffled <- FALSE [17:26:00.057] if (inherits(cond, "message")) { [17:26:00.057] muffled <- grepl(pattern, "muffleMessage") [17:26:00.057] if (muffled) [17:26:00.057] invokeRestart("muffleMessage") [17:26:00.057] } [17:26:00.057] else if (inherits(cond, "warning")) { [17:26:00.057] muffled <- grepl(pattern, "muffleWarning") [17:26:00.057] if (muffled) [17:26:00.057] invokeRestart("muffleWarning") [17:26:00.057] } [17:26:00.057] else if (inherits(cond, "condition")) { [17:26:00.057] if (!is.null(pattern)) { [17:26:00.057] computeRestarts <- base::computeRestarts [17:26:00.057] grepl <- base::grepl [17:26:00.057] restarts <- computeRestarts(cond) [17:26:00.057] for (restart in restarts) { [17:26:00.057] name <- restart$name [17:26:00.057] if (is.null(name)) [17:26:00.057] next [17:26:00.057] if (!grepl(pattern, name)) [17:26:00.057] next [17:26:00.057] invokeRestart(restart) [17:26:00.057] muffled <- TRUE [17:26:00.057] break [17:26:00.057] } [17:26:00.057] } [17:26:00.057] } [17:26:00.057] invisible(muffled) [17:26:00.057] } [17:26:00.057] muffleCondition(cond, pattern = "^muffle") [17:26:00.057] } [17:26:00.057] } [17:26:00.057] } [17:26:00.057] })) [17:26:00.057] }, error = function(ex) { [17:26:00.057] base::structure(base::list(value = NULL, visible = NULL, [17:26:00.057] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:00.057] ...future.rng), started = ...future.startTime, [17:26:00.057] finished = Sys.time(), session_uuid = NA_character_, [17:26:00.057] version = "1.8"), class = "FutureResult") [17:26:00.057] }, finally = { [17:26:00.057] if (!identical(...future.workdir, getwd())) [17:26:00.057] setwd(...future.workdir) [17:26:00.057] { [17:26:00.057] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:00.057] ...future.oldOptions$nwarnings <- NULL [17:26:00.057] } [17:26:00.057] base::options(...future.oldOptions) [17:26:00.057] if (.Platform$OS.type == "windows") { [17:26:00.057] old_names <- names(...future.oldEnvVars) [17:26:00.057] envs <- base::Sys.getenv() [17:26:00.057] names <- names(envs) [17:26:00.057] common <- intersect(names, old_names) [17:26:00.057] added <- setdiff(names, old_names) [17:26:00.057] removed <- setdiff(old_names, names) [17:26:00.057] changed <- common[...future.oldEnvVars[common] != [17:26:00.057] envs[common]] [17:26:00.057] NAMES <- toupper(changed) [17:26:00.057] args <- list() [17:26:00.057] for (kk in seq_along(NAMES)) { [17:26:00.057] name <- changed[[kk]] [17:26:00.057] NAME <- NAMES[[kk]] [17:26:00.057] if (name != NAME && is.element(NAME, old_names)) [17:26:00.057] next [17:26:00.057] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:00.057] } [17:26:00.057] NAMES <- toupper(added) [17:26:00.057] for (kk in seq_along(NAMES)) { [17:26:00.057] name <- added[[kk]] [17:26:00.057] NAME <- NAMES[[kk]] [17:26:00.057] if (name != NAME && is.element(NAME, old_names)) [17:26:00.057] next [17:26:00.057] args[[name]] <- "" [17:26:00.057] } [17:26:00.057] NAMES <- toupper(removed) [17:26:00.057] for (kk in seq_along(NAMES)) { [17:26:00.057] name <- removed[[kk]] [17:26:00.057] NAME <- NAMES[[kk]] [17:26:00.057] if (name != NAME && is.element(NAME, old_names)) [17:26:00.057] next [17:26:00.057] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:00.057] } [17:26:00.057] if (length(args) > 0) [17:26:00.057] base::do.call(base::Sys.setenv, args = args) [17:26:00.057] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:00.057] } [17:26:00.057] else { [17:26:00.057] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:00.057] } [17:26:00.057] { [17:26:00.057] if (base::length(...future.futureOptionsAdded) > [17:26:00.057] 0L) { [17:26:00.057] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:00.057] base::names(opts) <- ...future.futureOptionsAdded [17:26:00.057] base::options(opts) [17:26:00.057] } [17:26:00.057] { [17:26:00.057] { [17:26:00.057] NULL [17:26:00.057] RNGkind("Mersenne-Twister") [17:26:00.057] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:00.057] inherits = FALSE) [17:26:00.057] } [17:26:00.057] options(future.plan = NULL) [17:26:00.057] if (is.na(NA_character_)) [17:26:00.057] Sys.unsetenv("R_FUTURE_PLAN") [17:26:00.057] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:00.057] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:00.057] .init = FALSE) [17:26:00.057] } [17:26:00.057] } [17:26:00.057] } [17:26:00.057] }) [17:26:00.057] if (TRUE) { [17:26:00.057] base::sink(type = "output", split = FALSE) [17:26:00.057] if (TRUE) { [17:26:00.057] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:00.057] } [17:26:00.057] else { [17:26:00.057] ...future.result["stdout"] <- base::list(NULL) [17:26:00.057] } [17:26:00.057] base::close(...future.stdout) [17:26:00.057] ...future.stdout <- NULL [17:26:00.057] } [17:26:00.057] ...future.result$conditions <- ...future.conditions [17:26:00.057] ...future.result$finished <- base::Sys.time() [17:26:00.057] ...future.result [17:26:00.057] } [17:26:00.060] plan(): Setting new future strategy stack: [17:26:00.061] List of future strategies: [17:26:00.061] 1. sequential: [17:26:00.061] - args: function (..., envir = parent.frame(), workers = "") [17:26:00.061] - tweaked: FALSE [17:26:00.061] - call: NULL [17:26:00.061] plan(): nbrOfWorkers() = 1 [17:26:00.062] plan(): Setting new future strategy stack: [17:26:00.063] List of future strategies: [17:26:00.063] 1. sequential: [17:26:00.063] - args: function (..., envir = parent.frame(), workers = "") [17:26:00.063] - tweaked: FALSE [17:26:00.063] - call: future::plan("sequential") [17:26:00.063] plan(): nbrOfWorkers() = 1 [17:26:00.064] SequentialFuture started (and completed) [17:26:00.064] signalConditions() ... [17:26:00.064] - include = 'immediateCondition' [17:26:00.064] - exclude = [17:26:00.064] - resignal = FALSE [17:26:00.064] - Number of conditions: 1 [17:26:00.065] signalConditions() ... done [17:26:00.065] - Launch lazy future ... done [17:26:00.065] run() for 'SequentialFuture' ... done > v <- value(f, signal = FALSE) [17:26:00.065] signalConditions() ... [17:26:00.065] - include = 'immediateCondition' [17:26:00.065] - exclude = [17:26:00.066] - resignal = FALSE [17:26:00.066] - Number of conditions: 1 [17:26:00.066] 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 ... [17:26:00.071] plan(): Setting new future strategy stack: [17:26:00.071] List of future strategies: [17:26:00.071] 1. multisession: [17:26:00.071] - args: function (..., workers = 2L, envir = parent.frame()) [17:26:00.071] - tweaked: TRUE [17:26:00.071] - call: plan(multisession, workers = 2L) [17:26:00.086] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:26:00.086] multisession: [17:26:00.086] - args: function (..., workers = 2L, envir = parent.frame()) [17:26:00.086] - tweaked: TRUE [17:26:00.086] - call: plan(multisession, workers = 2L) [17:26:00.087] getGlobalsAndPackages() ... [17:26:00.087] Not searching for globals [17:26:00.087] - globals: [0] [17:26:00.088] getGlobalsAndPackages() ... DONE [17:26:00.088] [local output] makeClusterPSOCK() ... [17:26:00.121] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:26:00.128] [local output] Base port: 25334 [17:26:00.128] [local output] Getting setup options for 2 cluster nodes ... [17:26:00.128] [local output] - Node 1 of 2 ... [17:26:00.129] [local output] localMachine=TRUE => revtunnel=FALSE [17:26:00.130] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpgHigsO/worker.rank=1.parallelly.parent=194644.2f8545fbe299d.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpgHigsO/worker.rank=1.parallelly.parent=194644.2f8545fbe299d.pid\")"' [17:26:00.567] - Possible to infer worker's PID: TRUE [17:26:00.568] [local output] Rscript port: 25334 [17:26:00.569] [local output] - Node 2 of 2 ... [17:26:00.569] [local output] localMachine=TRUE => revtunnel=FALSE [17:26:00.570] [local output] Rscript port: 25334 [17:26:00.571] [local output] Getting setup options for 2 cluster nodes ... done [17:26:00.571] [local output] - Parallel setup requested for some PSOCK nodes [17:26:00.572] [local output] Setting up PSOCK nodes in parallel [17:26:00.572] List of 36 [17:26:00.572] $ worker : chr "localhost" [17:26:00.572] ..- attr(*, "localhost")= logi TRUE [17:26:00.572] $ master : chr "localhost" [17:26:00.572] $ port : int 25334 [17:26:00.572] $ connectTimeout : num 120 [17:26:00.572] $ timeout : num 120 [17:26:00.572] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:26:00.572] $ homogeneous : logi TRUE [17:26:00.572] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=backtrace.R:194644:CRANWIN3:CRAN"| __truncated__ [17:26:00.572] $ rscript_envs : NULL [17:26:00.572] $ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:26:00.572] $ rscript_startup : NULL [17:26:00.572] $ rscript_sh : chr "cmd" [17:26:00.572] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:26:00.572] $ methods : logi TRUE [17:26:00.572] $ socketOptions : chr "no-delay" [17:26:00.572] $ useXDR : logi FALSE [17:26:00.572] $ outfile : chr "/dev/null" [17:26:00.572] $ renice : int NA [17:26:00.572] $ rshcmd : NULL [17:26:00.572] $ user : chr(0) [17:26:00.572] $ revtunnel : logi FALSE [17:26:00.572] $ rshlogfile : NULL [17:26:00.572] $ rshopts : chr(0) [17:26:00.572] $ rank : int 1 [17:26:00.572] $ manual : logi FALSE [17:26:00.572] $ dryrun : logi FALSE [17:26:00.572] $ quiet : logi FALSE [17:26:00.572] $ setup_strategy : chr "parallel" [17:26:00.572] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:26:00.572] $ pidfile : chr "D:/temp/RtmpgHigsO/worker.rank=1.parallelly.parent=194644.2f8545fbe299d.pid" [17:26:00.572] $ rshcmd_label : NULL [17:26:00.572] $ rsh_call : NULL [17:26:00.572] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:26:00.572] $ localMachine : logi TRUE [17:26:00.572] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:26:00.572] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:26:00.572] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:26:00.572] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:26:00.572] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:26:00.572] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:26:00.572] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:26:00.572] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:26:00.572] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:26:00.572] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:26:00.572] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:26:00.572] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:26:00.572] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:26:00.572] $ arguments :List of 28 [17:26:00.572] ..$ worker : chr "localhost" [17:26:00.572] ..$ master : NULL [17:26:00.572] ..$ port : int 25334 [17:26:00.572] ..$ connectTimeout : num 120 [17:26:00.572] ..$ timeout : num 120 [17:26:00.572] ..$ rscript : NULL [17:26:00.572] ..$ homogeneous : NULL [17:26:00.572] ..$ rscript_args : NULL [17:26:00.572] ..$ rscript_envs : NULL [17:26:00.572] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:26:00.572] ..$ rscript_startup : NULL [17:26:00.572] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:26:00.572] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:26:00.572] ..$ methods : logi TRUE [17:26:00.572] ..$ socketOptions : chr "no-delay" [17:26:00.572] ..$ useXDR : logi FALSE [17:26:00.572] ..$ outfile : chr "/dev/null" [17:26:00.572] ..$ renice : int NA [17:26:00.572] ..$ rshcmd : NULL [17:26:00.572] ..$ user : NULL [17:26:00.572] ..$ revtunnel : logi NA [17:26:00.572] ..$ rshlogfile : NULL [17:26:00.572] ..$ rshopts : NULL [17:26:00.572] ..$ rank : int 1 [17:26:00.572] ..$ manual : logi FALSE [17:26:00.572] ..$ dryrun : logi FALSE [17:26:00.572] ..$ quiet : logi FALSE [17:26:00.572] ..$ setup_strategy : chr "parallel" [17:26:00.572] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:26:00.596] [local output] System call to launch all workers: [17:26:00.597] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=backtrace.R:194644:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpgHigsO/worker.rank=1.parallelly.parent=194644.2f8545fbe299d.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=25334 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:26:00.597] [local output] Starting PSOCK main server [17:26:00.603] [local output] Workers launched [17:26:00.603] [local output] Waiting for workers to connect back [17:26:00.603] - [local output] 0 workers out of 2 ready [17:26:00.767] - [local output] 0 workers out of 2 ready [17:26:00.768] - [local output] 1 workers out of 2 ready [17:26:00.768] - [local output] 2 workers out of 2 ready [17:26:00.768] [local output] Launching of workers completed [17:26:00.768] [local output] Collecting session information from workers [17:26:00.769] [local output] - Worker #1 of 2 [17:26:00.770] [local output] - Worker #2 of 2 [17:26:00.770] [local output] makeClusterPSOCK() ... done [17:26:00.783] Packages needed by the future expression (n = 0): [17:26:00.783] Packages needed by future strategies (n = 0): [17:26:00.783] { [17:26:00.783] { [17:26:00.783] { [17:26:00.783] ...future.startTime <- base::Sys.time() [17:26:00.783] { [17:26:00.783] { [17:26:00.783] { [17:26:00.783] { [17:26:00.783] base::local({ [17:26:00.783] has_future <- base::requireNamespace("future", [17:26:00.783] quietly = TRUE) [17:26:00.783] if (has_future) { [17:26:00.783] ns <- base::getNamespace("future") [17:26:00.783] version <- ns[[".package"]][["version"]] [17:26:00.783] if (is.null(version)) [17:26:00.783] version <- utils::packageVersion("future") [17:26:00.783] } [17:26:00.783] else { [17:26:00.783] version <- NULL [17:26:00.783] } [17:26:00.783] if (!has_future || version < "1.8.0") { [17:26:00.783] info <- base::c(r_version = base::gsub("R version ", [17:26:00.783] "", base::R.version$version.string), [17:26:00.783] platform = base::sprintf("%s (%s-bit)", [17:26:00.783] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:00.783] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:00.783] "release", "version")], collapse = " "), [17:26:00.783] hostname = base::Sys.info()[["nodename"]]) [17:26:00.783] info <- base::sprintf("%s: %s", base::names(info), [17:26:00.783] info) [17:26:00.783] info <- base::paste(info, collapse = "; ") [17:26:00.783] if (!has_future) { [17:26:00.783] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:00.783] info) [17:26:00.783] } [17:26:00.783] else { [17:26:00.783] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:00.783] info, version) [17:26:00.783] } [17:26:00.783] base::stop(msg) [17:26:00.783] } [17:26:00.783] }) [17:26:00.783] } [17:26:00.783] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:00.783] base::options(mc.cores = 1L) [17:26:00.783] } [17:26:00.783] ...future.strategy.old <- future::plan("list") [17:26:00.783] options(future.plan = NULL) [17:26:00.783] Sys.unsetenv("R_FUTURE_PLAN") [17:26:00.783] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:00.783] } [17:26:00.783] ...future.workdir <- getwd() [17:26:00.783] } [17:26:00.783] ...future.oldOptions <- base::as.list(base::.Options) [17:26:00.783] ...future.oldEnvVars <- base::Sys.getenv() [17:26:00.783] } [17:26:00.783] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:00.783] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:00.783] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:00.783] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:00.783] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:00.783] future.stdout.windows.reencode = NULL, width = 80L) [17:26:00.783] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:00.783] base::names(...future.oldOptions)) [17:26:00.783] } [17:26:00.783] if (FALSE) { [17:26:00.783] } [17:26:00.783] else { [17:26:00.783] if (TRUE) { [17:26:00.783] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:00.783] open = "w") [17:26:00.783] } [17:26:00.783] else { [17:26:00.783] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:00.783] windows = "NUL", "/dev/null"), open = "w") [17:26:00.783] } [17:26:00.783] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:00.783] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:00.783] base::sink(type = "output", split = FALSE) [17:26:00.783] base::close(...future.stdout) [17:26:00.783] }, add = TRUE) [17:26:00.783] } [17:26:00.783] ...future.frame <- base::sys.nframe() [17:26:00.783] ...future.conditions <- base::list() [17:26:00.783] ...future.rng <- base::globalenv()$.Random.seed [17:26:00.783] if (FALSE) { [17:26:00.783] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:00.783] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:00.783] } [17:26:00.783] ...future.result <- base::tryCatch({ [17:26:00.783] base::withCallingHandlers({ [17:26:00.783] ...future.value <- base::withVisible(base::local({ [17:26:00.783] ...future.makeSendCondition <- base::local({ [17:26:00.783] sendCondition <- NULL [17:26:00.783] function(frame = 1L) { [17:26:00.783] if (is.function(sendCondition)) [17:26:00.783] return(sendCondition) [17:26:00.783] ns <- getNamespace("parallel") [17:26:00.783] if (exists("sendData", mode = "function", [17:26:00.783] envir = ns)) { [17:26:00.783] parallel_sendData <- get("sendData", mode = "function", [17:26:00.783] envir = ns) [17:26:00.783] envir <- sys.frame(frame) [17:26:00.783] master <- NULL [17:26:00.783] while (!identical(envir, .GlobalEnv) && [17:26:00.783] !identical(envir, emptyenv())) { [17:26:00.783] if (exists("master", mode = "list", envir = envir, [17:26:00.783] inherits = FALSE)) { [17:26:00.783] master <- get("master", mode = "list", [17:26:00.783] envir = envir, inherits = FALSE) [17:26:00.783] if (inherits(master, c("SOCKnode", [17:26:00.783] "SOCK0node"))) { [17:26:00.783] sendCondition <<- function(cond) { [17:26:00.783] data <- list(type = "VALUE", value = cond, [17:26:00.783] success = TRUE) [17:26:00.783] parallel_sendData(master, data) [17:26:00.783] } [17:26:00.783] return(sendCondition) [17:26:00.783] } [17:26:00.783] } [17:26:00.783] frame <- frame + 1L [17:26:00.783] envir <- sys.frame(frame) [17:26:00.783] } [17:26:00.783] } [17:26:00.783] sendCondition <<- function(cond) NULL [17:26:00.783] } [17:26:00.783] }) [17:26:00.783] withCallingHandlers({ [17:26:00.783] NA [17:26:00.783] }, immediateCondition = function(cond) { [17:26:00.783] sendCondition <- ...future.makeSendCondition() [17:26:00.783] sendCondition(cond) [17:26:00.783] muffleCondition <- function (cond, pattern = "^muffle") [17:26:00.783] { [17:26:00.783] inherits <- base::inherits [17:26:00.783] invokeRestart <- base::invokeRestart [17:26:00.783] is.null <- base::is.null [17:26:00.783] muffled <- FALSE [17:26:00.783] if (inherits(cond, "message")) { [17:26:00.783] muffled <- grepl(pattern, "muffleMessage") [17:26:00.783] if (muffled) [17:26:00.783] invokeRestart("muffleMessage") [17:26:00.783] } [17:26:00.783] else if (inherits(cond, "warning")) { [17:26:00.783] muffled <- grepl(pattern, "muffleWarning") [17:26:00.783] if (muffled) [17:26:00.783] invokeRestart("muffleWarning") [17:26:00.783] } [17:26:00.783] else if (inherits(cond, "condition")) { [17:26:00.783] if (!is.null(pattern)) { [17:26:00.783] computeRestarts <- base::computeRestarts [17:26:00.783] grepl <- base::grepl [17:26:00.783] restarts <- computeRestarts(cond) [17:26:00.783] for (restart in restarts) { [17:26:00.783] name <- restart$name [17:26:00.783] if (is.null(name)) [17:26:00.783] next [17:26:00.783] if (!grepl(pattern, name)) [17:26:00.783] next [17:26:00.783] invokeRestart(restart) [17:26:00.783] muffled <- TRUE [17:26:00.783] break [17:26:00.783] } [17:26:00.783] } [17:26:00.783] } [17:26:00.783] invisible(muffled) [17:26:00.783] } [17:26:00.783] muffleCondition(cond) [17:26:00.783] }) [17:26:00.783] })) [17:26:00.783] future::FutureResult(value = ...future.value$value, [17:26:00.783] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:00.783] ...future.rng), globalenv = if (FALSE) [17:26:00.783] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:00.783] ...future.globalenv.names)) [17:26:00.783] else NULL, started = ...future.startTime, version = "1.8") [17:26:00.783] }, condition = base::local({ [17:26:00.783] c <- base::c [17:26:00.783] inherits <- base::inherits [17:26:00.783] invokeRestart <- base::invokeRestart [17:26:00.783] length <- base::length [17:26:00.783] list <- base::list [17:26:00.783] seq.int <- base::seq.int [17:26:00.783] signalCondition <- base::signalCondition [17:26:00.783] sys.calls <- base::sys.calls [17:26:00.783] `[[` <- base::`[[` [17:26:00.783] `+` <- base::`+` [17:26:00.783] `<<-` <- base::`<<-` [17:26:00.783] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:00.783] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:00.783] 3L)] [17:26:00.783] } [17:26:00.783] function(cond) { [17:26:00.783] is_error <- inherits(cond, "error") [17:26:00.783] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:00.783] NULL) [17:26:00.783] if (is_error) { [17:26:00.783] sessionInformation <- function() { [17:26:00.783] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:00.783] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:00.783] search = base::search(), system = base::Sys.info()) [17:26:00.783] } [17:26:00.783] ...future.conditions[[length(...future.conditions) + [17:26:00.783] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:00.783] cond$call), session = sessionInformation(), [17:26:00.783] timestamp = base::Sys.time(), signaled = 0L) [17:26:00.783] signalCondition(cond) [17:26:00.783] } [17:26:00.783] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:00.783] "immediateCondition"))) { [17:26:00.783] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:00.783] ...future.conditions[[length(...future.conditions) + [17:26:00.783] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:00.783] if (TRUE && !signal) { [17:26:00.783] muffleCondition <- function (cond, pattern = "^muffle") [17:26:00.783] { [17:26:00.783] inherits <- base::inherits [17:26:00.783] invokeRestart <- base::invokeRestart [17:26:00.783] is.null <- base::is.null [17:26:00.783] muffled <- FALSE [17:26:00.783] if (inherits(cond, "message")) { [17:26:00.783] muffled <- grepl(pattern, "muffleMessage") [17:26:00.783] if (muffled) [17:26:00.783] invokeRestart("muffleMessage") [17:26:00.783] } [17:26:00.783] else if (inherits(cond, "warning")) { [17:26:00.783] muffled <- grepl(pattern, "muffleWarning") [17:26:00.783] if (muffled) [17:26:00.783] invokeRestart("muffleWarning") [17:26:00.783] } [17:26:00.783] else if (inherits(cond, "condition")) { [17:26:00.783] if (!is.null(pattern)) { [17:26:00.783] computeRestarts <- base::computeRestarts [17:26:00.783] grepl <- base::grepl [17:26:00.783] restarts <- computeRestarts(cond) [17:26:00.783] for (restart in restarts) { [17:26:00.783] name <- restart$name [17:26:00.783] if (is.null(name)) [17:26:00.783] next [17:26:00.783] if (!grepl(pattern, name)) [17:26:00.783] next [17:26:00.783] invokeRestart(restart) [17:26:00.783] muffled <- TRUE [17:26:00.783] break [17:26:00.783] } [17:26:00.783] } [17:26:00.783] } [17:26:00.783] invisible(muffled) [17:26:00.783] } [17:26:00.783] muffleCondition(cond, pattern = "^muffle") [17:26:00.783] } [17:26:00.783] } [17:26:00.783] else { [17:26:00.783] if (TRUE) { [17:26:00.783] muffleCondition <- function (cond, pattern = "^muffle") [17:26:00.783] { [17:26:00.783] inherits <- base::inherits [17:26:00.783] invokeRestart <- base::invokeRestart [17:26:00.783] is.null <- base::is.null [17:26:00.783] muffled <- FALSE [17:26:00.783] if (inherits(cond, "message")) { [17:26:00.783] muffled <- grepl(pattern, "muffleMessage") [17:26:00.783] if (muffled) [17:26:00.783] invokeRestart("muffleMessage") [17:26:00.783] } [17:26:00.783] else if (inherits(cond, "warning")) { [17:26:00.783] muffled <- grepl(pattern, "muffleWarning") [17:26:00.783] if (muffled) [17:26:00.783] invokeRestart("muffleWarning") [17:26:00.783] } [17:26:00.783] else if (inherits(cond, "condition")) { [17:26:00.783] if (!is.null(pattern)) { [17:26:00.783] computeRestarts <- base::computeRestarts [17:26:00.783] grepl <- base::grepl [17:26:00.783] restarts <- computeRestarts(cond) [17:26:00.783] for (restart in restarts) { [17:26:00.783] name <- restart$name [17:26:00.783] if (is.null(name)) [17:26:00.783] next [17:26:00.783] if (!grepl(pattern, name)) [17:26:00.783] next [17:26:00.783] invokeRestart(restart) [17:26:00.783] muffled <- TRUE [17:26:00.783] break [17:26:00.783] } [17:26:00.783] } [17:26:00.783] } [17:26:00.783] invisible(muffled) [17:26:00.783] } [17:26:00.783] muffleCondition(cond, pattern = "^muffle") [17:26:00.783] } [17:26:00.783] } [17:26:00.783] } [17:26:00.783] })) [17:26:00.783] }, error = function(ex) { [17:26:00.783] base::structure(base::list(value = NULL, visible = NULL, [17:26:00.783] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:00.783] ...future.rng), started = ...future.startTime, [17:26:00.783] finished = Sys.time(), session_uuid = NA_character_, [17:26:00.783] version = "1.8"), class = "FutureResult") [17:26:00.783] }, finally = { [17:26:00.783] if (!identical(...future.workdir, getwd())) [17:26:00.783] setwd(...future.workdir) [17:26:00.783] { [17:26:00.783] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:00.783] ...future.oldOptions$nwarnings <- NULL [17:26:00.783] } [17:26:00.783] base::options(...future.oldOptions) [17:26:00.783] if (.Platform$OS.type == "windows") { [17:26:00.783] old_names <- names(...future.oldEnvVars) [17:26:00.783] envs <- base::Sys.getenv() [17:26:00.783] names <- names(envs) [17:26:00.783] common <- intersect(names, old_names) [17:26:00.783] added <- setdiff(names, old_names) [17:26:00.783] removed <- setdiff(old_names, names) [17:26:00.783] changed <- common[...future.oldEnvVars[common] != [17:26:00.783] envs[common]] [17:26:00.783] NAMES <- toupper(changed) [17:26:00.783] args <- list() [17:26:00.783] for (kk in seq_along(NAMES)) { [17:26:00.783] name <- changed[[kk]] [17:26:00.783] NAME <- NAMES[[kk]] [17:26:00.783] if (name != NAME && is.element(NAME, old_names)) [17:26:00.783] next [17:26:00.783] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:00.783] } [17:26:00.783] NAMES <- toupper(added) [17:26:00.783] for (kk in seq_along(NAMES)) { [17:26:00.783] name <- added[[kk]] [17:26:00.783] NAME <- NAMES[[kk]] [17:26:00.783] if (name != NAME && is.element(NAME, old_names)) [17:26:00.783] next [17:26:00.783] args[[name]] <- "" [17:26:00.783] } [17:26:00.783] NAMES <- toupper(removed) [17:26:00.783] for (kk in seq_along(NAMES)) { [17:26:00.783] name <- removed[[kk]] [17:26:00.783] NAME <- NAMES[[kk]] [17:26:00.783] if (name != NAME && is.element(NAME, old_names)) [17:26:00.783] next [17:26:00.783] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:00.783] } [17:26:00.783] if (length(args) > 0) [17:26:00.783] base::do.call(base::Sys.setenv, args = args) [17:26:00.783] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:00.783] } [17:26:00.783] else { [17:26:00.783] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:00.783] } [17:26:00.783] { [17:26:00.783] if (base::length(...future.futureOptionsAdded) > [17:26:00.783] 0L) { [17:26:00.783] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:00.783] base::names(opts) <- ...future.futureOptionsAdded [17:26:00.783] base::options(opts) [17:26:00.783] } [17:26:00.783] { [17:26:00.783] { [17:26:00.783] base::options(mc.cores = ...future.mc.cores.old) [17:26:00.783] NULL [17:26:00.783] } [17:26:00.783] options(future.plan = NULL) [17:26:00.783] if (is.na(NA_character_)) [17:26:00.783] Sys.unsetenv("R_FUTURE_PLAN") [17:26:00.783] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:00.783] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:00.783] .init = FALSE) [17:26:00.783] } [17:26:00.783] } [17:26:00.783] } [17:26:00.783] }) [17:26:00.783] if (TRUE) { [17:26:00.783] base::sink(type = "output", split = FALSE) [17:26:00.783] if (TRUE) { [17:26:00.783] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:00.783] } [17:26:00.783] else { [17:26:00.783] ...future.result["stdout"] <- base::list(NULL) [17:26:00.783] } [17:26:00.783] base::close(...future.stdout) [17:26:00.783] ...future.stdout <- NULL [17:26:00.783] } [17:26:00.783] ...future.result$conditions <- ...future.conditions [17:26:00.783] ...future.result$finished <- base::Sys.time() [17:26:00.783] ...future.result [17:26:00.783] } [17:26:00.866] MultisessionFuture started [17:26:00.866] result() for ClusterFuture ... [17:26:00.867] receiveMessageFromWorker() for ClusterFuture ... [17:26:00.867] - Validating connection of MultisessionFuture [17:26:00.919] - received message: FutureResult [17:26:00.919] - Received FutureResult [17:26:00.923] - Erased future from FutureRegistry [17:26:00.923] result() for ClusterFuture ... [17:26:00.923] - result already collected: FutureResult [17:26:00.923] result() for ClusterFuture ... done [17:26:00.923] receiveMessageFromWorker() for ClusterFuture ... done [17:26:00.924] result() for ClusterFuture ... done [17:26:00.924] result() for ClusterFuture ... [17:26:00.924] - result already collected: FutureResult [17:26:00.924] result() for ClusterFuture ... done [17:26:00.924] plan(): plan_init() of 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:26:00.925] plan(): nbrOfWorkers() = 2 [17:26:00.925] getGlobalsAndPackages() ... [17:26:00.925] Searching for globals... [17:26:00.927] - globals found: [3] '{', 'Sys.sleep', 'stop' [17:26:00.928] Searching for globals ... DONE [17:26:00.928] Resolving globals: FALSE [17:26:00.928] [17:26:00.928] [17:26:00.929] getGlobalsAndPackages() ... DONE [17:26:00.929] run() for 'Future' ... [17:26:00.929] - state: 'created' [17:26:00.930] - Future backend: 'FutureStrategy', 'tweaked', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:26:00.941] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:26:00.942] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:26:00.942] - Field: 'node' [17:26:00.942] - Field: 'label' [17:26:00.942] - Field: 'local' [17:26:00.943] - Field: 'owner' [17:26:00.943] - Field: 'envir' [17:26:00.943] - Field: 'workers' [17:26:00.943] - Field: 'packages' [17:26:00.944] - Field: 'gc' [17:26:00.944] - Field: 'conditions' [17:26:00.944] - Field: 'persistent' [17:26:00.945] - Field: 'expr' [17:26:00.945] - Field: 'uuid' [17:26:00.945] - Field: 'seed' [17:26:00.946] - Field: 'version' [17:26:00.946] - Field: 'result' [17:26:00.946] - Field: 'asynchronous' [17:26:00.946] - Field: 'calls' [17:26:00.946] - Field: 'globals' [17:26:00.947] - Field: 'stdout' [17:26:00.947] - Field: 'earlySignal' [17:26:00.947] - Field: 'lazy' [17:26:00.947] - Field: 'state' [17:26:00.947] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:26:00.948] - Launch lazy future ... [17:26:00.948] Packages needed by the future expression (n = 0): [17:26:00.948] Packages needed by future strategies (n = 0): [17:26:00.949] { [17:26:00.949] { [17:26:00.949] { [17:26:00.949] ...future.startTime <- base::Sys.time() [17:26:00.949] { [17:26:00.949] { [17:26:00.949] { [17:26:00.949] { [17:26:00.949] base::local({ [17:26:00.949] has_future <- base::requireNamespace("future", [17:26:00.949] quietly = TRUE) [17:26:00.949] if (has_future) { [17:26:00.949] ns <- base::getNamespace("future") [17:26:00.949] version <- ns[[".package"]][["version"]] [17:26:00.949] if (is.null(version)) [17:26:00.949] version <- utils::packageVersion("future") [17:26:00.949] } [17:26:00.949] else { [17:26:00.949] version <- NULL [17:26:00.949] } [17:26:00.949] if (!has_future || version < "1.8.0") { [17:26:00.949] info <- base::c(r_version = base::gsub("R version ", [17:26:00.949] "", base::R.version$version.string), [17:26:00.949] platform = base::sprintf("%s (%s-bit)", [17:26:00.949] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:00.949] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:00.949] "release", "version")], collapse = " "), [17:26:00.949] hostname = base::Sys.info()[["nodename"]]) [17:26:00.949] info <- base::sprintf("%s: %s", base::names(info), [17:26:00.949] info) [17:26:00.949] info <- base::paste(info, collapse = "; ") [17:26:00.949] if (!has_future) { [17:26:00.949] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:00.949] info) [17:26:00.949] } [17:26:00.949] else { [17:26:00.949] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:00.949] info, version) [17:26:00.949] } [17:26:00.949] base::stop(msg) [17:26:00.949] } [17:26:00.949] }) [17:26:00.949] } [17:26:00.949] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:00.949] base::options(mc.cores = 1L) [17:26:00.949] } [17:26:00.949] ...future.strategy.old <- future::plan("list") [17:26:00.949] options(future.plan = NULL) [17:26:00.949] Sys.unsetenv("R_FUTURE_PLAN") [17:26:00.949] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:00.949] } [17:26:00.949] ...future.workdir <- getwd() [17:26:00.949] } [17:26:00.949] ...future.oldOptions <- base::as.list(base::.Options) [17:26:00.949] ...future.oldEnvVars <- base::Sys.getenv() [17:26:00.949] } [17:26:00.949] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:00.949] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:00.949] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:00.949] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:00.949] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:00.949] future.stdout.windows.reencode = NULL, width = 80L) [17:26:00.949] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:00.949] base::names(...future.oldOptions)) [17:26:00.949] } [17:26:00.949] if (FALSE) { [17:26:00.949] } [17:26:00.949] else { [17:26:00.949] if (TRUE) { [17:26:00.949] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:00.949] open = "w") [17:26:00.949] } [17:26:00.949] else { [17:26:00.949] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:00.949] windows = "NUL", "/dev/null"), open = "w") [17:26:00.949] } [17:26:00.949] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:00.949] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:00.949] base::sink(type = "output", split = FALSE) [17:26:00.949] base::close(...future.stdout) [17:26:00.949] }, add = TRUE) [17:26:00.949] } [17:26:00.949] ...future.frame <- base::sys.nframe() [17:26:00.949] ...future.conditions <- base::list() [17:26:00.949] ...future.rng <- base::globalenv()$.Random.seed [17:26:00.949] if (FALSE) { [17:26:00.949] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:00.949] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:00.949] } [17:26:00.949] ...future.result <- base::tryCatch({ [17:26:00.949] base::withCallingHandlers({ [17:26:00.949] ...future.value <- base::withVisible(base::local({ [17:26:00.949] ...future.makeSendCondition <- base::local({ [17:26:00.949] sendCondition <- NULL [17:26:00.949] function(frame = 1L) { [17:26:00.949] if (is.function(sendCondition)) [17:26:00.949] return(sendCondition) [17:26:00.949] ns <- getNamespace("parallel") [17:26:00.949] if (exists("sendData", mode = "function", [17:26:00.949] envir = ns)) { [17:26:00.949] parallel_sendData <- get("sendData", mode = "function", [17:26:00.949] envir = ns) [17:26:00.949] envir <- sys.frame(frame) [17:26:00.949] master <- NULL [17:26:00.949] while (!identical(envir, .GlobalEnv) && [17:26:00.949] !identical(envir, emptyenv())) { [17:26:00.949] if (exists("master", mode = "list", envir = envir, [17:26:00.949] inherits = FALSE)) { [17:26:00.949] master <- get("master", mode = "list", [17:26:00.949] envir = envir, inherits = FALSE) [17:26:00.949] if (inherits(master, c("SOCKnode", [17:26:00.949] "SOCK0node"))) { [17:26:00.949] sendCondition <<- function(cond) { [17:26:00.949] data <- list(type = "VALUE", value = cond, [17:26:00.949] success = TRUE) [17:26:00.949] parallel_sendData(master, data) [17:26:00.949] } [17:26:00.949] return(sendCondition) [17:26:00.949] } [17:26:00.949] } [17:26:00.949] frame <- frame + 1L [17:26:00.949] envir <- sys.frame(frame) [17:26:00.949] } [17:26:00.949] } [17:26:00.949] sendCondition <<- function(cond) NULL [17:26:00.949] } [17:26:00.949] }) [17:26:00.949] withCallingHandlers({ [17:26:00.949] { [17:26:00.949] Sys.sleep(3) [17:26:00.949] 42L [17:26:00.949] stop("Woops") [17:26:00.949] } [17:26:00.949] }, immediateCondition = function(cond) { [17:26:00.949] sendCondition <- ...future.makeSendCondition() [17:26:00.949] sendCondition(cond) [17:26:00.949] muffleCondition <- function (cond, pattern = "^muffle") [17:26:00.949] { [17:26:00.949] inherits <- base::inherits [17:26:00.949] invokeRestart <- base::invokeRestart [17:26:00.949] is.null <- base::is.null [17:26:00.949] muffled <- FALSE [17:26:00.949] if (inherits(cond, "message")) { [17:26:00.949] muffled <- grepl(pattern, "muffleMessage") [17:26:00.949] if (muffled) [17:26:00.949] invokeRestart("muffleMessage") [17:26:00.949] } [17:26:00.949] else if (inherits(cond, "warning")) { [17:26:00.949] muffled <- grepl(pattern, "muffleWarning") [17:26:00.949] if (muffled) [17:26:00.949] invokeRestart("muffleWarning") [17:26:00.949] } [17:26:00.949] else if (inherits(cond, "condition")) { [17:26:00.949] if (!is.null(pattern)) { [17:26:00.949] computeRestarts <- base::computeRestarts [17:26:00.949] grepl <- base::grepl [17:26:00.949] restarts <- computeRestarts(cond) [17:26:00.949] for (restart in restarts) { [17:26:00.949] name <- restart$name [17:26:00.949] if (is.null(name)) [17:26:00.949] next [17:26:00.949] if (!grepl(pattern, name)) [17:26:00.949] next [17:26:00.949] invokeRestart(restart) [17:26:00.949] muffled <- TRUE [17:26:00.949] break [17:26:00.949] } [17:26:00.949] } [17:26:00.949] } [17:26:00.949] invisible(muffled) [17:26:00.949] } [17:26:00.949] muffleCondition(cond) [17:26:00.949] }) [17:26:00.949] })) [17:26:00.949] future::FutureResult(value = ...future.value$value, [17:26:00.949] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:00.949] ...future.rng), globalenv = if (FALSE) [17:26:00.949] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:00.949] ...future.globalenv.names)) [17:26:00.949] else NULL, started = ...future.startTime, version = "1.8") [17:26:00.949] }, condition = base::local({ [17:26:00.949] c <- base::c [17:26:00.949] inherits <- base::inherits [17:26:00.949] invokeRestart <- base::invokeRestart [17:26:00.949] length <- base::length [17:26:00.949] list <- base::list [17:26:00.949] seq.int <- base::seq.int [17:26:00.949] signalCondition <- base::signalCondition [17:26:00.949] sys.calls <- base::sys.calls [17:26:00.949] `[[` <- base::`[[` [17:26:00.949] `+` <- base::`+` [17:26:00.949] `<<-` <- base::`<<-` [17:26:00.949] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:00.949] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:00.949] 3L)] [17:26:00.949] } [17:26:00.949] function(cond) { [17:26:00.949] is_error <- inherits(cond, "error") [17:26:00.949] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:00.949] NULL) [17:26:00.949] if (is_error) { [17:26:00.949] sessionInformation <- function() { [17:26:00.949] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:00.949] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:00.949] search = base::search(), system = base::Sys.info()) [17:26:00.949] } [17:26:00.949] ...future.conditions[[length(...future.conditions) + [17:26:00.949] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:00.949] cond$call), session = sessionInformation(), [17:26:00.949] timestamp = base::Sys.time(), signaled = 0L) [17:26:00.949] signalCondition(cond) [17:26:00.949] } [17:26:00.949] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:00.949] "immediateCondition"))) { [17:26:00.949] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:00.949] ...future.conditions[[length(...future.conditions) + [17:26:00.949] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:00.949] if (TRUE && !signal) { [17:26:00.949] muffleCondition <- function (cond, pattern = "^muffle") [17:26:00.949] { [17:26:00.949] inherits <- base::inherits [17:26:00.949] invokeRestart <- base::invokeRestart [17:26:00.949] is.null <- base::is.null [17:26:00.949] muffled <- FALSE [17:26:00.949] if (inherits(cond, "message")) { [17:26:00.949] muffled <- grepl(pattern, "muffleMessage") [17:26:00.949] if (muffled) [17:26:00.949] invokeRestart("muffleMessage") [17:26:00.949] } [17:26:00.949] else if (inherits(cond, "warning")) { [17:26:00.949] muffled <- grepl(pattern, "muffleWarning") [17:26:00.949] if (muffled) [17:26:00.949] invokeRestart("muffleWarning") [17:26:00.949] } [17:26:00.949] else if (inherits(cond, "condition")) { [17:26:00.949] if (!is.null(pattern)) { [17:26:00.949] computeRestarts <- base::computeRestarts [17:26:00.949] grepl <- base::grepl [17:26:00.949] restarts <- computeRestarts(cond) [17:26:00.949] for (restart in restarts) { [17:26:00.949] name <- restart$name [17:26:00.949] if (is.null(name)) [17:26:00.949] next [17:26:00.949] if (!grepl(pattern, name)) [17:26:00.949] next [17:26:00.949] invokeRestart(restart) [17:26:00.949] muffled <- TRUE [17:26:00.949] break [17:26:00.949] } [17:26:00.949] } [17:26:00.949] } [17:26:00.949] invisible(muffled) [17:26:00.949] } [17:26:00.949] muffleCondition(cond, pattern = "^muffle") [17:26:00.949] } [17:26:00.949] } [17:26:00.949] else { [17:26:00.949] if (TRUE) { [17:26:00.949] muffleCondition <- function (cond, pattern = "^muffle") [17:26:00.949] { [17:26:00.949] inherits <- base::inherits [17:26:00.949] invokeRestart <- base::invokeRestart [17:26:00.949] is.null <- base::is.null [17:26:00.949] muffled <- FALSE [17:26:00.949] if (inherits(cond, "message")) { [17:26:00.949] muffled <- grepl(pattern, "muffleMessage") [17:26:00.949] if (muffled) [17:26:00.949] invokeRestart("muffleMessage") [17:26:00.949] } [17:26:00.949] else if (inherits(cond, "warning")) { [17:26:00.949] muffled <- grepl(pattern, "muffleWarning") [17:26:00.949] if (muffled) [17:26:00.949] invokeRestart("muffleWarning") [17:26:00.949] } [17:26:00.949] else if (inherits(cond, "condition")) { [17:26:00.949] if (!is.null(pattern)) { [17:26:00.949] computeRestarts <- base::computeRestarts [17:26:00.949] grepl <- base::grepl [17:26:00.949] restarts <- computeRestarts(cond) [17:26:00.949] for (restart in restarts) { [17:26:00.949] name <- restart$name [17:26:00.949] if (is.null(name)) [17:26:00.949] next [17:26:00.949] if (!grepl(pattern, name)) [17:26:00.949] next [17:26:00.949] invokeRestart(restart) [17:26:00.949] muffled <- TRUE [17:26:00.949] break [17:26:00.949] } [17:26:00.949] } [17:26:00.949] } [17:26:00.949] invisible(muffled) [17:26:00.949] } [17:26:00.949] muffleCondition(cond, pattern = "^muffle") [17:26:00.949] } [17:26:00.949] } [17:26:00.949] } [17:26:00.949] })) [17:26:00.949] }, error = function(ex) { [17:26:00.949] base::structure(base::list(value = NULL, visible = NULL, [17:26:00.949] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:00.949] ...future.rng), started = ...future.startTime, [17:26:00.949] finished = Sys.time(), session_uuid = NA_character_, [17:26:00.949] version = "1.8"), class = "FutureResult") [17:26:00.949] }, finally = { [17:26:00.949] if (!identical(...future.workdir, getwd())) [17:26:00.949] setwd(...future.workdir) [17:26:00.949] { [17:26:00.949] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:00.949] ...future.oldOptions$nwarnings <- NULL [17:26:00.949] } [17:26:00.949] base::options(...future.oldOptions) [17:26:00.949] if (.Platform$OS.type == "windows") { [17:26:00.949] old_names <- names(...future.oldEnvVars) [17:26:00.949] envs <- base::Sys.getenv() [17:26:00.949] names <- names(envs) [17:26:00.949] common <- intersect(names, old_names) [17:26:00.949] added <- setdiff(names, old_names) [17:26:00.949] removed <- setdiff(old_names, names) [17:26:00.949] changed <- common[...future.oldEnvVars[common] != [17:26:00.949] envs[common]] [17:26:00.949] NAMES <- toupper(changed) [17:26:00.949] args <- list() [17:26:00.949] for (kk in seq_along(NAMES)) { [17:26:00.949] name <- changed[[kk]] [17:26:00.949] NAME <- NAMES[[kk]] [17:26:00.949] if (name != NAME && is.element(NAME, old_names)) [17:26:00.949] next [17:26:00.949] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:00.949] } [17:26:00.949] NAMES <- toupper(added) [17:26:00.949] for (kk in seq_along(NAMES)) { [17:26:00.949] name <- added[[kk]] [17:26:00.949] NAME <- NAMES[[kk]] [17:26:00.949] if (name != NAME && is.element(NAME, old_names)) [17:26:00.949] next [17:26:00.949] args[[name]] <- "" [17:26:00.949] } [17:26:00.949] NAMES <- toupper(removed) [17:26:00.949] for (kk in seq_along(NAMES)) { [17:26:00.949] name <- removed[[kk]] [17:26:00.949] NAME <- NAMES[[kk]] [17:26:00.949] if (name != NAME && is.element(NAME, old_names)) [17:26:00.949] next [17:26:00.949] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:00.949] } [17:26:00.949] if (length(args) > 0) [17:26:00.949] base::do.call(base::Sys.setenv, args = args) [17:26:00.949] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:00.949] } [17:26:00.949] else { [17:26:00.949] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:00.949] } [17:26:00.949] { [17:26:00.949] if (base::length(...future.futureOptionsAdded) > [17:26:00.949] 0L) { [17:26:00.949] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:00.949] base::names(opts) <- ...future.futureOptionsAdded [17:26:00.949] base::options(opts) [17:26:00.949] } [17:26:00.949] { [17:26:00.949] { [17:26:00.949] base::options(mc.cores = ...future.mc.cores.old) [17:26:00.949] NULL [17:26:00.949] } [17:26:00.949] options(future.plan = NULL) [17:26:00.949] if (is.na(NA_character_)) [17:26:00.949] Sys.unsetenv("R_FUTURE_PLAN") [17:26:00.949] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:00.949] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:00.949] .init = FALSE) [17:26:00.949] } [17:26:00.949] } [17:26:00.949] } [17:26:00.949] }) [17:26:00.949] if (TRUE) { [17:26:00.949] base::sink(type = "output", split = FALSE) [17:26:00.949] if (TRUE) { [17:26:00.949] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:00.949] } [17:26:00.949] else { [17:26:00.949] ...future.result["stdout"] <- base::list(NULL) [17:26:00.949] } [17:26:00.949] base::close(...future.stdout) [17:26:00.949] ...future.stdout <- NULL [17:26:00.949] } [17:26:00.949] ...future.result$conditions <- ...future.conditions [17:26:00.949] ...future.result$finished <- base::Sys.time() [17:26:00.949] ...future.result [17:26:00.949] } [17:26:00.955] MultisessionFuture started [17:26:00.955] - Launch lazy future ... done [17:26:00.955] run() for 'MultisessionFuture' ... done [17:26:04.022] receiveMessageFromWorker() for ClusterFuture ... [17:26:04.023] - Validating connection of MultisessionFuture [17:26:04.023] - received message: FutureResult [17:26:04.024] - Received FutureResult [17:26:04.024] - Erased future from FutureRegistry [17:26:04.024] result() for ClusterFuture ... [17:26:04.024] - result already collected: FutureResult [17:26:04.024] result() for ClusterFuture ... done [17:26:04.025] signalConditions() ... [17:26:04.025] - include = 'immediateCondition' [17:26:04.025] - exclude = [17:26:04.025] - resignal = FALSE [17:26:04.025] - Number of conditions: 1 [17:26:04.025] signalConditions() ... done [17:26:04.026] receiveMessageFromWorker() for ClusterFuture ... done [17:26:04.026] 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: 8e806ef9-6326-aa7a-4d4b-306304deebef Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' > > message("*** backtrace( ) - exceptions ... DONE") *** backtrace( ) - exceptions ... DONE > > > message("*** backtrace( ) ... DONE") *** backtrace( ) ... DONE > > source("incl/end.R") [17:26:04.028] plan(): Setting new future strategy stack: [17:26:04.028] List of future strategies: [17:26:04.028] 1. FutureStrategy: [17:26:04.028] - args: function (..., envir = parent.frame(), workers = "") [17:26:04.028] - tweaked: FALSE [17:26:04.028] - call: future::plan(oplan) [17:26:04.030] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=204] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', 'RTOOLS44_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS44_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 0.64 0.04 4.46