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:26:28.251] plan(): Setting new future strategy stack: [17:26:28.254] List of future strategies: [17:26:28.254] 1. sequential: [17:26:28.254] - args: function (..., envir = parent.frame(), workers = "") [17:26:28.254] - tweaked: FALSE [17:26:28.254] - call: future::plan("sequential") [17:26:28.283] plan(): nbrOfWorkers() = 1 > > message("*** Future class ...") *** Future class ... > > message("*** Future class - exception ...") *** Future class - exception ... > > f <- Future() [17:26:28.296] getGlobalsAndPackages() ... [17:26:28.296] [17:26:28.297] - globals: [0] [17:26:28.297] getGlobalsAndPackages() ... DONE > print(f) Future: Label: '' Expression: NULL Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: FALSE Value: Conditions captured: Early signaling: FALSE Owner process: 8bf02a43-03ed-657d-d716-1cbffa7acba6 Class: 'Future', 'environment' > > res <- tryCatch(value(f), error = identity) [17:26:28.299] run() for 'Future' ... [17:26:28.300] - state: 'created' [17:26:28.301] run() for 'Future' ... done > print(res) > stopifnot(inherits(res, "error")) > > ## Invalid seed > res <- tryCatch(f <- Future(42, seed = 1:2), error = identity) > stopifnot(inherits(res, "error")) > > ## When no packages are exported > foo <- structure(function(...) { Future(1) }, class = "future") > plan(foo) [17:26:28.306] plan(): Setting new future strategy stack: [17:26:28.306] List of future strategies: [17:26:28.306] 1. future: [17:26:28.306] - args: function (..., workers = "") [17:26:28.306] - tweaked: FALSE [17:26:28.306] - call: plan(foo) [17:26:28.337] plan(): nbrOfWorkers() = Inf > f <- Future() [17:26:28.338] getGlobalsAndPackages() ... [17:26:28.338] [17:26:28.338] - globals: [0] [17:26:28.338] getGlobalsAndPackages() ... DONE > expr <- getExpression(f) [17:26:28.340] Packages needed by the future expression (n = 0): [17:26:28.340] Packages needed by future strategies (n = 0): [17:26:28.342] { [17:26:28.342] { [17:26:28.342] { [17:26:28.342] ...future.startTime <- base::Sys.time() [17:26:28.342] { [17:26:28.342] { [17:26:28.342] { [17:26:28.342] base::local({ [17:26:28.342] has_future <- base::requireNamespace("future", [17:26:28.342] quietly = TRUE) [17:26:28.342] if (has_future) { [17:26:28.342] ns <- base::getNamespace("future") [17:26:28.342] version <- ns[[".package"]][["version"]] [17:26:28.342] if (is.null(version)) [17:26:28.342] version <- utils::packageVersion("future") [17:26:28.342] } [17:26:28.342] else { [17:26:28.342] version <- NULL [17:26:28.342] } [17:26:28.342] if (!has_future || version < "1.8.0") { [17:26:28.342] info <- base::c(r_version = base::gsub("R version ", [17:26:28.342] "", base::R.version$version.string), [17:26:28.342] platform = base::sprintf("%s (%s-bit)", [17:26:28.342] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:28.342] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:28.342] "release", "version")], collapse = " "), [17:26:28.342] hostname = base::Sys.info()[["nodename"]]) [17:26:28.342] info <- base::sprintf("%s: %s", base::names(info), [17:26:28.342] info) [17:26:28.342] info <- base::paste(info, collapse = "; ") [17:26:28.342] if (!has_future) { [17:26:28.342] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:28.342] info) [17:26:28.342] } [17:26:28.342] else { [17:26:28.342] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:28.342] info, version) [17:26:28.342] } [17:26:28.342] base::stop(msg) [17:26:28.342] } [17:26:28.342] }) [17:26:28.342] } [17:26:28.342] ...future.strategy.old <- future::plan("list") [17:26:28.342] options(future.plan = NULL) [17:26:28.342] Sys.unsetenv("R_FUTURE_PLAN") [17:26:28.342] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:28.342] } [17:26:28.342] ...future.workdir <- getwd() [17:26:28.342] } [17:26:28.342] ...future.oldOptions <- base::as.list(base::.Options) [17:26:28.342] ...future.oldEnvVars <- base::Sys.getenv() [17:26:28.342] } [17:26:28.342] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:28.342] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:28.342] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:28.342] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:28.342] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:28.342] future.stdout.windows.reencode = NULL, width = 80L) [17:26:28.342] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:28.342] base::names(...future.oldOptions)) [17:26:28.342] } [17:26:28.342] if (FALSE) { [17:26:28.342] } [17:26:28.342] else { [17:26:28.342] if (TRUE) { [17:26:28.342] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:28.342] open = "w") [17:26:28.342] } [17:26:28.342] else { [17:26:28.342] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:28.342] windows = "NUL", "/dev/null"), open = "w") [17:26:28.342] } [17:26:28.342] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:28.342] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:28.342] base::sink(type = "output", split = FALSE) [17:26:28.342] base::close(...future.stdout) [17:26:28.342] }, add = TRUE) [17:26:28.342] } [17:26:28.342] ...future.frame <- base::sys.nframe() [17:26:28.342] ...future.conditions <- base::list() [17:26:28.342] ...future.rng <- base::globalenv()$.Random.seed [17:26:28.342] if (FALSE) { [17:26:28.342] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:28.342] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:28.342] } [17:26:28.342] ...future.result <- base::tryCatch({ [17:26:28.342] base::withCallingHandlers({ [17:26:28.342] ...future.value <- base::withVisible(base::local(NULL)) [17:26:28.342] future::FutureResult(value = ...future.value$value, [17:26:28.342] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:28.342] ...future.rng), globalenv = if (FALSE) [17:26:28.342] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:28.342] ...future.globalenv.names)) [17:26:28.342] else NULL, started = ...future.startTime, version = "1.8") [17:26:28.342] }, condition = base::local({ [17:26:28.342] c <- base::c [17:26:28.342] inherits <- base::inherits [17:26:28.342] invokeRestart <- base::invokeRestart [17:26:28.342] length <- base::length [17:26:28.342] list <- base::list [17:26:28.342] seq.int <- base::seq.int [17:26:28.342] signalCondition <- base::signalCondition [17:26:28.342] sys.calls <- base::sys.calls [17:26:28.342] `[[` <- base::`[[` [17:26:28.342] `+` <- base::`+` [17:26:28.342] `<<-` <- base::`<<-` [17:26:28.342] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:28.342] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:28.342] 3L)] [17:26:28.342] } [17:26:28.342] function(cond) { [17:26:28.342] is_error <- inherits(cond, "error") [17:26:28.342] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:28.342] NULL) [17:26:28.342] if (is_error) { [17:26:28.342] sessionInformation <- function() { [17:26:28.342] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:28.342] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:28.342] search = base::search(), system = base::Sys.info()) [17:26:28.342] } [17:26:28.342] ...future.conditions[[length(...future.conditions) + [17:26:28.342] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:28.342] cond$call), session = sessionInformation(), [17:26:28.342] timestamp = base::Sys.time(), signaled = 0L) [17:26:28.342] signalCondition(cond) [17:26:28.342] } [17:26:28.342] else if (!ignore && TRUE && inherits(cond, "condition")) { [17:26:28.342] signal <- FALSE && inherits(cond, character(0)) [17:26:28.342] ...future.conditions[[length(...future.conditions) + [17:26:28.342] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:28.342] if (FALSE && !signal) { [17:26:28.342] muffleCondition <- function (cond, pattern = "^muffle") [17:26:28.342] { [17:26:28.342] inherits <- base::inherits [17:26:28.342] invokeRestart <- base::invokeRestart [17:26:28.342] is.null <- base::is.null [17:26:28.342] muffled <- FALSE [17:26:28.342] if (inherits(cond, "message")) { [17:26:28.342] muffled <- grepl(pattern, "muffleMessage") [17:26:28.342] if (muffled) [17:26:28.342] invokeRestart("muffleMessage") [17:26:28.342] } [17:26:28.342] else if (inherits(cond, "warning")) { [17:26:28.342] muffled <- grepl(pattern, "muffleWarning") [17:26:28.342] if (muffled) [17:26:28.342] invokeRestart("muffleWarning") [17:26:28.342] } [17:26:28.342] else if (inherits(cond, "condition")) { [17:26:28.342] if (!is.null(pattern)) { [17:26:28.342] computeRestarts <- base::computeRestarts [17:26:28.342] grepl <- base::grepl [17:26:28.342] restarts <- computeRestarts(cond) [17:26:28.342] for (restart in restarts) { [17:26:28.342] name <- restart$name [17:26:28.342] if (is.null(name)) [17:26:28.342] next [17:26:28.342] if (!grepl(pattern, name)) [17:26:28.342] next [17:26:28.342] invokeRestart(restart) [17:26:28.342] muffled <- TRUE [17:26:28.342] break [17:26:28.342] } [17:26:28.342] } [17:26:28.342] } [17:26:28.342] invisible(muffled) [17:26:28.342] } [17:26:28.342] muffleCondition(cond, pattern = "^muffle") [17:26:28.342] } [17:26:28.342] } [17:26:28.342] else { [17:26:28.342] if (TRUE) { [17:26:28.342] muffleCondition <- function (cond, pattern = "^muffle") [17:26:28.342] { [17:26:28.342] inherits <- base::inherits [17:26:28.342] invokeRestart <- base::invokeRestart [17:26:28.342] is.null <- base::is.null [17:26:28.342] muffled <- FALSE [17:26:28.342] if (inherits(cond, "message")) { [17:26:28.342] muffled <- grepl(pattern, "muffleMessage") [17:26:28.342] if (muffled) [17:26:28.342] invokeRestart("muffleMessage") [17:26:28.342] } [17:26:28.342] else if (inherits(cond, "warning")) { [17:26:28.342] muffled <- grepl(pattern, "muffleWarning") [17:26:28.342] if (muffled) [17:26:28.342] invokeRestart("muffleWarning") [17:26:28.342] } [17:26:28.342] else if (inherits(cond, "condition")) { [17:26:28.342] if (!is.null(pattern)) { [17:26:28.342] computeRestarts <- base::computeRestarts [17:26:28.342] grepl <- base::grepl [17:26:28.342] restarts <- computeRestarts(cond) [17:26:28.342] for (restart in restarts) { [17:26:28.342] name <- restart$name [17:26:28.342] if (is.null(name)) [17:26:28.342] next [17:26:28.342] if (!grepl(pattern, name)) [17:26:28.342] next [17:26:28.342] invokeRestart(restart) [17:26:28.342] muffled <- TRUE [17:26:28.342] break [17:26:28.342] } [17:26:28.342] } [17:26:28.342] } [17:26:28.342] invisible(muffled) [17:26:28.342] } [17:26:28.342] muffleCondition(cond, pattern = "^muffle") [17:26:28.342] } [17:26:28.342] } [17:26:28.342] } [17:26:28.342] })) [17:26:28.342] }, error = function(ex) { [17:26:28.342] base::structure(base::list(value = NULL, visible = NULL, [17:26:28.342] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:28.342] ...future.rng), started = ...future.startTime, [17:26:28.342] finished = Sys.time(), session_uuid = NA_character_, [17:26:28.342] version = "1.8"), class = "FutureResult") [17:26:28.342] }, finally = { [17:26:28.342] if (!identical(...future.workdir, getwd())) [17:26:28.342] setwd(...future.workdir) [17:26:28.342] { [17:26:28.342] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:28.342] ...future.oldOptions$nwarnings <- NULL [17:26:28.342] } [17:26:28.342] base::options(...future.oldOptions) [17:26:28.342] if (.Platform$OS.type == "windows") { [17:26:28.342] old_names <- names(...future.oldEnvVars) [17:26:28.342] envs <- base::Sys.getenv() [17:26:28.342] names <- names(envs) [17:26:28.342] common <- intersect(names, old_names) [17:26:28.342] added <- setdiff(names, old_names) [17:26:28.342] removed <- setdiff(old_names, names) [17:26:28.342] changed <- common[...future.oldEnvVars[common] != [17:26:28.342] envs[common]] [17:26:28.342] NAMES <- toupper(changed) [17:26:28.342] args <- list() [17:26:28.342] for (kk in seq_along(NAMES)) { [17:26:28.342] name <- changed[[kk]] [17:26:28.342] NAME <- NAMES[[kk]] [17:26:28.342] if (name != NAME && is.element(NAME, old_names)) [17:26:28.342] next [17:26:28.342] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:28.342] } [17:26:28.342] NAMES <- toupper(added) [17:26:28.342] for (kk in seq_along(NAMES)) { [17:26:28.342] name <- added[[kk]] [17:26:28.342] NAME <- NAMES[[kk]] [17:26:28.342] if (name != NAME && is.element(NAME, old_names)) [17:26:28.342] next [17:26:28.342] args[[name]] <- "" [17:26:28.342] } [17:26:28.342] NAMES <- toupper(removed) [17:26:28.342] for (kk in seq_along(NAMES)) { [17:26:28.342] name <- removed[[kk]] [17:26:28.342] NAME <- NAMES[[kk]] [17:26:28.342] if (name != NAME && is.element(NAME, old_names)) [17:26:28.342] next [17:26:28.342] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:28.342] } [17:26:28.342] if (length(args) > 0) [17:26:28.342] base::do.call(base::Sys.setenv, args = args) [17:26:28.342] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:28.342] } [17:26:28.342] else { [17:26:28.342] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:28.342] } [17:26:28.342] { [17:26:28.342] if (base::length(...future.futureOptionsAdded) > [17:26:28.342] 0L) { [17:26:28.342] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:28.342] base::names(opts) <- ...future.futureOptionsAdded [17:26:28.342] base::options(opts) [17:26:28.342] } [17:26:28.342] { [17:26:28.342] NULL [17:26:28.342] options(future.plan = NULL) [17:26:28.342] if (is.na(NA_character_)) [17:26:28.342] Sys.unsetenv("R_FUTURE_PLAN") [17:26:28.342] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:28.342] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:28.342] .init = FALSE) [17:26:28.342] } [17:26:28.342] } [17:26:28.342] } [17:26:28.342] }) [17:26:28.342] if (TRUE) { [17:26:28.342] base::sink(type = "output", split = FALSE) [17:26:28.342] if (TRUE) { [17:26:28.342] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:28.342] } [17:26:28.342] else { [17:26:28.342] ...future.result["stdout"] <- base::list(NULL) [17:26:28.342] } [17:26:28.342] base::close(...future.stdout) [17:26:28.342] ...future.stdout <- NULL [17:26:28.342] } [17:26:28.342] ...future.result$conditions <- ...future.conditions [17:26:28.342] ...future.result$finished <- base::Sys.time() [17:26:28.342] ...future.result [17:26:28.342] } > print(expr) { { { ...future.startTime <- base::Sys.time() { { { base::local({ has_future <- base::requireNamespace("future", quietly = TRUE) if (has_future) { ns <- base::getNamespace("future") version <- ns[[".package"]][["version"]] if (is.null(version)) version <- utils::packageVersion("future") } else { version <- NULL } if (!has_future || version < "1.8.0") { info <- base::c(r_version = base::gsub("R version ", "", base::R.version$version.string), platform = base::sprintf("%s (%s-bit)", base::R.version$platform, 8 * base::.Machine$sizeof.pointer), os = base::paste(base::Sys.info()[base::c("sysname", "release", "version")], collapse = " "), hostname = base::Sys.info()[["nodename"]]) info <- base::sprintf("%s: %s", base::names(info), info) info <- base::paste(info, collapse = "; ") if (!has_future) { msg <- base::sprintf("Package 'future' is not installed on worker (%s)", info) } else { msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", info, version) } base::stop(msg) } }) } ...future.strategy.old <- future::plan("list") options(future.plan = NULL) Sys.unsetenv("R_FUTURE_PLAN") future::plan("default", .cleanup = FALSE, .init = FALSE) } ...future.workdir <- getwd() } ...future.oldOptions <- base::as.list(base::.Options) ...future.oldEnvVars <- base::Sys.getenv() } base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, future.globals.maxSize = NULL, future.globals.method = NULL, future.globals.onMissing = NULL, future.globals.onReference = NULL, future.globals.resolve = NULL, future.resolve.recursive = NULL, future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, future.stdout.windows.reencode = NULL, width = 80L) ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), base::names(...future.oldOptions)) } if (FALSE) { } else { if (TRUE) { ...future.stdout <- base::rawConnection(base::raw(0L), open = "w") } else { ...future.stdout <- base::file(base::switch(.Platform$OS.type, windows = "NUL", "/dev/null"), open = "w") } base::sink(...future.stdout, type = "output", split = FALSE) base::on.exit(if (!base::is.null(...future.stdout)) { base::sink(type = "output", split = FALSE) base::close(...future.stdout) }, add = TRUE) } ...future.frame <- base::sys.nframe() ...future.conditions <- base::list() ...future.rng <- base::globalenv()$.Random.seed if (FALSE) { ...future.globalenv.names <- c(base::names(base::.GlobalEnv), "...future.value", "...future.globalenv.names", ".Random.seed") } ...future.result <- base::tryCatch({ base::withCallingHandlers({ ...future.value <- base::withVisible(base::local(NULL)) future::FutureResult(value = ...future.value$value, visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, ...future.rng), globalenv = if (FALSE) list(added = base::setdiff(base::names(base::.GlobalEnv), ...future.globalenv.names)) else NULL, started = ...future.startTime, version = "1.8") }, condition = base::local({ c <- base::c inherits <- base::inherits invokeRestart <- base::invokeRestart length <- base::length list <- base::list seq.int <- base::seq.int signalCondition <- base::signalCondition sys.calls <- base::sys.calls `[[` <- base::`[[` `+` <- base::`+` `<<-` <- base::`<<-` sysCalls <- function(calls = sys.calls(), from = 1L) { calls[seq.int(from = from + 12L, to = length(calls) - 3L)] } function(cond) { is_error <- inherits(cond, "error") ignore <- !is_error && !is.null(NULL) && inherits(cond, NULL) if (is_error) { sessionInformation <- function() { list(r = base::R.Version(), locale = base::Sys.getlocale(), rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), search = base::search(), system = base::Sys.info()) } ...future.conditions[[length(...future.conditions) + 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), cond$call), session = sessionInformation(), timestamp = base::Sys.time(), signaled = 0L) signalCondition(cond) } else if (!ignore && TRUE && inherits(cond, "condition")) { signal <- FALSE && inherits(cond, character(0)) ...future.conditions[[length(...future.conditions) + 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) if (FALSE && !signal) { muffleCondition <- function (cond, pattern = "^muffle") { inherits <- base::inherits invokeRestart <- base::invokeRestart is.null <- base::is.null muffled <- FALSE if (inherits(cond, "message")) { muffled <- grepl(pattern, "muffleMessage") if (muffled) invokeRestart("muffleMessage") } else if (inherits(cond, "warning")) { muffled <- grepl(pattern, "muffleWarning") if (muffled) invokeRestart("muffleWarning") } else if (inherits(cond, "condition")) { if (!is.null(pattern)) { computeRestarts <- base::computeRestarts grepl <- base::grepl restarts <- computeRestarts(cond) for (restart in restarts) { name <- restart$name if (is.null(name)) next if (!grepl(pattern, name)) next invokeRestart(restart) muffled <- TRUE break } } } invisible(muffled) } muffleCondition(cond, pattern = "^muffle") } } else { if (TRUE) { muffleCondition <- function (cond, pattern = "^muffle") { inherits <- base::inherits invokeRestart <- base::invokeRestart is.null <- base::is.null muffled <- FALSE if (inherits(cond, "message")) { muffled <- grepl(pattern, "muffleMessage") if (muffled) invokeRestart("muffleMessage") } else if (inherits(cond, "warning")) { muffled <- grepl(pattern, "muffleWarning") if (muffled) invokeRestart("muffleWarning") } else if (inherits(cond, "condition")) { if (!is.null(pattern)) { computeRestarts <- base::computeRestarts grepl <- base::grepl restarts <- computeRestarts(cond) for (restart in restarts) { name <- restart$name if (is.null(name)) next if (!grepl(pattern, name)) next invokeRestart(restart) muffled <- TRUE break } } } invisible(muffled) } muffleCondition(cond, pattern = "^muffle") } } } })) }, error = function(ex) { base::structure(base::list(value = NULL, visible = NULL, conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, ...future.rng), started = ...future.startTime, finished = Sys.time(), session_uuid = NA_character_, version = "1.8"), class = "FutureResult") }, finally = { if (!identical(...future.workdir, getwd())) setwd(...future.workdir) { if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { ...future.oldOptions$nwarnings <- NULL } base::options(...future.oldOptions) if (.Platform$OS.type == "windows") { old_names <- names(...future.oldEnvVars) envs <- base::Sys.getenv() names <- names(envs) common <- intersect(names, old_names) added <- setdiff(names, old_names) removed <- setdiff(old_names, names) changed <- common[...future.oldEnvVars[common] != envs[common]] NAMES <- toupper(changed) args <- list() for (kk in seq_along(NAMES)) { name <- changed[[kk]] NAME <- NAMES[[kk]] if (name != NAME && is.element(NAME, old_names)) next args[[name]] <- ...future.oldEnvVars[[name]] } NAMES <- toupper(added) for (kk in seq_along(NAMES)) { name <- added[[kk]] NAME <- NAMES[[kk]] if (name != NAME && is.element(NAME, old_names)) next args[[name]] <- "" } NAMES <- toupper(removed) for (kk in seq_along(NAMES)) { name <- removed[[kk]] NAME <- NAMES[[kk]] if (name != NAME && is.element(NAME, old_names)) next args[[name]] <- ...future.oldEnvVars[[name]] } if (length(args) > 0) base::do.call(base::Sys.setenv, args = args) args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL } else { base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) } { if (base::length(...future.futureOptionsAdded) > 0L) { opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) base::names(opts) <- ...future.futureOptionsAdded base::options(opts) } { NULL options(future.plan = NULL) if (is.na(NA_character_)) Sys.unsetenv("R_FUTURE_PLAN") else Sys.setenv(R_FUTURE_PLAN = NA_character_) future::plan(...future.strategy.old, .cleanup = FALSE, .init = FALSE) } } } }) if (TRUE) { base::sink(type = "output", split = FALSE) if (TRUE) { ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) } else { ...future.result["stdout"] <- base::list(NULL) } base::close(...future.stdout) ...future.stdout <- NULL } ...future.result$conditions <- ...future.conditions ...future.result$finished <- base::Sys.time() ...future.result } > stopifnot(is.call(expr)) > > clazzes <- list( + sequential = SequentialFuture, + multisession = function(...) MultisessionFuture(..., workers = I(1L)), + sequential = SequentialFuture + ) > if (supportsMulticore()) { + clazzes$multicore = function(...) MulticoreFuture(..., workers = I(1L)) + } > > for (clazz in clazzes) { + ## Calling run() more than once + f <- clazz({ 42L }) + print(f) + run(f) + res <- tryCatch(run(f), error = identity) + stopifnot(inherits(res, "error")) + v <- value(f) + print(v) + stopifnot(v == 42L) + + ## Call value() without run() + f <- clazz({ 42L }) + v <- value(f) + print(v) + stopifnot(v == 42L) + + ## To avoid 'multisession' from leaving stray workers behind + ClusterRegistry(action = "stop") + } [17:26:28.372] getGlobalsAndPackages() ... [17:26:28.373] Searching for globals... [17:26:28.379] - globals found: [1] '{' [17:26:28.379] Searching for globals ... DONE [17:26:28.379] Resolving globals: FALSE [17:26:28.380] [17:26:28.381] [17:26:28.381] getGlobalsAndPackages() ... DONE SequentialFuture: Label: '' Expression: { 42L } Lazy evaluation: FALSE Asynchronous evaluation: FALSE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: FALSE Value: Conditions captured: Early signaling: FALSE Owner process: 8bf02a43-03ed-657d-d716-1cbffa7acba6 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:28.383] Packages needed by the future expression (n = 0): [17:26:28.383] Packages needed by future strategies (n = 0): [17:26:28.385] { [17:26:28.385] { [17:26:28.385] { [17:26:28.385] ...future.startTime <- base::Sys.time() [17:26:28.385] { [17:26:28.385] { [17:26:28.385] { [17:26:28.385] base::local({ [17:26:28.385] has_future <- base::requireNamespace("future", [17:26:28.385] quietly = TRUE) [17:26:28.385] if (has_future) { [17:26:28.385] ns <- base::getNamespace("future") [17:26:28.385] version <- ns[[".package"]][["version"]] [17:26:28.385] if (is.null(version)) [17:26:28.385] version <- utils::packageVersion("future") [17:26:28.385] } [17:26:28.385] else { [17:26:28.385] version <- NULL [17:26:28.385] } [17:26:28.385] if (!has_future || version < "1.8.0") { [17:26:28.385] info <- base::c(r_version = base::gsub("R version ", [17:26:28.385] "", base::R.version$version.string), [17:26:28.385] platform = base::sprintf("%s (%s-bit)", [17:26:28.385] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:28.385] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:28.385] "release", "version")], collapse = " "), [17:26:28.385] hostname = base::Sys.info()[["nodename"]]) [17:26:28.385] info <- base::sprintf("%s: %s", base::names(info), [17:26:28.385] info) [17:26:28.385] info <- base::paste(info, collapse = "; ") [17:26:28.385] if (!has_future) { [17:26:28.385] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:28.385] info) [17:26:28.385] } [17:26:28.385] else { [17:26:28.385] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:28.385] info, version) [17:26:28.385] } [17:26:28.385] base::stop(msg) [17:26:28.385] } [17:26:28.385] }) [17:26:28.385] } [17:26:28.385] ...future.strategy.old <- future::plan("list") [17:26:28.385] options(future.plan = NULL) [17:26:28.385] Sys.unsetenv("R_FUTURE_PLAN") [17:26:28.385] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:28.385] } [17:26:28.385] ...future.workdir <- getwd() [17:26:28.385] } [17:26:28.385] ...future.oldOptions <- base::as.list(base::.Options) [17:26:28.385] ...future.oldEnvVars <- base::Sys.getenv() [17:26:28.385] } [17:26:28.385] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:28.385] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:28.385] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:28.385] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:28.385] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:28.385] future.stdout.windows.reencode = NULL, width = 80L) [17:26:28.385] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:28.385] base::names(...future.oldOptions)) [17:26:28.385] } [17:26:28.385] if (FALSE) { [17:26:28.385] } [17:26:28.385] else { [17:26:28.385] if (TRUE) { [17:26:28.385] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:28.385] open = "w") [17:26:28.385] } [17:26:28.385] else { [17:26:28.385] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:28.385] windows = "NUL", "/dev/null"), open = "w") [17:26:28.385] } [17:26:28.385] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:28.385] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:28.385] base::sink(type = "output", split = FALSE) [17:26:28.385] base::close(...future.stdout) [17:26:28.385] }, add = TRUE) [17:26:28.385] } [17:26:28.385] ...future.frame <- base::sys.nframe() [17:26:28.385] ...future.conditions <- base::list() [17:26:28.385] ...future.rng <- base::globalenv()$.Random.seed [17:26:28.385] if (FALSE) { [17:26:28.385] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:28.385] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:28.385] } [17:26:28.385] ...future.result <- base::tryCatch({ [17:26:28.385] base::withCallingHandlers({ [17:26:28.385] ...future.value <- base::withVisible(base::local({ [17:26:28.385] 42L [17:26:28.385] })) [17:26:28.385] future::FutureResult(value = ...future.value$value, [17:26:28.385] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:28.385] ...future.rng), globalenv = if (FALSE) [17:26:28.385] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:28.385] ...future.globalenv.names)) [17:26:28.385] else NULL, started = ...future.startTime, version = "1.8") [17:26:28.385] }, condition = base::local({ [17:26:28.385] c <- base::c [17:26:28.385] inherits <- base::inherits [17:26:28.385] invokeRestart <- base::invokeRestart [17:26:28.385] length <- base::length [17:26:28.385] list <- base::list [17:26:28.385] seq.int <- base::seq.int [17:26:28.385] signalCondition <- base::signalCondition [17:26:28.385] sys.calls <- base::sys.calls [17:26:28.385] `[[` <- base::`[[` [17:26:28.385] `+` <- base::`+` [17:26:28.385] `<<-` <- base::`<<-` [17:26:28.385] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:28.385] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:28.385] 3L)] [17:26:28.385] } [17:26:28.385] function(cond) { [17:26:28.385] is_error <- inherits(cond, "error") [17:26:28.385] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:28.385] NULL) [17:26:28.385] if (is_error) { [17:26:28.385] sessionInformation <- function() { [17:26:28.385] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:28.385] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:28.385] search = base::search(), system = base::Sys.info()) [17:26:28.385] } [17:26:28.385] ...future.conditions[[length(...future.conditions) + [17:26:28.385] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:28.385] cond$call), session = sessionInformation(), [17:26:28.385] timestamp = base::Sys.time(), signaled = 0L) [17:26:28.385] signalCondition(cond) [17:26:28.385] } [17:26:28.385] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:28.385] "immediateCondition"))) { [17:26:28.385] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:28.385] ...future.conditions[[length(...future.conditions) + [17:26:28.385] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:28.385] if (TRUE && !signal) { [17:26:28.385] muffleCondition <- function (cond, pattern = "^muffle") [17:26:28.385] { [17:26:28.385] inherits <- base::inherits [17:26:28.385] invokeRestart <- base::invokeRestart [17:26:28.385] is.null <- base::is.null [17:26:28.385] muffled <- FALSE [17:26:28.385] if (inherits(cond, "message")) { [17:26:28.385] muffled <- grepl(pattern, "muffleMessage") [17:26:28.385] if (muffled) [17:26:28.385] invokeRestart("muffleMessage") [17:26:28.385] } [17:26:28.385] else if (inherits(cond, "warning")) { [17:26:28.385] muffled <- grepl(pattern, "muffleWarning") [17:26:28.385] if (muffled) [17:26:28.385] invokeRestart("muffleWarning") [17:26:28.385] } [17:26:28.385] else if (inherits(cond, "condition")) { [17:26:28.385] if (!is.null(pattern)) { [17:26:28.385] computeRestarts <- base::computeRestarts [17:26:28.385] grepl <- base::grepl [17:26:28.385] restarts <- computeRestarts(cond) [17:26:28.385] for (restart in restarts) { [17:26:28.385] name <- restart$name [17:26:28.385] if (is.null(name)) [17:26:28.385] next [17:26:28.385] if (!grepl(pattern, name)) [17:26:28.385] next [17:26:28.385] invokeRestart(restart) [17:26:28.385] muffled <- TRUE [17:26:28.385] break [17:26:28.385] } [17:26:28.385] } [17:26:28.385] } [17:26:28.385] invisible(muffled) [17:26:28.385] } [17:26:28.385] muffleCondition(cond, pattern = "^muffle") [17:26:28.385] } [17:26:28.385] } [17:26:28.385] else { [17:26:28.385] if (TRUE) { [17:26:28.385] muffleCondition <- function (cond, pattern = "^muffle") [17:26:28.385] { [17:26:28.385] inherits <- base::inherits [17:26:28.385] invokeRestart <- base::invokeRestart [17:26:28.385] is.null <- base::is.null [17:26:28.385] muffled <- FALSE [17:26:28.385] if (inherits(cond, "message")) { [17:26:28.385] muffled <- grepl(pattern, "muffleMessage") [17:26:28.385] if (muffled) [17:26:28.385] invokeRestart("muffleMessage") [17:26:28.385] } [17:26:28.385] else if (inherits(cond, "warning")) { [17:26:28.385] muffled <- grepl(pattern, "muffleWarning") [17:26:28.385] if (muffled) [17:26:28.385] invokeRestart("muffleWarning") [17:26:28.385] } [17:26:28.385] else if (inherits(cond, "condition")) { [17:26:28.385] if (!is.null(pattern)) { [17:26:28.385] computeRestarts <- base::computeRestarts [17:26:28.385] grepl <- base::grepl [17:26:28.385] restarts <- computeRestarts(cond) [17:26:28.385] for (restart in restarts) { [17:26:28.385] name <- restart$name [17:26:28.385] if (is.null(name)) [17:26:28.385] next [17:26:28.385] if (!grepl(pattern, name)) [17:26:28.385] next [17:26:28.385] invokeRestart(restart) [17:26:28.385] muffled <- TRUE [17:26:28.385] break [17:26:28.385] } [17:26:28.385] } [17:26:28.385] } [17:26:28.385] invisible(muffled) [17:26:28.385] } [17:26:28.385] muffleCondition(cond, pattern = "^muffle") [17:26:28.385] } [17:26:28.385] } [17:26:28.385] } [17:26:28.385] })) [17:26:28.385] }, error = function(ex) { [17:26:28.385] base::structure(base::list(value = NULL, visible = NULL, [17:26:28.385] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:28.385] ...future.rng), started = ...future.startTime, [17:26:28.385] finished = Sys.time(), session_uuid = NA_character_, [17:26:28.385] version = "1.8"), class = "FutureResult") [17:26:28.385] }, finally = { [17:26:28.385] if (!identical(...future.workdir, getwd())) [17:26:28.385] setwd(...future.workdir) [17:26:28.385] { [17:26:28.385] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:28.385] ...future.oldOptions$nwarnings <- NULL [17:26:28.385] } [17:26:28.385] base::options(...future.oldOptions) [17:26:28.385] if (.Platform$OS.type == "windows") { [17:26:28.385] old_names <- names(...future.oldEnvVars) [17:26:28.385] envs <- base::Sys.getenv() [17:26:28.385] names <- names(envs) [17:26:28.385] common <- intersect(names, old_names) [17:26:28.385] added <- setdiff(names, old_names) [17:26:28.385] removed <- setdiff(old_names, names) [17:26:28.385] changed <- common[...future.oldEnvVars[common] != [17:26:28.385] envs[common]] [17:26:28.385] NAMES <- toupper(changed) [17:26:28.385] args <- list() [17:26:28.385] for (kk in seq_along(NAMES)) { [17:26:28.385] name <- changed[[kk]] [17:26:28.385] NAME <- NAMES[[kk]] [17:26:28.385] if (name != NAME && is.element(NAME, old_names)) [17:26:28.385] next [17:26:28.385] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:28.385] } [17:26:28.385] NAMES <- toupper(added) [17:26:28.385] for (kk in seq_along(NAMES)) { [17:26:28.385] name <- added[[kk]] [17:26:28.385] NAME <- NAMES[[kk]] [17:26:28.385] if (name != NAME && is.element(NAME, old_names)) [17:26:28.385] next [17:26:28.385] args[[name]] <- "" [17:26:28.385] } [17:26:28.385] NAMES <- toupper(removed) [17:26:28.385] for (kk in seq_along(NAMES)) { [17:26:28.385] name <- removed[[kk]] [17:26:28.385] NAME <- NAMES[[kk]] [17:26:28.385] if (name != NAME && is.element(NAME, old_names)) [17:26:28.385] next [17:26:28.385] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:28.385] } [17:26:28.385] if (length(args) > 0) [17:26:28.385] base::do.call(base::Sys.setenv, args = args) [17:26:28.385] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:28.385] } [17:26:28.385] else { [17:26:28.385] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:28.385] } [17:26:28.385] { [17:26:28.385] if (base::length(...future.futureOptionsAdded) > [17:26:28.385] 0L) { [17:26:28.385] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:28.385] base::names(opts) <- ...future.futureOptionsAdded [17:26:28.385] base::options(opts) [17:26:28.385] } [17:26:28.385] { [17:26:28.385] { [17:26:28.385] NULL [17:26:28.385] RNGkind("Mersenne-Twister") [17:26:28.385] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:28.385] inherits = FALSE) [17:26:28.385] } [17:26:28.385] options(future.plan = NULL) [17:26:28.385] if (is.na(NA_character_)) [17:26:28.385] Sys.unsetenv("R_FUTURE_PLAN") [17:26:28.385] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:28.385] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:28.385] .init = FALSE) [17:26:28.385] } [17:26:28.385] } [17:26:28.385] } [17:26:28.385] }) [17:26:28.385] if (TRUE) { [17:26:28.385] base::sink(type = "output", split = FALSE) [17:26:28.385] if (TRUE) { [17:26:28.385] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:28.385] } [17:26:28.385] else { [17:26:28.385] ...future.result["stdout"] <- base::list(NULL) [17:26:28.385] } [17:26:28.385] base::close(...future.stdout) [17:26:28.385] ...future.stdout <- NULL [17:26:28.385] } [17:26:28.385] ...future.result$conditions <- ...future.conditions [17:26:28.385] ...future.result$finished <- base::Sys.time() [17:26:28.385] ...future.result [17:26:28.385] } [17:26:28.395] plan(): Setting new future strategy stack: [17:26:28.395] List of future strategies: [17:26:28.395] 1. sequential: [17:26:28.395] - args: function (..., envir = parent.frame(), workers = "") [17:26:28.395] - tweaked: FALSE [17:26:28.395] - call: NULL [17:26:28.396] plan(): nbrOfWorkers() = 1 [17:26:28.400] plan(): Setting new future strategy stack: [17:26:28.400] List of future strategies: [17:26:28.400] 1. future: [17:26:28.400] - args: function (..., workers = "") [17:26:28.400] - tweaked: FALSE [17:26:28.400] - call: plan(foo) [17:26:28.401] plan(): nbrOfWorkers() = Inf [17:26:28.402] SequentialFuture started (and completed) [1] 42 [17:26:28.404] getGlobalsAndPackages() ... [17:26:28.404] Searching for globals... [17:26:28.405] - globals found: [1] '{' [17:26:28.406] Searching for globals ... DONE [17:26:28.406] Resolving globals: FALSE [17:26:28.407] [17:26:28.407] [17:26:28.407] getGlobalsAndPackages() ... DONE [17:26:28.408] Packages needed by the future expression (n = 0): [17:26:28.408] Packages needed by future strategies (n = 0): [17:26:28.410] { [17:26:28.410] { [17:26:28.410] { [17:26:28.410] ...future.startTime <- base::Sys.time() [17:26:28.410] { [17:26:28.410] { [17:26:28.410] { [17:26:28.410] base::local({ [17:26:28.410] has_future <- base::requireNamespace("future", [17:26:28.410] quietly = TRUE) [17:26:28.410] if (has_future) { [17:26:28.410] ns <- base::getNamespace("future") [17:26:28.410] version <- ns[[".package"]][["version"]] [17:26:28.410] if (is.null(version)) [17:26:28.410] version <- utils::packageVersion("future") [17:26:28.410] } [17:26:28.410] else { [17:26:28.410] version <- NULL [17:26:28.410] } [17:26:28.410] if (!has_future || version < "1.8.0") { [17:26:28.410] info <- base::c(r_version = base::gsub("R version ", [17:26:28.410] "", base::R.version$version.string), [17:26:28.410] platform = base::sprintf("%s (%s-bit)", [17:26:28.410] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:28.410] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:28.410] "release", "version")], collapse = " "), [17:26:28.410] hostname = base::Sys.info()[["nodename"]]) [17:26:28.410] info <- base::sprintf("%s: %s", base::names(info), [17:26:28.410] info) [17:26:28.410] info <- base::paste(info, collapse = "; ") [17:26:28.410] if (!has_future) { [17:26:28.410] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:28.410] info) [17:26:28.410] } [17:26:28.410] else { [17:26:28.410] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:28.410] info, version) [17:26:28.410] } [17:26:28.410] base::stop(msg) [17:26:28.410] } [17:26:28.410] }) [17:26:28.410] } [17:26:28.410] ...future.strategy.old <- future::plan("list") [17:26:28.410] options(future.plan = NULL) [17:26:28.410] Sys.unsetenv("R_FUTURE_PLAN") [17:26:28.410] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:28.410] } [17:26:28.410] ...future.workdir <- getwd() [17:26:28.410] } [17:26:28.410] ...future.oldOptions <- base::as.list(base::.Options) [17:26:28.410] ...future.oldEnvVars <- base::Sys.getenv() [17:26:28.410] } [17:26:28.410] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:28.410] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:28.410] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:28.410] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:28.410] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:28.410] future.stdout.windows.reencode = NULL, width = 80L) [17:26:28.410] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:28.410] base::names(...future.oldOptions)) [17:26:28.410] } [17:26:28.410] if (FALSE) { [17:26:28.410] } [17:26:28.410] else { [17:26:28.410] if (TRUE) { [17:26:28.410] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:28.410] open = "w") [17:26:28.410] } [17:26:28.410] else { [17:26:28.410] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:28.410] windows = "NUL", "/dev/null"), open = "w") [17:26:28.410] } [17:26:28.410] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:28.410] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:28.410] base::sink(type = "output", split = FALSE) [17:26:28.410] base::close(...future.stdout) [17:26:28.410] }, add = TRUE) [17:26:28.410] } [17:26:28.410] ...future.frame <- base::sys.nframe() [17:26:28.410] ...future.conditions <- base::list() [17:26:28.410] ...future.rng <- base::globalenv()$.Random.seed [17:26:28.410] if (FALSE) { [17:26:28.410] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:28.410] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:28.410] } [17:26:28.410] ...future.result <- base::tryCatch({ [17:26:28.410] base::withCallingHandlers({ [17:26:28.410] ...future.value <- base::withVisible(base::local({ [17:26:28.410] 42L [17:26:28.410] })) [17:26:28.410] future::FutureResult(value = ...future.value$value, [17:26:28.410] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:28.410] ...future.rng), globalenv = if (FALSE) [17:26:28.410] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:28.410] ...future.globalenv.names)) [17:26:28.410] else NULL, started = ...future.startTime, version = "1.8") [17:26:28.410] }, condition = base::local({ [17:26:28.410] c <- base::c [17:26:28.410] inherits <- base::inherits [17:26:28.410] invokeRestart <- base::invokeRestart [17:26:28.410] length <- base::length [17:26:28.410] list <- base::list [17:26:28.410] seq.int <- base::seq.int [17:26:28.410] signalCondition <- base::signalCondition [17:26:28.410] sys.calls <- base::sys.calls [17:26:28.410] `[[` <- base::`[[` [17:26:28.410] `+` <- base::`+` [17:26:28.410] `<<-` <- base::`<<-` [17:26:28.410] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:28.410] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:28.410] 3L)] [17:26:28.410] } [17:26:28.410] function(cond) { [17:26:28.410] is_error <- inherits(cond, "error") [17:26:28.410] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:28.410] NULL) [17:26:28.410] if (is_error) { [17:26:28.410] sessionInformation <- function() { [17:26:28.410] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:28.410] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:28.410] search = base::search(), system = base::Sys.info()) [17:26:28.410] } [17:26:28.410] ...future.conditions[[length(...future.conditions) + [17:26:28.410] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:28.410] cond$call), session = sessionInformation(), [17:26:28.410] timestamp = base::Sys.time(), signaled = 0L) [17:26:28.410] signalCondition(cond) [17:26:28.410] } [17:26:28.410] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:28.410] "immediateCondition"))) { [17:26:28.410] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:28.410] ...future.conditions[[length(...future.conditions) + [17:26:28.410] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:28.410] if (TRUE && !signal) { [17:26:28.410] muffleCondition <- function (cond, pattern = "^muffle") [17:26:28.410] { [17:26:28.410] inherits <- base::inherits [17:26:28.410] invokeRestart <- base::invokeRestart [17:26:28.410] is.null <- base::is.null [17:26:28.410] muffled <- FALSE [17:26:28.410] if (inherits(cond, "message")) { [17:26:28.410] muffled <- grepl(pattern, "muffleMessage") [17:26:28.410] if (muffled) [17:26:28.410] invokeRestart("muffleMessage") [17:26:28.410] } [17:26:28.410] else if (inherits(cond, "warning")) { [17:26:28.410] muffled <- grepl(pattern, "muffleWarning") [17:26:28.410] if (muffled) [17:26:28.410] invokeRestart("muffleWarning") [17:26:28.410] } [17:26:28.410] else if (inherits(cond, "condition")) { [17:26:28.410] if (!is.null(pattern)) { [17:26:28.410] computeRestarts <- base::computeRestarts [17:26:28.410] grepl <- base::grepl [17:26:28.410] restarts <- computeRestarts(cond) [17:26:28.410] for (restart in restarts) { [17:26:28.410] name <- restart$name [17:26:28.410] if (is.null(name)) [17:26:28.410] next [17:26:28.410] if (!grepl(pattern, name)) [17:26:28.410] next [17:26:28.410] invokeRestart(restart) [17:26:28.410] muffled <- TRUE [17:26:28.410] break [17:26:28.410] } [17:26:28.410] } [17:26:28.410] } [17:26:28.410] invisible(muffled) [17:26:28.410] } [17:26:28.410] muffleCondition(cond, pattern = "^muffle") [17:26:28.410] } [17:26:28.410] } [17:26:28.410] else { [17:26:28.410] if (TRUE) { [17:26:28.410] muffleCondition <- function (cond, pattern = "^muffle") [17:26:28.410] { [17:26:28.410] inherits <- base::inherits [17:26:28.410] invokeRestart <- base::invokeRestart [17:26:28.410] is.null <- base::is.null [17:26:28.410] muffled <- FALSE [17:26:28.410] if (inherits(cond, "message")) { [17:26:28.410] muffled <- grepl(pattern, "muffleMessage") [17:26:28.410] if (muffled) [17:26:28.410] invokeRestart("muffleMessage") [17:26:28.410] } [17:26:28.410] else if (inherits(cond, "warning")) { [17:26:28.410] muffled <- grepl(pattern, "muffleWarning") [17:26:28.410] if (muffled) [17:26:28.410] invokeRestart("muffleWarning") [17:26:28.410] } [17:26:28.410] else if (inherits(cond, "condition")) { [17:26:28.410] if (!is.null(pattern)) { [17:26:28.410] computeRestarts <- base::computeRestarts [17:26:28.410] grepl <- base::grepl [17:26:28.410] restarts <- computeRestarts(cond) [17:26:28.410] for (restart in restarts) { [17:26:28.410] name <- restart$name [17:26:28.410] if (is.null(name)) [17:26:28.410] next [17:26:28.410] if (!grepl(pattern, name)) [17:26:28.410] next [17:26:28.410] invokeRestart(restart) [17:26:28.410] muffled <- TRUE [17:26:28.410] break [17:26:28.410] } [17:26:28.410] } [17:26:28.410] } [17:26:28.410] invisible(muffled) [17:26:28.410] } [17:26:28.410] muffleCondition(cond, pattern = "^muffle") [17:26:28.410] } [17:26:28.410] } [17:26:28.410] } [17:26:28.410] })) [17:26:28.410] }, error = function(ex) { [17:26:28.410] base::structure(base::list(value = NULL, visible = NULL, [17:26:28.410] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:28.410] ...future.rng), started = ...future.startTime, [17:26:28.410] finished = Sys.time(), session_uuid = NA_character_, [17:26:28.410] version = "1.8"), class = "FutureResult") [17:26:28.410] }, finally = { [17:26:28.410] if (!identical(...future.workdir, getwd())) [17:26:28.410] setwd(...future.workdir) [17:26:28.410] { [17:26:28.410] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:28.410] ...future.oldOptions$nwarnings <- NULL [17:26:28.410] } [17:26:28.410] base::options(...future.oldOptions) [17:26:28.410] if (.Platform$OS.type == "windows") { [17:26:28.410] old_names <- names(...future.oldEnvVars) [17:26:28.410] envs <- base::Sys.getenv() [17:26:28.410] names <- names(envs) [17:26:28.410] common <- intersect(names, old_names) [17:26:28.410] added <- setdiff(names, old_names) [17:26:28.410] removed <- setdiff(old_names, names) [17:26:28.410] changed <- common[...future.oldEnvVars[common] != [17:26:28.410] envs[common]] [17:26:28.410] NAMES <- toupper(changed) [17:26:28.410] args <- list() [17:26:28.410] for (kk in seq_along(NAMES)) { [17:26:28.410] name <- changed[[kk]] [17:26:28.410] NAME <- NAMES[[kk]] [17:26:28.410] if (name != NAME && is.element(NAME, old_names)) [17:26:28.410] next [17:26:28.410] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:28.410] } [17:26:28.410] NAMES <- toupper(added) [17:26:28.410] for (kk in seq_along(NAMES)) { [17:26:28.410] name <- added[[kk]] [17:26:28.410] NAME <- NAMES[[kk]] [17:26:28.410] if (name != NAME && is.element(NAME, old_names)) [17:26:28.410] next [17:26:28.410] args[[name]] <- "" [17:26:28.410] } [17:26:28.410] NAMES <- toupper(removed) [17:26:28.410] for (kk in seq_along(NAMES)) { [17:26:28.410] name <- removed[[kk]] [17:26:28.410] NAME <- NAMES[[kk]] [17:26:28.410] if (name != NAME && is.element(NAME, old_names)) [17:26:28.410] next [17:26:28.410] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:28.410] } [17:26:28.410] if (length(args) > 0) [17:26:28.410] base::do.call(base::Sys.setenv, args = args) [17:26:28.410] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:28.410] } [17:26:28.410] else { [17:26:28.410] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:28.410] } [17:26:28.410] { [17:26:28.410] if (base::length(...future.futureOptionsAdded) > [17:26:28.410] 0L) { [17:26:28.410] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:28.410] base::names(opts) <- ...future.futureOptionsAdded [17:26:28.410] base::options(opts) [17:26:28.410] } [17:26:28.410] { [17:26:28.410] { [17:26:28.410] NULL [17:26:28.410] RNGkind("Mersenne-Twister") [17:26:28.410] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:28.410] inherits = FALSE) [17:26:28.410] } [17:26:28.410] options(future.plan = NULL) [17:26:28.410] if (is.na(NA_character_)) [17:26:28.410] Sys.unsetenv("R_FUTURE_PLAN") [17:26:28.410] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:28.410] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:28.410] .init = FALSE) [17:26:28.410] } [17:26:28.410] } [17:26:28.410] } [17:26:28.410] }) [17:26:28.410] if (TRUE) { [17:26:28.410] base::sink(type = "output", split = FALSE) [17:26:28.410] if (TRUE) { [17:26:28.410] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:28.410] } [17:26:28.410] else { [17:26:28.410] ...future.result["stdout"] <- base::list(NULL) [17:26:28.410] } [17:26:28.410] base::close(...future.stdout) [17:26:28.410] ...future.stdout <- NULL [17:26:28.410] } [17:26:28.410] ...future.result$conditions <- ...future.conditions [17:26:28.410] ...future.result$finished <- base::Sys.time() [17:26:28.410] ...future.result [17:26:28.410] } [17:26:28.417] plan(): Setting new future strategy stack: [17:26:28.417] List of future strategies: [17:26:28.417] 1. sequential: [17:26:28.417] - args: function (..., envir = parent.frame(), workers = "") [17:26:28.417] - tweaked: FALSE [17:26:28.417] - call: NULL [17:26:28.418] plan(): nbrOfWorkers() = 1 [17:26:28.420] plan(): Setting new future strategy stack: [17:26:28.421] List of future strategies: [17:26:28.421] 1. future: [17:26:28.421] - args: function (..., workers = "") [17:26:28.421] - tweaked: FALSE [17:26:28.421] - call: plan(foo) [17:26:28.422] plan(): nbrOfWorkers() = Inf [17:26:28.422] SequentialFuture started (and completed) [1] 42 [17:26:28.426] getGlobalsAndPackages() ... [17:26:28.426] [17:26:28.427] - globals: [0] [17:26:28.427] getGlobalsAndPackages() ... DONE [17:26:28.428] [local output] makeClusterPSOCK() ... [17:26:28.480] [local output] Workers: [n = 1] 'localhost' [17:26:28.489] [local output] Base port: 25207 [17:26:28.490] [local output] Getting setup options for 1 cluster nodes ... [17:26:28.490] [local output] - Node #1 of 1 ... [17:26:28.491] [local output] localMachine=TRUE => revtunnel=FALSE [17:26:28.493] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpsLGpie/worker.rank=1.parallelly.parent=97104.17b507a167621.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpsLGpie/worker.rank=1.parallelly.parent=97104.17b507a167621.pid\")"' [17:26:28.938] - Possible to infer worker's PID: TRUE [17:26:28.939] [local output] Rscript port: 25207 [17:26:28.940] [local output] Getting setup options for 1 cluster nodes ... done [17:26:28.940] [local output] - Parallel setup requested for some PSOCK nodes [17:26:28.941] [local output] Setting up PSOCK nodes in parallel [17:26:28.942] List of 36 [17:26:28.942] $ worker : chr "localhost" [17:26:28.942] ..- attr(*, "localhost")= logi TRUE [17:26:28.942] $ master : chr "localhost" [17:26:28.942] $ port : int 25207 [17:26:28.942] $ connectTimeout : num 120 [17:26:28.942] $ timeout : num 120 [17:26:28.942] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:26:28.942] $ homogeneous : logi TRUE [17:26:28.942] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=Future-class.R:97104:CRANWIN3:CR"| __truncated__ [17:26:28.942] $ rscript_envs : NULL [17:26:28.942] $ rscript_libs : NULL [17:26:28.942] $ rscript_startup : NULL [17:26:28.942] $ rscript_sh : chr [1:2] "cmd" "cmd" [17:26:28.942] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:26:28.942] $ methods : logi TRUE [17:26:28.942] $ socketOptions : chr "no-delay" [17:26:28.942] $ useXDR : logi FALSE [17:26:28.942] $ outfile : chr "/dev/null" [17:26:28.942] $ renice : int NA [17:26:28.942] $ rshcmd : NULL [17:26:28.942] $ user : chr(0) [17:26:28.942] $ revtunnel : logi FALSE [17:26:28.942] $ rshlogfile : NULL [17:26:28.942] $ rshopts : chr(0) [17:26:28.942] $ rank : int 1 [17:26:28.942] $ manual : logi FALSE [17:26:28.942] $ dryrun : logi FALSE [17:26:28.942] $ quiet : logi FALSE [17:26:28.942] $ setup_strategy : chr "parallel" [17:26:28.942] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:26:28.942] $ pidfile : chr "D:/temp/RtmpsLGpie/worker.rank=1.parallelly.parent=97104.17b507a167621.pid" [17:26:28.942] $ rshcmd_label : NULL [17:26:28.942] $ rsh_call : NULL [17:26:28.942] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:26:28.942] $ localMachine : logi TRUE [17:26:28.942] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:26:28.942] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:26:28.942] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:26:28.942] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:26:28.942] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:26:28.942] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [17:26:28.942] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [17:26:28.942] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:26:28.942] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:26:28.942] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:26:28.942] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:26:28.942] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:26:28.942] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:26:28.942] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:26:28.942] $ arguments :List of 28 [17:26:28.942] ..$ worker : chr "localhost" [17:26:28.942] ..$ master : NULL [17:26:28.942] ..$ port : int 25207 [17:26:28.942] ..$ connectTimeout : num 120 [17:26:28.942] ..$ timeout : num 120 [17:26:28.942] ..$ rscript : NULL [17:26:28.942] ..$ homogeneous : NULL [17:26:28.942] ..$ rscript_args : NULL [17:26:28.942] ..$ rscript_envs : NULL [17:26:28.942] ..$ rscript_libs : NULL [17:26:28.942] ..$ rscript_startup : NULL [17:26:28.942] ..$ rscript_sh : chr "auto" [17:26:28.942] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:26:28.942] ..$ methods : logi TRUE [17:26:28.942] ..$ socketOptions : chr "no-delay" [17:26:28.942] ..$ useXDR : logi FALSE [17:26:28.942] ..$ outfile : chr "/dev/null" [17:26:28.942] ..$ renice : int NA [17:26:28.942] ..$ rshcmd : NULL [17:26:28.942] ..$ user : NULL [17:26:28.942] ..$ revtunnel : logi NA [17:26:28.942] ..$ rshlogfile : NULL [17:26:28.942] ..$ rshopts : NULL [17:26:28.942] ..$ rank : int 1 [17:26:28.942] ..$ manual : logi FALSE [17:26:28.942] ..$ dryrun : logi FALSE [17:26:28.942] ..$ quiet : logi FALSE [17:26:28.942] ..$ setup_strategy : chr "parallel" [17:26:28.942] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:26:28.977] [local output] System call to launch all workers: [17:26:28.978] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=Future-class.R:97104:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpsLGpie/worker.rank=1.parallelly.parent=97104.17b507a167621.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=25207 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:26:28.978] [local output] Starting PSOCK main server [17:26:28.985] [local output] Workers launched [17:26:28.985] [local output] Waiting for workers to connect back [17:26:28.985] - [local output] 0 workers out of 1 ready [17:26:29.223] - [local output] 0 workers out of 1 ready [17:26:29.224] - [local output] 1 workers out of 1 ready [17:26:29.224] [local output] Launching of 1 workers completed [17:26:29.224] [local output] Number of nodes in cluster: 1 [17:26:29.224] [local output] Collecting session information from 1 workers [17:26:29.226] [local output] - Worker #1 of 1 [17:26:29.226] [local output] makeClusterPSOCK() ... done MultisessionFuture: Label: '' Expression: { 42L } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: 0x0000026ee1fbb068 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: 8bf02a43-03ed-657d-d716-1cbffa7acba6 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:26:29.236] Packages needed by the future expression (n = 0): [17:26:29.236] Packages needed by future strategies (n = 0): [17:26:29.237] { [17:26:29.237] { [17:26:29.237] { [17:26:29.237] ...future.startTime <- base::Sys.time() [17:26:29.237] { [17:26:29.237] { [17:26:29.237] { [17:26:29.237] { [17:26:29.237] base::local({ [17:26:29.237] has_future <- base::requireNamespace("future", [17:26:29.237] quietly = TRUE) [17:26:29.237] if (has_future) { [17:26:29.237] ns <- base::getNamespace("future") [17:26:29.237] version <- ns[[".package"]][["version"]] [17:26:29.237] if (is.null(version)) [17:26:29.237] version <- utils::packageVersion("future") [17:26:29.237] } [17:26:29.237] else { [17:26:29.237] version <- NULL [17:26:29.237] } [17:26:29.237] if (!has_future || version < "1.8.0") { [17:26:29.237] info <- base::c(r_version = base::gsub("R version ", [17:26:29.237] "", base::R.version$version.string), [17:26:29.237] platform = base::sprintf("%s (%s-bit)", [17:26:29.237] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:29.237] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:29.237] "release", "version")], collapse = " "), [17:26:29.237] hostname = base::Sys.info()[["nodename"]]) [17:26:29.237] info <- base::sprintf("%s: %s", base::names(info), [17:26:29.237] info) [17:26:29.237] info <- base::paste(info, collapse = "; ") [17:26:29.237] if (!has_future) { [17:26:29.237] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:29.237] info) [17:26:29.237] } [17:26:29.237] else { [17:26:29.237] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:29.237] info, version) [17:26:29.237] } [17:26:29.237] base::stop(msg) [17:26:29.237] } [17:26:29.237] }) [17:26:29.237] } [17:26:29.237] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:29.237] base::options(mc.cores = 1L) [17:26:29.237] } [17:26:29.237] ...future.strategy.old <- future::plan("list") [17:26:29.237] options(future.plan = NULL) [17:26:29.237] Sys.unsetenv("R_FUTURE_PLAN") [17:26:29.237] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:29.237] } [17:26:29.237] ...future.workdir <- getwd() [17:26:29.237] } [17:26:29.237] ...future.oldOptions <- base::as.list(base::.Options) [17:26:29.237] ...future.oldEnvVars <- base::Sys.getenv() [17:26:29.237] } [17:26:29.237] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:29.237] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:29.237] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:29.237] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:29.237] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:29.237] future.stdout.windows.reencode = NULL, width = 80L) [17:26:29.237] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:29.237] base::names(...future.oldOptions)) [17:26:29.237] } [17:26:29.237] if (FALSE) { [17:26:29.237] } [17:26:29.237] else { [17:26:29.237] if (TRUE) { [17:26:29.237] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:29.237] open = "w") [17:26:29.237] } [17:26:29.237] else { [17:26:29.237] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:29.237] windows = "NUL", "/dev/null"), open = "w") [17:26:29.237] } [17:26:29.237] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:29.237] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:29.237] base::sink(type = "output", split = FALSE) [17:26:29.237] base::close(...future.stdout) [17:26:29.237] }, add = TRUE) [17:26:29.237] } [17:26:29.237] ...future.frame <- base::sys.nframe() [17:26:29.237] ...future.conditions <- base::list() [17:26:29.237] ...future.rng <- base::globalenv()$.Random.seed [17:26:29.237] if (FALSE) { [17:26:29.237] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:29.237] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:29.237] } [17:26:29.237] ...future.result <- base::tryCatch({ [17:26:29.237] base::withCallingHandlers({ [17:26:29.237] ...future.value <- base::withVisible(base::local({ [17:26:29.237] ...future.makeSendCondition <- base::local({ [17:26:29.237] sendCondition <- NULL [17:26:29.237] function(frame = 1L) { [17:26:29.237] if (is.function(sendCondition)) [17:26:29.237] return(sendCondition) [17:26:29.237] ns <- getNamespace("parallel") [17:26:29.237] if (exists("sendData", mode = "function", [17:26:29.237] envir = ns)) { [17:26:29.237] parallel_sendData <- get("sendData", mode = "function", [17:26:29.237] envir = ns) [17:26:29.237] envir <- sys.frame(frame) [17:26:29.237] master <- NULL [17:26:29.237] while (!identical(envir, .GlobalEnv) && [17:26:29.237] !identical(envir, emptyenv())) { [17:26:29.237] if (exists("master", mode = "list", envir = envir, [17:26:29.237] inherits = FALSE)) { [17:26:29.237] master <- get("master", mode = "list", [17:26:29.237] envir = envir, inherits = FALSE) [17:26:29.237] if (inherits(master, c("SOCKnode", [17:26:29.237] "SOCK0node"))) { [17:26:29.237] sendCondition <<- function(cond) { [17:26:29.237] data <- list(type = "VALUE", value = cond, [17:26:29.237] success = TRUE) [17:26:29.237] parallel_sendData(master, data) [17:26:29.237] } [17:26:29.237] return(sendCondition) [17:26:29.237] } [17:26:29.237] } [17:26:29.237] frame <- frame + 1L [17:26:29.237] envir <- sys.frame(frame) [17:26:29.237] } [17:26:29.237] } [17:26:29.237] sendCondition <<- function(cond) NULL [17:26:29.237] } [17:26:29.237] }) [17:26:29.237] withCallingHandlers({ [17:26:29.237] { [17:26:29.237] 42L [17:26:29.237] } [17:26:29.237] }, immediateCondition = function(cond) { [17:26:29.237] sendCondition <- ...future.makeSendCondition() [17:26:29.237] sendCondition(cond) [17:26:29.237] muffleCondition <- function (cond, pattern = "^muffle") [17:26:29.237] { [17:26:29.237] inherits <- base::inherits [17:26:29.237] invokeRestart <- base::invokeRestart [17:26:29.237] is.null <- base::is.null [17:26:29.237] muffled <- FALSE [17:26:29.237] if (inherits(cond, "message")) { [17:26:29.237] muffled <- grepl(pattern, "muffleMessage") [17:26:29.237] if (muffled) [17:26:29.237] invokeRestart("muffleMessage") [17:26:29.237] } [17:26:29.237] else if (inherits(cond, "warning")) { [17:26:29.237] muffled <- grepl(pattern, "muffleWarning") [17:26:29.237] if (muffled) [17:26:29.237] invokeRestart("muffleWarning") [17:26:29.237] } [17:26:29.237] else if (inherits(cond, "condition")) { [17:26:29.237] if (!is.null(pattern)) { [17:26:29.237] computeRestarts <- base::computeRestarts [17:26:29.237] grepl <- base::grepl [17:26:29.237] restarts <- computeRestarts(cond) [17:26:29.237] for (restart in restarts) { [17:26:29.237] name <- restart$name [17:26:29.237] if (is.null(name)) [17:26:29.237] next [17:26:29.237] if (!grepl(pattern, name)) [17:26:29.237] next [17:26:29.237] invokeRestart(restart) [17:26:29.237] muffled <- TRUE [17:26:29.237] break [17:26:29.237] } [17:26:29.237] } [17:26:29.237] } [17:26:29.237] invisible(muffled) [17:26:29.237] } [17:26:29.237] muffleCondition(cond) [17:26:29.237] }) [17:26:29.237] })) [17:26:29.237] future::FutureResult(value = ...future.value$value, [17:26:29.237] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:29.237] ...future.rng), globalenv = if (FALSE) [17:26:29.237] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:29.237] ...future.globalenv.names)) [17:26:29.237] else NULL, started = ...future.startTime, version = "1.8") [17:26:29.237] }, condition = base::local({ [17:26:29.237] c <- base::c [17:26:29.237] inherits <- base::inherits [17:26:29.237] invokeRestart <- base::invokeRestart [17:26:29.237] length <- base::length [17:26:29.237] list <- base::list [17:26:29.237] seq.int <- base::seq.int [17:26:29.237] signalCondition <- base::signalCondition [17:26:29.237] sys.calls <- base::sys.calls [17:26:29.237] `[[` <- base::`[[` [17:26:29.237] `+` <- base::`+` [17:26:29.237] `<<-` <- base::`<<-` [17:26:29.237] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:29.237] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:29.237] 3L)] [17:26:29.237] } [17:26:29.237] function(cond) { [17:26:29.237] is_error <- inherits(cond, "error") [17:26:29.237] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:29.237] NULL) [17:26:29.237] if (is_error) { [17:26:29.237] sessionInformation <- function() { [17:26:29.237] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:29.237] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:29.237] search = base::search(), system = base::Sys.info()) [17:26:29.237] } [17:26:29.237] ...future.conditions[[length(...future.conditions) + [17:26:29.237] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:29.237] cond$call), session = sessionInformation(), [17:26:29.237] timestamp = base::Sys.time(), signaled = 0L) [17:26:29.237] signalCondition(cond) [17:26:29.237] } [17:26:29.237] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:29.237] "immediateCondition"))) { [17:26:29.237] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:29.237] ...future.conditions[[length(...future.conditions) + [17:26:29.237] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:29.237] if (TRUE && !signal) { [17:26:29.237] muffleCondition <- function (cond, pattern = "^muffle") [17:26:29.237] { [17:26:29.237] inherits <- base::inherits [17:26:29.237] invokeRestart <- base::invokeRestart [17:26:29.237] is.null <- base::is.null [17:26:29.237] muffled <- FALSE [17:26:29.237] if (inherits(cond, "message")) { [17:26:29.237] muffled <- grepl(pattern, "muffleMessage") [17:26:29.237] if (muffled) [17:26:29.237] invokeRestart("muffleMessage") [17:26:29.237] } [17:26:29.237] else if (inherits(cond, "warning")) { [17:26:29.237] muffled <- grepl(pattern, "muffleWarning") [17:26:29.237] if (muffled) [17:26:29.237] invokeRestart("muffleWarning") [17:26:29.237] } [17:26:29.237] else if (inherits(cond, "condition")) { [17:26:29.237] if (!is.null(pattern)) { [17:26:29.237] computeRestarts <- base::computeRestarts [17:26:29.237] grepl <- base::grepl [17:26:29.237] restarts <- computeRestarts(cond) [17:26:29.237] for (restart in restarts) { [17:26:29.237] name <- restart$name [17:26:29.237] if (is.null(name)) [17:26:29.237] next [17:26:29.237] if (!grepl(pattern, name)) [17:26:29.237] next [17:26:29.237] invokeRestart(restart) [17:26:29.237] muffled <- TRUE [17:26:29.237] break [17:26:29.237] } [17:26:29.237] } [17:26:29.237] } [17:26:29.237] invisible(muffled) [17:26:29.237] } [17:26:29.237] muffleCondition(cond, pattern = "^muffle") [17:26:29.237] } [17:26:29.237] } [17:26:29.237] else { [17:26:29.237] if (TRUE) { [17:26:29.237] muffleCondition <- function (cond, pattern = "^muffle") [17:26:29.237] { [17:26:29.237] inherits <- base::inherits [17:26:29.237] invokeRestart <- base::invokeRestart [17:26:29.237] is.null <- base::is.null [17:26:29.237] muffled <- FALSE [17:26:29.237] if (inherits(cond, "message")) { [17:26:29.237] muffled <- grepl(pattern, "muffleMessage") [17:26:29.237] if (muffled) [17:26:29.237] invokeRestart("muffleMessage") [17:26:29.237] } [17:26:29.237] else if (inherits(cond, "warning")) { [17:26:29.237] muffled <- grepl(pattern, "muffleWarning") [17:26:29.237] if (muffled) [17:26:29.237] invokeRestart("muffleWarning") [17:26:29.237] } [17:26:29.237] else if (inherits(cond, "condition")) { [17:26:29.237] if (!is.null(pattern)) { [17:26:29.237] computeRestarts <- base::computeRestarts [17:26:29.237] grepl <- base::grepl [17:26:29.237] restarts <- computeRestarts(cond) [17:26:29.237] for (restart in restarts) { [17:26:29.237] name <- restart$name [17:26:29.237] if (is.null(name)) [17:26:29.237] next [17:26:29.237] if (!grepl(pattern, name)) [17:26:29.237] next [17:26:29.237] invokeRestart(restart) [17:26:29.237] muffled <- TRUE [17:26:29.237] break [17:26:29.237] } [17:26:29.237] } [17:26:29.237] } [17:26:29.237] invisible(muffled) [17:26:29.237] } [17:26:29.237] muffleCondition(cond, pattern = "^muffle") [17:26:29.237] } [17:26:29.237] } [17:26:29.237] } [17:26:29.237] })) [17:26:29.237] }, error = function(ex) { [17:26:29.237] base::structure(base::list(value = NULL, visible = NULL, [17:26:29.237] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:29.237] ...future.rng), started = ...future.startTime, [17:26:29.237] finished = Sys.time(), session_uuid = NA_character_, [17:26:29.237] version = "1.8"), class = "FutureResult") [17:26:29.237] }, finally = { [17:26:29.237] if (!identical(...future.workdir, getwd())) [17:26:29.237] setwd(...future.workdir) [17:26:29.237] { [17:26:29.237] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:29.237] ...future.oldOptions$nwarnings <- NULL [17:26:29.237] } [17:26:29.237] base::options(...future.oldOptions) [17:26:29.237] if (.Platform$OS.type == "windows") { [17:26:29.237] old_names <- names(...future.oldEnvVars) [17:26:29.237] envs <- base::Sys.getenv() [17:26:29.237] names <- names(envs) [17:26:29.237] common <- intersect(names, old_names) [17:26:29.237] added <- setdiff(names, old_names) [17:26:29.237] removed <- setdiff(old_names, names) [17:26:29.237] changed <- common[...future.oldEnvVars[common] != [17:26:29.237] envs[common]] [17:26:29.237] NAMES <- toupper(changed) [17:26:29.237] args <- list() [17:26:29.237] for (kk in seq_along(NAMES)) { [17:26:29.237] name <- changed[[kk]] [17:26:29.237] NAME <- NAMES[[kk]] [17:26:29.237] if (name != NAME && is.element(NAME, old_names)) [17:26:29.237] next [17:26:29.237] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:29.237] } [17:26:29.237] NAMES <- toupper(added) [17:26:29.237] for (kk in seq_along(NAMES)) { [17:26:29.237] name <- added[[kk]] [17:26:29.237] NAME <- NAMES[[kk]] [17:26:29.237] if (name != NAME && is.element(NAME, old_names)) [17:26:29.237] next [17:26:29.237] args[[name]] <- "" [17:26:29.237] } [17:26:29.237] NAMES <- toupper(removed) [17:26:29.237] for (kk in seq_along(NAMES)) { [17:26:29.237] name <- removed[[kk]] [17:26:29.237] NAME <- NAMES[[kk]] [17:26:29.237] if (name != NAME && is.element(NAME, old_names)) [17:26:29.237] next [17:26:29.237] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:29.237] } [17:26:29.237] if (length(args) > 0) [17:26:29.237] base::do.call(base::Sys.setenv, args = args) [17:26:29.237] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:29.237] } [17:26:29.237] else { [17:26:29.237] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:29.237] } [17:26:29.237] { [17:26:29.237] if (base::length(...future.futureOptionsAdded) > [17:26:29.237] 0L) { [17:26:29.237] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:29.237] base::names(opts) <- ...future.futureOptionsAdded [17:26:29.237] base::options(opts) [17:26:29.237] } [17:26:29.237] { [17:26:29.237] { [17:26:29.237] base::options(mc.cores = ...future.mc.cores.old) [17:26:29.237] NULL [17:26:29.237] } [17:26:29.237] options(future.plan = NULL) [17:26:29.237] if (is.na(NA_character_)) [17:26:29.237] Sys.unsetenv("R_FUTURE_PLAN") [17:26:29.237] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:29.237] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:29.237] .init = FALSE) [17:26:29.237] } [17:26:29.237] } [17:26:29.237] } [17:26:29.237] }) [17:26:29.237] if (TRUE) { [17:26:29.237] base::sink(type = "output", split = FALSE) [17:26:29.237] if (TRUE) { [17:26:29.237] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:29.237] } [17:26:29.237] else { [17:26:29.237] ...future.result["stdout"] <- base::list(NULL) [17:26:29.237] } [17:26:29.237] base::close(...future.stdout) [17:26:29.237] ...future.stdout <- NULL [17:26:29.237] } [17:26:29.237] ...future.result$conditions <- ...future.conditions [17:26:29.237] ...future.result$finished <- base::Sys.time() [17:26:29.237] ...future.result [17:26:29.237] } [17:26:29.363] MultisessionFuture started [17:26:29.363] result() for ClusterFuture ... [17:26:29.364] receiveMessageFromWorker() for ClusterFuture ... [17:26:29.364] - Validating connection of MultisessionFuture [17:26:29.442] - received message: FutureResult [17:26:29.442] - Received FutureResult [17:26:29.446] - Erased future from FutureRegistry [17:26:29.446] result() for ClusterFuture ... [17:26:29.446] - result already collected: FutureResult [17:26:29.446] result() for ClusterFuture ... done [17:26:29.446] receiveMessageFromWorker() for ClusterFuture ... done [17:26:29.447] result() for ClusterFuture ... done [17:26:29.447] result() for ClusterFuture ... [17:26:29.447] - result already collected: FutureResult [17:26:29.447] result() for ClusterFuture ... done [1] 42 [17:26:29.449] getGlobalsAndPackages() ... [17:26:29.449] [17:26:29.450] - globals: [0] [17:26:29.450] getGlobalsAndPackages() ... DONE [17:26:29.458] Packages needed by the future expression (n = 0): [17:26:29.458] Packages needed by future strategies (n = 0): [17:26:29.459] { [17:26:29.459] { [17:26:29.459] { [17:26:29.459] ...future.startTime <- base::Sys.time() [17:26:29.459] { [17:26:29.459] { [17:26:29.459] { [17:26:29.459] { [17:26:29.459] base::local({ [17:26:29.459] has_future <- base::requireNamespace("future", [17:26:29.459] quietly = TRUE) [17:26:29.459] if (has_future) { [17:26:29.459] ns <- base::getNamespace("future") [17:26:29.459] version <- ns[[".package"]][["version"]] [17:26:29.459] if (is.null(version)) [17:26:29.459] version <- utils::packageVersion("future") [17:26:29.459] } [17:26:29.459] else { [17:26:29.459] version <- NULL [17:26:29.459] } [17:26:29.459] if (!has_future || version < "1.8.0") { [17:26:29.459] info <- base::c(r_version = base::gsub("R version ", [17:26:29.459] "", base::R.version$version.string), [17:26:29.459] platform = base::sprintf("%s (%s-bit)", [17:26:29.459] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:29.459] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:29.459] "release", "version")], collapse = " "), [17:26:29.459] hostname = base::Sys.info()[["nodename"]]) [17:26:29.459] info <- base::sprintf("%s: %s", base::names(info), [17:26:29.459] info) [17:26:29.459] info <- base::paste(info, collapse = "; ") [17:26:29.459] if (!has_future) { [17:26:29.459] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:29.459] info) [17:26:29.459] } [17:26:29.459] else { [17:26:29.459] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:29.459] info, version) [17:26:29.459] } [17:26:29.459] base::stop(msg) [17:26:29.459] } [17:26:29.459] }) [17:26:29.459] } [17:26:29.459] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:29.459] base::options(mc.cores = 1L) [17:26:29.459] } [17:26:29.459] ...future.strategy.old <- future::plan("list") [17:26:29.459] options(future.plan = NULL) [17:26:29.459] Sys.unsetenv("R_FUTURE_PLAN") [17:26:29.459] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:29.459] } [17:26:29.459] ...future.workdir <- getwd() [17:26:29.459] } [17:26:29.459] ...future.oldOptions <- base::as.list(base::.Options) [17:26:29.459] ...future.oldEnvVars <- base::Sys.getenv() [17:26:29.459] } [17:26:29.459] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:29.459] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:29.459] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:29.459] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:29.459] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:29.459] future.stdout.windows.reencode = NULL, width = 80L) [17:26:29.459] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:29.459] base::names(...future.oldOptions)) [17:26:29.459] } [17:26:29.459] if (FALSE) { [17:26:29.459] } [17:26:29.459] else { [17:26:29.459] if (TRUE) { [17:26:29.459] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:29.459] open = "w") [17:26:29.459] } [17:26:29.459] else { [17:26:29.459] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:29.459] windows = "NUL", "/dev/null"), open = "w") [17:26:29.459] } [17:26:29.459] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:29.459] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:29.459] base::sink(type = "output", split = FALSE) [17:26:29.459] base::close(...future.stdout) [17:26:29.459] }, add = TRUE) [17:26:29.459] } [17:26:29.459] ...future.frame <- base::sys.nframe() [17:26:29.459] ...future.conditions <- base::list() [17:26:29.459] ...future.rng <- base::globalenv()$.Random.seed [17:26:29.459] if (FALSE) { [17:26:29.459] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:29.459] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:29.459] } [17:26:29.459] ...future.result <- base::tryCatch({ [17:26:29.459] base::withCallingHandlers({ [17:26:29.459] ...future.value <- base::withVisible(base::local({ [17:26:29.459] ...future.makeSendCondition <- base::local({ [17:26:29.459] sendCondition <- NULL [17:26:29.459] function(frame = 1L) { [17:26:29.459] if (is.function(sendCondition)) [17:26:29.459] return(sendCondition) [17:26:29.459] ns <- getNamespace("parallel") [17:26:29.459] if (exists("sendData", mode = "function", [17:26:29.459] envir = ns)) { [17:26:29.459] parallel_sendData <- get("sendData", mode = "function", [17:26:29.459] envir = ns) [17:26:29.459] envir <- sys.frame(frame) [17:26:29.459] master <- NULL [17:26:29.459] while (!identical(envir, .GlobalEnv) && [17:26:29.459] !identical(envir, emptyenv())) { [17:26:29.459] if (exists("master", mode = "list", envir = envir, [17:26:29.459] inherits = FALSE)) { [17:26:29.459] master <- get("master", mode = "list", [17:26:29.459] envir = envir, inherits = FALSE) [17:26:29.459] if (inherits(master, c("SOCKnode", [17:26:29.459] "SOCK0node"))) { [17:26:29.459] sendCondition <<- function(cond) { [17:26:29.459] data <- list(type = "VALUE", value = cond, [17:26:29.459] success = TRUE) [17:26:29.459] parallel_sendData(master, data) [17:26:29.459] } [17:26:29.459] return(sendCondition) [17:26:29.459] } [17:26:29.459] } [17:26:29.459] frame <- frame + 1L [17:26:29.459] envir <- sys.frame(frame) [17:26:29.459] } [17:26:29.459] } [17:26:29.459] sendCondition <<- function(cond) NULL [17:26:29.459] } [17:26:29.459] }) [17:26:29.459] withCallingHandlers({ [17:26:29.459] { [17:26:29.459] 42L [17:26:29.459] } [17:26:29.459] }, immediateCondition = function(cond) { [17:26:29.459] sendCondition <- ...future.makeSendCondition() [17:26:29.459] sendCondition(cond) [17:26:29.459] muffleCondition <- function (cond, pattern = "^muffle") [17:26:29.459] { [17:26:29.459] inherits <- base::inherits [17:26:29.459] invokeRestart <- base::invokeRestart [17:26:29.459] is.null <- base::is.null [17:26:29.459] muffled <- FALSE [17:26:29.459] if (inherits(cond, "message")) { [17:26:29.459] muffled <- grepl(pattern, "muffleMessage") [17:26:29.459] if (muffled) [17:26:29.459] invokeRestart("muffleMessage") [17:26:29.459] } [17:26:29.459] else if (inherits(cond, "warning")) { [17:26:29.459] muffled <- grepl(pattern, "muffleWarning") [17:26:29.459] if (muffled) [17:26:29.459] invokeRestart("muffleWarning") [17:26:29.459] } [17:26:29.459] else if (inherits(cond, "condition")) { [17:26:29.459] if (!is.null(pattern)) { [17:26:29.459] computeRestarts <- base::computeRestarts [17:26:29.459] grepl <- base::grepl [17:26:29.459] restarts <- computeRestarts(cond) [17:26:29.459] for (restart in restarts) { [17:26:29.459] name <- restart$name [17:26:29.459] if (is.null(name)) [17:26:29.459] next [17:26:29.459] if (!grepl(pattern, name)) [17:26:29.459] next [17:26:29.459] invokeRestart(restart) [17:26:29.459] muffled <- TRUE [17:26:29.459] break [17:26:29.459] } [17:26:29.459] } [17:26:29.459] } [17:26:29.459] invisible(muffled) [17:26:29.459] } [17:26:29.459] muffleCondition(cond) [17:26:29.459] }) [17:26:29.459] })) [17:26:29.459] future::FutureResult(value = ...future.value$value, [17:26:29.459] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:29.459] ...future.rng), globalenv = if (FALSE) [17:26:29.459] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:29.459] ...future.globalenv.names)) [17:26:29.459] else NULL, started = ...future.startTime, version = "1.8") [17:26:29.459] }, condition = base::local({ [17:26:29.459] c <- base::c [17:26:29.459] inherits <- base::inherits [17:26:29.459] invokeRestart <- base::invokeRestart [17:26:29.459] length <- base::length [17:26:29.459] list <- base::list [17:26:29.459] seq.int <- base::seq.int [17:26:29.459] signalCondition <- base::signalCondition [17:26:29.459] sys.calls <- base::sys.calls [17:26:29.459] `[[` <- base::`[[` [17:26:29.459] `+` <- base::`+` [17:26:29.459] `<<-` <- base::`<<-` [17:26:29.459] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:29.459] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:29.459] 3L)] [17:26:29.459] } [17:26:29.459] function(cond) { [17:26:29.459] is_error <- inherits(cond, "error") [17:26:29.459] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:29.459] NULL) [17:26:29.459] if (is_error) { [17:26:29.459] sessionInformation <- function() { [17:26:29.459] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:29.459] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:29.459] search = base::search(), system = base::Sys.info()) [17:26:29.459] } [17:26:29.459] ...future.conditions[[length(...future.conditions) + [17:26:29.459] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:29.459] cond$call), session = sessionInformation(), [17:26:29.459] timestamp = base::Sys.time(), signaled = 0L) [17:26:29.459] signalCondition(cond) [17:26:29.459] } [17:26:29.459] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:29.459] "immediateCondition"))) { [17:26:29.459] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:29.459] ...future.conditions[[length(...future.conditions) + [17:26:29.459] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:29.459] if (TRUE && !signal) { [17:26:29.459] muffleCondition <- function (cond, pattern = "^muffle") [17:26:29.459] { [17:26:29.459] inherits <- base::inherits [17:26:29.459] invokeRestart <- base::invokeRestart [17:26:29.459] is.null <- base::is.null [17:26:29.459] muffled <- FALSE [17:26:29.459] if (inherits(cond, "message")) { [17:26:29.459] muffled <- grepl(pattern, "muffleMessage") [17:26:29.459] if (muffled) [17:26:29.459] invokeRestart("muffleMessage") [17:26:29.459] } [17:26:29.459] else if (inherits(cond, "warning")) { [17:26:29.459] muffled <- grepl(pattern, "muffleWarning") [17:26:29.459] if (muffled) [17:26:29.459] invokeRestart("muffleWarning") [17:26:29.459] } [17:26:29.459] else if (inherits(cond, "condition")) { [17:26:29.459] if (!is.null(pattern)) { [17:26:29.459] computeRestarts <- base::computeRestarts [17:26:29.459] grepl <- base::grepl [17:26:29.459] restarts <- computeRestarts(cond) [17:26:29.459] for (restart in restarts) { [17:26:29.459] name <- restart$name [17:26:29.459] if (is.null(name)) [17:26:29.459] next [17:26:29.459] if (!grepl(pattern, name)) [17:26:29.459] next [17:26:29.459] invokeRestart(restart) [17:26:29.459] muffled <- TRUE [17:26:29.459] break [17:26:29.459] } [17:26:29.459] } [17:26:29.459] } [17:26:29.459] invisible(muffled) [17:26:29.459] } [17:26:29.459] muffleCondition(cond, pattern = "^muffle") [17:26:29.459] } [17:26:29.459] } [17:26:29.459] else { [17:26:29.459] if (TRUE) { [17:26:29.459] muffleCondition <- function (cond, pattern = "^muffle") [17:26:29.459] { [17:26:29.459] inherits <- base::inherits [17:26:29.459] invokeRestart <- base::invokeRestart [17:26:29.459] is.null <- base::is.null [17:26:29.459] muffled <- FALSE [17:26:29.459] if (inherits(cond, "message")) { [17:26:29.459] muffled <- grepl(pattern, "muffleMessage") [17:26:29.459] if (muffled) [17:26:29.459] invokeRestart("muffleMessage") [17:26:29.459] } [17:26:29.459] else if (inherits(cond, "warning")) { [17:26:29.459] muffled <- grepl(pattern, "muffleWarning") [17:26:29.459] if (muffled) [17:26:29.459] invokeRestart("muffleWarning") [17:26:29.459] } [17:26:29.459] else if (inherits(cond, "condition")) { [17:26:29.459] if (!is.null(pattern)) { [17:26:29.459] computeRestarts <- base::computeRestarts [17:26:29.459] grepl <- base::grepl [17:26:29.459] restarts <- computeRestarts(cond) [17:26:29.459] for (restart in restarts) { [17:26:29.459] name <- restart$name [17:26:29.459] if (is.null(name)) [17:26:29.459] next [17:26:29.459] if (!grepl(pattern, name)) [17:26:29.459] next [17:26:29.459] invokeRestart(restart) [17:26:29.459] muffled <- TRUE [17:26:29.459] break [17:26:29.459] } [17:26:29.459] } [17:26:29.459] } [17:26:29.459] invisible(muffled) [17:26:29.459] } [17:26:29.459] muffleCondition(cond, pattern = "^muffle") [17:26:29.459] } [17:26:29.459] } [17:26:29.459] } [17:26:29.459] })) [17:26:29.459] }, error = function(ex) { [17:26:29.459] base::structure(base::list(value = NULL, visible = NULL, [17:26:29.459] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:29.459] ...future.rng), started = ...future.startTime, [17:26:29.459] finished = Sys.time(), session_uuid = NA_character_, [17:26:29.459] version = "1.8"), class = "FutureResult") [17:26:29.459] }, finally = { [17:26:29.459] if (!identical(...future.workdir, getwd())) [17:26:29.459] setwd(...future.workdir) [17:26:29.459] { [17:26:29.459] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:29.459] ...future.oldOptions$nwarnings <- NULL [17:26:29.459] } [17:26:29.459] base::options(...future.oldOptions) [17:26:29.459] if (.Platform$OS.type == "windows") { [17:26:29.459] old_names <- names(...future.oldEnvVars) [17:26:29.459] envs <- base::Sys.getenv() [17:26:29.459] names <- names(envs) [17:26:29.459] common <- intersect(names, old_names) [17:26:29.459] added <- setdiff(names, old_names) [17:26:29.459] removed <- setdiff(old_names, names) [17:26:29.459] changed <- common[...future.oldEnvVars[common] != [17:26:29.459] envs[common]] [17:26:29.459] NAMES <- toupper(changed) [17:26:29.459] args <- list() [17:26:29.459] for (kk in seq_along(NAMES)) { [17:26:29.459] name <- changed[[kk]] [17:26:29.459] NAME <- NAMES[[kk]] [17:26:29.459] if (name != NAME && is.element(NAME, old_names)) [17:26:29.459] next [17:26:29.459] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:29.459] } [17:26:29.459] NAMES <- toupper(added) [17:26:29.459] for (kk in seq_along(NAMES)) { [17:26:29.459] name <- added[[kk]] [17:26:29.459] NAME <- NAMES[[kk]] [17:26:29.459] if (name != NAME && is.element(NAME, old_names)) [17:26:29.459] next [17:26:29.459] args[[name]] <- "" [17:26:29.459] } [17:26:29.459] NAMES <- toupper(removed) [17:26:29.459] for (kk in seq_along(NAMES)) { [17:26:29.459] name <- removed[[kk]] [17:26:29.459] NAME <- NAMES[[kk]] [17:26:29.459] if (name != NAME && is.element(NAME, old_names)) [17:26:29.459] next [17:26:29.459] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:29.459] } [17:26:29.459] if (length(args) > 0) [17:26:29.459] base::do.call(base::Sys.setenv, args = args) [17:26:29.459] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:29.459] } [17:26:29.459] else { [17:26:29.459] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:29.459] } [17:26:29.459] { [17:26:29.459] if (base::length(...future.futureOptionsAdded) > [17:26:29.459] 0L) { [17:26:29.459] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:29.459] base::names(opts) <- ...future.futureOptionsAdded [17:26:29.459] base::options(opts) [17:26:29.459] } [17:26:29.459] { [17:26:29.459] { [17:26:29.459] base::options(mc.cores = ...future.mc.cores.old) [17:26:29.459] NULL [17:26:29.459] } [17:26:29.459] options(future.plan = NULL) [17:26:29.459] if (is.na(NA_character_)) [17:26:29.459] Sys.unsetenv("R_FUTURE_PLAN") [17:26:29.459] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:29.459] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:29.459] .init = FALSE) [17:26:29.459] } [17:26:29.459] } [17:26:29.459] } [17:26:29.459] }) [17:26:29.459] if (TRUE) { [17:26:29.459] base::sink(type = "output", split = FALSE) [17:26:29.459] if (TRUE) { [17:26:29.459] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:29.459] } [17:26:29.459] else { [17:26:29.459] ...future.result["stdout"] <- base::list(NULL) [17:26:29.459] } [17:26:29.459] base::close(...future.stdout) [17:26:29.459] ...future.stdout <- NULL [17:26:29.459] } [17:26:29.459] ...future.result$conditions <- ...future.conditions [17:26:29.459] ...future.result$finished <- base::Sys.time() [17:26:29.459] ...future.result [17:26:29.459] } [17:26:29.468] MultisessionFuture started [17:26:29.468] result() for ClusterFuture ... [17:26:29.468] receiveMessageFromWorker() for ClusterFuture ... [17:26:29.469] - Validating connection of MultisessionFuture [17:26:29.492] - received message: FutureResult [17:26:29.493] - Received FutureResult [17:26:29.493] - Erased future from FutureRegistry [17:26:29.493] result() for ClusterFuture ... [17:26:29.493] - result already collected: FutureResult [17:26:29.494] result() for ClusterFuture ... done [17:26:29.494] receiveMessageFromWorker() for ClusterFuture ... done [17:26:29.494] result() for ClusterFuture ... done [17:26:29.494] result() for ClusterFuture ... [17:26:29.494] - result already collected: FutureResult [17:26:29.495] result() for ClusterFuture ... done [1] 42 [17:26:29.501] getGlobalsAndPackages() ... [17:26:29.501] Searching for globals... [17:26:29.502] - globals found: [1] '{' [17:26:29.503] Searching for globals ... DONE [17:26:29.503] Resolving globals: FALSE [17:26:29.504] [17:26:29.504] [17:26:29.504] getGlobalsAndPackages() ... DONE SequentialFuture: Label: '' Expression: { 42L } Lazy evaluation: FALSE Asynchronous evaluation: FALSE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: FALSE Value: Conditions captured: Early signaling: FALSE Owner process: 8bf02a43-03ed-657d-d716-1cbffa7acba6 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:29.506] Packages needed by the future expression (n = 0): [17:26:29.506] Packages needed by future strategies (n = 0): [17:26:29.507] { [17:26:29.507] { [17:26:29.507] { [17:26:29.507] ...future.startTime <- base::Sys.time() [17:26:29.507] { [17:26:29.507] { [17:26:29.507] { [17:26:29.507] base::local({ [17:26:29.507] has_future <- base::requireNamespace("future", [17:26:29.507] quietly = TRUE) [17:26:29.507] if (has_future) { [17:26:29.507] ns <- base::getNamespace("future") [17:26:29.507] version <- ns[[".package"]][["version"]] [17:26:29.507] if (is.null(version)) [17:26:29.507] version <- utils::packageVersion("future") [17:26:29.507] } [17:26:29.507] else { [17:26:29.507] version <- NULL [17:26:29.507] } [17:26:29.507] if (!has_future || version < "1.8.0") { [17:26:29.507] info <- base::c(r_version = base::gsub("R version ", [17:26:29.507] "", base::R.version$version.string), [17:26:29.507] platform = base::sprintf("%s (%s-bit)", [17:26:29.507] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:29.507] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:29.507] "release", "version")], collapse = " "), [17:26:29.507] hostname = base::Sys.info()[["nodename"]]) [17:26:29.507] info <- base::sprintf("%s: %s", base::names(info), [17:26:29.507] info) [17:26:29.507] info <- base::paste(info, collapse = "; ") [17:26:29.507] if (!has_future) { [17:26:29.507] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:29.507] info) [17:26:29.507] } [17:26:29.507] else { [17:26:29.507] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:29.507] info, version) [17:26:29.507] } [17:26:29.507] base::stop(msg) [17:26:29.507] } [17:26:29.507] }) [17:26:29.507] } [17:26:29.507] ...future.strategy.old <- future::plan("list") [17:26:29.507] options(future.plan = NULL) [17:26:29.507] Sys.unsetenv("R_FUTURE_PLAN") [17:26:29.507] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:29.507] } [17:26:29.507] ...future.workdir <- getwd() [17:26:29.507] } [17:26:29.507] ...future.oldOptions <- base::as.list(base::.Options) [17:26:29.507] ...future.oldEnvVars <- base::Sys.getenv() [17:26:29.507] } [17:26:29.507] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:29.507] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:29.507] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:29.507] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:29.507] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:29.507] future.stdout.windows.reencode = NULL, width = 80L) [17:26:29.507] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:29.507] base::names(...future.oldOptions)) [17:26:29.507] } [17:26:29.507] if (FALSE) { [17:26:29.507] } [17:26:29.507] else { [17:26:29.507] if (TRUE) { [17:26:29.507] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:29.507] open = "w") [17:26:29.507] } [17:26:29.507] else { [17:26:29.507] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:29.507] windows = "NUL", "/dev/null"), open = "w") [17:26:29.507] } [17:26:29.507] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:29.507] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:29.507] base::sink(type = "output", split = FALSE) [17:26:29.507] base::close(...future.stdout) [17:26:29.507] }, add = TRUE) [17:26:29.507] } [17:26:29.507] ...future.frame <- base::sys.nframe() [17:26:29.507] ...future.conditions <- base::list() [17:26:29.507] ...future.rng <- base::globalenv()$.Random.seed [17:26:29.507] if (FALSE) { [17:26:29.507] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:29.507] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:29.507] } [17:26:29.507] ...future.result <- base::tryCatch({ [17:26:29.507] base::withCallingHandlers({ [17:26:29.507] ...future.value <- base::withVisible(base::local({ [17:26:29.507] 42L [17:26:29.507] })) [17:26:29.507] future::FutureResult(value = ...future.value$value, [17:26:29.507] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:29.507] ...future.rng), globalenv = if (FALSE) [17:26:29.507] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:29.507] ...future.globalenv.names)) [17:26:29.507] else NULL, started = ...future.startTime, version = "1.8") [17:26:29.507] }, condition = base::local({ [17:26:29.507] c <- base::c [17:26:29.507] inherits <- base::inherits [17:26:29.507] invokeRestart <- base::invokeRestart [17:26:29.507] length <- base::length [17:26:29.507] list <- base::list [17:26:29.507] seq.int <- base::seq.int [17:26:29.507] signalCondition <- base::signalCondition [17:26:29.507] sys.calls <- base::sys.calls [17:26:29.507] `[[` <- base::`[[` [17:26:29.507] `+` <- base::`+` [17:26:29.507] `<<-` <- base::`<<-` [17:26:29.507] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:29.507] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:29.507] 3L)] [17:26:29.507] } [17:26:29.507] function(cond) { [17:26:29.507] is_error <- inherits(cond, "error") [17:26:29.507] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:29.507] NULL) [17:26:29.507] if (is_error) { [17:26:29.507] sessionInformation <- function() { [17:26:29.507] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:29.507] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:29.507] search = base::search(), system = base::Sys.info()) [17:26:29.507] } [17:26:29.507] ...future.conditions[[length(...future.conditions) + [17:26:29.507] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:29.507] cond$call), session = sessionInformation(), [17:26:29.507] timestamp = base::Sys.time(), signaled = 0L) [17:26:29.507] signalCondition(cond) [17:26:29.507] } [17:26:29.507] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:29.507] "immediateCondition"))) { [17:26:29.507] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:29.507] ...future.conditions[[length(...future.conditions) + [17:26:29.507] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:29.507] if (TRUE && !signal) { [17:26:29.507] muffleCondition <- function (cond, pattern = "^muffle") [17:26:29.507] { [17:26:29.507] inherits <- base::inherits [17:26:29.507] invokeRestart <- base::invokeRestart [17:26:29.507] is.null <- base::is.null [17:26:29.507] muffled <- FALSE [17:26:29.507] if (inherits(cond, "message")) { [17:26:29.507] muffled <- grepl(pattern, "muffleMessage") [17:26:29.507] if (muffled) [17:26:29.507] invokeRestart("muffleMessage") [17:26:29.507] } [17:26:29.507] else if (inherits(cond, "warning")) { [17:26:29.507] muffled <- grepl(pattern, "muffleWarning") [17:26:29.507] if (muffled) [17:26:29.507] invokeRestart("muffleWarning") [17:26:29.507] } [17:26:29.507] else if (inherits(cond, "condition")) { [17:26:29.507] if (!is.null(pattern)) { [17:26:29.507] computeRestarts <- base::computeRestarts [17:26:29.507] grepl <- base::grepl [17:26:29.507] restarts <- computeRestarts(cond) [17:26:29.507] for (restart in restarts) { [17:26:29.507] name <- restart$name [17:26:29.507] if (is.null(name)) [17:26:29.507] next [17:26:29.507] if (!grepl(pattern, name)) [17:26:29.507] next [17:26:29.507] invokeRestart(restart) [17:26:29.507] muffled <- TRUE [17:26:29.507] break [17:26:29.507] } [17:26:29.507] } [17:26:29.507] } [17:26:29.507] invisible(muffled) [17:26:29.507] } [17:26:29.507] muffleCondition(cond, pattern = "^muffle") [17:26:29.507] } [17:26:29.507] } [17:26:29.507] else { [17:26:29.507] if (TRUE) { [17:26:29.507] muffleCondition <- function (cond, pattern = "^muffle") [17:26:29.507] { [17:26:29.507] inherits <- base::inherits [17:26:29.507] invokeRestart <- base::invokeRestart [17:26:29.507] is.null <- base::is.null [17:26:29.507] muffled <- FALSE [17:26:29.507] if (inherits(cond, "message")) { [17:26:29.507] muffled <- grepl(pattern, "muffleMessage") [17:26:29.507] if (muffled) [17:26:29.507] invokeRestart("muffleMessage") [17:26:29.507] } [17:26:29.507] else if (inherits(cond, "warning")) { [17:26:29.507] muffled <- grepl(pattern, "muffleWarning") [17:26:29.507] if (muffled) [17:26:29.507] invokeRestart("muffleWarning") [17:26:29.507] } [17:26:29.507] else if (inherits(cond, "condition")) { [17:26:29.507] if (!is.null(pattern)) { [17:26:29.507] computeRestarts <- base::computeRestarts [17:26:29.507] grepl <- base::grepl [17:26:29.507] restarts <- computeRestarts(cond) [17:26:29.507] for (restart in restarts) { [17:26:29.507] name <- restart$name [17:26:29.507] if (is.null(name)) [17:26:29.507] next [17:26:29.507] if (!grepl(pattern, name)) [17:26:29.507] next [17:26:29.507] invokeRestart(restart) [17:26:29.507] muffled <- TRUE [17:26:29.507] break [17:26:29.507] } [17:26:29.507] } [17:26:29.507] } [17:26:29.507] invisible(muffled) [17:26:29.507] } [17:26:29.507] muffleCondition(cond, pattern = "^muffle") [17:26:29.507] } [17:26:29.507] } [17:26:29.507] } [17:26:29.507] })) [17:26:29.507] }, error = function(ex) { [17:26:29.507] base::structure(base::list(value = NULL, visible = NULL, [17:26:29.507] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:29.507] ...future.rng), started = ...future.startTime, [17:26:29.507] finished = Sys.time(), session_uuid = NA_character_, [17:26:29.507] version = "1.8"), class = "FutureResult") [17:26:29.507] }, finally = { [17:26:29.507] if (!identical(...future.workdir, getwd())) [17:26:29.507] setwd(...future.workdir) [17:26:29.507] { [17:26:29.507] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:29.507] ...future.oldOptions$nwarnings <- NULL [17:26:29.507] } [17:26:29.507] base::options(...future.oldOptions) [17:26:29.507] if (.Platform$OS.type == "windows") { [17:26:29.507] old_names <- names(...future.oldEnvVars) [17:26:29.507] envs <- base::Sys.getenv() [17:26:29.507] names <- names(envs) [17:26:29.507] common <- intersect(names, old_names) [17:26:29.507] added <- setdiff(names, old_names) [17:26:29.507] removed <- setdiff(old_names, names) [17:26:29.507] changed <- common[...future.oldEnvVars[common] != [17:26:29.507] envs[common]] [17:26:29.507] NAMES <- toupper(changed) [17:26:29.507] args <- list() [17:26:29.507] for (kk in seq_along(NAMES)) { [17:26:29.507] name <- changed[[kk]] [17:26:29.507] NAME <- NAMES[[kk]] [17:26:29.507] if (name != NAME && is.element(NAME, old_names)) [17:26:29.507] next [17:26:29.507] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:29.507] } [17:26:29.507] NAMES <- toupper(added) [17:26:29.507] for (kk in seq_along(NAMES)) { [17:26:29.507] name <- added[[kk]] [17:26:29.507] NAME <- NAMES[[kk]] [17:26:29.507] if (name != NAME && is.element(NAME, old_names)) [17:26:29.507] next [17:26:29.507] args[[name]] <- "" [17:26:29.507] } [17:26:29.507] NAMES <- toupper(removed) [17:26:29.507] for (kk in seq_along(NAMES)) { [17:26:29.507] name <- removed[[kk]] [17:26:29.507] NAME <- NAMES[[kk]] [17:26:29.507] if (name != NAME && is.element(NAME, old_names)) [17:26:29.507] next [17:26:29.507] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:29.507] } [17:26:29.507] if (length(args) > 0) [17:26:29.507] base::do.call(base::Sys.setenv, args = args) [17:26:29.507] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:29.507] } [17:26:29.507] else { [17:26:29.507] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:29.507] } [17:26:29.507] { [17:26:29.507] if (base::length(...future.futureOptionsAdded) > [17:26:29.507] 0L) { [17:26:29.507] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:29.507] base::names(opts) <- ...future.futureOptionsAdded [17:26:29.507] base::options(opts) [17:26:29.507] } [17:26:29.507] { [17:26:29.507] { [17:26:29.507] NULL [17:26:29.507] RNGkind("Mersenne-Twister") [17:26:29.507] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:29.507] inherits = FALSE) [17:26:29.507] } [17:26:29.507] options(future.plan = NULL) [17:26:29.507] if (is.na(NA_character_)) [17:26:29.507] Sys.unsetenv("R_FUTURE_PLAN") [17:26:29.507] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:29.507] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:29.507] .init = FALSE) [17:26:29.507] } [17:26:29.507] } [17:26:29.507] } [17:26:29.507] }) [17:26:29.507] if (TRUE) { [17:26:29.507] base::sink(type = "output", split = FALSE) [17:26:29.507] if (TRUE) { [17:26:29.507] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:29.507] } [17:26:29.507] else { [17:26:29.507] ...future.result["stdout"] <- base::list(NULL) [17:26:29.507] } [17:26:29.507] base::close(...future.stdout) [17:26:29.507] ...future.stdout <- NULL [17:26:29.507] } [17:26:29.507] ...future.result$conditions <- ...future.conditions [17:26:29.507] ...future.result$finished <- base::Sys.time() [17:26:29.507] ...future.result [17:26:29.507] } [17:26:29.513] plan(): Setting new future strategy stack: [17:26:29.514] List of future strategies: [17:26:29.514] 1. sequential: [17:26:29.514] - args: function (..., envir = parent.frame(), workers = "") [17:26:29.514] - tweaked: FALSE [17:26:29.514] - call: NULL [17:26:29.515] plan(): nbrOfWorkers() = 1 [17:26:29.517] plan(): Setting new future strategy stack: [17:26:29.517] List of future strategies: [17:26:29.517] 1. future: [17:26:29.517] - args: function (..., workers = "") [17:26:29.517] - tweaked: FALSE [17:26:29.517] - call: plan(foo) [17:26:29.518] plan(): nbrOfWorkers() = Inf [17:26:29.519] SequentialFuture started (and completed) [1] 42 [17:26:29.520] getGlobalsAndPackages() ... [17:26:29.520] Searching for globals... [17:26:29.522] - globals found: [1] '{' [17:26:29.522] Searching for globals ... DONE [17:26:29.522] Resolving globals: FALSE [17:26:29.523] [17:26:29.523] [17:26:29.523] getGlobalsAndPackages() ... DONE [17:26:29.524] Packages needed by the future expression (n = 0): [17:26:29.524] Packages needed by future strategies (n = 0): [17:26:29.525] { [17:26:29.525] { [17:26:29.525] { [17:26:29.525] ...future.startTime <- base::Sys.time() [17:26:29.525] { [17:26:29.525] { [17:26:29.525] { [17:26:29.525] base::local({ [17:26:29.525] has_future <- base::requireNamespace("future", [17:26:29.525] quietly = TRUE) [17:26:29.525] if (has_future) { [17:26:29.525] ns <- base::getNamespace("future") [17:26:29.525] version <- ns[[".package"]][["version"]] [17:26:29.525] if (is.null(version)) [17:26:29.525] version <- utils::packageVersion("future") [17:26:29.525] } [17:26:29.525] else { [17:26:29.525] version <- NULL [17:26:29.525] } [17:26:29.525] if (!has_future || version < "1.8.0") { [17:26:29.525] info <- base::c(r_version = base::gsub("R version ", [17:26:29.525] "", base::R.version$version.string), [17:26:29.525] platform = base::sprintf("%s (%s-bit)", [17:26:29.525] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:29.525] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:29.525] "release", "version")], collapse = " "), [17:26:29.525] hostname = base::Sys.info()[["nodename"]]) [17:26:29.525] info <- base::sprintf("%s: %s", base::names(info), [17:26:29.525] info) [17:26:29.525] info <- base::paste(info, collapse = "; ") [17:26:29.525] if (!has_future) { [17:26:29.525] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:29.525] info) [17:26:29.525] } [17:26:29.525] else { [17:26:29.525] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:29.525] info, version) [17:26:29.525] } [17:26:29.525] base::stop(msg) [17:26:29.525] } [17:26:29.525] }) [17:26:29.525] } [17:26:29.525] ...future.strategy.old <- future::plan("list") [17:26:29.525] options(future.plan = NULL) [17:26:29.525] Sys.unsetenv("R_FUTURE_PLAN") [17:26:29.525] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:29.525] } [17:26:29.525] ...future.workdir <- getwd() [17:26:29.525] } [17:26:29.525] ...future.oldOptions <- base::as.list(base::.Options) [17:26:29.525] ...future.oldEnvVars <- base::Sys.getenv() [17:26:29.525] } [17:26:29.525] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:29.525] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:29.525] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:29.525] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:29.525] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:29.525] future.stdout.windows.reencode = NULL, width = 80L) [17:26:29.525] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:29.525] base::names(...future.oldOptions)) [17:26:29.525] } [17:26:29.525] if (FALSE) { [17:26:29.525] } [17:26:29.525] else { [17:26:29.525] if (TRUE) { [17:26:29.525] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:29.525] open = "w") [17:26:29.525] } [17:26:29.525] else { [17:26:29.525] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:29.525] windows = "NUL", "/dev/null"), open = "w") [17:26:29.525] } [17:26:29.525] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:29.525] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:29.525] base::sink(type = "output", split = FALSE) [17:26:29.525] base::close(...future.stdout) [17:26:29.525] }, add = TRUE) [17:26:29.525] } [17:26:29.525] ...future.frame <- base::sys.nframe() [17:26:29.525] ...future.conditions <- base::list() [17:26:29.525] ...future.rng <- base::globalenv()$.Random.seed [17:26:29.525] if (FALSE) { [17:26:29.525] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:29.525] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:29.525] } [17:26:29.525] ...future.result <- base::tryCatch({ [17:26:29.525] base::withCallingHandlers({ [17:26:29.525] ...future.value <- base::withVisible(base::local({ [17:26:29.525] 42L [17:26:29.525] })) [17:26:29.525] future::FutureResult(value = ...future.value$value, [17:26:29.525] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:29.525] ...future.rng), globalenv = if (FALSE) [17:26:29.525] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:29.525] ...future.globalenv.names)) [17:26:29.525] else NULL, started = ...future.startTime, version = "1.8") [17:26:29.525] }, condition = base::local({ [17:26:29.525] c <- base::c [17:26:29.525] inherits <- base::inherits [17:26:29.525] invokeRestart <- base::invokeRestart [17:26:29.525] length <- base::length [17:26:29.525] list <- base::list [17:26:29.525] seq.int <- base::seq.int [17:26:29.525] signalCondition <- base::signalCondition [17:26:29.525] sys.calls <- base::sys.calls [17:26:29.525] `[[` <- base::`[[` [17:26:29.525] `+` <- base::`+` [17:26:29.525] `<<-` <- base::`<<-` [17:26:29.525] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:29.525] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:29.525] 3L)] [17:26:29.525] } [17:26:29.525] function(cond) { [17:26:29.525] is_error <- inherits(cond, "error") [17:26:29.525] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:29.525] NULL) [17:26:29.525] if (is_error) { [17:26:29.525] sessionInformation <- function() { [17:26:29.525] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:29.525] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:29.525] search = base::search(), system = base::Sys.info()) [17:26:29.525] } [17:26:29.525] ...future.conditions[[length(...future.conditions) + [17:26:29.525] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:29.525] cond$call), session = sessionInformation(), [17:26:29.525] timestamp = base::Sys.time(), signaled = 0L) [17:26:29.525] signalCondition(cond) [17:26:29.525] } [17:26:29.525] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:29.525] "immediateCondition"))) { [17:26:29.525] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:29.525] ...future.conditions[[length(...future.conditions) + [17:26:29.525] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:29.525] if (TRUE && !signal) { [17:26:29.525] muffleCondition <- function (cond, pattern = "^muffle") [17:26:29.525] { [17:26:29.525] inherits <- base::inherits [17:26:29.525] invokeRestart <- base::invokeRestart [17:26:29.525] is.null <- base::is.null [17:26:29.525] muffled <- FALSE [17:26:29.525] if (inherits(cond, "message")) { [17:26:29.525] muffled <- grepl(pattern, "muffleMessage") [17:26:29.525] if (muffled) [17:26:29.525] invokeRestart("muffleMessage") [17:26:29.525] } [17:26:29.525] else if (inherits(cond, "warning")) { [17:26:29.525] muffled <- grepl(pattern, "muffleWarning") [17:26:29.525] if (muffled) [17:26:29.525] invokeRestart("muffleWarning") [17:26:29.525] } [17:26:29.525] else if (inherits(cond, "condition")) { [17:26:29.525] if (!is.null(pattern)) { [17:26:29.525] computeRestarts <- base::computeRestarts [17:26:29.525] grepl <- base::grepl [17:26:29.525] restarts <- computeRestarts(cond) [17:26:29.525] for (restart in restarts) { [17:26:29.525] name <- restart$name [17:26:29.525] if (is.null(name)) [17:26:29.525] next [17:26:29.525] if (!grepl(pattern, name)) [17:26:29.525] next [17:26:29.525] invokeRestart(restart) [17:26:29.525] muffled <- TRUE [17:26:29.525] break [17:26:29.525] } [17:26:29.525] } [17:26:29.525] } [17:26:29.525] invisible(muffled) [17:26:29.525] } [17:26:29.525] muffleCondition(cond, pattern = "^muffle") [17:26:29.525] } [17:26:29.525] } [17:26:29.525] else { [17:26:29.525] if (TRUE) { [17:26:29.525] muffleCondition <- function (cond, pattern = "^muffle") [17:26:29.525] { [17:26:29.525] inherits <- base::inherits [17:26:29.525] invokeRestart <- base::invokeRestart [17:26:29.525] is.null <- base::is.null [17:26:29.525] muffled <- FALSE [17:26:29.525] if (inherits(cond, "message")) { [17:26:29.525] muffled <- grepl(pattern, "muffleMessage") [17:26:29.525] if (muffled) [17:26:29.525] invokeRestart("muffleMessage") [17:26:29.525] } [17:26:29.525] else if (inherits(cond, "warning")) { [17:26:29.525] muffled <- grepl(pattern, "muffleWarning") [17:26:29.525] if (muffled) [17:26:29.525] invokeRestart("muffleWarning") [17:26:29.525] } [17:26:29.525] else if (inherits(cond, "condition")) { [17:26:29.525] if (!is.null(pattern)) { [17:26:29.525] computeRestarts <- base::computeRestarts [17:26:29.525] grepl <- base::grepl [17:26:29.525] restarts <- computeRestarts(cond) [17:26:29.525] for (restart in restarts) { [17:26:29.525] name <- restart$name [17:26:29.525] if (is.null(name)) [17:26:29.525] next [17:26:29.525] if (!grepl(pattern, name)) [17:26:29.525] next [17:26:29.525] invokeRestart(restart) [17:26:29.525] muffled <- TRUE [17:26:29.525] break [17:26:29.525] } [17:26:29.525] } [17:26:29.525] } [17:26:29.525] invisible(muffled) [17:26:29.525] } [17:26:29.525] muffleCondition(cond, pattern = "^muffle") [17:26:29.525] } [17:26:29.525] } [17:26:29.525] } [17:26:29.525] })) [17:26:29.525] }, error = function(ex) { [17:26:29.525] base::structure(base::list(value = NULL, visible = NULL, [17:26:29.525] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:29.525] ...future.rng), started = ...future.startTime, [17:26:29.525] finished = Sys.time(), session_uuid = NA_character_, [17:26:29.525] version = "1.8"), class = "FutureResult") [17:26:29.525] }, finally = { [17:26:29.525] if (!identical(...future.workdir, getwd())) [17:26:29.525] setwd(...future.workdir) [17:26:29.525] { [17:26:29.525] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:29.525] ...future.oldOptions$nwarnings <- NULL [17:26:29.525] } [17:26:29.525] base::options(...future.oldOptions) [17:26:29.525] if (.Platform$OS.type == "windows") { [17:26:29.525] old_names <- names(...future.oldEnvVars) [17:26:29.525] envs <- base::Sys.getenv() [17:26:29.525] names <- names(envs) [17:26:29.525] common <- intersect(names, old_names) [17:26:29.525] added <- setdiff(names, old_names) [17:26:29.525] removed <- setdiff(old_names, names) [17:26:29.525] changed <- common[...future.oldEnvVars[common] != [17:26:29.525] envs[common]] [17:26:29.525] NAMES <- toupper(changed) [17:26:29.525] args <- list() [17:26:29.525] for (kk in seq_along(NAMES)) { [17:26:29.525] name <- changed[[kk]] [17:26:29.525] NAME <- NAMES[[kk]] [17:26:29.525] if (name != NAME && is.element(NAME, old_names)) [17:26:29.525] next [17:26:29.525] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:29.525] } [17:26:29.525] NAMES <- toupper(added) [17:26:29.525] for (kk in seq_along(NAMES)) { [17:26:29.525] name <- added[[kk]] [17:26:29.525] NAME <- NAMES[[kk]] [17:26:29.525] if (name != NAME && is.element(NAME, old_names)) [17:26:29.525] next [17:26:29.525] args[[name]] <- "" [17:26:29.525] } [17:26:29.525] NAMES <- toupper(removed) [17:26:29.525] for (kk in seq_along(NAMES)) { [17:26:29.525] name <- removed[[kk]] [17:26:29.525] NAME <- NAMES[[kk]] [17:26:29.525] if (name != NAME && is.element(NAME, old_names)) [17:26:29.525] next [17:26:29.525] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:29.525] } [17:26:29.525] if (length(args) > 0) [17:26:29.525] base::do.call(base::Sys.setenv, args = args) [17:26:29.525] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:29.525] } [17:26:29.525] else { [17:26:29.525] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:29.525] } [17:26:29.525] { [17:26:29.525] if (base::length(...future.futureOptionsAdded) > [17:26:29.525] 0L) { [17:26:29.525] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:29.525] base::names(opts) <- ...future.futureOptionsAdded [17:26:29.525] base::options(opts) [17:26:29.525] } [17:26:29.525] { [17:26:29.525] { [17:26:29.525] NULL [17:26:29.525] RNGkind("Mersenne-Twister") [17:26:29.525] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:29.525] inherits = FALSE) [17:26:29.525] } [17:26:29.525] options(future.plan = NULL) [17:26:29.525] if (is.na(NA_character_)) [17:26:29.525] Sys.unsetenv("R_FUTURE_PLAN") [17:26:29.525] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:29.525] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:29.525] .init = FALSE) [17:26:29.525] } [17:26:29.525] } [17:26:29.525] } [17:26:29.525] }) [17:26:29.525] if (TRUE) { [17:26:29.525] base::sink(type = "output", split = FALSE) [17:26:29.525] if (TRUE) { [17:26:29.525] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:29.525] } [17:26:29.525] else { [17:26:29.525] ...future.result["stdout"] <- base::list(NULL) [17:26:29.525] } [17:26:29.525] base::close(...future.stdout) [17:26:29.525] ...future.stdout <- NULL [17:26:29.525] } [17:26:29.525] ...future.result$conditions <- ...future.conditions [17:26:29.525] ...future.result$finished <- base::Sys.time() [17:26:29.525] ...future.result [17:26:29.525] } [17:26:29.531] plan(): Setting new future strategy stack: [17:26:29.532] List of future strategies: [17:26:29.532] 1. sequential: [17:26:29.532] - args: function (..., envir = parent.frame(), workers = "") [17:26:29.532] - tweaked: FALSE [17:26:29.532] - call: NULL [17:26:29.533] plan(): nbrOfWorkers() = 1 [17:26:29.534] plan(): Setting new future strategy stack: [17:26:29.535] List of future strategies: [17:26:29.535] 1. future: [17:26:29.535] - args: function (..., workers = "") [17:26:29.535] - tweaked: FALSE [17:26:29.535] - call: plan(foo) [17:26:29.536] plan(): nbrOfWorkers() = Inf [17:26:29.536] SequentialFuture started (and completed) [1] 42 > > message("*** Future class - exception ... DONE") *** Future class - exception ... DONE > > message("*** Future class ... DONE") *** Future class ... DONE > > source("incl/end.R") [17:26:29.538] plan(): Setting new future strategy stack: [17:26:29.539] List of future strategies: [17:26:29.539] 1. FutureStrategy: [17:26:29.539] - args: function (..., envir = parent.frame(), workers = "") [17:26:29.539] - tweaked: FALSE [17:26:29.539] - call: future::plan(oplan) [17:26:29.540] 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.68 0.20 1.76