R Under development (unstable) (2024-07-28 r86931 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [17:27:18.399] plan(): Setting new future strategy stack: [17:27:18.402] List of future strategies: [17:27:18.402] 1. sequential: [17:27:18.402] - args: function (..., envir = parent.frame(), workers = "") [17:27:18.402] - tweaked: FALSE [17:27:18.402] - call: future::plan("sequential") [17:27:18.430] plan(): nbrOfWorkers() = 1 > > message("*** future() ...") *** future() ... > > f <- future({ + 42L + }, lazy = TRUE) [17:27:18.442] getGlobalsAndPackages() ... [17:27:18.442] Searching for globals... [17:27:18.447] - globals found: [1] '{' [17:27:18.447] Searching for globals ... DONE [17:27:18.448] Resolving globals: FALSE [17:27:18.449] [17:27:18.449] [17:27:18.449] getGlobalsAndPackages() ... DONE > > print(resolved(f)) [17:27:18.451] resolved() for 'Future' ... [17:27:18.451] - state: 'created' [17:27:18.451] - run: TRUE [17:27:18.452] - run() ... [17:27:18.452] run() for 'Future' ... [17:27:18.453] - state: 'created' [17:27:18.453] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:27:18.454] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:18.454] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:27:18.455] - Field: 'label' [17:27:18.455] - Field: 'local' [17:27:18.455] - Field: 'owner' [17:27:18.456] - Field: 'envir' [17:27:18.456] - Field: 'packages' [17:27:18.457] - Field: 'gc' [17:27:18.457] - Field: 'conditions' [17:27:18.457] - Field: 'expr' [17:27:18.458] - Field: 'uuid' [17:27:18.458] - Field: 'seed' [17:27:18.458] - Field: 'version' [17:27:18.459] - Field: 'result' [17:27:18.459] - Field: 'asynchronous' [17:27:18.459] - Field: 'calls' [17:27:18.460] - Field: 'globals' [17:27:18.460] - Field: 'stdout' [17:27:18.460] - Field: 'earlySignal' [17:27:18.461] - Field: 'lazy' [17:27:18.461] - Field: 'state' [17:27:18.461] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:27:18.462] - Launch lazy future ... [17:27:18.463] Packages needed by the future expression (n = 0): [17:27:18.464] Packages needed by future strategies (n = 0): [17:27:18.465] { [17:27:18.465] { [17:27:18.465] { [17:27:18.465] ...future.startTime <- base::Sys.time() [17:27:18.465] { [17:27:18.465] { [17:27:18.465] { [17:27:18.465] base::local({ [17:27:18.465] has_future <- base::requireNamespace("future", [17:27:18.465] quietly = TRUE) [17:27:18.465] if (has_future) { [17:27:18.465] ns <- base::getNamespace("future") [17:27:18.465] version <- ns[[".package"]][["version"]] [17:27:18.465] if (is.null(version)) [17:27:18.465] version <- utils::packageVersion("future") [17:27:18.465] } [17:27:18.465] else { [17:27:18.465] version <- NULL [17:27:18.465] } [17:27:18.465] if (!has_future || version < "1.8.0") { [17:27:18.465] info <- base::c(r_version = base::gsub("R version ", [17:27:18.465] "", base::R.version$version.string), [17:27:18.465] platform = base::sprintf("%s (%s-bit)", [17:27:18.465] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:18.465] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:18.465] "release", "version")], collapse = " "), [17:27:18.465] hostname = base::Sys.info()[["nodename"]]) [17:27:18.465] info <- base::sprintf("%s: %s", base::names(info), [17:27:18.465] info) [17:27:18.465] info <- base::paste(info, collapse = "; ") [17:27:18.465] if (!has_future) { [17:27:18.465] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:18.465] info) [17:27:18.465] } [17:27:18.465] else { [17:27:18.465] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:18.465] info, version) [17:27:18.465] } [17:27:18.465] base::stop(msg) [17:27:18.465] } [17:27:18.465] }) [17:27:18.465] } [17:27:18.465] ...future.strategy.old <- future::plan("list") [17:27:18.465] options(future.plan = NULL) [17:27:18.465] Sys.unsetenv("R_FUTURE_PLAN") [17:27:18.465] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:18.465] } [17:27:18.465] ...future.workdir <- getwd() [17:27:18.465] } [17:27:18.465] ...future.oldOptions <- base::as.list(base::.Options) [17:27:18.465] ...future.oldEnvVars <- base::Sys.getenv() [17:27:18.465] } [17:27:18.465] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:18.465] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:18.465] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:18.465] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:18.465] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:18.465] future.stdout.windows.reencode = NULL, width = 80L) [17:27:18.465] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:18.465] base::names(...future.oldOptions)) [17:27:18.465] } [17:27:18.465] if (FALSE) { [17:27:18.465] } [17:27:18.465] else { [17:27:18.465] if (TRUE) { [17:27:18.465] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:18.465] open = "w") [17:27:18.465] } [17:27:18.465] else { [17:27:18.465] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:18.465] windows = "NUL", "/dev/null"), open = "w") [17:27:18.465] } [17:27:18.465] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:18.465] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:18.465] base::sink(type = "output", split = FALSE) [17:27:18.465] base::close(...future.stdout) [17:27:18.465] }, add = TRUE) [17:27:18.465] } [17:27:18.465] ...future.frame <- base::sys.nframe() [17:27:18.465] ...future.conditions <- base::list() [17:27:18.465] ...future.rng <- base::globalenv()$.Random.seed [17:27:18.465] if (FALSE) { [17:27:18.465] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:18.465] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:18.465] } [17:27:18.465] ...future.result <- base::tryCatch({ [17:27:18.465] base::withCallingHandlers({ [17:27:18.465] ...future.value <- base::withVisible(base::local({ [17:27:18.465] 42L [17:27:18.465] })) [17:27:18.465] future::FutureResult(value = ...future.value$value, [17:27:18.465] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:18.465] ...future.rng), globalenv = if (FALSE) [17:27:18.465] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:18.465] ...future.globalenv.names)) [17:27:18.465] else NULL, started = ...future.startTime, version = "1.8") [17:27:18.465] }, condition = base::local({ [17:27:18.465] c <- base::c [17:27:18.465] inherits <- base::inherits [17:27:18.465] invokeRestart <- base::invokeRestart [17:27:18.465] length <- base::length [17:27:18.465] list <- base::list [17:27:18.465] seq.int <- base::seq.int [17:27:18.465] signalCondition <- base::signalCondition [17:27:18.465] sys.calls <- base::sys.calls [17:27:18.465] `[[` <- base::`[[` [17:27:18.465] `+` <- base::`+` [17:27:18.465] `<<-` <- base::`<<-` [17:27:18.465] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:18.465] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:18.465] 3L)] [17:27:18.465] } [17:27:18.465] function(cond) { [17:27:18.465] is_error <- inherits(cond, "error") [17:27:18.465] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:18.465] NULL) [17:27:18.465] if (is_error) { [17:27:18.465] sessionInformation <- function() { [17:27:18.465] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:18.465] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:18.465] search = base::search(), system = base::Sys.info()) [17:27:18.465] } [17:27:18.465] ...future.conditions[[length(...future.conditions) + [17:27:18.465] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:18.465] cond$call), session = sessionInformation(), [17:27:18.465] timestamp = base::Sys.time(), signaled = 0L) [17:27:18.465] signalCondition(cond) [17:27:18.465] } [17:27:18.465] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:18.465] "immediateCondition"))) { [17:27:18.465] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:18.465] ...future.conditions[[length(...future.conditions) + [17:27:18.465] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:18.465] if (TRUE && !signal) { [17:27:18.465] muffleCondition <- function (cond, pattern = "^muffle") [17:27:18.465] { [17:27:18.465] inherits <- base::inherits [17:27:18.465] invokeRestart <- base::invokeRestart [17:27:18.465] is.null <- base::is.null [17:27:18.465] muffled <- FALSE [17:27:18.465] if (inherits(cond, "message")) { [17:27:18.465] muffled <- grepl(pattern, "muffleMessage") [17:27:18.465] if (muffled) [17:27:18.465] invokeRestart("muffleMessage") [17:27:18.465] } [17:27:18.465] else if (inherits(cond, "warning")) { [17:27:18.465] muffled <- grepl(pattern, "muffleWarning") [17:27:18.465] if (muffled) [17:27:18.465] invokeRestart("muffleWarning") [17:27:18.465] } [17:27:18.465] else if (inherits(cond, "condition")) { [17:27:18.465] if (!is.null(pattern)) { [17:27:18.465] computeRestarts <- base::computeRestarts [17:27:18.465] grepl <- base::grepl [17:27:18.465] restarts <- computeRestarts(cond) [17:27:18.465] for (restart in restarts) { [17:27:18.465] name <- restart$name [17:27:18.465] if (is.null(name)) [17:27:18.465] next [17:27:18.465] if (!grepl(pattern, name)) [17:27:18.465] next [17:27:18.465] invokeRestart(restart) [17:27:18.465] muffled <- TRUE [17:27:18.465] break [17:27:18.465] } [17:27:18.465] } [17:27:18.465] } [17:27:18.465] invisible(muffled) [17:27:18.465] } [17:27:18.465] muffleCondition(cond, pattern = "^muffle") [17:27:18.465] } [17:27:18.465] } [17:27:18.465] else { [17:27:18.465] if (TRUE) { [17:27:18.465] muffleCondition <- function (cond, pattern = "^muffle") [17:27:18.465] { [17:27:18.465] inherits <- base::inherits [17:27:18.465] invokeRestart <- base::invokeRestart [17:27:18.465] is.null <- base::is.null [17:27:18.465] muffled <- FALSE [17:27:18.465] if (inherits(cond, "message")) { [17:27:18.465] muffled <- grepl(pattern, "muffleMessage") [17:27:18.465] if (muffled) [17:27:18.465] invokeRestart("muffleMessage") [17:27:18.465] } [17:27:18.465] else if (inherits(cond, "warning")) { [17:27:18.465] muffled <- grepl(pattern, "muffleWarning") [17:27:18.465] if (muffled) [17:27:18.465] invokeRestart("muffleWarning") [17:27:18.465] } [17:27:18.465] else if (inherits(cond, "condition")) { [17:27:18.465] if (!is.null(pattern)) { [17:27:18.465] computeRestarts <- base::computeRestarts [17:27:18.465] grepl <- base::grepl [17:27:18.465] restarts <- computeRestarts(cond) [17:27:18.465] for (restart in restarts) { [17:27:18.465] name <- restart$name [17:27:18.465] if (is.null(name)) [17:27:18.465] next [17:27:18.465] if (!grepl(pattern, name)) [17:27:18.465] next [17:27:18.465] invokeRestart(restart) [17:27:18.465] muffled <- TRUE [17:27:18.465] break [17:27:18.465] } [17:27:18.465] } [17:27:18.465] } [17:27:18.465] invisible(muffled) [17:27:18.465] } [17:27:18.465] muffleCondition(cond, pattern = "^muffle") [17:27:18.465] } [17:27:18.465] } [17:27:18.465] } [17:27:18.465] })) [17:27:18.465] }, error = function(ex) { [17:27:18.465] base::structure(base::list(value = NULL, visible = NULL, [17:27:18.465] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:18.465] ...future.rng), started = ...future.startTime, [17:27:18.465] finished = Sys.time(), session_uuid = NA_character_, [17:27:18.465] version = "1.8"), class = "FutureResult") [17:27:18.465] }, finally = { [17:27:18.465] if (!identical(...future.workdir, getwd())) [17:27:18.465] setwd(...future.workdir) [17:27:18.465] { [17:27:18.465] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:18.465] ...future.oldOptions$nwarnings <- NULL [17:27:18.465] } [17:27:18.465] base::options(...future.oldOptions) [17:27:18.465] if (.Platform$OS.type == "windows") { [17:27:18.465] old_names <- names(...future.oldEnvVars) [17:27:18.465] envs <- base::Sys.getenv() [17:27:18.465] names <- names(envs) [17:27:18.465] common <- intersect(names, old_names) [17:27:18.465] added <- setdiff(names, old_names) [17:27:18.465] removed <- setdiff(old_names, names) [17:27:18.465] changed <- common[...future.oldEnvVars[common] != [17:27:18.465] envs[common]] [17:27:18.465] NAMES <- toupper(changed) [17:27:18.465] args <- list() [17:27:18.465] for (kk in seq_along(NAMES)) { [17:27:18.465] name <- changed[[kk]] [17:27:18.465] NAME <- NAMES[[kk]] [17:27:18.465] if (name != NAME && is.element(NAME, old_names)) [17:27:18.465] next [17:27:18.465] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:18.465] } [17:27:18.465] NAMES <- toupper(added) [17:27:18.465] for (kk in seq_along(NAMES)) { [17:27:18.465] name <- added[[kk]] [17:27:18.465] NAME <- NAMES[[kk]] [17:27:18.465] if (name != NAME && is.element(NAME, old_names)) [17:27:18.465] next [17:27:18.465] args[[name]] <- "" [17:27:18.465] } [17:27:18.465] NAMES <- toupper(removed) [17:27:18.465] for (kk in seq_along(NAMES)) { [17:27:18.465] name <- removed[[kk]] [17:27:18.465] NAME <- NAMES[[kk]] [17:27:18.465] if (name != NAME && is.element(NAME, old_names)) [17:27:18.465] next [17:27:18.465] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:18.465] } [17:27:18.465] if (length(args) > 0) [17:27:18.465] base::do.call(base::Sys.setenv, args = args) [17:27:18.465] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:18.465] } [17:27:18.465] else { [17:27:18.465] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:18.465] } [17:27:18.465] { [17:27:18.465] if (base::length(...future.futureOptionsAdded) > [17:27:18.465] 0L) { [17:27:18.465] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:18.465] base::names(opts) <- ...future.futureOptionsAdded [17:27:18.465] base::options(opts) [17:27:18.465] } [17:27:18.465] { [17:27:18.465] { [17:27:18.465] NULL [17:27:18.465] RNGkind("Mersenne-Twister") [17:27:18.465] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:18.465] inherits = FALSE) [17:27:18.465] } [17:27:18.465] options(future.plan = NULL) [17:27:18.465] if (is.na(NA_character_)) [17:27:18.465] Sys.unsetenv("R_FUTURE_PLAN") [17:27:18.465] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:18.465] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:18.465] .init = FALSE) [17:27:18.465] } [17:27:18.465] } [17:27:18.465] } [17:27:18.465] }) [17:27:18.465] if (TRUE) { [17:27:18.465] base::sink(type = "output", split = FALSE) [17:27:18.465] if (TRUE) { [17:27:18.465] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:18.465] } [17:27:18.465] else { [17:27:18.465] ...future.result["stdout"] <- base::list(NULL) [17:27:18.465] } [17:27:18.465] base::close(...future.stdout) [17:27:18.465] ...future.stdout <- NULL [17:27:18.465] } [17:27:18.465] ...future.result$conditions <- ...future.conditions [17:27:18.465] ...future.result$finished <- base::Sys.time() [17:27:18.465] ...future.result [17:27:18.465] } [17:27:18.472] plan(): Setting new future strategy stack: [17:27:18.473] List of future strategies: [17:27:18.473] 1. sequential: [17:27:18.473] - args: function (..., envir = parent.frame(), workers = "") [17:27:18.473] - tweaked: FALSE [17:27:18.473] - call: NULL [17:27:18.474] plan(): nbrOfWorkers() = 1 [17:27:18.477] plan(): Setting new future strategy stack: [17:27:18.477] List of future strategies: [17:27:18.477] 1. sequential: [17:27:18.477] - args: function (..., envir = parent.frame(), workers = "") [17:27:18.477] - tweaked: FALSE [17:27:18.477] - call: future::plan("sequential") [17:27:18.478] plan(): nbrOfWorkers() = 1 [17:27:18.478] SequentialFuture started (and completed) [17:27:18.483] - Launch lazy future ... done [17:27:18.483] run() for 'SequentialFuture' ... done [17:27:18.484] - run() ... done [17:27:18.484] - resolved() ... [17:27:18.484] resolved() for 'SequentialFuture' ... [17:27:18.485] - state: 'finished' [17:27:18.485] - run: TRUE [17:27:18.485] - result: 'FutureResult' [17:27:18.486] resolved() for 'SequentialFuture' ... done [17:27:18.486] - resolved: TRUE [17:27:18.486] - resolved() ... done [17:27:18.487] 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:27:18.488] getGlobalsAndPackages() ... [17:27:18.488] Searching for globals... [17:27:18.489] [17:27:18.489] Searching for globals ... DONE [17:27:18.490] - globals: [0] [17:27:18.490] 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: 74e58348-7444-a80b-c600-befd0a4178d8 Class: 'Future', 'environment' > y <- value(f) [17:27:18.492] run() for 'Future' ... [17:27:18.492] - state: 'created' [17:27:18.493] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:27:18.493] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:18.494] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:27:18.494] - Field: 'label' [17:27:18.494] - Field: 'local' [17:27:18.495] - Field: 'owner' [17:27:18.495] - Field: 'envir' [17:27:18.495] - Field: 'packages' [17:27:18.496] - Field: 'gc' [17:27:18.496] - Field: 'conditions' [17:27:18.496] - Field: 'expr' [17:27:18.497] - Field: 'uuid' [17:27:18.497] - Field: 'seed' [17:27:18.497] - Field: 'version' [17:27:18.498] - Field: 'result' [17:27:18.498] - Field: 'asynchronous' [17:27:18.498] - Field: 'calls' [17:27:18.499] - Field: 'globals' [17:27:18.499] - Field: 'stdout' [17:27:18.499] - Field: 'earlySignal' [17:27:18.500] - Field: 'lazy' [17:27:18.500] - Field: 'state' [17:27:18.500] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:27:18.501] - Launch lazy future ... [17:27:18.501] Packages needed by the future expression (n = 0): [17:27:18.501] Packages needed by future strategies (n = 0): [17:27:18.502] { [17:27:18.502] { [17:27:18.502] { [17:27:18.502] ...future.startTime <- base::Sys.time() [17:27:18.502] { [17:27:18.502] { [17:27:18.502] { [17:27:18.502] base::local({ [17:27:18.502] has_future <- base::requireNamespace("future", [17:27:18.502] quietly = TRUE) [17:27:18.502] if (has_future) { [17:27:18.502] ns <- base::getNamespace("future") [17:27:18.502] version <- ns[[".package"]][["version"]] [17:27:18.502] if (is.null(version)) [17:27:18.502] version <- utils::packageVersion("future") [17:27:18.502] } [17:27:18.502] else { [17:27:18.502] version <- NULL [17:27:18.502] } [17:27:18.502] if (!has_future || version < "1.8.0") { [17:27:18.502] info <- base::c(r_version = base::gsub("R version ", [17:27:18.502] "", base::R.version$version.string), [17:27:18.502] platform = base::sprintf("%s (%s-bit)", [17:27:18.502] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:18.502] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:18.502] "release", "version")], collapse = " "), [17:27:18.502] hostname = base::Sys.info()[["nodename"]]) [17:27:18.502] info <- base::sprintf("%s: %s", base::names(info), [17:27:18.502] info) [17:27:18.502] info <- base::paste(info, collapse = "; ") [17:27:18.502] if (!has_future) { [17:27:18.502] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:18.502] info) [17:27:18.502] } [17:27:18.502] else { [17:27:18.502] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:18.502] info, version) [17:27:18.502] } [17:27:18.502] base::stop(msg) [17:27:18.502] } [17:27:18.502] }) [17:27:18.502] } [17:27:18.502] ...future.strategy.old <- future::plan("list") [17:27:18.502] options(future.plan = NULL) [17:27:18.502] Sys.unsetenv("R_FUTURE_PLAN") [17:27:18.502] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:18.502] } [17:27:18.502] ...future.workdir <- getwd() [17:27:18.502] } [17:27:18.502] ...future.oldOptions <- base::as.list(base::.Options) [17:27:18.502] ...future.oldEnvVars <- base::Sys.getenv() [17:27:18.502] } [17:27:18.502] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:18.502] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:18.502] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:18.502] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:18.502] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:18.502] future.stdout.windows.reencode = NULL, width = 80L) [17:27:18.502] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:18.502] base::names(...future.oldOptions)) [17:27:18.502] } [17:27:18.502] if (FALSE) { [17:27:18.502] } [17:27:18.502] else { [17:27:18.502] if (TRUE) { [17:27:18.502] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:18.502] open = "w") [17:27:18.502] } [17:27:18.502] else { [17:27:18.502] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:18.502] windows = "NUL", "/dev/null"), open = "w") [17:27:18.502] } [17:27:18.502] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:18.502] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:18.502] base::sink(type = "output", split = FALSE) [17:27:18.502] base::close(...future.stdout) [17:27:18.502] }, add = TRUE) [17:27:18.502] } [17:27:18.502] ...future.frame <- base::sys.nframe() [17:27:18.502] ...future.conditions <- base::list() [17:27:18.502] ...future.rng <- base::globalenv()$.Random.seed [17:27:18.502] if (FALSE) { [17:27:18.502] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:18.502] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:18.502] } [17:27:18.502] ...future.result <- base::tryCatch({ [17:27:18.502] base::withCallingHandlers({ [17:27:18.502] ...future.value <- base::withVisible(base::local(42L)) [17:27:18.502] future::FutureResult(value = ...future.value$value, [17:27:18.502] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:18.502] ...future.rng), globalenv = if (FALSE) [17:27:18.502] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:18.502] ...future.globalenv.names)) [17:27:18.502] else NULL, started = ...future.startTime, version = "1.8") [17:27:18.502] }, condition = base::local({ [17:27:18.502] c <- base::c [17:27:18.502] inherits <- base::inherits [17:27:18.502] invokeRestart <- base::invokeRestart [17:27:18.502] length <- base::length [17:27:18.502] list <- base::list [17:27:18.502] seq.int <- base::seq.int [17:27:18.502] signalCondition <- base::signalCondition [17:27:18.502] sys.calls <- base::sys.calls [17:27:18.502] `[[` <- base::`[[` [17:27:18.502] `+` <- base::`+` [17:27:18.502] `<<-` <- base::`<<-` [17:27:18.502] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:18.502] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:18.502] 3L)] [17:27:18.502] } [17:27:18.502] function(cond) { [17:27:18.502] is_error <- inherits(cond, "error") [17:27:18.502] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:18.502] NULL) [17:27:18.502] if (is_error) { [17:27:18.502] sessionInformation <- function() { [17:27:18.502] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:18.502] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:18.502] search = base::search(), system = base::Sys.info()) [17:27:18.502] } [17:27:18.502] ...future.conditions[[length(...future.conditions) + [17:27:18.502] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:18.502] cond$call), session = sessionInformation(), [17:27:18.502] timestamp = base::Sys.time(), signaled = 0L) [17:27:18.502] signalCondition(cond) [17:27:18.502] } [17:27:18.502] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:18.502] "immediateCondition"))) { [17:27:18.502] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:18.502] ...future.conditions[[length(...future.conditions) + [17:27:18.502] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:18.502] if (TRUE && !signal) { [17:27:18.502] muffleCondition <- function (cond, pattern = "^muffle") [17:27:18.502] { [17:27:18.502] inherits <- base::inherits [17:27:18.502] invokeRestart <- base::invokeRestart [17:27:18.502] is.null <- base::is.null [17:27:18.502] muffled <- FALSE [17:27:18.502] if (inherits(cond, "message")) { [17:27:18.502] muffled <- grepl(pattern, "muffleMessage") [17:27:18.502] if (muffled) [17:27:18.502] invokeRestart("muffleMessage") [17:27:18.502] } [17:27:18.502] else if (inherits(cond, "warning")) { [17:27:18.502] muffled <- grepl(pattern, "muffleWarning") [17:27:18.502] if (muffled) [17:27:18.502] invokeRestart("muffleWarning") [17:27:18.502] } [17:27:18.502] else if (inherits(cond, "condition")) { [17:27:18.502] if (!is.null(pattern)) { [17:27:18.502] computeRestarts <- base::computeRestarts [17:27:18.502] grepl <- base::grepl [17:27:18.502] restarts <- computeRestarts(cond) [17:27:18.502] for (restart in restarts) { [17:27:18.502] name <- restart$name [17:27:18.502] if (is.null(name)) [17:27:18.502] next [17:27:18.502] if (!grepl(pattern, name)) [17:27:18.502] next [17:27:18.502] invokeRestart(restart) [17:27:18.502] muffled <- TRUE [17:27:18.502] break [17:27:18.502] } [17:27:18.502] } [17:27:18.502] } [17:27:18.502] invisible(muffled) [17:27:18.502] } [17:27:18.502] muffleCondition(cond, pattern = "^muffle") [17:27:18.502] } [17:27:18.502] } [17:27:18.502] else { [17:27:18.502] if (TRUE) { [17:27:18.502] muffleCondition <- function (cond, pattern = "^muffle") [17:27:18.502] { [17:27:18.502] inherits <- base::inherits [17:27:18.502] invokeRestart <- base::invokeRestart [17:27:18.502] is.null <- base::is.null [17:27:18.502] muffled <- FALSE [17:27:18.502] if (inherits(cond, "message")) { [17:27:18.502] muffled <- grepl(pattern, "muffleMessage") [17:27:18.502] if (muffled) [17:27:18.502] invokeRestart("muffleMessage") [17:27:18.502] } [17:27:18.502] else if (inherits(cond, "warning")) { [17:27:18.502] muffled <- grepl(pattern, "muffleWarning") [17:27:18.502] if (muffled) [17:27:18.502] invokeRestart("muffleWarning") [17:27:18.502] } [17:27:18.502] else if (inherits(cond, "condition")) { [17:27:18.502] if (!is.null(pattern)) { [17:27:18.502] computeRestarts <- base::computeRestarts [17:27:18.502] grepl <- base::grepl [17:27:18.502] restarts <- computeRestarts(cond) [17:27:18.502] for (restart in restarts) { [17:27:18.502] name <- restart$name [17:27:18.502] if (is.null(name)) [17:27:18.502] next [17:27:18.502] if (!grepl(pattern, name)) [17:27:18.502] next [17:27:18.502] invokeRestart(restart) [17:27:18.502] muffled <- TRUE [17:27:18.502] break [17:27:18.502] } [17:27:18.502] } [17:27:18.502] } [17:27:18.502] invisible(muffled) [17:27:18.502] } [17:27:18.502] muffleCondition(cond, pattern = "^muffle") [17:27:18.502] } [17:27:18.502] } [17:27:18.502] } [17:27:18.502] })) [17:27:18.502] }, error = function(ex) { [17:27:18.502] base::structure(base::list(value = NULL, visible = NULL, [17:27:18.502] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:18.502] ...future.rng), started = ...future.startTime, [17:27:18.502] finished = Sys.time(), session_uuid = NA_character_, [17:27:18.502] version = "1.8"), class = "FutureResult") [17:27:18.502] }, finally = { [17:27:18.502] if (!identical(...future.workdir, getwd())) [17:27:18.502] setwd(...future.workdir) [17:27:18.502] { [17:27:18.502] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:18.502] ...future.oldOptions$nwarnings <- NULL [17:27:18.502] } [17:27:18.502] base::options(...future.oldOptions) [17:27:18.502] if (.Platform$OS.type == "windows") { [17:27:18.502] old_names <- names(...future.oldEnvVars) [17:27:18.502] envs <- base::Sys.getenv() [17:27:18.502] names <- names(envs) [17:27:18.502] common <- intersect(names, old_names) [17:27:18.502] added <- setdiff(names, old_names) [17:27:18.502] removed <- setdiff(old_names, names) [17:27:18.502] changed <- common[...future.oldEnvVars[common] != [17:27:18.502] envs[common]] [17:27:18.502] NAMES <- toupper(changed) [17:27:18.502] args <- list() [17:27:18.502] for (kk in seq_along(NAMES)) { [17:27:18.502] name <- changed[[kk]] [17:27:18.502] NAME <- NAMES[[kk]] [17:27:18.502] if (name != NAME && is.element(NAME, old_names)) [17:27:18.502] next [17:27:18.502] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:18.502] } [17:27:18.502] NAMES <- toupper(added) [17:27:18.502] for (kk in seq_along(NAMES)) { [17:27:18.502] name <- added[[kk]] [17:27:18.502] NAME <- NAMES[[kk]] [17:27:18.502] if (name != NAME && is.element(NAME, old_names)) [17:27:18.502] next [17:27:18.502] args[[name]] <- "" [17:27:18.502] } [17:27:18.502] NAMES <- toupper(removed) [17:27:18.502] for (kk in seq_along(NAMES)) { [17:27:18.502] name <- removed[[kk]] [17:27:18.502] NAME <- NAMES[[kk]] [17:27:18.502] if (name != NAME && is.element(NAME, old_names)) [17:27:18.502] next [17:27:18.502] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:18.502] } [17:27:18.502] if (length(args) > 0) [17:27:18.502] base::do.call(base::Sys.setenv, args = args) [17:27:18.502] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:18.502] } [17:27:18.502] else { [17:27:18.502] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:18.502] } [17:27:18.502] { [17:27:18.502] if (base::length(...future.futureOptionsAdded) > [17:27:18.502] 0L) { [17:27:18.502] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:18.502] base::names(opts) <- ...future.futureOptionsAdded [17:27:18.502] base::options(opts) [17:27:18.502] } [17:27:18.502] { [17:27:18.502] { [17:27:18.502] NULL [17:27:18.502] RNGkind("Mersenne-Twister") [17:27:18.502] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:18.502] inherits = FALSE) [17:27:18.502] } [17:27:18.502] options(future.plan = NULL) [17:27:18.502] if (is.na(NA_character_)) [17:27:18.502] Sys.unsetenv("R_FUTURE_PLAN") [17:27:18.502] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:18.502] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:18.502] .init = FALSE) [17:27:18.502] } [17:27:18.502] } [17:27:18.502] } [17:27:18.502] }) [17:27:18.502] if (TRUE) { [17:27:18.502] base::sink(type = "output", split = FALSE) [17:27:18.502] if (TRUE) { [17:27:18.502] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:18.502] } [17:27:18.502] else { [17:27:18.502] ...future.result["stdout"] <- base::list(NULL) [17:27:18.502] } [17:27:18.502] base::close(...future.stdout) [17:27:18.502] ...future.stdout <- NULL [17:27:18.502] } [17:27:18.502] ...future.result$conditions <- ...future.conditions [17:27:18.502] ...future.result$finished <- base::Sys.time() [17:27:18.502] ...future.result [17:27:18.502] } [17:27:18.510] plan(): Setting new future strategy stack: [17:27:18.510] List of future strategies: [17:27:18.510] 1. sequential: [17:27:18.510] - args: function (..., envir = parent.frame(), workers = "") [17:27:18.510] - tweaked: FALSE [17:27:18.510] - call: NULL [17:27:18.511] plan(): nbrOfWorkers() = 1 [17:27:18.513] plan(): Setting new future strategy stack: [17:27:18.514] List of future strategies: [17:27:18.514] 1. sequential: [17:27:18.514] - args: function (..., envir = parent.frame(), workers = "") [17:27:18.514] - tweaked: FALSE [17:27:18.514] - call: future::plan("sequential") [17:27:18.515] plan(): nbrOfWorkers() = 1 [17:27:18.515] SequentialFuture started (and completed) [17:27:18.516] - Launch lazy future ... done [17:27:18.516] 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:27:18.517] getGlobalsAndPackages() ... [17:27:18.518] Searching for globals... [17:27:18.519] - globals found: [1] '{' [17:27:18.519] Searching for globals ... DONE [17:27:18.520] Resolving globals: FALSE [17:27:18.520] [17:27:18.521] [17:27:18.521] getGlobalsAndPackages() ... DONE > > print(resolved(f)) [17:27:18.522] resolved() for 'Future' ... [17:27:18.522] - state: 'created' [17:27:18.522] - run: TRUE [17:27:18.523] - run() ... [17:27:18.523] run() for 'Future' ... [17:27:18.523] - state: 'created' [17:27:18.524] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:27:18.524] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:18.524] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:27:18.525] - Field: 'label' [17:27:18.525] - Field: 'local' [17:27:18.525] - Field: 'owner' [17:27:18.526] - Field: 'envir' [17:27:18.526] - Field: 'packages' [17:27:18.526] - Field: 'gc' [17:27:18.526] - Field: 'conditions' [17:27:18.527] - Field: 'expr' [17:27:18.527] - Field: 'uuid' [17:27:18.527] - Field: 'seed' [17:27:18.528] - Field: 'version' [17:27:18.528] - Field: 'result' [17:27:18.528] - Field: 'asynchronous' [17:27:18.528] - Field: 'calls' [17:27:18.529] - Field: 'globals' [17:27:18.529] - Field: 'stdout' [17:27:18.529] - Field: 'earlySignal' [17:27:18.530] - Field: 'lazy' [17:27:18.530] - Field: 'state' [17:27:18.530] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:27:18.531] - Launch lazy future ... [17:27:18.531] Packages needed by the future expression (n = 0): [17:27:18.531] Packages needed by future strategies (n = 0): [17:27:18.533] { [17:27:18.533] { [17:27:18.533] { [17:27:18.533] ...future.startTime <- base::Sys.time() [17:27:18.533] { [17:27:18.533] { [17:27:18.533] { [17:27:18.533] base::local({ [17:27:18.533] has_future <- base::requireNamespace("future", [17:27:18.533] quietly = TRUE) [17:27:18.533] if (has_future) { [17:27:18.533] ns <- base::getNamespace("future") [17:27:18.533] version <- ns[[".package"]][["version"]] [17:27:18.533] if (is.null(version)) [17:27:18.533] version <- utils::packageVersion("future") [17:27:18.533] } [17:27:18.533] else { [17:27:18.533] version <- NULL [17:27:18.533] } [17:27:18.533] if (!has_future || version < "1.8.0") { [17:27:18.533] info <- base::c(r_version = base::gsub("R version ", [17:27:18.533] "", base::R.version$version.string), [17:27:18.533] platform = base::sprintf("%s (%s-bit)", [17:27:18.533] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:18.533] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:18.533] "release", "version")], collapse = " "), [17:27:18.533] hostname = base::Sys.info()[["nodename"]]) [17:27:18.533] info <- base::sprintf("%s: %s", base::names(info), [17:27:18.533] info) [17:27:18.533] info <- base::paste(info, collapse = "; ") [17:27:18.533] if (!has_future) { [17:27:18.533] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:18.533] info) [17:27:18.533] } [17:27:18.533] else { [17:27:18.533] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:18.533] info, version) [17:27:18.533] } [17:27:18.533] base::stop(msg) [17:27:18.533] } [17:27:18.533] }) [17:27:18.533] } [17:27:18.533] ...future.strategy.old <- future::plan("list") [17:27:18.533] options(future.plan = NULL) [17:27:18.533] Sys.unsetenv("R_FUTURE_PLAN") [17:27:18.533] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:18.533] } [17:27:18.533] ...future.workdir <- getwd() [17:27:18.533] } [17:27:18.533] ...future.oldOptions <- base::as.list(base::.Options) [17:27:18.533] ...future.oldEnvVars <- base::Sys.getenv() [17:27:18.533] } [17:27:18.533] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:18.533] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:18.533] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:18.533] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:18.533] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:18.533] future.stdout.windows.reencode = NULL, width = 80L) [17:27:18.533] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:18.533] base::names(...future.oldOptions)) [17:27:18.533] } [17:27:18.533] if (FALSE) { [17:27:18.533] } [17:27:18.533] else { [17:27:18.533] if (TRUE) { [17:27:18.533] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:18.533] open = "w") [17:27:18.533] } [17:27:18.533] else { [17:27:18.533] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:18.533] windows = "NUL", "/dev/null"), open = "w") [17:27:18.533] } [17:27:18.533] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:18.533] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:18.533] base::sink(type = "output", split = FALSE) [17:27:18.533] base::close(...future.stdout) [17:27:18.533] }, add = TRUE) [17:27:18.533] } [17:27:18.533] ...future.frame <- base::sys.nframe() [17:27:18.533] ...future.conditions <- base::list() [17:27:18.533] ...future.rng <- base::globalenv()$.Random.seed [17:27:18.533] if (FALSE) { [17:27:18.533] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:18.533] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:18.533] } [17:27:18.533] ...future.result <- base::tryCatch({ [17:27:18.533] base::withCallingHandlers({ [17:27:18.533] ...future.value <- base::withVisible(base::local({ [17:27:18.533] 42L [17:27:18.533] })) [17:27:18.533] future::FutureResult(value = ...future.value$value, [17:27:18.533] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:18.533] ...future.rng), globalenv = if (FALSE) [17:27:18.533] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:18.533] ...future.globalenv.names)) [17:27:18.533] else NULL, started = ...future.startTime, version = "1.8") [17:27:18.533] }, condition = base::local({ [17:27:18.533] c <- base::c [17:27:18.533] inherits <- base::inherits [17:27:18.533] invokeRestart <- base::invokeRestart [17:27:18.533] length <- base::length [17:27:18.533] list <- base::list [17:27:18.533] seq.int <- base::seq.int [17:27:18.533] signalCondition <- base::signalCondition [17:27:18.533] sys.calls <- base::sys.calls [17:27:18.533] `[[` <- base::`[[` [17:27:18.533] `+` <- base::`+` [17:27:18.533] `<<-` <- base::`<<-` [17:27:18.533] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:18.533] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:18.533] 3L)] [17:27:18.533] } [17:27:18.533] function(cond) { [17:27:18.533] is_error <- inherits(cond, "error") [17:27:18.533] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:18.533] NULL) [17:27:18.533] if (is_error) { [17:27:18.533] sessionInformation <- function() { [17:27:18.533] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:18.533] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:18.533] search = base::search(), system = base::Sys.info()) [17:27:18.533] } [17:27:18.533] ...future.conditions[[length(...future.conditions) + [17:27:18.533] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:18.533] cond$call), session = sessionInformation(), [17:27:18.533] timestamp = base::Sys.time(), signaled = 0L) [17:27:18.533] signalCondition(cond) [17:27:18.533] } [17:27:18.533] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:18.533] "immediateCondition"))) { [17:27:18.533] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:18.533] ...future.conditions[[length(...future.conditions) + [17:27:18.533] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:18.533] if (TRUE && !signal) { [17:27:18.533] muffleCondition <- function (cond, pattern = "^muffle") [17:27:18.533] { [17:27:18.533] inherits <- base::inherits [17:27:18.533] invokeRestart <- base::invokeRestart [17:27:18.533] is.null <- base::is.null [17:27:18.533] muffled <- FALSE [17:27:18.533] if (inherits(cond, "message")) { [17:27:18.533] muffled <- grepl(pattern, "muffleMessage") [17:27:18.533] if (muffled) [17:27:18.533] invokeRestart("muffleMessage") [17:27:18.533] } [17:27:18.533] else if (inherits(cond, "warning")) { [17:27:18.533] muffled <- grepl(pattern, "muffleWarning") [17:27:18.533] if (muffled) [17:27:18.533] invokeRestart("muffleWarning") [17:27:18.533] } [17:27:18.533] else if (inherits(cond, "condition")) { [17:27:18.533] if (!is.null(pattern)) { [17:27:18.533] computeRestarts <- base::computeRestarts [17:27:18.533] grepl <- base::grepl [17:27:18.533] restarts <- computeRestarts(cond) [17:27:18.533] for (restart in restarts) { [17:27:18.533] name <- restart$name [17:27:18.533] if (is.null(name)) [17:27:18.533] next [17:27:18.533] if (!grepl(pattern, name)) [17:27:18.533] next [17:27:18.533] invokeRestart(restart) [17:27:18.533] muffled <- TRUE [17:27:18.533] break [17:27:18.533] } [17:27:18.533] } [17:27:18.533] } [17:27:18.533] invisible(muffled) [17:27:18.533] } [17:27:18.533] muffleCondition(cond, pattern = "^muffle") [17:27:18.533] } [17:27:18.533] } [17:27:18.533] else { [17:27:18.533] if (TRUE) { [17:27:18.533] muffleCondition <- function (cond, pattern = "^muffle") [17:27:18.533] { [17:27:18.533] inherits <- base::inherits [17:27:18.533] invokeRestart <- base::invokeRestart [17:27:18.533] is.null <- base::is.null [17:27:18.533] muffled <- FALSE [17:27:18.533] if (inherits(cond, "message")) { [17:27:18.533] muffled <- grepl(pattern, "muffleMessage") [17:27:18.533] if (muffled) [17:27:18.533] invokeRestart("muffleMessage") [17:27:18.533] } [17:27:18.533] else if (inherits(cond, "warning")) { [17:27:18.533] muffled <- grepl(pattern, "muffleWarning") [17:27:18.533] if (muffled) [17:27:18.533] invokeRestart("muffleWarning") [17:27:18.533] } [17:27:18.533] else if (inherits(cond, "condition")) { [17:27:18.533] if (!is.null(pattern)) { [17:27:18.533] computeRestarts <- base::computeRestarts [17:27:18.533] grepl <- base::grepl [17:27:18.533] restarts <- computeRestarts(cond) [17:27:18.533] for (restart in restarts) { [17:27:18.533] name <- restart$name [17:27:18.533] if (is.null(name)) [17:27:18.533] next [17:27:18.533] if (!grepl(pattern, name)) [17:27:18.533] next [17:27:18.533] invokeRestart(restart) [17:27:18.533] muffled <- TRUE [17:27:18.533] break [17:27:18.533] } [17:27:18.533] } [17:27:18.533] } [17:27:18.533] invisible(muffled) [17:27:18.533] } [17:27:18.533] muffleCondition(cond, pattern = "^muffle") [17:27:18.533] } [17:27:18.533] } [17:27:18.533] } [17:27:18.533] })) [17:27:18.533] }, error = function(ex) { [17:27:18.533] base::structure(base::list(value = NULL, visible = NULL, [17:27:18.533] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:18.533] ...future.rng), started = ...future.startTime, [17:27:18.533] finished = Sys.time(), session_uuid = NA_character_, [17:27:18.533] version = "1.8"), class = "FutureResult") [17:27:18.533] }, finally = { [17:27:18.533] if (!identical(...future.workdir, getwd())) [17:27:18.533] setwd(...future.workdir) [17:27:18.533] { [17:27:18.533] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:18.533] ...future.oldOptions$nwarnings <- NULL [17:27:18.533] } [17:27:18.533] base::options(...future.oldOptions) [17:27:18.533] if (.Platform$OS.type == "windows") { [17:27:18.533] old_names <- names(...future.oldEnvVars) [17:27:18.533] envs <- base::Sys.getenv() [17:27:18.533] names <- names(envs) [17:27:18.533] common <- intersect(names, old_names) [17:27:18.533] added <- setdiff(names, old_names) [17:27:18.533] removed <- setdiff(old_names, names) [17:27:18.533] changed <- common[...future.oldEnvVars[common] != [17:27:18.533] envs[common]] [17:27:18.533] NAMES <- toupper(changed) [17:27:18.533] args <- list() [17:27:18.533] for (kk in seq_along(NAMES)) { [17:27:18.533] name <- changed[[kk]] [17:27:18.533] NAME <- NAMES[[kk]] [17:27:18.533] if (name != NAME && is.element(NAME, old_names)) [17:27:18.533] next [17:27:18.533] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:18.533] } [17:27:18.533] NAMES <- toupper(added) [17:27:18.533] for (kk in seq_along(NAMES)) { [17:27:18.533] name <- added[[kk]] [17:27:18.533] NAME <- NAMES[[kk]] [17:27:18.533] if (name != NAME && is.element(NAME, old_names)) [17:27:18.533] next [17:27:18.533] args[[name]] <- "" [17:27:18.533] } [17:27:18.533] NAMES <- toupper(removed) [17:27:18.533] for (kk in seq_along(NAMES)) { [17:27:18.533] name <- removed[[kk]] [17:27:18.533] NAME <- NAMES[[kk]] [17:27:18.533] if (name != NAME && is.element(NAME, old_names)) [17:27:18.533] next [17:27:18.533] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:18.533] } [17:27:18.533] if (length(args) > 0) [17:27:18.533] base::do.call(base::Sys.setenv, args = args) [17:27:18.533] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:18.533] } [17:27:18.533] else { [17:27:18.533] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:18.533] } [17:27:18.533] { [17:27:18.533] if (base::length(...future.futureOptionsAdded) > [17:27:18.533] 0L) { [17:27:18.533] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:18.533] base::names(opts) <- ...future.futureOptionsAdded [17:27:18.533] base::options(opts) [17:27:18.533] } [17:27:18.533] { [17:27:18.533] { [17:27:18.533] NULL [17:27:18.533] RNGkind("Mersenne-Twister") [17:27:18.533] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:18.533] inherits = FALSE) [17:27:18.533] } [17:27:18.533] options(future.plan = NULL) [17:27:18.533] if (is.na(NA_character_)) [17:27:18.533] Sys.unsetenv("R_FUTURE_PLAN") [17:27:18.533] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:18.533] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:18.533] .init = FALSE) [17:27:18.533] } [17:27:18.533] } [17:27:18.533] } [17:27:18.533] }) [17:27:18.533] if (TRUE) { [17:27:18.533] base::sink(type = "output", split = FALSE) [17:27:18.533] if (TRUE) { [17:27:18.533] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:18.533] } [17:27:18.533] else { [17:27:18.533] ...future.result["stdout"] <- base::list(NULL) [17:27:18.533] } [17:27:18.533] base::close(...future.stdout) [17:27:18.533] ...future.stdout <- NULL [17:27:18.533] } [17:27:18.533] ...future.result$conditions <- ...future.conditions [17:27:18.533] ...future.result$finished <- base::Sys.time() [17:27:18.533] ...future.result [17:27:18.533] } [17:27:18.540] plan(): Setting new future strategy stack: [17:27:18.540] List of future strategies: [17:27:18.540] 1. sequential: [17:27:18.540] - args: function (..., envir = parent.frame(), workers = "") [17:27:18.540] - tweaked: FALSE [17:27:18.540] - call: NULL [17:27:18.541] plan(): nbrOfWorkers() = 1 [17:27:18.544] plan(): Setting new future strategy stack: [17:27:18.544] List of future strategies: [17:27:18.544] 1. sequential: [17:27:18.544] - args: function (..., envir = parent.frame(), workers = "") [17:27:18.544] - tweaked: FALSE [17:27:18.544] - call: future::plan("sequential") [17:27:18.545] plan(): nbrOfWorkers() = 1 [17:27:18.545] SequentialFuture started (and completed) [17:27:18.546] - Launch lazy future ... done [17:27:18.546] run() for 'SequentialFuture' ... done [17:27:18.547] - run() ... done [17:27:18.547] - resolved() ... [17:27:18.547] resolved() for 'SequentialFuture' ... [17:27:18.548] - state: 'finished' [17:27:18.548] - run: TRUE [17:27:18.548] - result: 'FutureResult' [17:27:18.548] resolved() for 'SequentialFuture' ... done [17:27:18.549] - resolved: TRUE [17:27:18.549] - resolved() ... done [17:27:18.549] 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:27:18.550] getGlobalsAndPackages() ... [17:27:18.551] Searching for globals... [17:27:18.552] [17:27:18.552] Searching for globals ... DONE [17:27:18.552] - globals: [0] [17:27:18.552] 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: 74e58348-7444-a80b-c600-befd0a4178d8 Class: 'Future', 'environment' > y <- value(f) [17:27:18.554] run() for 'Future' ... [17:27:18.554] - state: 'created' [17:27:18.555] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:27:18.555] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:18.556] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:27:18.556] - Field: 'label' [17:27:18.556] - Field: 'local' [17:27:18.557] - Field: 'owner' [17:27:18.557] - Field: 'envir' [17:27:18.557] - Field: 'packages' [17:27:18.558] - Field: 'gc' [17:27:18.558] - Field: 'conditions' [17:27:18.558] - Field: 'expr' [17:27:18.559] - Field: 'uuid' [17:27:18.559] - Field: 'seed' [17:27:18.559] - Field: 'version' [17:27:18.560] - Field: 'result' [17:27:18.560] - Field: 'asynchronous' [17:27:18.560] - Field: 'calls' [17:27:18.561] - Field: 'globals' [17:27:18.561] - Field: 'stdout' [17:27:18.561] - Field: 'earlySignal' [17:27:18.562] - Field: 'lazy' [17:27:18.562] - Field: 'state' [17:27:18.562] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:27:18.563] - Launch lazy future ... [17:27:18.563] Packages needed by the future expression (n = 0): [17:27:18.566] Packages needed by future strategies (n = 0): [17:27:18.567] { [17:27:18.567] { [17:27:18.567] { [17:27:18.567] ...future.startTime <- base::Sys.time() [17:27:18.567] { [17:27:18.567] { [17:27:18.567] { [17:27:18.567] base::local({ [17:27:18.567] has_future <- base::requireNamespace("future", [17:27:18.567] quietly = TRUE) [17:27:18.567] if (has_future) { [17:27:18.567] ns <- base::getNamespace("future") [17:27:18.567] version <- ns[[".package"]][["version"]] [17:27:18.567] if (is.null(version)) [17:27:18.567] version <- utils::packageVersion("future") [17:27:18.567] } [17:27:18.567] else { [17:27:18.567] version <- NULL [17:27:18.567] } [17:27:18.567] if (!has_future || version < "1.8.0") { [17:27:18.567] info <- base::c(r_version = base::gsub("R version ", [17:27:18.567] "", base::R.version$version.string), [17:27:18.567] platform = base::sprintf("%s (%s-bit)", [17:27:18.567] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:18.567] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:18.567] "release", "version")], collapse = " "), [17:27:18.567] hostname = base::Sys.info()[["nodename"]]) [17:27:18.567] info <- base::sprintf("%s: %s", base::names(info), [17:27:18.567] info) [17:27:18.567] info <- base::paste(info, collapse = "; ") [17:27:18.567] if (!has_future) { [17:27:18.567] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:18.567] info) [17:27:18.567] } [17:27:18.567] else { [17:27:18.567] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:18.567] info, version) [17:27:18.567] } [17:27:18.567] base::stop(msg) [17:27:18.567] } [17:27:18.567] }) [17:27:18.567] } [17:27:18.567] ...future.strategy.old <- future::plan("list") [17:27:18.567] options(future.plan = NULL) [17:27:18.567] Sys.unsetenv("R_FUTURE_PLAN") [17:27:18.567] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:18.567] } [17:27:18.567] ...future.workdir <- getwd() [17:27:18.567] } [17:27:18.567] ...future.oldOptions <- base::as.list(base::.Options) [17:27:18.567] ...future.oldEnvVars <- base::Sys.getenv() [17:27:18.567] } [17:27:18.567] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:18.567] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:18.567] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:18.567] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:18.567] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:18.567] future.stdout.windows.reencode = NULL, width = 80L) [17:27:18.567] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:18.567] base::names(...future.oldOptions)) [17:27:18.567] } [17:27:18.567] if (FALSE) { [17:27:18.567] } [17:27:18.567] else { [17:27:18.567] if (TRUE) { [17:27:18.567] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:18.567] open = "w") [17:27:18.567] } [17:27:18.567] else { [17:27:18.567] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:18.567] windows = "NUL", "/dev/null"), open = "w") [17:27:18.567] } [17:27:18.567] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:18.567] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:18.567] base::sink(type = "output", split = FALSE) [17:27:18.567] base::close(...future.stdout) [17:27:18.567] }, add = TRUE) [17:27:18.567] } [17:27:18.567] ...future.frame <- base::sys.nframe() [17:27:18.567] ...future.conditions <- base::list() [17:27:18.567] ...future.rng <- base::globalenv()$.Random.seed [17:27:18.567] if (FALSE) { [17:27:18.567] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:18.567] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:18.567] } [17:27:18.567] ...future.result <- base::tryCatch({ [17:27:18.567] base::withCallingHandlers({ [17:27:18.567] ...future.value <- base::withVisible(base::local(42L)) [17:27:18.567] future::FutureResult(value = ...future.value$value, [17:27:18.567] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:18.567] ...future.rng), globalenv = if (FALSE) [17:27:18.567] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:18.567] ...future.globalenv.names)) [17:27:18.567] else NULL, started = ...future.startTime, version = "1.8") [17:27:18.567] }, condition = base::local({ [17:27:18.567] c <- base::c [17:27:18.567] inherits <- base::inherits [17:27:18.567] invokeRestart <- base::invokeRestart [17:27:18.567] length <- base::length [17:27:18.567] list <- base::list [17:27:18.567] seq.int <- base::seq.int [17:27:18.567] signalCondition <- base::signalCondition [17:27:18.567] sys.calls <- base::sys.calls [17:27:18.567] `[[` <- base::`[[` [17:27:18.567] `+` <- base::`+` [17:27:18.567] `<<-` <- base::`<<-` [17:27:18.567] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:18.567] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:18.567] 3L)] [17:27:18.567] } [17:27:18.567] function(cond) { [17:27:18.567] is_error <- inherits(cond, "error") [17:27:18.567] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:18.567] NULL) [17:27:18.567] if (is_error) { [17:27:18.567] sessionInformation <- function() { [17:27:18.567] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:18.567] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:18.567] search = base::search(), system = base::Sys.info()) [17:27:18.567] } [17:27:18.567] ...future.conditions[[length(...future.conditions) + [17:27:18.567] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:18.567] cond$call), session = sessionInformation(), [17:27:18.567] timestamp = base::Sys.time(), signaled = 0L) [17:27:18.567] signalCondition(cond) [17:27:18.567] } [17:27:18.567] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:18.567] "immediateCondition"))) { [17:27:18.567] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:18.567] ...future.conditions[[length(...future.conditions) + [17:27:18.567] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:18.567] if (TRUE && !signal) { [17:27:18.567] muffleCondition <- function (cond, pattern = "^muffle") [17:27:18.567] { [17:27:18.567] inherits <- base::inherits [17:27:18.567] invokeRestart <- base::invokeRestart [17:27:18.567] is.null <- base::is.null [17:27:18.567] muffled <- FALSE [17:27:18.567] if (inherits(cond, "message")) { [17:27:18.567] muffled <- grepl(pattern, "muffleMessage") [17:27:18.567] if (muffled) [17:27:18.567] invokeRestart("muffleMessage") [17:27:18.567] } [17:27:18.567] else if (inherits(cond, "warning")) { [17:27:18.567] muffled <- grepl(pattern, "muffleWarning") [17:27:18.567] if (muffled) [17:27:18.567] invokeRestart("muffleWarning") [17:27:18.567] } [17:27:18.567] else if (inherits(cond, "condition")) { [17:27:18.567] if (!is.null(pattern)) { [17:27:18.567] computeRestarts <- base::computeRestarts [17:27:18.567] grepl <- base::grepl [17:27:18.567] restarts <- computeRestarts(cond) [17:27:18.567] for (restart in restarts) { [17:27:18.567] name <- restart$name [17:27:18.567] if (is.null(name)) [17:27:18.567] next [17:27:18.567] if (!grepl(pattern, name)) [17:27:18.567] next [17:27:18.567] invokeRestart(restart) [17:27:18.567] muffled <- TRUE [17:27:18.567] break [17:27:18.567] } [17:27:18.567] } [17:27:18.567] } [17:27:18.567] invisible(muffled) [17:27:18.567] } [17:27:18.567] muffleCondition(cond, pattern = "^muffle") [17:27:18.567] } [17:27:18.567] } [17:27:18.567] else { [17:27:18.567] if (TRUE) { [17:27:18.567] muffleCondition <- function (cond, pattern = "^muffle") [17:27:18.567] { [17:27:18.567] inherits <- base::inherits [17:27:18.567] invokeRestart <- base::invokeRestart [17:27:18.567] is.null <- base::is.null [17:27:18.567] muffled <- FALSE [17:27:18.567] if (inherits(cond, "message")) { [17:27:18.567] muffled <- grepl(pattern, "muffleMessage") [17:27:18.567] if (muffled) [17:27:18.567] invokeRestart("muffleMessage") [17:27:18.567] } [17:27:18.567] else if (inherits(cond, "warning")) { [17:27:18.567] muffled <- grepl(pattern, "muffleWarning") [17:27:18.567] if (muffled) [17:27:18.567] invokeRestart("muffleWarning") [17:27:18.567] } [17:27:18.567] else if (inherits(cond, "condition")) { [17:27:18.567] if (!is.null(pattern)) { [17:27:18.567] computeRestarts <- base::computeRestarts [17:27:18.567] grepl <- base::grepl [17:27:18.567] restarts <- computeRestarts(cond) [17:27:18.567] for (restart in restarts) { [17:27:18.567] name <- restart$name [17:27:18.567] if (is.null(name)) [17:27:18.567] next [17:27:18.567] if (!grepl(pattern, name)) [17:27:18.567] next [17:27:18.567] invokeRestart(restart) [17:27:18.567] muffled <- TRUE [17:27:18.567] break [17:27:18.567] } [17:27:18.567] } [17:27:18.567] } [17:27:18.567] invisible(muffled) [17:27:18.567] } [17:27:18.567] muffleCondition(cond, pattern = "^muffle") [17:27:18.567] } [17:27:18.567] } [17:27:18.567] } [17:27:18.567] })) [17:27:18.567] }, error = function(ex) { [17:27:18.567] base::structure(base::list(value = NULL, visible = NULL, [17:27:18.567] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:18.567] ...future.rng), started = ...future.startTime, [17:27:18.567] finished = Sys.time(), session_uuid = NA_character_, [17:27:18.567] version = "1.8"), class = "FutureResult") [17:27:18.567] }, finally = { [17:27:18.567] if (!identical(...future.workdir, getwd())) [17:27:18.567] setwd(...future.workdir) [17:27:18.567] { [17:27:18.567] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:18.567] ...future.oldOptions$nwarnings <- NULL [17:27:18.567] } [17:27:18.567] base::options(...future.oldOptions) [17:27:18.567] if (.Platform$OS.type == "windows") { [17:27:18.567] old_names <- names(...future.oldEnvVars) [17:27:18.567] envs <- base::Sys.getenv() [17:27:18.567] names <- names(envs) [17:27:18.567] common <- intersect(names, old_names) [17:27:18.567] added <- setdiff(names, old_names) [17:27:18.567] removed <- setdiff(old_names, names) [17:27:18.567] changed <- common[...future.oldEnvVars[common] != [17:27:18.567] envs[common]] [17:27:18.567] NAMES <- toupper(changed) [17:27:18.567] args <- list() [17:27:18.567] for (kk in seq_along(NAMES)) { [17:27:18.567] name <- changed[[kk]] [17:27:18.567] NAME <- NAMES[[kk]] [17:27:18.567] if (name != NAME && is.element(NAME, old_names)) [17:27:18.567] next [17:27:18.567] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:18.567] } [17:27:18.567] NAMES <- toupper(added) [17:27:18.567] for (kk in seq_along(NAMES)) { [17:27:18.567] name <- added[[kk]] [17:27:18.567] NAME <- NAMES[[kk]] [17:27:18.567] if (name != NAME && is.element(NAME, old_names)) [17:27:18.567] next [17:27:18.567] args[[name]] <- "" [17:27:18.567] } [17:27:18.567] NAMES <- toupper(removed) [17:27:18.567] for (kk in seq_along(NAMES)) { [17:27:18.567] name <- removed[[kk]] [17:27:18.567] NAME <- NAMES[[kk]] [17:27:18.567] if (name != NAME && is.element(NAME, old_names)) [17:27:18.567] next [17:27:18.567] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:18.567] } [17:27:18.567] if (length(args) > 0) [17:27:18.567] base::do.call(base::Sys.setenv, args = args) [17:27:18.567] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:18.567] } [17:27:18.567] else { [17:27:18.567] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:18.567] } [17:27:18.567] { [17:27:18.567] if (base::length(...future.futureOptionsAdded) > [17:27:18.567] 0L) { [17:27:18.567] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:18.567] base::names(opts) <- ...future.futureOptionsAdded [17:27:18.567] base::options(opts) [17:27:18.567] } [17:27:18.567] { [17:27:18.567] { [17:27:18.567] NULL [17:27:18.567] RNGkind("Mersenne-Twister") [17:27:18.567] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:18.567] inherits = FALSE) [17:27:18.567] } [17:27:18.567] options(future.plan = NULL) [17:27:18.567] if (is.na(NA_character_)) [17:27:18.567] Sys.unsetenv("R_FUTURE_PLAN") [17:27:18.567] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:18.567] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:18.567] .init = FALSE) [17:27:18.567] } [17:27:18.567] } [17:27:18.567] } [17:27:18.567] }) [17:27:18.567] if (TRUE) { [17:27:18.567] base::sink(type = "output", split = FALSE) [17:27:18.567] if (TRUE) { [17:27:18.567] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:18.567] } [17:27:18.567] else { [17:27:18.567] ...future.result["stdout"] <- base::list(NULL) [17:27:18.567] } [17:27:18.567] base::close(...future.stdout) [17:27:18.567] ...future.stdout <- NULL [17:27:18.567] } [17:27:18.567] ...future.result$conditions <- ...future.conditions [17:27:18.567] ...future.result$finished <- base::Sys.time() [17:27:18.567] ...future.result [17:27:18.567] } [17:27:18.574] plan(): Setting new future strategy stack: [17:27:18.574] List of future strategies: [17:27:18.574] 1. sequential: [17:27:18.574] - args: function (..., envir = parent.frame(), workers = "") [17:27:18.574] - tweaked: FALSE [17:27:18.574] - call: NULL [17:27:18.576] plan(): nbrOfWorkers() = 1 [17:27:18.578] plan(): Setting new future strategy stack: [17:27:18.578] List of future strategies: [17:27:18.578] 1. sequential: [17:27:18.578] - args: function (..., envir = parent.frame(), workers = "") [17:27:18.578] - tweaked: FALSE [17:27:18.578] - call: future::plan("sequential") [17:27:18.579] plan(): nbrOfWorkers() = 1 [17:27:18.580] SequentialFuture started (and completed) [17:27:18.580] - Launch lazy future ... done [17:27:18.580] 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:27:18.581] 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:27:18.583] plan(): Setting new future strategy stack: [17:27:18.584] List of future strategies: [17:27:18.584] 1. FutureStrategy: [17:27:18.584] - args: function (..., envir = parent.frame(), workers = "") [17:27:18.584] - tweaked: FALSE [17:27:18.584] - call: future::plan(oplan) [17:27:18.608] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=205] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', 'RTOOLS44_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS44_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_NOTE_MISSING_PACKAGE_ANCHORS_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 0.57 0.09 0.65