R Under development (unstable) (2024-03-25 r86192 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [17:26:32.312] plan(): Setting new future strategy stack: [17:26:32.313] List of future strategies: [17:26:32.313] 1. sequential: [17:26:32.313] - args: function (..., envir = parent.frame(), workers = "") [17:26:32.313] - tweaked: FALSE [17:26:32.313] - call: future::plan("sequential") [17:26:32.328] plan(): nbrOfWorkers() = 1 > > message("*** future() ...") *** future() ... > > f <- future({ + 42L + }, lazy = TRUE) [17:26:32.335] getGlobalsAndPackages() ... [17:26:32.335] Searching for globals... [17:26:32.339] - globals found: [1] '{' [17:26:32.339] Searching for globals ... DONE [17:26:32.339] Resolving globals: FALSE [17:26:32.340] [17:26:32.340] [17:26:32.340] getGlobalsAndPackages() ... DONE > > print(resolved(f)) [17:26:32.341] resolved() for 'Future' ... [17:26:32.341] - state: 'created' [17:26:32.341] - run: TRUE [17:26:32.341] - run() ... [17:26:32.342] run() for 'Future' ... [17:26:32.342] - state: 'created' [17:26:32.342] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:32.343] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:32.344] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:32.344] - Field: 'label' [17:26:32.344] - Field: 'local' [17:26:32.345] - Field: 'owner' [17:26:32.345] - Field: 'envir' [17:26:32.345] - Field: 'packages' [17:26:32.345] - Field: 'gc' [17:26:32.346] - Field: 'conditions' [17:26:32.346] - Field: 'expr' [17:26:32.346] - Field: 'uuid' [17:26:32.346] - Field: 'seed' [17:26:32.346] - Field: 'version' [17:26:32.346] - Field: 'result' [17:26:32.347] - Field: 'asynchronous' [17:26:32.347] - Field: 'calls' [17:26:32.347] - Field: 'globals' [17:26:32.347] - Field: 'stdout' [17:26:32.347] - Field: 'earlySignal' [17:26:32.347] - Field: 'lazy' [17:26:32.348] - Field: 'state' [17:26:32.348] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:32.348] - Launch lazy future ... [17:26:32.349] Packages needed by the future expression (n = 0): [17:26:32.349] Packages needed by future strategies (n = 0): [17:26:32.350] { [17:26:32.350] { [17:26:32.350] { [17:26:32.350] ...future.startTime <- base::Sys.time() [17:26:32.350] { [17:26:32.350] { [17:26:32.350] { [17:26:32.350] base::local({ [17:26:32.350] has_future <- base::requireNamespace("future", [17:26:32.350] quietly = TRUE) [17:26:32.350] if (has_future) { [17:26:32.350] ns <- base::getNamespace("future") [17:26:32.350] version <- ns[[".package"]][["version"]] [17:26:32.350] if (is.null(version)) [17:26:32.350] version <- utils::packageVersion("future") [17:26:32.350] } [17:26:32.350] else { [17:26:32.350] version <- NULL [17:26:32.350] } [17:26:32.350] if (!has_future || version < "1.8.0") { [17:26:32.350] info <- base::c(r_version = base::gsub("R version ", [17:26:32.350] "", base::R.version$version.string), [17:26:32.350] platform = base::sprintf("%s (%s-bit)", [17:26:32.350] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:32.350] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:32.350] "release", "version")], collapse = " "), [17:26:32.350] hostname = base::Sys.info()[["nodename"]]) [17:26:32.350] info <- base::sprintf("%s: %s", base::names(info), [17:26:32.350] info) [17:26:32.350] info <- base::paste(info, collapse = "; ") [17:26:32.350] if (!has_future) { [17:26:32.350] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:32.350] info) [17:26:32.350] } [17:26:32.350] else { [17:26:32.350] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:32.350] info, version) [17:26:32.350] } [17:26:32.350] base::stop(msg) [17:26:32.350] } [17:26:32.350] }) [17:26:32.350] } [17:26:32.350] ...future.strategy.old <- future::plan("list") [17:26:32.350] options(future.plan = NULL) [17:26:32.350] Sys.unsetenv("R_FUTURE_PLAN") [17:26:32.350] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:32.350] } [17:26:32.350] ...future.workdir <- getwd() [17:26:32.350] } [17:26:32.350] ...future.oldOptions <- base::as.list(base::.Options) [17:26:32.350] ...future.oldEnvVars <- base::Sys.getenv() [17:26:32.350] } [17:26:32.350] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:32.350] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:32.350] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:32.350] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:32.350] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:32.350] future.stdout.windows.reencode = NULL, width = 80L) [17:26:32.350] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:32.350] base::names(...future.oldOptions)) [17:26:32.350] } [17:26:32.350] if (FALSE) { [17:26:32.350] } [17:26:32.350] else { [17:26:32.350] if (TRUE) { [17:26:32.350] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:32.350] open = "w") [17:26:32.350] } [17:26:32.350] else { [17:26:32.350] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:32.350] windows = "NUL", "/dev/null"), open = "w") [17:26:32.350] } [17:26:32.350] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:32.350] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:32.350] base::sink(type = "output", split = FALSE) [17:26:32.350] base::close(...future.stdout) [17:26:32.350] }, add = TRUE) [17:26:32.350] } [17:26:32.350] ...future.frame <- base::sys.nframe() [17:26:32.350] ...future.conditions <- base::list() [17:26:32.350] ...future.rng <- base::globalenv()$.Random.seed [17:26:32.350] if (FALSE) { [17:26:32.350] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:32.350] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:32.350] } [17:26:32.350] ...future.result <- base::tryCatch({ [17:26:32.350] base::withCallingHandlers({ [17:26:32.350] ...future.value <- base::withVisible(base::local({ [17:26:32.350] 42L [17:26:32.350] })) [17:26:32.350] future::FutureResult(value = ...future.value$value, [17:26:32.350] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:32.350] ...future.rng), globalenv = if (FALSE) [17:26:32.350] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:32.350] ...future.globalenv.names)) [17:26:32.350] else NULL, started = ...future.startTime, version = "1.8") [17:26:32.350] }, condition = base::local({ [17:26:32.350] c <- base::c [17:26:32.350] inherits <- base::inherits [17:26:32.350] invokeRestart <- base::invokeRestart [17:26:32.350] length <- base::length [17:26:32.350] list <- base::list [17:26:32.350] seq.int <- base::seq.int [17:26:32.350] signalCondition <- base::signalCondition [17:26:32.350] sys.calls <- base::sys.calls [17:26:32.350] `[[` <- base::`[[` [17:26:32.350] `+` <- base::`+` [17:26:32.350] `<<-` <- base::`<<-` [17:26:32.350] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:32.350] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:32.350] 3L)] [17:26:32.350] } [17:26:32.350] function(cond) { [17:26:32.350] is_error <- inherits(cond, "error") [17:26:32.350] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:32.350] NULL) [17:26:32.350] if (is_error) { [17:26:32.350] sessionInformation <- function() { [17:26:32.350] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:32.350] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:32.350] search = base::search(), system = base::Sys.info()) [17:26:32.350] } [17:26:32.350] ...future.conditions[[length(...future.conditions) + [17:26:32.350] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:32.350] cond$call), session = sessionInformation(), [17:26:32.350] timestamp = base::Sys.time(), signaled = 0L) [17:26:32.350] signalCondition(cond) [17:26:32.350] } [17:26:32.350] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:32.350] "immediateCondition"))) { [17:26:32.350] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:32.350] ...future.conditions[[length(...future.conditions) + [17:26:32.350] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:32.350] if (TRUE && !signal) { [17:26:32.350] muffleCondition <- function (cond, pattern = "^muffle") [17:26:32.350] { [17:26:32.350] inherits <- base::inherits [17:26:32.350] invokeRestart <- base::invokeRestart [17:26:32.350] is.null <- base::is.null [17:26:32.350] muffled <- FALSE [17:26:32.350] if (inherits(cond, "message")) { [17:26:32.350] muffled <- grepl(pattern, "muffleMessage") [17:26:32.350] if (muffled) [17:26:32.350] invokeRestart("muffleMessage") [17:26:32.350] } [17:26:32.350] else if (inherits(cond, "warning")) { [17:26:32.350] muffled <- grepl(pattern, "muffleWarning") [17:26:32.350] if (muffled) [17:26:32.350] invokeRestart("muffleWarning") [17:26:32.350] } [17:26:32.350] else if (inherits(cond, "condition")) { [17:26:32.350] if (!is.null(pattern)) { [17:26:32.350] computeRestarts <- base::computeRestarts [17:26:32.350] grepl <- base::grepl [17:26:32.350] restarts <- computeRestarts(cond) [17:26:32.350] for (restart in restarts) { [17:26:32.350] name <- restart$name [17:26:32.350] if (is.null(name)) [17:26:32.350] next [17:26:32.350] if (!grepl(pattern, name)) [17:26:32.350] next [17:26:32.350] invokeRestart(restart) [17:26:32.350] muffled <- TRUE [17:26:32.350] break [17:26:32.350] } [17:26:32.350] } [17:26:32.350] } [17:26:32.350] invisible(muffled) [17:26:32.350] } [17:26:32.350] muffleCondition(cond, pattern = "^muffle") [17:26:32.350] } [17:26:32.350] } [17:26:32.350] else { [17:26:32.350] if (TRUE) { [17:26:32.350] muffleCondition <- function (cond, pattern = "^muffle") [17:26:32.350] { [17:26:32.350] inherits <- base::inherits [17:26:32.350] invokeRestart <- base::invokeRestart [17:26:32.350] is.null <- base::is.null [17:26:32.350] muffled <- FALSE [17:26:32.350] if (inherits(cond, "message")) { [17:26:32.350] muffled <- grepl(pattern, "muffleMessage") [17:26:32.350] if (muffled) [17:26:32.350] invokeRestart("muffleMessage") [17:26:32.350] } [17:26:32.350] else if (inherits(cond, "warning")) { [17:26:32.350] muffled <- grepl(pattern, "muffleWarning") [17:26:32.350] if (muffled) [17:26:32.350] invokeRestart("muffleWarning") [17:26:32.350] } [17:26:32.350] else if (inherits(cond, "condition")) { [17:26:32.350] if (!is.null(pattern)) { [17:26:32.350] computeRestarts <- base::computeRestarts [17:26:32.350] grepl <- base::grepl [17:26:32.350] restarts <- computeRestarts(cond) [17:26:32.350] for (restart in restarts) { [17:26:32.350] name <- restart$name [17:26:32.350] if (is.null(name)) [17:26:32.350] next [17:26:32.350] if (!grepl(pattern, name)) [17:26:32.350] next [17:26:32.350] invokeRestart(restart) [17:26:32.350] muffled <- TRUE [17:26:32.350] break [17:26:32.350] } [17:26:32.350] } [17:26:32.350] } [17:26:32.350] invisible(muffled) [17:26:32.350] } [17:26:32.350] muffleCondition(cond, pattern = "^muffle") [17:26:32.350] } [17:26:32.350] } [17:26:32.350] } [17:26:32.350] })) [17:26:32.350] }, error = function(ex) { [17:26:32.350] base::structure(base::list(value = NULL, visible = NULL, [17:26:32.350] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:32.350] ...future.rng), started = ...future.startTime, [17:26:32.350] finished = Sys.time(), session_uuid = NA_character_, [17:26:32.350] version = "1.8"), class = "FutureResult") [17:26:32.350] }, finally = { [17:26:32.350] if (!identical(...future.workdir, getwd())) [17:26:32.350] setwd(...future.workdir) [17:26:32.350] { [17:26:32.350] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:32.350] ...future.oldOptions$nwarnings <- NULL [17:26:32.350] } [17:26:32.350] base::options(...future.oldOptions) [17:26:32.350] if (.Platform$OS.type == "windows") { [17:26:32.350] old_names <- names(...future.oldEnvVars) [17:26:32.350] envs <- base::Sys.getenv() [17:26:32.350] names <- names(envs) [17:26:32.350] common <- intersect(names, old_names) [17:26:32.350] added <- setdiff(names, old_names) [17:26:32.350] removed <- setdiff(old_names, names) [17:26:32.350] changed <- common[...future.oldEnvVars[common] != [17:26:32.350] envs[common]] [17:26:32.350] NAMES <- toupper(changed) [17:26:32.350] args <- list() [17:26:32.350] for (kk in seq_along(NAMES)) { [17:26:32.350] name <- changed[[kk]] [17:26:32.350] NAME <- NAMES[[kk]] [17:26:32.350] if (name != NAME && is.element(NAME, old_names)) [17:26:32.350] next [17:26:32.350] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:32.350] } [17:26:32.350] NAMES <- toupper(added) [17:26:32.350] for (kk in seq_along(NAMES)) { [17:26:32.350] name <- added[[kk]] [17:26:32.350] NAME <- NAMES[[kk]] [17:26:32.350] if (name != NAME && is.element(NAME, old_names)) [17:26:32.350] next [17:26:32.350] args[[name]] <- "" [17:26:32.350] } [17:26:32.350] NAMES <- toupper(removed) [17:26:32.350] for (kk in seq_along(NAMES)) { [17:26:32.350] name <- removed[[kk]] [17:26:32.350] NAME <- NAMES[[kk]] [17:26:32.350] if (name != NAME && is.element(NAME, old_names)) [17:26:32.350] next [17:26:32.350] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:32.350] } [17:26:32.350] if (length(args) > 0) [17:26:32.350] base::do.call(base::Sys.setenv, args = args) [17:26:32.350] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:32.350] } [17:26:32.350] else { [17:26:32.350] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:32.350] } [17:26:32.350] { [17:26:32.350] if (base::length(...future.futureOptionsAdded) > [17:26:32.350] 0L) { [17:26:32.350] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:32.350] base::names(opts) <- ...future.futureOptionsAdded [17:26:32.350] base::options(opts) [17:26:32.350] } [17:26:32.350] { [17:26:32.350] { [17:26:32.350] NULL [17:26:32.350] RNGkind("Mersenne-Twister") [17:26:32.350] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:32.350] inherits = FALSE) [17:26:32.350] } [17:26:32.350] options(future.plan = NULL) [17:26:32.350] if (is.na(NA_character_)) [17:26:32.350] Sys.unsetenv("R_FUTURE_PLAN") [17:26:32.350] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:32.350] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:32.350] .init = FALSE) [17:26:32.350] } [17:26:32.350] } [17:26:32.350] } [17:26:32.350] }) [17:26:32.350] if (TRUE) { [17:26:32.350] base::sink(type = "output", split = FALSE) [17:26:32.350] if (TRUE) { [17:26:32.350] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:32.350] } [17:26:32.350] else { [17:26:32.350] ...future.result["stdout"] <- base::list(NULL) [17:26:32.350] } [17:26:32.350] base::close(...future.stdout) [17:26:32.350] ...future.stdout <- NULL [17:26:32.350] } [17:26:32.350] ...future.result$conditions <- ...future.conditions [17:26:32.350] ...future.result$finished <- base::Sys.time() [17:26:32.350] ...future.result [17:26:32.350] } [17:26:32.354] plan(): Setting new future strategy stack: [17:26:32.354] List of future strategies: [17:26:32.354] 1. sequential: [17:26:32.354] - args: function (..., envir = parent.frame(), workers = "") [17:26:32.354] - tweaked: FALSE [17:26:32.354] - call: NULL [17:26:32.355] plan(): nbrOfWorkers() = 1 [17:26:32.357] plan(): Setting new future strategy stack: [17:26:32.357] List of future strategies: [17:26:32.357] 1. sequential: [17:26:32.357] - args: function (..., envir = parent.frame(), workers = "") [17:26:32.357] - tweaked: FALSE [17:26:32.357] - call: future::plan("sequential") [17:26:32.358] plan(): nbrOfWorkers() = 1 [17:26:32.358] SequentialFuture started (and completed) [17:26:32.359] - Launch lazy future ... done [17:26:32.359] run() for 'SequentialFuture' ... done [17:26:32.359] - run() ... done [17:26:32.359] - resolved() ... [17:26:32.359] resolved() for 'SequentialFuture' ... [17:26:32.359] - state: 'finished' [17:26:32.360] - run: TRUE [17:26:32.360] - result: 'FutureResult' [17:26:32.360] resolved() for 'SequentialFuture' ... done [17:26:32.360] - resolved: TRUE [17:26:32.360] - resolved() ... done [17:26:32.361] resolved() for 'SequentialFuture' ... done [1] TRUE > y <- value(f) > print(y) [1] 42 > stopifnot(y == 42L) > > > message("*** future() w/ gc = TRUE ...") *** future() w/ gc = TRUE ... > > f <- future(42L, gc = TRUE, lazy = TRUE) [17:26:32.361] getGlobalsAndPackages() ... [17:26:32.362] Searching for globals... [17:26:32.362] [17:26:32.362] Searching for globals ... DONE [17:26:32.362] - globals: [0] [17:26:32.362] getGlobalsAndPackages() ... DONE > print(f) Future: Label: '' Expression: [1] 42 Lazy evaluation: TRUE 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: FALSE Value: Conditions captured: Early signaling: FALSE Owner process: dc87b2d9-0079-5309-11c8-7562b33a25df Class: 'Future', 'environment' > y <- value(f) [17:26:32.363] run() for 'Future' ... [17:26:32.364] - state: 'created' [17:26:32.364] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:32.364] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:32.364] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:32.365] - Field: 'label' [17:26:32.365] - Field: 'local' [17:26:32.365] - Field: 'owner' [17:26:32.365] - Field: 'envir' [17:26:32.365] - Field: 'packages' [17:26:32.367] - Field: 'gc' [17:26:32.368] - Field: 'conditions' [17:26:32.368] - Field: 'expr' [17:26:32.368] - Field: 'uuid' [17:26:32.368] - Field: 'seed' [17:26:32.368] - Field: 'version' [17:26:32.368] - Field: 'result' [17:26:32.369] - Field: 'asynchronous' [17:26:32.369] - Field: 'calls' [17:26:32.369] - Field: 'globals' [17:26:32.369] - Field: 'stdout' [17:26:32.369] - Field: 'earlySignal' [17:26:32.369] - Field: 'lazy' [17:26:32.370] - Field: 'state' [17:26:32.370] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:32.370] - Launch lazy future ... [17:26:32.370] Packages needed by the future expression (n = 0): [17:26:32.370] Packages needed by future strategies (n = 0): [17:26:32.371] { [17:26:32.371] { [17:26:32.371] { [17:26:32.371] ...future.startTime <- base::Sys.time() [17:26:32.371] { [17:26:32.371] { [17:26:32.371] { [17:26:32.371] base::local({ [17:26:32.371] has_future <- base::requireNamespace("future", [17:26:32.371] quietly = TRUE) [17:26:32.371] if (has_future) { [17:26:32.371] ns <- base::getNamespace("future") [17:26:32.371] version <- ns[[".package"]][["version"]] [17:26:32.371] if (is.null(version)) [17:26:32.371] version <- utils::packageVersion("future") [17:26:32.371] } [17:26:32.371] else { [17:26:32.371] version <- NULL [17:26:32.371] } [17:26:32.371] if (!has_future || version < "1.8.0") { [17:26:32.371] info <- base::c(r_version = base::gsub("R version ", [17:26:32.371] "", base::R.version$version.string), [17:26:32.371] platform = base::sprintf("%s (%s-bit)", [17:26:32.371] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:32.371] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:32.371] "release", "version")], collapse = " "), [17:26:32.371] hostname = base::Sys.info()[["nodename"]]) [17:26:32.371] info <- base::sprintf("%s: %s", base::names(info), [17:26:32.371] info) [17:26:32.371] info <- base::paste(info, collapse = "; ") [17:26:32.371] if (!has_future) { [17:26:32.371] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:32.371] info) [17:26:32.371] } [17:26:32.371] else { [17:26:32.371] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:32.371] info, version) [17:26:32.371] } [17:26:32.371] base::stop(msg) [17:26:32.371] } [17:26:32.371] }) [17:26:32.371] } [17:26:32.371] ...future.strategy.old <- future::plan("list") [17:26:32.371] options(future.plan = NULL) [17:26:32.371] Sys.unsetenv("R_FUTURE_PLAN") [17:26:32.371] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:32.371] } [17:26:32.371] ...future.workdir <- getwd() [17:26:32.371] } [17:26:32.371] ...future.oldOptions <- base::as.list(base::.Options) [17:26:32.371] ...future.oldEnvVars <- base::Sys.getenv() [17:26:32.371] } [17:26:32.371] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:32.371] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:32.371] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:32.371] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:32.371] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:32.371] future.stdout.windows.reencode = NULL, width = 80L) [17:26:32.371] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:32.371] base::names(...future.oldOptions)) [17:26:32.371] } [17:26:32.371] if (FALSE) { [17:26:32.371] } [17:26:32.371] else { [17:26:32.371] if (TRUE) { [17:26:32.371] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:32.371] open = "w") [17:26:32.371] } [17:26:32.371] else { [17:26:32.371] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:32.371] windows = "NUL", "/dev/null"), open = "w") [17:26:32.371] } [17:26:32.371] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:32.371] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:32.371] base::sink(type = "output", split = FALSE) [17:26:32.371] base::close(...future.stdout) [17:26:32.371] }, add = TRUE) [17:26:32.371] } [17:26:32.371] ...future.frame <- base::sys.nframe() [17:26:32.371] ...future.conditions <- base::list() [17:26:32.371] ...future.rng <- base::globalenv()$.Random.seed [17:26:32.371] if (FALSE) { [17:26:32.371] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:32.371] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:32.371] } [17:26:32.371] ...future.result <- base::tryCatch({ [17:26:32.371] base::withCallingHandlers({ [17:26:32.371] ...future.value <- base::withVisible(base::local(42L)) [17:26:32.371] future::FutureResult(value = ...future.value$value, [17:26:32.371] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:32.371] ...future.rng), globalenv = if (FALSE) [17:26:32.371] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:32.371] ...future.globalenv.names)) [17:26:32.371] else NULL, started = ...future.startTime, version = "1.8") [17:26:32.371] }, condition = base::local({ [17:26:32.371] c <- base::c [17:26:32.371] inherits <- base::inherits [17:26:32.371] invokeRestart <- base::invokeRestart [17:26:32.371] length <- base::length [17:26:32.371] list <- base::list [17:26:32.371] seq.int <- base::seq.int [17:26:32.371] signalCondition <- base::signalCondition [17:26:32.371] sys.calls <- base::sys.calls [17:26:32.371] `[[` <- base::`[[` [17:26:32.371] `+` <- base::`+` [17:26:32.371] `<<-` <- base::`<<-` [17:26:32.371] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:32.371] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:32.371] 3L)] [17:26:32.371] } [17:26:32.371] function(cond) { [17:26:32.371] is_error <- inherits(cond, "error") [17:26:32.371] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:32.371] NULL) [17:26:32.371] if (is_error) { [17:26:32.371] sessionInformation <- function() { [17:26:32.371] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:32.371] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:32.371] search = base::search(), system = base::Sys.info()) [17:26:32.371] } [17:26:32.371] ...future.conditions[[length(...future.conditions) + [17:26:32.371] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:32.371] cond$call), session = sessionInformation(), [17:26:32.371] timestamp = base::Sys.time(), signaled = 0L) [17:26:32.371] signalCondition(cond) [17:26:32.371] } [17:26:32.371] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:32.371] "immediateCondition"))) { [17:26:32.371] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:32.371] ...future.conditions[[length(...future.conditions) + [17:26:32.371] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:32.371] if (TRUE && !signal) { [17:26:32.371] muffleCondition <- function (cond, pattern = "^muffle") [17:26:32.371] { [17:26:32.371] inherits <- base::inherits [17:26:32.371] invokeRestart <- base::invokeRestart [17:26:32.371] is.null <- base::is.null [17:26:32.371] muffled <- FALSE [17:26:32.371] if (inherits(cond, "message")) { [17:26:32.371] muffled <- grepl(pattern, "muffleMessage") [17:26:32.371] if (muffled) [17:26:32.371] invokeRestart("muffleMessage") [17:26:32.371] } [17:26:32.371] else if (inherits(cond, "warning")) { [17:26:32.371] muffled <- grepl(pattern, "muffleWarning") [17:26:32.371] if (muffled) [17:26:32.371] invokeRestart("muffleWarning") [17:26:32.371] } [17:26:32.371] else if (inherits(cond, "condition")) { [17:26:32.371] if (!is.null(pattern)) { [17:26:32.371] computeRestarts <- base::computeRestarts [17:26:32.371] grepl <- base::grepl [17:26:32.371] restarts <- computeRestarts(cond) [17:26:32.371] for (restart in restarts) { [17:26:32.371] name <- restart$name [17:26:32.371] if (is.null(name)) [17:26:32.371] next [17:26:32.371] if (!grepl(pattern, name)) [17:26:32.371] next [17:26:32.371] invokeRestart(restart) [17:26:32.371] muffled <- TRUE [17:26:32.371] break [17:26:32.371] } [17:26:32.371] } [17:26:32.371] } [17:26:32.371] invisible(muffled) [17:26:32.371] } [17:26:32.371] muffleCondition(cond, pattern = "^muffle") [17:26:32.371] } [17:26:32.371] } [17:26:32.371] else { [17:26:32.371] if (TRUE) { [17:26:32.371] muffleCondition <- function (cond, pattern = "^muffle") [17:26:32.371] { [17:26:32.371] inherits <- base::inherits [17:26:32.371] invokeRestart <- base::invokeRestart [17:26:32.371] is.null <- base::is.null [17:26:32.371] muffled <- FALSE [17:26:32.371] if (inherits(cond, "message")) { [17:26:32.371] muffled <- grepl(pattern, "muffleMessage") [17:26:32.371] if (muffled) [17:26:32.371] invokeRestart("muffleMessage") [17:26:32.371] } [17:26:32.371] else if (inherits(cond, "warning")) { [17:26:32.371] muffled <- grepl(pattern, "muffleWarning") [17:26:32.371] if (muffled) [17:26:32.371] invokeRestart("muffleWarning") [17:26:32.371] } [17:26:32.371] else if (inherits(cond, "condition")) { [17:26:32.371] if (!is.null(pattern)) { [17:26:32.371] computeRestarts <- base::computeRestarts [17:26:32.371] grepl <- base::grepl [17:26:32.371] restarts <- computeRestarts(cond) [17:26:32.371] for (restart in restarts) { [17:26:32.371] name <- restart$name [17:26:32.371] if (is.null(name)) [17:26:32.371] next [17:26:32.371] if (!grepl(pattern, name)) [17:26:32.371] next [17:26:32.371] invokeRestart(restart) [17:26:32.371] muffled <- TRUE [17:26:32.371] break [17:26:32.371] } [17:26:32.371] } [17:26:32.371] } [17:26:32.371] invisible(muffled) [17:26:32.371] } [17:26:32.371] muffleCondition(cond, pattern = "^muffle") [17:26:32.371] } [17:26:32.371] } [17:26:32.371] } [17:26:32.371] })) [17:26:32.371] }, error = function(ex) { [17:26:32.371] base::structure(base::list(value = NULL, visible = NULL, [17:26:32.371] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:32.371] ...future.rng), started = ...future.startTime, [17:26:32.371] finished = Sys.time(), session_uuid = NA_character_, [17:26:32.371] version = "1.8"), class = "FutureResult") [17:26:32.371] }, finally = { [17:26:32.371] if (!identical(...future.workdir, getwd())) [17:26:32.371] setwd(...future.workdir) [17:26:32.371] { [17:26:32.371] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:32.371] ...future.oldOptions$nwarnings <- NULL [17:26:32.371] } [17:26:32.371] base::options(...future.oldOptions) [17:26:32.371] if (.Platform$OS.type == "windows") { [17:26:32.371] old_names <- names(...future.oldEnvVars) [17:26:32.371] envs <- base::Sys.getenv() [17:26:32.371] names <- names(envs) [17:26:32.371] common <- intersect(names, old_names) [17:26:32.371] added <- setdiff(names, old_names) [17:26:32.371] removed <- setdiff(old_names, names) [17:26:32.371] changed <- common[...future.oldEnvVars[common] != [17:26:32.371] envs[common]] [17:26:32.371] NAMES <- toupper(changed) [17:26:32.371] args <- list() [17:26:32.371] for (kk in seq_along(NAMES)) { [17:26:32.371] name <- changed[[kk]] [17:26:32.371] NAME <- NAMES[[kk]] [17:26:32.371] if (name != NAME && is.element(NAME, old_names)) [17:26:32.371] next [17:26:32.371] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:32.371] } [17:26:32.371] NAMES <- toupper(added) [17:26:32.371] for (kk in seq_along(NAMES)) { [17:26:32.371] name <- added[[kk]] [17:26:32.371] NAME <- NAMES[[kk]] [17:26:32.371] if (name != NAME && is.element(NAME, old_names)) [17:26:32.371] next [17:26:32.371] args[[name]] <- "" [17:26:32.371] } [17:26:32.371] NAMES <- toupper(removed) [17:26:32.371] for (kk in seq_along(NAMES)) { [17:26:32.371] name <- removed[[kk]] [17:26:32.371] NAME <- NAMES[[kk]] [17:26:32.371] if (name != NAME && is.element(NAME, old_names)) [17:26:32.371] next [17:26:32.371] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:32.371] } [17:26:32.371] if (length(args) > 0) [17:26:32.371] base::do.call(base::Sys.setenv, args = args) [17:26:32.371] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:32.371] } [17:26:32.371] else { [17:26:32.371] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:32.371] } [17:26:32.371] { [17:26:32.371] if (base::length(...future.futureOptionsAdded) > [17:26:32.371] 0L) { [17:26:32.371] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:32.371] base::names(opts) <- ...future.futureOptionsAdded [17:26:32.371] base::options(opts) [17:26:32.371] } [17:26:32.371] { [17:26:32.371] { [17:26:32.371] NULL [17:26:32.371] RNGkind("Mersenne-Twister") [17:26:32.371] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:32.371] inherits = FALSE) [17:26:32.371] } [17:26:32.371] options(future.plan = NULL) [17:26:32.371] if (is.na(NA_character_)) [17:26:32.371] Sys.unsetenv("R_FUTURE_PLAN") [17:26:32.371] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:32.371] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:32.371] .init = FALSE) [17:26:32.371] } [17:26:32.371] } [17:26:32.371] } [17:26:32.371] }) [17:26:32.371] if (TRUE) { [17:26:32.371] base::sink(type = "output", split = FALSE) [17:26:32.371] if (TRUE) { [17:26:32.371] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:32.371] } [17:26:32.371] else { [17:26:32.371] ...future.result["stdout"] <- base::list(NULL) [17:26:32.371] } [17:26:32.371] base::close(...future.stdout) [17:26:32.371] ...future.stdout <- NULL [17:26:32.371] } [17:26:32.371] ...future.result$conditions <- ...future.conditions [17:26:32.371] ...future.result$finished <- base::Sys.time() [17:26:32.371] ...future.result [17:26:32.371] } [17:26:32.375] plan(): Setting new future strategy stack: [17:26:32.375] List of future strategies: [17:26:32.375] 1. sequential: [17:26:32.375] - args: function (..., envir = parent.frame(), workers = "") [17:26:32.375] - tweaked: FALSE [17:26:32.375] - call: NULL [17:26:32.376] plan(): nbrOfWorkers() = 1 [17:26:32.377] plan(): Setting new future strategy stack: [17:26:32.377] List of future strategies: [17:26:32.377] 1. sequential: [17:26:32.377] - args: function (..., envir = parent.frame(), workers = "") [17:26:32.377] - tweaked: FALSE [17:26:32.377] - call: future::plan("sequential") [17:26:32.378] plan(): nbrOfWorkers() = 1 [17:26:32.378] SequentialFuture started (and completed) [17:26:32.378] - Launch lazy future ... done [17:26:32.378] run() for 'SequentialFuture' ... done > print(y) [1] 42 > stopifnot(y == 42L) > > message("*** future() w/ gc = TRUE ... DONE") *** future() w/ gc = TRUE ... DONE > message("*** future() ... DONE") *** future() ... DONE > > message("*** future() ...") *** future() ... > > f <- future({ + 42L + }, lazy = TRUE) [17:26:32.379] getGlobalsAndPackages() ... [17:26:32.379] Searching for globals... [17:26:32.380] - globals found: [1] '{' [17:26:32.380] Searching for globals ... DONE [17:26:32.380] Resolving globals: FALSE [17:26:32.380] [17:26:32.381] [17:26:32.381] getGlobalsAndPackages() ... DONE > > print(resolved(f)) [17:26:32.381] resolved() for 'Future' ... [17:26:32.381] - state: 'created' [17:26:32.381] - run: TRUE [17:26:32.382] - run() ... [17:26:32.382] run() for 'Future' ... [17:26:32.382] - state: 'created' [17:26:32.382] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:32.382] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:32.383] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:32.383] - Field: 'label' [17:26:32.383] - Field: 'local' [17:26:32.383] - Field: 'owner' [17:26:32.383] - Field: 'envir' [17:26:32.383] - Field: 'packages' [17:26:32.384] - Field: 'gc' [17:26:32.384] - Field: 'conditions' [17:26:32.384] - Field: 'expr' [17:26:32.384] - Field: 'uuid' [17:26:32.384] - Field: 'seed' [17:26:32.385] - Field: 'version' [17:26:32.385] - Field: 'result' [17:26:32.385] - Field: 'asynchronous' [17:26:32.385] - Field: 'calls' [17:26:32.385] - Field: 'globals' [17:26:32.385] - Field: 'stdout' [17:26:32.386] - Field: 'earlySignal' [17:26:32.386] - Field: 'lazy' [17:26:32.386] - Field: 'state' [17:26:32.386] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:32.386] - Launch lazy future ... [17:26:32.386] Packages needed by the future expression (n = 0): [17:26:32.387] Packages needed by future strategies (n = 0): [17:26:32.387] { [17:26:32.387] { [17:26:32.387] { [17:26:32.387] ...future.startTime <- base::Sys.time() [17:26:32.387] { [17:26:32.387] { [17:26:32.387] { [17:26:32.387] base::local({ [17:26:32.387] has_future <- base::requireNamespace("future", [17:26:32.387] quietly = TRUE) [17:26:32.387] if (has_future) { [17:26:32.387] ns <- base::getNamespace("future") [17:26:32.387] version <- ns[[".package"]][["version"]] [17:26:32.387] if (is.null(version)) [17:26:32.387] version <- utils::packageVersion("future") [17:26:32.387] } [17:26:32.387] else { [17:26:32.387] version <- NULL [17:26:32.387] } [17:26:32.387] if (!has_future || version < "1.8.0") { [17:26:32.387] info <- base::c(r_version = base::gsub("R version ", [17:26:32.387] "", base::R.version$version.string), [17:26:32.387] platform = base::sprintf("%s (%s-bit)", [17:26:32.387] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:32.387] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:32.387] "release", "version")], collapse = " "), [17:26:32.387] hostname = base::Sys.info()[["nodename"]]) [17:26:32.387] info <- base::sprintf("%s: %s", base::names(info), [17:26:32.387] info) [17:26:32.387] info <- base::paste(info, collapse = "; ") [17:26:32.387] if (!has_future) { [17:26:32.387] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:32.387] info) [17:26:32.387] } [17:26:32.387] else { [17:26:32.387] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:32.387] info, version) [17:26:32.387] } [17:26:32.387] base::stop(msg) [17:26:32.387] } [17:26:32.387] }) [17:26:32.387] } [17:26:32.387] ...future.strategy.old <- future::plan("list") [17:26:32.387] options(future.plan = NULL) [17:26:32.387] Sys.unsetenv("R_FUTURE_PLAN") [17:26:32.387] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:32.387] } [17:26:32.387] ...future.workdir <- getwd() [17:26:32.387] } [17:26:32.387] ...future.oldOptions <- base::as.list(base::.Options) [17:26:32.387] ...future.oldEnvVars <- base::Sys.getenv() [17:26:32.387] } [17:26:32.387] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:32.387] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:32.387] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:32.387] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:32.387] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:32.387] future.stdout.windows.reencode = NULL, width = 80L) [17:26:32.387] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:32.387] base::names(...future.oldOptions)) [17:26:32.387] } [17:26:32.387] if (FALSE) { [17:26:32.387] } [17:26:32.387] else { [17:26:32.387] if (TRUE) { [17:26:32.387] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:32.387] open = "w") [17:26:32.387] } [17:26:32.387] else { [17:26:32.387] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:32.387] windows = "NUL", "/dev/null"), open = "w") [17:26:32.387] } [17:26:32.387] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:32.387] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:32.387] base::sink(type = "output", split = FALSE) [17:26:32.387] base::close(...future.stdout) [17:26:32.387] }, add = TRUE) [17:26:32.387] } [17:26:32.387] ...future.frame <- base::sys.nframe() [17:26:32.387] ...future.conditions <- base::list() [17:26:32.387] ...future.rng <- base::globalenv()$.Random.seed [17:26:32.387] if (FALSE) { [17:26:32.387] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:32.387] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:32.387] } [17:26:32.387] ...future.result <- base::tryCatch({ [17:26:32.387] base::withCallingHandlers({ [17:26:32.387] ...future.value <- base::withVisible(base::local({ [17:26:32.387] 42L [17:26:32.387] })) [17:26:32.387] future::FutureResult(value = ...future.value$value, [17:26:32.387] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:32.387] ...future.rng), globalenv = if (FALSE) [17:26:32.387] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:32.387] ...future.globalenv.names)) [17:26:32.387] else NULL, started = ...future.startTime, version = "1.8") [17:26:32.387] }, condition = base::local({ [17:26:32.387] c <- base::c [17:26:32.387] inherits <- base::inherits [17:26:32.387] invokeRestart <- base::invokeRestart [17:26:32.387] length <- base::length [17:26:32.387] list <- base::list [17:26:32.387] seq.int <- base::seq.int [17:26:32.387] signalCondition <- base::signalCondition [17:26:32.387] sys.calls <- base::sys.calls [17:26:32.387] `[[` <- base::`[[` [17:26:32.387] `+` <- base::`+` [17:26:32.387] `<<-` <- base::`<<-` [17:26:32.387] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:32.387] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:32.387] 3L)] [17:26:32.387] } [17:26:32.387] function(cond) { [17:26:32.387] is_error <- inherits(cond, "error") [17:26:32.387] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:32.387] NULL) [17:26:32.387] if (is_error) { [17:26:32.387] sessionInformation <- function() { [17:26:32.387] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:32.387] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:32.387] search = base::search(), system = base::Sys.info()) [17:26:32.387] } [17:26:32.387] ...future.conditions[[length(...future.conditions) + [17:26:32.387] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:32.387] cond$call), session = sessionInformation(), [17:26:32.387] timestamp = base::Sys.time(), signaled = 0L) [17:26:32.387] signalCondition(cond) [17:26:32.387] } [17:26:32.387] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:32.387] "immediateCondition"))) { [17:26:32.387] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:32.387] ...future.conditions[[length(...future.conditions) + [17:26:32.387] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:32.387] if (TRUE && !signal) { [17:26:32.387] muffleCondition <- function (cond, pattern = "^muffle") [17:26:32.387] { [17:26:32.387] inherits <- base::inherits [17:26:32.387] invokeRestart <- base::invokeRestart [17:26:32.387] is.null <- base::is.null [17:26:32.387] muffled <- FALSE [17:26:32.387] if (inherits(cond, "message")) { [17:26:32.387] muffled <- grepl(pattern, "muffleMessage") [17:26:32.387] if (muffled) [17:26:32.387] invokeRestart("muffleMessage") [17:26:32.387] } [17:26:32.387] else if (inherits(cond, "warning")) { [17:26:32.387] muffled <- grepl(pattern, "muffleWarning") [17:26:32.387] if (muffled) [17:26:32.387] invokeRestart("muffleWarning") [17:26:32.387] } [17:26:32.387] else if (inherits(cond, "condition")) { [17:26:32.387] if (!is.null(pattern)) { [17:26:32.387] computeRestarts <- base::computeRestarts [17:26:32.387] grepl <- base::grepl [17:26:32.387] restarts <- computeRestarts(cond) [17:26:32.387] for (restart in restarts) { [17:26:32.387] name <- restart$name [17:26:32.387] if (is.null(name)) [17:26:32.387] next [17:26:32.387] if (!grepl(pattern, name)) [17:26:32.387] next [17:26:32.387] invokeRestart(restart) [17:26:32.387] muffled <- TRUE [17:26:32.387] break [17:26:32.387] } [17:26:32.387] } [17:26:32.387] } [17:26:32.387] invisible(muffled) [17:26:32.387] } [17:26:32.387] muffleCondition(cond, pattern = "^muffle") [17:26:32.387] } [17:26:32.387] } [17:26:32.387] else { [17:26:32.387] if (TRUE) { [17:26:32.387] muffleCondition <- function (cond, pattern = "^muffle") [17:26:32.387] { [17:26:32.387] inherits <- base::inherits [17:26:32.387] invokeRestart <- base::invokeRestart [17:26:32.387] is.null <- base::is.null [17:26:32.387] muffled <- FALSE [17:26:32.387] if (inherits(cond, "message")) { [17:26:32.387] muffled <- grepl(pattern, "muffleMessage") [17:26:32.387] if (muffled) [17:26:32.387] invokeRestart("muffleMessage") [17:26:32.387] } [17:26:32.387] else if (inherits(cond, "warning")) { [17:26:32.387] muffled <- grepl(pattern, "muffleWarning") [17:26:32.387] if (muffled) [17:26:32.387] invokeRestart("muffleWarning") [17:26:32.387] } [17:26:32.387] else if (inherits(cond, "condition")) { [17:26:32.387] if (!is.null(pattern)) { [17:26:32.387] computeRestarts <- base::computeRestarts [17:26:32.387] grepl <- base::grepl [17:26:32.387] restarts <- computeRestarts(cond) [17:26:32.387] for (restart in restarts) { [17:26:32.387] name <- restart$name [17:26:32.387] if (is.null(name)) [17:26:32.387] next [17:26:32.387] if (!grepl(pattern, name)) [17:26:32.387] next [17:26:32.387] invokeRestart(restart) [17:26:32.387] muffled <- TRUE [17:26:32.387] break [17:26:32.387] } [17:26:32.387] } [17:26:32.387] } [17:26:32.387] invisible(muffled) [17:26:32.387] } [17:26:32.387] muffleCondition(cond, pattern = "^muffle") [17:26:32.387] } [17:26:32.387] } [17:26:32.387] } [17:26:32.387] })) [17:26:32.387] }, error = function(ex) { [17:26:32.387] base::structure(base::list(value = NULL, visible = NULL, [17:26:32.387] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:32.387] ...future.rng), started = ...future.startTime, [17:26:32.387] finished = Sys.time(), session_uuid = NA_character_, [17:26:32.387] version = "1.8"), class = "FutureResult") [17:26:32.387] }, finally = { [17:26:32.387] if (!identical(...future.workdir, getwd())) [17:26:32.387] setwd(...future.workdir) [17:26:32.387] { [17:26:32.387] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:32.387] ...future.oldOptions$nwarnings <- NULL [17:26:32.387] } [17:26:32.387] base::options(...future.oldOptions) [17:26:32.387] if (.Platform$OS.type == "windows") { [17:26:32.387] old_names <- names(...future.oldEnvVars) [17:26:32.387] envs <- base::Sys.getenv() [17:26:32.387] names <- names(envs) [17:26:32.387] common <- intersect(names, old_names) [17:26:32.387] added <- setdiff(names, old_names) [17:26:32.387] removed <- setdiff(old_names, names) [17:26:32.387] changed <- common[...future.oldEnvVars[common] != [17:26:32.387] envs[common]] [17:26:32.387] NAMES <- toupper(changed) [17:26:32.387] args <- list() [17:26:32.387] for (kk in seq_along(NAMES)) { [17:26:32.387] name <- changed[[kk]] [17:26:32.387] NAME <- NAMES[[kk]] [17:26:32.387] if (name != NAME && is.element(NAME, old_names)) [17:26:32.387] next [17:26:32.387] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:32.387] } [17:26:32.387] NAMES <- toupper(added) [17:26:32.387] for (kk in seq_along(NAMES)) { [17:26:32.387] name <- added[[kk]] [17:26:32.387] NAME <- NAMES[[kk]] [17:26:32.387] if (name != NAME && is.element(NAME, old_names)) [17:26:32.387] next [17:26:32.387] args[[name]] <- "" [17:26:32.387] } [17:26:32.387] NAMES <- toupper(removed) [17:26:32.387] for (kk in seq_along(NAMES)) { [17:26:32.387] name <- removed[[kk]] [17:26:32.387] NAME <- NAMES[[kk]] [17:26:32.387] if (name != NAME && is.element(NAME, old_names)) [17:26:32.387] next [17:26:32.387] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:32.387] } [17:26:32.387] if (length(args) > 0) [17:26:32.387] base::do.call(base::Sys.setenv, args = args) [17:26:32.387] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:32.387] } [17:26:32.387] else { [17:26:32.387] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:32.387] } [17:26:32.387] { [17:26:32.387] if (base::length(...future.futureOptionsAdded) > [17:26:32.387] 0L) { [17:26:32.387] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:32.387] base::names(opts) <- ...future.futureOptionsAdded [17:26:32.387] base::options(opts) [17:26:32.387] } [17:26:32.387] { [17:26:32.387] { [17:26:32.387] NULL [17:26:32.387] RNGkind("Mersenne-Twister") [17:26:32.387] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:32.387] inherits = FALSE) [17:26:32.387] } [17:26:32.387] options(future.plan = NULL) [17:26:32.387] if (is.na(NA_character_)) [17:26:32.387] Sys.unsetenv("R_FUTURE_PLAN") [17:26:32.387] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:32.387] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:32.387] .init = FALSE) [17:26:32.387] } [17:26:32.387] } [17:26:32.387] } [17:26:32.387] }) [17:26:32.387] if (TRUE) { [17:26:32.387] base::sink(type = "output", split = FALSE) [17:26:32.387] if (TRUE) { [17:26:32.387] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:32.387] } [17:26:32.387] else { [17:26:32.387] ...future.result["stdout"] <- base::list(NULL) [17:26:32.387] } [17:26:32.387] base::close(...future.stdout) [17:26:32.387] ...future.stdout <- NULL [17:26:32.387] } [17:26:32.387] ...future.result$conditions <- ...future.conditions [17:26:32.387] ...future.result$finished <- base::Sys.time() [17:26:32.387] ...future.result [17:26:32.387] } [17:26:32.391] plan(): Setting new future strategy stack: [17:26:32.391] List of future strategies: [17:26:32.391] 1. sequential: [17:26:32.391] - args: function (..., envir = parent.frame(), workers = "") [17:26:32.391] - tweaked: FALSE [17:26:32.391] - call: NULL [17:26:32.392] plan(): nbrOfWorkers() = 1 [17:26:32.393] plan(): Setting new future strategy stack: [17:26:32.393] List of future strategies: [17:26:32.393] 1. sequential: [17:26:32.393] - args: function (..., envir = parent.frame(), workers = "") [17:26:32.393] - tweaked: FALSE [17:26:32.393] - call: future::plan("sequential") [17:26:32.394] plan(): nbrOfWorkers() = 1 [17:26:32.394] SequentialFuture started (and completed) [17:26:32.394] - Launch lazy future ... done [17:26:32.395] run() for 'SequentialFuture' ... done [17:26:32.395] - run() ... done [17:26:32.395] - resolved() ... [17:26:32.395] resolved() for 'SequentialFuture' ... [17:26:32.395] - state: 'finished' [17:26:32.395] - run: TRUE [17:26:32.396] - result: 'FutureResult' [17:26:32.396] resolved() for 'SequentialFuture' ... done [17:26:32.396] - resolved: TRUE [17:26:32.396] - resolved() ... done [17:26:32.396] resolved() for 'SequentialFuture' ... done [1] TRUE > y <- value(f) > print(y) [1] 42 > stopifnot(y == 42L) > > > message("*** future() w/ gc = TRUE ...") *** future() w/ gc = TRUE ... > > f <- future(42L, gc = TRUE, lazy = TRUE) [17:26:32.397] getGlobalsAndPackages() ... [17:26:32.397] Searching for globals... [17:26:32.397] [17:26:32.398] Searching for globals ... DONE [17:26:32.398] - globals: [0] [17:26:32.398] getGlobalsAndPackages() ... DONE > print(f) Future: Label: '' Expression: [1] 42 Lazy evaluation: TRUE 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: FALSE Value: Conditions captured: Early signaling: FALSE Owner process: dc87b2d9-0079-5309-11c8-7562b33a25df Class: 'Future', 'environment' > y <- value(f) [17:26:32.399] run() for 'Future' ... [17:26:32.399] - state: 'created' [17:26:32.399] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:32.399] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:32.399] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:32.400] - Field: 'label' [17:26:32.400] - Field: 'local' [17:26:32.400] - Field: 'owner' [17:26:32.400] - Field: 'envir' [17:26:32.400] - Field: 'packages' [17:26:32.401] - Field: 'gc' [17:26:32.401] - Field: 'conditions' [17:26:32.401] - Field: 'expr' [17:26:32.401] - Field: 'uuid' [17:26:32.401] - Field: 'seed' [17:26:32.401] - Field: 'version' [17:26:32.402] - Field: 'result' [17:26:32.402] - Field: 'asynchronous' [17:26:32.402] - Field: 'calls' [17:26:32.402] - Field: 'globals' [17:26:32.402] - Field: 'stdout' [17:26:32.402] - Field: 'earlySignal' [17:26:32.403] - Field: 'lazy' [17:26:32.403] - Field: 'state' [17:26:32.403] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:32.403] - Launch lazy future ... [17:26:32.403] Packages needed by the future expression (n = 0): [17:26:32.403] Packages needed by future strategies (n = 0): [17:26:32.404] { [17:26:32.404] { [17:26:32.404] { [17:26:32.404] ...future.startTime <- base::Sys.time() [17:26:32.404] { [17:26:32.404] { [17:26:32.404] { [17:26:32.404] base::local({ [17:26:32.404] has_future <- base::requireNamespace("future", [17:26:32.404] quietly = TRUE) [17:26:32.404] if (has_future) { [17:26:32.404] ns <- base::getNamespace("future") [17:26:32.404] version <- ns[[".package"]][["version"]] [17:26:32.404] if (is.null(version)) [17:26:32.404] version <- utils::packageVersion("future") [17:26:32.404] } [17:26:32.404] else { [17:26:32.404] version <- NULL [17:26:32.404] } [17:26:32.404] if (!has_future || version < "1.8.0") { [17:26:32.404] info <- base::c(r_version = base::gsub("R version ", [17:26:32.404] "", base::R.version$version.string), [17:26:32.404] platform = base::sprintf("%s (%s-bit)", [17:26:32.404] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:32.404] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:32.404] "release", "version")], collapse = " "), [17:26:32.404] hostname = base::Sys.info()[["nodename"]]) [17:26:32.404] info <- base::sprintf("%s: %s", base::names(info), [17:26:32.404] info) [17:26:32.404] info <- base::paste(info, collapse = "; ") [17:26:32.404] if (!has_future) { [17:26:32.404] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:32.404] info) [17:26:32.404] } [17:26:32.404] else { [17:26:32.404] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:32.404] info, version) [17:26:32.404] } [17:26:32.404] base::stop(msg) [17:26:32.404] } [17:26:32.404] }) [17:26:32.404] } [17:26:32.404] ...future.strategy.old <- future::plan("list") [17:26:32.404] options(future.plan = NULL) [17:26:32.404] Sys.unsetenv("R_FUTURE_PLAN") [17:26:32.404] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:32.404] } [17:26:32.404] ...future.workdir <- getwd() [17:26:32.404] } [17:26:32.404] ...future.oldOptions <- base::as.list(base::.Options) [17:26:32.404] ...future.oldEnvVars <- base::Sys.getenv() [17:26:32.404] } [17:26:32.404] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:32.404] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:32.404] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:32.404] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:32.404] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:32.404] future.stdout.windows.reencode = NULL, width = 80L) [17:26:32.404] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:32.404] base::names(...future.oldOptions)) [17:26:32.404] } [17:26:32.404] if (FALSE) { [17:26:32.404] } [17:26:32.404] else { [17:26:32.404] if (TRUE) { [17:26:32.404] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:32.404] open = "w") [17:26:32.404] } [17:26:32.404] else { [17:26:32.404] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:32.404] windows = "NUL", "/dev/null"), open = "w") [17:26:32.404] } [17:26:32.404] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:32.404] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:32.404] base::sink(type = "output", split = FALSE) [17:26:32.404] base::close(...future.stdout) [17:26:32.404] }, add = TRUE) [17:26:32.404] } [17:26:32.404] ...future.frame <- base::sys.nframe() [17:26:32.404] ...future.conditions <- base::list() [17:26:32.404] ...future.rng <- base::globalenv()$.Random.seed [17:26:32.404] if (FALSE) { [17:26:32.404] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:32.404] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:32.404] } [17:26:32.404] ...future.result <- base::tryCatch({ [17:26:32.404] base::withCallingHandlers({ [17:26:32.404] ...future.value <- base::withVisible(base::local(42L)) [17:26:32.404] future::FutureResult(value = ...future.value$value, [17:26:32.404] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:32.404] ...future.rng), globalenv = if (FALSE) [17:26:32.404] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:32.404] ...future.globalenv.names)) [17:26:32.404] else NULL, started = ...future.startTime, version = "1.8") [17:26:32.404] }, condition = base::local({ [17:26:32.404] c <- base::c [17:26:32.404] inherits <- base::inherits [17:26:32.404] invokeRestart <- base::invokeRestart [17:26:32.404] length <- base::length [17:26:32.404] list <- base::list [17:26:32.404] seq.int <- base::seq.int [17:26:32.404] signalCondition <- base::signalCondition [17:26:32.404] sys.calls <- base::sys.calls [17:26:32.404] `[[` <- base::`[[` [17:26:32.404] `+` <- base::`+` [17:26:32.404] `<<-` <- base::`<<-` [17:26:32.404] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:32.404] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:32.404] 3L)] [17:26:32.404] } [17:26:32.404] function(cond) { [17:26:32.404] is_error <- inherits(cond, "error") [17:26:32.404] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:32.404] NULL) [17:26:32.404] if (is_error) { [17:26:32.404] sessionInformation <- function() { [17:26:32.404] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:32.404] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:32.404] search = base::search(), system = base::Sys.info()) [17:26:32.404] } [17:26:32.404] ...future.conditions[[length(...future.conditions) + [17:26:32.404] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:32.404] cond$call), session = sessionInformation(), [17:26:32.404] timestamp = base::Sys.time(), signaled = 0L) [17:26:32.404] signalCondition(cond) [17:26:32.404] } [17:26:32.404] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:32.404] "immediateCondition"))) { [17:26:32.404] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:32.404] ...future.conditions[[length(...future.conditions) + [17:26:32.404] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:32.404] if (TRUE && !signal) { [17:26:32.404] muffleCondition <- function (cond, pattern = "^muffle") [17:26:32.404] { [17:26:32.404] inherits <- base::inherits [17:26:32.404] invokeRestart <- base::invokeRestart [17:26:32.404] is.null <- base::is.null [17:26:32.404] muffled <- FALSE [17:26:32.404] if (inherits(cond, "message")) { [17:26:32.404] muffled <- grepl(pattern, "muffleMessage") [17:26:32.404] if (muffled) [17:26:32.404] invokeRestart("muffleMessage") [17:26:32.404] } [17:26:32.404] else if (inherits(cond, "warning")) { [17:26:32.404] muffled <- grepl(pattern, "muffleWarning") [17:26:32.404] if (muffled) [17:26:32.404] invokeRestart("muffleWarning") [17:26:32.404] } [17:26:32.404] else if (inherits(cond, "condition")) { [17:26:32.404] if (!is.null(pattern)) { [17:26:32.404] computeRestarts <- base::computeRestarts [17:26:32.404] grepl <- base::grepl [17:26:32.404] restarts <- computeRestarts(cond) [17:26:32.404] for (restart in restarts) { [17:26:32.404] name <- restart$name [17:26:32.404] if (is.null(name)) [17:26:32.404] next [17:26:32.404] if (!grepl(pattern, name)) [17:26:32.404] next [17:26:32.404] invokeRestart(restart) [17:26:32.404] muffled <- TRUE [17:26:32.404] break [17:26:32.404] } [17:26:32.404] } [17:26:32.404] } [17:26:32.404] invisible(muffled) [17:26:32.404] } [17:26:32.404] muffleCondition(cond, pattern = "^muffle") [17:26:32.404] } [17:26:32.404] } [17:26:32.404] else { [17:26:32.404] if (TRUE) { [17:26:32.404] muffleCondition <- function (cond, pattern = "^muffle") [17:26:32.404] { [17:26:32.404] inherits <- base::inherits [17:26:32.404] invokeRestart <- base::invokeRestart [17:26:32.404] is.null <- base::is.null [17:26:32.404] muffled <- FALSE [17:26:32.404] if (inherits(cond, "message")) { [17:26:32.404] muffled <- grepl(pattern, "muffleMessage") [17:26:32.404] if (muffled) [17:26:32.404] invokeRestart("muffleMessage") [17:26:32.404] } [17:26:32.404] else if (inherits(cond, "warning")) { [17:26:32.404] muffled <- grepl(pattern, "muffleWarning") [17:26:32.404] if (muffled) [17:26:32.404] invokeRestart("muffleWarning") [17:26:32.404] } [17:26:32.404] else if (inherits(cond, "condition")) { [17:26:32.404] if (!is.null(pattern)) { [17:26:32.404] computeRestarts <- base::computeRestarts [17:26:32.404] grepl <- base::grepl [17:26:32.404] restarts <- computeRestarts(cond) [17:26:32.404] for (restart in restarts) { [17:26:32.404] name <- restart$name [17:26:32.404] if (is.null(name)) [17:26:32.404] next [17:26:32.404] if (!grepl(pattern, name)) [17:26:32.404] next [17:26:32.404] invokeRestart(restart) [17:26:32.404] muffled <- TRUE [17:26:32.404] break [17:26:32.404] } [17:26:32.404] } [17:26:32.404] } [17:26:32.404] invisible(muffled) [17:26:32.404] } [17:26:32.404] muffleCondition(cond, pattern = "^muffle") [17:26:32.404] } [17:26:32.404] } [17:26:32.404] } [17:26:32.404] })) [17:26:32.404] }, error = function(ex) { [17:26:32.404] base::structure(base::list(value = NULL, visible = NULL, [17:26:32.404] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:32.404] ...future.rng), started = ...future.startTime, [17:26:32.404] finished = Sys.time(), session_uuid = NA_character_, [17:26:32.404] version = "1.8"), class = "FutureResult") [17:26:32.404] }, finally = { [17:26:32.404] if (!identical(...future.workdir, getwd())) [17:26:32.404] setwd(...future.workdir) [17:26:32.404] { [17:26:32.404] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:32.404] ...future.oldOptions$nwarnings <- NULL [17:26:32.404] } [17:26:32.404] base::options(...future.oldOptions) [17:26:32.404] if (.Platform$OS.type == "windows") { [17:26:32.404] old_names <- names(...future.oldEnvVars) [17:26:32.404] envs <- base::Sys.getenv() [17:26:32.404] names <- names(envs) [17:26:32.404] common <- intersect(names, old_names) [17:26:32.404] added <- setdiff(names, old_names) [17:26:32.404] removed <- setdiff(old_names, names) [17:26:32.404] changed <- common[...future.oldEnvVars[common] != [17:26:32.404] envs[common]] [17:26:32.404] NAMES <- toupper(changed) [17:26:32.404] args <- list() [17:26:32.404] for (kk in seq_along(NAMES)) { [17:26:32.404] name <- changed[[kk]] [17:26:32.404] NAME <- NAMES[[kk]] [17:26:32.404] if (name != NAME && is.element(NAME, old_names)) [17:26:32.404] next [17:26:32.404] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:32.404] } [17:26:32.404] NAMES <- toupper(added) [17:26:32.404] for (kk in seq_along(NAMES)) { [17:26:32.404] name <- added[[kk]] [17:26:32.404] NAME <- NAMES[[kk]] [17:26:32.404] if (name != NAME && is.element(NAME, old_names)) [17:26:32.404] next [17:26:32.404] args[[name]] <- "" [17:26:32.404] } [17:26:32.404] NAMES <- toupper(removed) [17:26:32.404] for (kk in seq_along(NAMES)) { [17:26:32.404] name <- removed[[kk]] [17:26:32.404] NAME <- NAMES[[kk]] [17:26:32.404] if (name != NAME && is.element(NAME, old_names)) [17:26:32.404] next [17:26:32.404] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:32.404] } [17:26:32.404] if (length(args) > 0) [17:26:32.404] base::do.call(base::Sys.setenv, args = args) [17:26:32.404] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:32.404] } [17:26:32.404] else { [17:26:32.404] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:32.404] } [17:26:32.404] { [17:26:32.404] if (base::length(...future.futureOptionsAdded) > [17:26:32.404] 0L) { [17:26:32.404] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:32.404] base::names(opts) <- ...future.futureOptionsAdded [17:26:32.404] base::options(opts) [17:26:32.404] } [17:26:32.404] { [17:26:32.404] { [17:26:32.404] NULL [17:26:32.404] RNGkind("Mersenne-Twister") [17:26:32.404] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:32.404] inherits = FALSE) [17:26:32.404] } [17:26:32.404] options(future.plan = NULL) [17:26:32.404] if (is.na(NA_character_)) [17:26:32.404] Sys.unsetenv("R_FUTURE_PLAN") [17:26:32.404] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:32.404] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:32.404] .init = FALSE) [17:26:32.404] } [17:26:32.404] } [17:26:32.404] } [17:26:32.404] }) [17:26:32.404] if (TRUE) { [17:26:32.404] base::sink(type = "output", split = FALSE) [17:26:32.404] if (TRUE) { [17:26:32.404] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:32.404] } [17:26:32.404] else { [17:26:32.404] ...future.result["stdout"] <- base::list(NULL) [17:26:32.404] } [17:26:32.404] base::close(...future.stdout) [17:26:32.404] ...future.stdout <- NULL [17:26:32.404] } [17:26:32.404] ...future.result$conditions <- ...future.conditions [17:26:32.404] ...future.result$finished <- base::Sys.time() [17:26:32.404] ...future.result [17:26:32.404] } [17:26:32.408] plan(): Setting new future strategy stack: [17:26:32.408] List of future strategies: [17:26:32.408] 1. sequential: [17:26:32.408] - args: function (..., envir = parent.frame(), workers = "") [17:26:32.408] - tweaked: FALSE [17:26:32.408] - call: NULL [17:26:32.409] plan(): nbrOfWorkers() = 1 [17:26:32.410] plan(): Setting new future strategy stack: [17:26:32.410] List of future strategies: [17:26:32.410] 1. sequential: [17:26:32.410] - args: function (..., envir = parent.frame(), workers = "") [17:26:32.410] - tweaked: FALSE [17:26:32.410] - call: future::plan("sequential") [17:26:32.411] plan(): nbrOfWorkers() = 1 [17:26:32.411] SequentialFuture started (and completed) [17:26:32.411] - Launch lazy future ... done [17:26:32.411] run() for 'SequentialFuture' ... done > print(y) [1] 42 > stopifnot(y == 42L) > > message("*** future() w/ gc = TRUE ... DONE") *** future() w/ gc = TRUE ... DONE > > > message("*** future() - exceptions ...") *** future() - exceptions ... > > target <- list(name = "", envir = new.env(), code = "Yo!", exists = TRUE) > res <- tryCatch(get_future(target, mustExist = TRUE), error = identity) [17:26:32.412] ERROR: Future ('') not found in environment '': 'Yo!' > stopifnot(inherits(res, "error")) > > message("*** future() - exceptions ... DONE") *** future() - exceptions ... DONE > > message("*** future() ... DONE") *** future() ... DONE > > source("incl/end.R") [17:26:32.413] plan(): Setting new future strategy stack: [17:26:32.413] List of future strategies: [17:26:32.413] 1. FutureStrategy: [17:26:32.413] - args: function (..., envir = parent.frame(), workers = "") [17:26:32.413] - tweaked: FALSE [17:26:32.413] - call: future::plan(oplan) [17:26:32.427] 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.32 0.06 0.37