R Under development (unstable) (2024-03-25 r86192 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [17:26:49.705] plan(): Setting new future strategy stack: [17:26:49.706] List of future strategies: [17:26:49.706] 1. sequential: [17:26:49.706] - args: function (..., envir = parent.frame(), workers = "") [17:26:49.706] - tweaked: FALSE [17:26:49.706] - call: future::plan("sequential") [17:26:49.722] plan(): nbrOfWorkers() = 1 > library(methods) > > message("*** Globals - S4 methods ...") *** Globals - S4 methods ... > > setGeneric("my_fcn", function(x) standardGeneric("my_fcn")) [1] "my_fcn" > setMethod("my_fcn", signature(x = "numeric"), function(x) { -x }) > org_my_fcn <- my_fcn > > truth <- my_fcn(3) > > for (strategy in supportedStrategies()) { + message("Type of future: ", strategy) + plan(strategy) + + ## Assert that S4 generic function 'my_fcn()' is exported + f <- future({ my_fcn }, lazy = TRUE) + rm(list = "my_fcn") + v <- value(f) + print(v) + stopifnot( + is.function(v), + inherits(v, class(org_my_fcn)[1]) + ) + my_fcn <- org_my_fcn + + ## FIXME: + ## Just like S3 methods, S4 methods are not picked up + ## https://github.com/HenrikBengtsson/future/issues/615 + f <- future({ my_fcn(3) }, lazy = TRUE) + rm(list = "my_fcn") + v <- tryCatch(value(f), error = identity) + print(v) + if (isTRUE(as.logical(Sys.getenv("R_CHECK_IDEAL")))) { + if (getOption("future.globals.keepWhere", TRUE)) { + stopifnot(identical(v, truth)) + } else { + stopifnot(inherits(v, "error")) + } + } else if (isTRUE(getOption("future.globals.keepWhere", FALSE))) { + stopifnot(identical(v, truth)) + } else { + if (strategy %in% c("sequential", "multicore")) { + stopifnot(inherits(v, "error")) + } else { + stopifnot(identical(v, truth)) + } + } + my_fcn <- org_my_fcn + } Type of future: sequential [17:26:49.756] plan(): Setting new future strategy stack: [17:26:49.756] List of future strategies: [17:26:49.756] 1. sequential: [17:26:49.756] - args: function (..., envir = parent.frame(), workers = "") [17:26:49.756] - tweaked: FALSE [17:26:49.756] - call: plan(strategy) [17:26:49.769] plan(): nbrOfWorkers() = 1 [17:26:49.770] getGlobalsAndPackages() ... [17:26:49.770] Searching for globals... [17:26:49.777] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [17:26:49.777] Searching for globals ... DONE [17:26:49.778] Resolving globals: FALSE [17:26:49.779] The total size of the 1 globals is 3.84 KiB (3936 bytes) [17:26:49.779] The total size of the 1 globals exported for future expression ('{; my_fcn; }') is 3.84 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'my_fcn' (3.84 KiB of class 'function') [17:26:49.779] - globals: [1] 'my_fcn' [17:26:49.780] [17:26:49.780] getGlobalsAndPackages() ... DONE [17:26:49.781] run() for 'Future' ... [17:26:49.781] - state: 'created' [17:26:49.781] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:49.782] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:49.782] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:49.782] - Field: 'label' [17:26:49.782] - Field: 'local' [17:26:49.783] - Field: 'owner' [17:26:49.783] - Field: 'envir' [17:26:49.783] - Field: 'packages' [17:26:49.783] - Field: 'gc' [17:26:49.783] - Field: 'conditions' [17:26:49.784] - Field: 'expr' [17:26:49.784] - Field: 'uuid' [17:26:49.784] - Field: 'seed' [17:26:49.784] - Field: 'version' [17:26:49.784] - Field: 'result' [17:26:49.784] - Field: 'asynchronous' [17:26:49.785] - Field: 'calls' [17:26:49.785] - Field: 'globals' [17:26:49.785] - Field: 'stdout' [17:26:49.785] - Field: 'earlySignal' [17:26:49.785] - Field: 'lazy' [17:26:49.786] - Field: 'state' [17:26:49.786] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:49.786] - Launch lazy future ... [17:26:49.787] Packages needed by the future expression (n = 0): [17:26:49.787] Packages needed by future strategies (n = 0): [17:26:49.788] { [17:26:49.788] { [17:26:49.788] { [17:26:49.788] ...future.startTime <- base::Sys.time() [17:26:49.788] { [17:26:49.788] { [17:26:49.788] { [17:26:49.788] base::local({ [17:26:49.788] has_future <- base::requireNamespace("future", [17:26:49.788] quietly = TRUE) [17:26:49.788] if (has_future) { [17:26:49.788] ns <- base::getNamespace("future") [17:26:49.788] version <- ns[[".package"]][["version"]] [17:26:49.788] if (is.null(version)) [17:26:49.788] version <- utils::packageVersion("future") [17:26:49.788] } [17:26:49.788] else { [17:26:49.788] version <- NULL [17:26:49.788] } [17:26:49.788] if (!has_future || version < "1.8.0") { [17:26:49.788] info <- base::c(r_version = base::gsub("R version ", [17:26:49.788] "", base::R.version$version.string), [17:26:49.788] platform = base::sprintf("%s (%s-bit)", [17:26:49.788] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:49.788] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:49.788] "release", "version")], collapse = " "), [17:26:49.788] hostname = base::Sys.info()[["nodename"]]) [17:26:49.788] info <- base::sprintf("%s: %s", base::names(info), [17:26:49.788] info) [17:26:49.788] info <- base::paste(info, collapse = "; ") [17:26:49.788] if (!has_future) { [17:26:49.788] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:49.788] info) [17:26:49.788] } [17:26:49.788] else { [17:26:49.788] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:49.788] info, version) [17:26:49.788] } [17:26:49.788] base::stop(msg) [17:26:49.788] } [17:26:49.788] }) [17:26:49.788] } [17:26:49.788] ...future.strategy.old <- future::plan("list") [17:26:49.788] options(future.plan = NULL) [17:26:49.788] Sys.unsetenv("R_FUTURE_PLAN") [17:26:49.788] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:49.788] } [17:26:49.788] ...future.workdir <- getwd() [17:26:49.788] } [17:26:49.788] ...future.oldOptions <- base::as.list(base::.Options) [17:26:49.788] ...future.oldEnvVars <- base::Sys.getenv() [17:26:49.788] } [17:26:49.788] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:49.788] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:49.788] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:49.788] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:49.788] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:49.788] future.stdout.windows.reencode = NULL, width = 80L) [17:26:49.788] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:49.788] base::names(...future.oldOptions)) [17:26:49.788] } [17:26:49.788] if (FALSE) { [17:26:49.788] } [17:26:49.788] else { [17:26:49.788] if (TRUE) { [17:26:49.788] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:49.788] open = "w") [17:26:49.788] } [17:26:49.788] else { [17:26:49.788] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:49.788] windows = "NUL", "/dev/null"), open = "w") [17:26:49.788] } [17:26:49.788] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:49.788] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:49.788] base::sink(type = "output", split = FALSE) [17:26:49.788] base::close(...future.stdout) [17:26:49.788] }, add = TRUE) [17:26:49.788] } [17:26:49.788] ...future.frame <- base::sys.nframe() [17:26:49.788] ...future.conditions <- base::list() [17:26:49.788] ...future.rng <- base::globalenv()$.Random.seed [17:26:49.788] if (FALSE) { [17:26:49.788] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:49.788] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:49.788] } [17:26:49.788] ...future.result <- base::tryCatch({ [17:26:49.788] base::withCallingHandlers({ [17:26:49.788] ...future.value <- base::withVisible(base::local({ [17:26:49.788] my_fcn [17:26:49.788] })) [17:26:49.788] future::FutureResult(value = ...future.value$value, [17:26:49.788] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:49.788] ...future.rng), globalenv = if (FALSE) [17:26:49.788] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:49.788] ...future.globalenv.names)) [17:26:49.788] else NULL, started = ...future.startTime, version = "1.8") [17:26:49.788] }, condition = base::local({ [17:26:49.788] c <- base::c [17:26:49.788] inherits <- base::inherits [17:26:49.788] invokeRestart <- base::invokeRestart [17:26:49.788] length <- base::length [17:26:49.788] list <- base::list [17:26:49.788] seq.int <- base::seq.int [17:26:49.788] signalCondition <- base::signalCondition [17:26:49.788] sys.calls <- base::sys.calls [17:26:49.788] `[[` <- base::`[[` [17:26:49.788] `+` <- base::`+` [17:26:49.788] `<<-` <- base::`<<-` [17:26:49.788] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:49.788] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:49.788] 3L)] [17:26:49.788] } [17:26:49.788] function(cond) { [17:26:49.788] is_error <- inherits(cond, "error") [17:26:49.788] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:49.788] NULL) [17:26:49.788] if (is_error) { [17:26:49.788] sessionInformation <- function() { [17:26:49.788] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:49.788] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:49.788] search = base::search(), system = base::Sys.info()) [17:26:49.788] } [17:26:49.788] ...future.conditions[[length(...future.conditions) + [17:26:49.788] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:49.788] cond$call), session = sessionInformation(), [17:26:49.788] timestamp = base::Sys.time(), signaled = 0L) [17:26:49.788] signalCondition(cond) [17:26:49.788] } [17:26:49.788] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:49.788] "immediateCondition"))) { [17:26:49.788] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:49.788] ...future.conditions[[length(...future.conditions) + [17:26:49.788] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:49.788] if (TRUE && !signal) { [17:26:49.788] muffleCondition <- function (cond, pattern = "^muffle") [17:26:49.788] { [17:26:49.788] inherits <- base::inherits [17:26:49.788] invokeRestart <- base::invokeRestart [17:26:49.788] is.null <- base::is.null [17:26:49.788] muffled <- FALSE [17:26:49.788] if (inherits(cond, "message")) { [17:26:49.788] muffled <- grepl(pattern, "muffleMessage") [17:26:49.788] if (muffled) [17:26:49.788] invokeRestart("muffleMessage") [17:26:49.788] } [17:26:49.788] else if (inherits(cond, "warning")) { [17:26:49.788] muffled <- grepl(pattern, "muffleWarning") [17:26:49.788] if (muffled) [17:26:49.788] invokeRestart("muffleWarning") [17:26:49.788] } [17:26:49.788] else if (inherits(cond, "condition")) { [17:26:49.788] if (!is.null(pattern)) { [17:26:49.788] computeRestarts <- base::computeRestarts [17:26:49.788] grepl <- base::grepl [17:26:49.788] restarts <- computeRestarts(cond) [17:26:49.788] for (restart in restarts) { [17:26:49.788] name <- restart$name [17:26:49.788] if (is.null(name)) [17:26:49.788] next [17:26:49.788] if (!grepl(pattern, name)) [17:26:49.788] next [17:26:49.788] invokeRestart(restart) [17:26:49.788] muffled <- TRUE [17:26:49.788] break [17:26:49.788] } [17:26:49.788] } [17:26:49.788] } [17:26:49.788] invisible(muffled) [17:26:49.788] } [17:26:49.788] muffleCondition(cond, pattern = "^muffle") [17:26:49.788] } [17:26:49.788] } [17:26:49.788] else { [17:26:49.788] if (TRUE) { [17:26:49.788] muffleCondition <- function (cond, pattern = "^muffle") [17:26:49.788] { [17:26:49.788] inherits <- base::inherits [17:26:49.788] invokeRestart <- base::invokeRestart [17:26:49.788] is.null <- base::is.null [17:26:49.788] muffled <- FALSE [17:26:49.788] if (inherits(cond, "message")) { [17:26:49.788] muffled <- grepl(pattern, "muffleMessage") [17:26:49.788] if (muffled) [17:26:49.788] invokeRestart("muffleMessage") [17:26:49.788] } [17:26:49.788] else if (inherits(cond, "warning")) { [17:26:49.788] muffled <- grepl(pattern, "muffleWarning") [17:26:49.788] if (muffled) [17:26:49.788] invokeRestart("muffleWarning") [17:26:49.788] } [17:26:49.788] else if (inherits(cond, "condition")) { [17:26:49.788] if (!is.null(pattern)) { [17:26:49.788] computeRestarts <- base::computeRestarts [17:26:49.788] grepl <- base::grepl [17:26:49.788] restarts <- computeRestarts(cond) [17:26:49.788] for (restart in restarts) { [17:26:49.788] name <- restart$name [17:26:49.788] if (is.null(name)) [17:26:49.788] next [17:26:49.788] if (!grepl(pattern, name)) [17:26:49.788] next [17:26:49.788] invokeRestart(restart) [17:26:49.788] muffled <- TRUE [17:26:49.788] break [17:26:49.788] } [17:26:49.788] } [17:26:49.788] } [17:26:49.788] invisible(muffled) [17:26:49.788] } [17:26:49.788] muffleCondition(cond, pattern = "^muffle") [17:26:49.788] } [17:26:49.788] } [17:26:49.788] } [17:26:49.788] })) [17:26:49.788] }, error = function(ex) { [17:26:49.788] base::structure(base::list(value = NULL, visible = NULL, [17:26:49.788] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:49.788] ...future.rng), started = ...future.startTime, [17:26:49.788] finished = Sys.time(), session_uuid = NA_character_, [17:26:49.788] version = "1.8"), class = "FutureResult") [17:26:49.788] }, finally = { [17:26:49.788] if (!identical(...future.workdir, getwd())) [17:26:49.788] setwd(...future.workdir) [17:26:49.788] { [17:26:49.788] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:49.788] ...future.oldOptions$nwarnings <- NULL [17:26:49.788] } [17:26:49.788] base::options(...future.oldOptions) [17:26:49.788] if (.Platform$OS.type == "windows") { [17:26:49.788] old_names <- names(...future.oldEnvVars) [17:26:49.788] envs <- base::Sys.getenv() [17:26:49.788] names <- names(envs) [17:26:49.788] common <- intersect(names, old_names) [17:26:49.788] added <- setdiff(names, old_names) [17:26:49.788] removed <- setdiff(old_names, names) [17:26:49.788] changed <- common[...future.oldEnvVars[common] != [17:26:49.788] envs[common]] [17:26:49.788] NAMES <- toupper(changed) [17:26:49.788] args <- list() [17:26:49.788] for (kk in seq_along(NAMES)) { [17:26:49.788] name <- changed[[kk]] [17:26:49.788] NAME <- NAMES[[kk]] [17:26:49.788] if (name != NAME && is.element(NAME, old_names)) [17:26:49.788] next [17:26:49.788] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:49.788] } [17:26:49.788] NAMES <- toupper(added) [17:26:49.788] for (kk in seq_along(NAMES)) { [17:26:49.788] name <- added[[kk]] [17:26:49.788] NAME <- NAMES[[kk]] [17:26:49.788] if (name != NAME && is.element(NAME, old_names)) [17:26:49.788] next [17:26:49.788] args[[name]] <- "" [17:26:49.788] } [17:26:49.788] NAMES <- toupper(removed) [17:26:49.788] for (kk in seq_along(NAMES)) { [17:26:49.788] name <- removed[[kk]] [17:26:49.788] NAME <- NAMES[[kk]] [17:26:49.788] if (name != NAME && is.element(NAME, old_names)) [17:26:49.788] next [17:26:49.788] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:49.788] } [17:26:49.788] if (length(args) > 0) [17:26:49.788] base::do.call(base::Sys.setenv, args = args) [17:26:49.788] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:49.788] } [17:26:49.788] else { [17:26:49.788] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:49.788] } [17:26:49.788] { [17:26:49.788] if (base::length(...future.futureOptionsAdded) > [17:26:49.788] 0L) { [17:26:49.788] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:49.788] base::names(opts) <- ...future.futureOptionsAdded [17:26:49.788] base::options(opts) [17:26:49.788] } [17:26:49.788] { [17:26:49.788] { [17:26:49.788] NULL [17:26:49.788] RNGkind("Mersenne-Twister") [17:26:49.788] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:49.788] inherits = FALSE) [17:26:49.788] } [17:26:49.788] options(future.plan = NULL) [17:26:49.788] if (is.na(NA_character_)) [17:26:49.788] Sys.unsetenv("R_FUTURE_PLAN") [17:26:49.788] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:49.788] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:49.788] .init = FALSE) [17:26:49.788] } [17:26:49.788] } [17:26:49.788] } [17:26:49.788] }) [17:26:49.788] if (TRUE) { [17:26:49.788] base::sink(type = "output", split = FALSE) [17:26:49.788] if (TRUE) { [17:26:49.788] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:49.788] } [17:26:49.788] else { [17:26:49.788] ...future.result["stdout"] <- base::list(NULL) [17:26:49.788] } [17:26:49.788] base::close(...future.stdout) [17:26:49.788] ...future.stdout <- NULL [17:26:49.788] } [17:26:49.788] ...future.result$conditions <- ...future.conditions [17:26:49.788] ...future.result$finished <- base::Sys.time() [17:26:49.788] ...future.result [17:26:49.788] } [17:26:49.792] assign_globals() ... [17:26:49.792] List of 1 [17:26:49.792] $ my_fcn:Formal class 'standardGeneric' [package "methods"] with 8 slots [17:26:49.792] .. ..@ .Data :function (x) [17:26:49.792] .. ..@ generic : chr "my_fcn" [17:26:49.792] .. .. ..- attr(*, "package")= chr ".GlobalEnv" [17:26:49.792] .. ..@ package : chr ".GlobalEnv" [17:26:49.792] .. ..@ group : list() [17:26:49.792] .. ..@ valueClass: chr(0) [17:26:49.792] .. ..@ signature : chr "x" [17:26:49.792] .. ..@ default : NULL [17:26:49.792] .. ..@ skeleton : language (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", ... [17:26:49.792] - attr(*, "where")=List of 1 [17:26:49.792] ..$ my_fcn: [17:26:49.792] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:49.792] - attr(*, "resolved")= logi FALSE [17:26:49.792] - attr(*, "total_size")= num 3936 [17:26:49.792] - attr(*, "already-done")= logi TRUE [17:26:49.801] - reassign environment for 'my_fcn' [17:26:49.801] - copied 'my_fcn' to environment [17:26:49.801] assign_globals() ... done [17:26:49.802] plan(): Setting new future strategy stack: [17:26:49.802] List of future strategies: [17:26:49.802] 1. sequential: [17:26:49.802] - args: function (..., envir = parent.frame(), workers = "") [17:26:49.802] - tweaked: FALSE [17:26:49.802] - call: NULL [17:26:49.802] plan(): nbrOfWorkers() = 1 [17:26:49.804] plan(): Setting new future strategy stack: [17:26:49.805] List of future strategies: [17:26:49.805] 1. sequential: [17:26:49.805] - args: function (..., envir = parent.frame(), workers = "") [17:26:49.805] - tweaked: FALSE [17:26:49.805] - call: plan(strategy) [17:26:49.805] plan(): nbrOfWorkers() = 1 [17:26:49.805] SequentialFuture started (and completed) [17:26:49.806] - Launch lazy future ... done [17:26:49.806] run() for 'SequentialFuture' ... done new("standardGeneric", .Data = function (x) standardGeneric("my_fcn"), generic = "my_fcn", package = ".GlobalEnv", group = list(), valueClass = character(0), signature = "x", default = NULL, skeleton = (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", "my_fcn"), domain = NA))(x)) attr(,"generic") [1] "my_fcn" attr(,"generic")attr(,"package") [1] ".GlobalEnv" attr(,"package") [1] ".GlobalEnv" attr(,"group") list() attr(,"valueClass") character(0) attr(,"signature") [1] "x" attr(,"default") `\001NULL\001` attr(,"skeleton") (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", "my_fcn"), domain = NA))(x) attr(,"class") [1] "standardGeneric" attr(,"class")attr(,"package") [1] "methods" [17:26:49.807] getGlobalsAndPackages() ... [17:26:49.807] Searching for globals... [17:26:49.814] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [17:26:49.814] Searching for globals ... DONE [17:26:49.814] Resolving globals: FALSE [17:26:49.815] The total size of the 1 globals is 3.84 KiB (3936 bytes) [17:26:49.815] The total size of the 1 globals exported for future expression ('{; my_fcn(3); }') is 3.84 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'my_fcn' (3.84 KiB of class 'function') [17:26:49.815] - globals: [1] 'my_fcn' [17:26:49.816] [17:26:49.816] getGlobalsAndPackages() ... DONE [17:26:49.816] run() for 'Future' ... [17:26:49.816] - state: 'created' [17:26:49.816] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:26:49.817] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:26:49.817] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:26:49.817] - Field: 'label' [17:26:49.817] - Field: 'local' [17:26:49.817] - Field: 'owner' [17:26:49.818] - Field: 'envir' [17:26:49.818] - Field: 'packages' [17:26:49.818] - Field: 'gc' [17:26:49.818] - Field: 'conditions' [17:26:49.818] - Field: 'expr' [17:26:49.819] - Field: 'uuid' [17:26:49.819] - Field: 'seed' [17:26:49.819] - Field: 'version' [17:26:49.819] - Field: 'result' [17:26:49.819] - Field: 'asynchronous' [17:26:49.819] - Field: 'calls' [17:26:49.820] - Field: 'globals' [17:26:49.820] - Field: 'stdout' [17:26:49.820] - Field: 'earlySignal' [17:26:49.820] - Field: 'lazy' [17:26:49.820] - Field: 'state' [17:26:49.820] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:26:49.821] - Launch lazy future ... [17:26:49.821] Packages needed by the future expression (n = 0): [17:26:49.821] Packages needed by future strategies (n = 0): [17:26:49.822] { [17:26:49.822] { [17:26:49.822] { [17:26:49.822] ...future.startTime <- base::Sys.time() [17:26:49.822] { [17:26:49.822] { [17:26:49.822] { [17:26:49.822] base::local({ [17:26:49.822] has_future <- base::requireNamespace("future", [17:26:49.822] quietly = TRUE) [17:26:49.822] if (has_future) { [17:26:49.822] ns <- base::getNamespace("future") [17:26:49.822] version <- ns[[".package"]][["version"]] [17:26:49.822] if (is.null(version)) [17:26:49.822] version <- utils::packageVersion("future") [17:26:49.822] } [17:26:49.822] else { [17:26:49.822] version <- NULL [17:26:49.822] } [17:26:49.822] if (!has_future || version < "1.8.0") { [17:26:49.822] info <- base::c(r_version = base::gsub("R version ", [17:26:49.822] "", base::R.version$version.string), [17:26:49.822] platform = base::sprintf("%s (%s-bit)", [17:26:49.822] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:49.822] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:49.822] "release", "version")], collapse = " "), [17:26:49.822] hostname = base::Sys.info()[["nodename"]]) [17:26:49.822] info <- base::sprintf("%s: %s", base::names(info), [17:26:49.822] info) [17:26:49.822] info <- base::paste(info, collapse = "; ") [17:26:49.822] if (!has_future) { [17:26:49.822] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:49.822] info) [17:26:49.822] } [17:26:49.822] else { [17:26:49.822] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:49.822] info, version) [17:26:49.822] } [17:26:49.822] base::stop(msg) [17:26:49.822] } [17:26:49.822] }) [17:26:49.822] } [17:26:49.822] ...future.strategy.old <- future::plan("list") [17:26:49.822] options(future.plan = NULL) [17:26:49.822] Sys.unsetenv("R_FUTURE_PLAN") [17:26:49.822] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:49.822] } [17:26:49.822] ...future.workdir <- getwd() [17:26:49.822] } [17:26:49.822] ...future.oldOptions <- base::as.list(base::.Options) [17:26:49.822] ...future.oldEnvVars <- base::Sys.getenv() [17:26:49.822] } [17:26:49.822] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:49.822] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:49.822] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:49.822] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:49.822] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:49.822] future.stdout.windows.reencode = NULL, width = 80L) [17:26:49.822] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:49.822] base::names(...future.oldOptions)) [17:26:49.822] } [17:26:49.822] if (FALSE) { [17:26:49.822] } [17:26:49.822] else { [17:26:49.822] if (TRUE) { [17:26:49.822] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:49.822] open = "w") [17:26:49.822] } [17:26:49.822] else { [17:26:49.822] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:49.822] windows = "NUL", "/dev/null"), open = "w") [17:26:49.822] } [17:26:49.822] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:49.822] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:49.822] base::sink(type = "output", split = FALSE) [17:26:49.822] base::close(...future.stdout) [17:26:49.822] }, add = TRUE) [17:26:49.822] } [17:26:49.822] ...future.frame <- base::sys.nframe() [17:26:49.822] ...future.conditions <- base::list() [17:26:49.822] ...future.rng <- base::globalenv()$.Random.seed [17:26:49.822] if (FALSE) { [17:26:49.822] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:49.822] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:49.822] } [17:26:49.822] ...future.result <- base::tryCatch({ [17:26:49.822] base::withCallingHandlers({ [17:26:49.822] ...future.value <- base::withVisible(base::local({ [17:26:49.822] my_fcn(3) [17:26:49.822] })) [17:26:49.822] future::FutureResult(value = ...future.value$value, [17:26:49.822] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:49.822] ...future.rng), globalenv = if (FALSE) [17:26:49.822] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:49.822] ...future.globalenv.names)) [17:26:49.822] else NULL, started = ...future.startTime, version = "1.8") [17:26:49.822] }, condition = base::local({ [17:26:49.822] c <- base::c [17:26:49.822] inherits <- base::inherits [17:26:49.822] invokeRestart <- base::invokeRestart [17:26:49.822] length <- base::length [17:26:49.822] list <- base::list [17:26:49.822] seq.int <- base::seq.int [17:26:49.822] signalCondition <- base::signalCondition [17:26:49.822] sys.calls <- base::sys.calls [17:26:49.822] `[[` <- base::`[[` [17:26:49.822] `+` <- base::`+` [17:26:49.822] `<<-` <- base::`<<-` [17:26:49.822] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:49.822] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:49.822] 3L)] [17:26:49.822] } [17:26:49.822] function(cond) { [17:26:49.822] is_error <- inherits(cond, "error") [17:26:49.822] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:49.822] NULL) [17:26:49.822] if (is_error) { [17:26:49.822] sessionInformation <- function() { [17:26:49.822] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:49.822] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:49.822] search = base::search(), system = base::Sys.info()) [17:26:49.822] } [17:26:49.822] ...future.conditions[[length(...future.conditions) + [17:26:49.822] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:49.822] cond$call), session = sessionInformation(), [17:26:49.822] timestamp = base::Sys.time(), signaled = 0L) [17:26:49.822] signalCondition(cond) [17:26:49.822] } [17:26:49.822] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:49.822] "immediateCondition"))) { [17:26:49.822] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:49.822] ...future.conditions[[length(...future.conditions) + [17:26:49.822] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:49.822] if (TRUE && !signal) { [17:26:49.822] muffleCondition <- function (cond, pattern = "^muffle") [17:26:49.822] { [17:26:49.822] inherits <- base::inherits [17:26:49.822] invokeRestart <- base::invokeRestart [17:26:49.822] is.null <- base::is.null [17:26:49.822] muffled <- FALSE [17:26:49.822] if (inherits(cond, "message")) { [17:26:49.822] muffled <- grepl(pattern, "muffleMessage") [17:26:49.822] if (muffled) [17:26:49.822] invokeRestart("muffleMessage") [17:26:49.822] } [17:26:49.822] else if (inherits(cond, "warning")) { [17:26:49.822] muffled <- grepl(pattern, "muffleWarning") [17:26:49.822] if (muffled) [17:26:49.822] invokeRestart("muffleWarning") [17:26:49.822] } [17:26:49.822] else if (inherits(cond, "condition")) { [17:26:49.822] if (!is.null(pattern)) { [17:26:49.822] computeRestarts <- base::computeRestarts [17:26:49.822] grepl <- base::grepl [17:26:49.822] restarts <- computeRestarts(cond) [17:26:49.822] for (restart in restarts) { [17:26:49.822] name <- restart$name [17:26:49.822] if (is.null(name)) [17:26:49.822] next [17:26:49.822] if (!grepl(pattern, name)) [17:26:49.822] next [17:26:49.822] invokeRestart(restart) [17:26:49.822] muffled <- TRUE [17:26:49.822] break [17:26:49.822] } [17:26:49.822] } [17:26:49.822] } [17:26:49.822] invisible(muffled) [17:26:49.822] } [17:26:49.822] muffleCondition(cond, pattern = "^muffle") [17:26:49.822] } [17:26:49.822] } [17:26:49.822] else { [17:26:49.822] if (TRUE) { [17:26:49.822] muffleCondition <- function (cond, pattern = "^muffle") [17:26:49.822] { [17:26:49.822] inherits <- base::inherits [17:26:49.822] invokeRestart <- base::invokeRestart [17:26:49.822] is.null <- base::is.null [17:26:49.822] muffled <- FALSE [17:26:49.822] if (inherits(cond, "message")) { [17:26:49.822] muffled <- grepl(pattern, "muffleMessage") [17:26:49.822] if (muffled) [17:26:49.822] invokeRestart("muffleMessage") [17:26:49.822] } [17:26:49.822] else if (inherits(cond, "warning")) { [17:26:49.822] muffled <- grepl(pattern, "muffleWarning") [17:26:49.822] if (muffled) [17:26:49.822] invokeRestart("muffleWarning") [17:26:49.822] } [17:26:49.822] else if (inherits(cond, "condition")) { [17:26:49.822] if (!is.null(pattern)) { [17:26:49.822] computeRestarts <- base::computeRestarts [17:26:49.822] grepl <- base::grepl [17:26:49.822] restarts <- computeRestarts(cond) [17:26:49.822] for (restart in restarts) { [17:26:49.822] name <- restart$name [17:26:49.822] if (is.null(name)) [17:26:49.822] next [17:26:49.822] if (!grepl(pattern, name)) [17:26:49.822] next [17:26:49.822] invokeRestart(restart) [17:26:49.822] muffled <- TRUE [17:26:49.822] break [17:26:49.822] } [17:26:49.822] } [17:26:49.822] } [17:26:49.822] invisible(muffled) [17:26:49.822] } [17:26:49.822] muffleCondition(cond, pattern = "^muffle") [17:26:49.822] } [17:26:49.822] } [17:26:49.822] } [17:26:49.822] })) [17:26:49.822] }, error = function(ex) { [17:26:49.822] base::structure(base::list(value = NULL, visible = NULL, [17:26:49.822] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:49.822] ...future.rng), started = ...future.startTime, [17:26:49.822] finished = Sys.time(), session_uuid = NA_character_, [17:26:49.822] version = "1.8"), class = "FutureResult") [17:26:49.822] }, finally = { [17:26:49.822] if (!identical(...future.workdir, getwd())) [17:26:49.822] setwd(...future.workdir) [17:26:49.822] { [17:26:49.822] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:49.822] ...future.oldOptions$nwarnings <- NULL [17:26:49.822] } [17:26:49.822] base::options(...future.oldOptions) [17:26:49.822] if (.Platform$OS.type == "windows") { [17:26:49.822] old_names <- names(...future.oldEnvVars) [17:26:49.822] envs <- base::Sys.getenv() [17:26:49.822] names <- names(envs) [17:26:49.822] common <- intersect(names, old_names) [17:26:49.822] added <- setdiff(names, old_names) [17:26:49.822] removed <- setdiff(old_names, names) [17:26:49.822] changed <- common[...future.oldEnvVars[common] != [17:26:49.822] envs[common]] [17:26:49.822] NAMES <- toupper(changed) [17:26:49.822] args <- list() [17:26:49.822] for (kk in seq_along(NAMES)) { [17:26:49.822] name <- changed[[kk]] [17:26:49.822] NAME <- NAMES[[kk]] [17:26:49.822] if (name != NAME && is.element(NAME, old_names)) [17:26:49.822] next [17:26:49.822] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:49.822] } [17:26:49.822] NAMES <- toupper(added) [17:26:49.822] for (kk in seq_along(NAMES)) { [17:26:49.822] name <- added[[kk]] [17:26:49.822] NAME <- NAMES[[kk]] [17:26:49.822] if (name != NAME && is.element(NAME, old_names)) [17:26:49.822] next [17:26:49.822] args[[name]] <- "" [17:26:49.822] } [17:26:49.822] NAMES <- toupper(removed) [17:26:49.822] for (kk in seq_along(NAMES)) { [17:26:49.822] name <- removed[[kk]] [17:26:49.822] NAME <- NAMES[[kk]] [17:26:49.822] if (name != NAME && is.element(NAME, old_names)) [17:26:49.822] next [17:26:49.822] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:49.822] } [17:26:49.822] if (length(args) > 0) [17:26:49.822] base::do.call(base::Sys.setenv, args = args) [17:26:49.822] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:49.822] } [17:26:49.822] else { [17:26:49.822] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:49.822] } [17:26:49.822] { [17:26:49.822] if (base::length(...future.futureOptionsAdded) > [17:26:49.822] 0L) { [17:26:49.822] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:49.822] base::names(opts) <- ...future.futureOptionsAdded [17:26:49.822] base::options(opts) [17:26:49.822] } [17:26:49.822] { [17:26:49.822] { [17:26:49.822] NULL [17:26:49.822] RNGkind("Mersenne-Twister") [17:26:49.822] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:26:49.822] inherits = FALSE) [17:26:49.822] } [17:26:49.822] options(future.plan = NULL) [17:26:49.822] if (is.na(NA_character_)) [17:26:49.822] Sys.unsetenv("R_FUTURE_PLAN") [17:26:49.822] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:49.822] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:49.822] .init = FALSE) [17:26:49.822] } [17:26:49.822] } [17:26:49.822] } [17:26:49.822] }) [17:26:49.822] if (TRUE) { [17:26:49.822] base::sink(type = "output", split = FALSE) [17:26:49.822] if (TRUE) { [17:26:49.822] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:49.822] } [17:26:49.822] else { [17:26:49.822] ...future.result["stdout"] <- base::list(NULL) [17:26:49.822] } [17:26:49.822] base::close(...future.stdout) [17:26:49.822] ...future.stdout <- NULL [17:26:49.822] } [17:26:49.822] ...future.result$conditions <- ...future.conditions [17:26:49.822] ...future.result$finished <- base::Sys.time() [17:26:49.822] ...future.result [17:26:49.822] } [17:26:49.825] assign_globals() ... [17:26:49.825] List of 1 [17:26:49.825] $ my_fcn:Formal class 'standardGeneric' [package "methods"] with 8 slots [17:26:49.825] .. ..@ .Data :function (x) [17:26:49.825] .. ..@ generic : chr "my_fcn" [17:26:49.825] .. .. ..- attr(*, "package")= chr ".GlobalEnv" [17:26:49.825] .. ..@ package : chr ".GlobalEnv" [17:26:49.825] .. ..@ group : list() [17:26:49.825] .. ..@ valueClass: chr(0) [17:26:49.825] .. ..@ signature : chr "x" [17:26:49.825] .. ..@ default : NULL [17:26:49.825] .. ..@ skeleton : language (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", ... [17:26:49.825] - attr(*, "where")=List of 1 [17:26:49.825] ..$ my_fcn: [17:26:49.825] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:26:49.825] - attr(*, "resolved")= logi FALSE [17:26:49.825] - attr(*, "total_size")= num 3936 [17:26:49.825] - attr(*, "already-done")= logi TRUE [17:26:49.831] - reassign environment for 'my_fcn' [17:26:49.831] - copied 'my_fcn' to environment [17:26:49.832] assign_globals() ... done [17:26:49.832] plan(): Setting new future strategy stack: [17:26:49.832] List of future strategies: [17:26:49.832] 1. sequential: [17:26:49.832] - args: function (..., envir = parent.frame(), workers = "") [17:26:49.832] - tweaked: FALSE [17:26:49.832] - call: NULL [17:26:49.833] plan(): nbrOfWorkers() = 1 [17:26:49.835] plan(): Setting new future strategy stack: [17:26:49.835] List of future strategies: [17:26:49.835] 1. sequential: [17:26:49.835] - args: function (..., envir = parent.frame(), workers = "") [17:26:49.835] - tweaked: FALSE [17:26:49.835] - call: plan(strategy) [17:26:49.836] plan(): nbrOfWorkers() = 1 [17:26:49.836] SequentialFuture started (and completed) [17:26:49.836] signalConditions() ... [17:26:49.836] - include = 'immediateCondition' [17:26:49.836] - exclude = [17:26:49.837] - resignal = FALSE [17:26:49.837] - Number of conditions: 1 [17:26:49.837] signalConditions() ... done [17:26:49.838] - Launch lazy future ... done [17:26:49.838] run() for 'SequentialFuture' ... done [17:26:49.838] signalConditions() ... [17:26:49.839] - include = 'immediateCondition' [17:26:49.839] - exclude = [17:26:49.839] - resignal = FALSE [17:26:49.839] - Number of conditions: 1 [17:26:49.839] signalConditions() ... done [17:26:49.839] Future state: 'finished' [17:26:49.840] signalConditions() ... [17:26:49.840] - include = 'condition' [17:26:49.840] - exclude = 'immediateCondition' [17:26:49.840] - resignal = TRUE [17:26:49.840] - Number of conditions: 1 [17:26:49.840] - Condition #1: 'simpleError', 'error', 'condition' [17:26:49.841] signalConditions() ... done Type of future: multisession [17:26:49.841] plan(): Setting new future strategy stack: [17:26:49.841] List of future strategies: [17:26:49.841] 1. multisession: [17:26:49.841] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:26:49.841] - tweaked: FALSE [17:26:49.841] - call: plan(strategy) [17:26:49.842] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:26:49.842] multisession: [17:26:49.842] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:26:49.842] - tweaked: FALSE [17:26:49.842] - call: plan(strategy) [17:26:49.846] getGlobalsAndPackages() ... [17:26:49.846] Not searching for globals [17:26:49.847] - globals: [0] [17:26:49.847] getGlobalsAndPackages() ... DONE [17:26:49.847] [local output] makeClusterPSOCK() ... [17:26:49.879] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:26:49.885] [local output] Base port: 21861 [17:26:49.886] [local output] Getting setup options for 2 cluster nodes ... [17:26:49.886] [local output] - Node 1 of 2 ... [17:26:49.886] [local output] localMachine=TRUE => revtunnel=FALSE [17:26:49.888] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmp4yrzFN/worker.rank=1.parallelly.parent=178260.2b8545f1052cd.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/Rtmp4yrzFN/worker.rank=1.parallelly.parent=178260.2b8545f1052cd.pid\")"' [17:26:50.220] - Possible to infer worker's PID: TRUE [17:26:50.221] [local output] Rscript port: 21861 [17:26:50.222] [local output] - Node 2 of 2 ... [17:26:50.223] [local output] localMachine=TRUE => revtunnel=FALSE [17:26:50.224] [local output] Rscript port: 21861 [17:26:50.225] [local output] Getting setup options for 2 cluster nodes ... done [17:26:50.225] [local output] - Parallel setup requested for some PSOCK nodes [17:26:50.226] [local output] Setting up PSOCK nodes in parallel [17:26:50.227] List of 36 [17:26:50.227] $ worker : chr "localhost" [17:26:50.227] ..- attr(*, "localhost")= logi TRUE [17:26:50.227] $ master : chr "localhost" [17:26:50.227] $ port : int 21861 [17:26:50.227] $ connectTimeout : num 120 [17:26:50.227] $ timeout : num 120 [17:26:50.227] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:26:50.227] $ homogeneous : logi TRUE [17:26:50.227] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=globals,S4methods.R:178260:CRANW"| __truncated__ [17:26:50.227] $ rscript_envs : NULL [17:26:50.227] $ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:26:50.227] $ rscript_startup : NULL [17:26:50.227] $ rscript_sh : chr "cmd" [17:26:50.227] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:26:50.227] $ methods : logi TRUE [17:26:50.227] $ socketOptions : chr "no-delay" [17:26:50.227] $ useXDR : logi FALSE [17:26:50.227] $ outfile : chr "/dev/null" [17:26:50.227] $ renice : int NA [17:26:50.227] $ rshcmd : NULL [17:26:50.227] $ user : chr(0) [17:26:50.227] $ revtunnel : logi FALSE [17:26:50.227] $ rshlogfile : NULL [17:26:50.227] $ rshopts : chr(0) [17:26:50.227] $ rank : int 1 [17:26:50.227] $ manual : logi FALSE [17:26:50.227] $ dryrun : logi FALSE [17:26:50.227] $ quiet : logi FALSE [17:26:50.227] $ setup_strategy : chr "parallel" [17:26:50.227] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:26:50.227] $ pidfile : chr "D:/temp/Rtmp4yrzFN/worker.rank=1.parallelly.parent=178260.2b8545f1052cd.pid" [17:26:50.227] $ rshcmd_label : NULL [17:26:50.227] $ rsh_call : NULL [17:26:50.227] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:26:50.227] $ localMachine : logi TRUE [17:26:50.227] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:26:50.227] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:26:50.227] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:26:50.227] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:26:50.227] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:26:50.227] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:26:50.227] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:26:50.227] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:26:50.227] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:26:50.227] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:26:50.227] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:26:50.227] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:26:50.227] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:26:50.227] $ arguments :List of 28 [17:26:50.227] ..$ worker : chr "localhost" [17:26:50.227] ..$ master : NULL [17:26:50.227] ..$ port : int 21861 [17:26:50.227] ..$ connectTimeout : num 120 [17:26:50.227] ..$ timeout : num 120 [17:26:50.227] ..$ rscript : NULL [17:26:50.227] ..$ homogeneous : NULL [17:26:50.227] ..$ rscript_args : NULL [17:26:50.227] ..$ rscript_envs : NULL [17:26:50.227] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7" "D:/RCompile/recent/R/library" [17:26:50.227] ..$ rscript_startup : NULL [17:26:50.227] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:26:50.227] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:26:50.227] ..$ methods : logi TRUE [17:26:50.227] ..$ socketOptions : chr "no-delay" [17:26:50.227] ..$ useXDR : logi FALSE [17:26:50.227] ..$ outfile : chr "/dev/null" [17:26:50.227] ..$ renice : int NA [17:26:50.227] ..$ rshcmd : NULL [17:26:50.227] ..$ user : NULL [17:26:50.227] ..$ revtunnel : logi NA [17:26:50.227] ..$ rshlogfile : NULL [17:26:50.227] ..$ rshopts : NULL [17:26:50.227] ..$ rank : int 1 [17:26:50.227] ..$ manual : logi FALSE [17:26:50.227] ..$ dryrun : logi FALSE [17:26:50.227] ..$ quiet : logi FALSE [17:26:50.227] ..$ setup_strategy : chr "parallel" [17:26:50.227] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:26:50.253] [local output] System call to launch all workers: [17:26:50.253] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=globals,S4methods.R:178260:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmp4yrzFN/worker.rank=1.parallelly.parent=178260.2b8545f1052cd.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpAVtqMV/RLIBS_30708245f64e7\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=21861 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:26:50.254] [local output] Starting PSOCK main server [17:26:50.259] [local output] Workers launched [17:26:50.259] [local output] Waiting for workers to connect back [17:26:50.260] - [local output] 0 workers out of 2 ready [17:26:50.424] - [local output] 0 workers out of 2 ready [17:26:50.425] - [local output] 1 workers out of 2 ready [17:26:50.425] - [local output] 2 workers out of 2 ready [17:26:50.426] [local output] Launching of workers completed [17:26:50.426] [local output] Collecting session information from workers [17:26:50.427] [local output] - Worker #1 of 2 [17:26:50.427] [local output] - Worker #2 of 2 [17:26:50.428] [local output] makeClusterPSOCK() ... done [17:26:50.440] Packages needed by the future expression (n = 0): [17:26:50.440] Packages needed by future strategies (n = 0): [17:26:50.441] { [17:26:50.441] { [17:26:50.441] { [17:26:50.441] ...future.startTime <- base::Sys.time() [17:26:50.441] { [17:26:50.441] { [17:26:50.441] { [17:26:50.441] { [17:26:50.441] base::local({ [17:26:50.441] has_future <- base::requireNamespace("future", [17:26:50.441] quietly = TRUE) [17:26:50.441] if (has_future) { [17:26:50.441] ns <- base::getNamespace("future") [17:26:50.441] version <- ns[[".package"]][["version"]] [17:26:50.441] if (is.null(version)) [17:26:50.441] version <- utils::packageVersion("future") [17:26:50.441] } [17:26:50.441] else { [17:26:50.441] version <- NULL [17:26:50.441] } [17:26:50.441] if (!has_future || version < "1.8.0") { [17:26:50.441] info <- base::c(r_version = base::gsub("R version ", [17:26:50.441] "", base::R.version$version.string), [17:26:50.441] platform = base::sprintf("%s (%s-bit)", [17:26:50.441] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:50.441] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:50.441] "release", "version")], collapse = " "), [17:26:50.441] hostname = base::Sys.info()[["nodename"]]) [17:26:50.441] info <- base::sprintf("%s: %s", base::names(info), [17:26:50.441] info) [17:26:50.441] info <- base::paste(info, collapse = "; ") [17:26:50.441] if (!has_future) { [17:26:50.441] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:50.441] info) [17:26:50.441] } [17:26:50.441] else { [17:26:50.441] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:50.441] info, version) [17:26:50.441] } [17:26:50.441] base::stop(msg) [17:26:50.441] } [17:26:50.441] }) [17:26:50.441] } [17:26:50.441] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:50.441] base::options(mc.cores = 1L) [17:26:50.441] } [17:26:50.441] ...future.strategy.old <- future::plan("list") [17:26:50.441] options(future.plan = NULL) [17:26:50.441] Sys.unsetenv("R_FUTURE_PLAN") [17:26:50.441] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:50.441] } [17:26:50.441] ...future.workdir <- getwd() [17:26:50.441] } [17:26:50.441] ...future.oldOptions <- base::as.list(base::.Options) [17:26:50.441] ...future.oldEnvVars <- base::Sys.getenv() [17:26:50.441] } [17:26:50.441] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:50.441] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:50.441] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:50.441] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:50.441] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:50.441] future.stdout.windows.reencode = NULL, width = 80L) [17:26:50.441] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:50.441] base::names(...future.oldOptions)) [17:26:50.441] } [17:26:50.441] if (FALSE) { [17:26:50.441] } [17:26:50.441] else { [17:26:50.441] if (TRUE) { [17:26:50.441] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:50.441] open = "w") [17:26:50.441] } [17:26:50.441] else { [17:26:50.441] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:50.441] windows = "NUL", "/dev/null"), open = "w") [17:26:50.441] } [17:26:50.441] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:50.441] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:50.441] base::sink(type = "output", split = FALSE) [17:26:50.441] base::close(...future.stdout) [17:26:50.441] }, add = TRUE) [17:26:50.441] } [17:26:50.441] ...future.frame <- base::sys.nframe() [17:26:50.441] ...future.conditions <- base::list() [17:26:50.441] ...future.rng <- base::globalenv()$.Random.seed [17:26:50.441] if (FALSE) { [17:26:50.441] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:50.441] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:50.441] } [17:26:50.441] ...future.result <- base::tryCatch({ [17:26:50.441] base::withCallingHandlers({ [17:26:50.441] ...future.value <- base::withVisible(base::local({ [17:26:50.441] ...future.makeSendCondition <- base::local({ [17:26:50.441] sendCondition <- NULL [17:26:50.441] function(frame = 1L) { [17:26:50.441] if (is.function(sendCondition)) [17:26:50.441] return(sendCondition) [17:26:50.441] ns <- getNamespace("parallel") [17:26:50.441] if (exists("sendData", mode = "function", [17:26:50.441] envir = ns)) { [17:26:50.441] parallel_sendData <- get("sendData", mode = "function", [17:26:50.441] envir = ns) [17:26:50.441] envir <- sys.frame(frame) [17:26:50.441] master <- NULL [17:26:50.441] while (!identical(envir, .GlobalEnv) && [17:26:50.441] !identical(envir, emptyenv())) { [17:26:50.441] if (exists("master", mode = "list", envir = envir, [17:26:50.441] inherits = FALSE)) { [17:26:50.441] master <- get("master", mode = "list", [17:26:50.441] envir = envir, inherits = FALSE) [17:26:50.441] if (inherits(master, c("SOCKnode", [17:26:50.441] "SOCK0node"))) { [17:26:50.441] sendCondition <<- function(cond) { [17:26:50.441] data <- list(type = "VALUE", value = cond, [17:26:50.441] success = TRUE) [17:26:50.441] parallel_sendData(master, data) [17:26:50.441] } [17:26:50.441] return(sendCondition) [17:26:50.441] } [17:26:50.441] } [17:26:50.441] frame <- frame + 1L [17:26:50.441] envir <- sys.frame(frame) [17:26:50.441] } [17:26:50.441] } [17:26:50.441] sendCondition <<- function(cond) NULL [17:26:50.441] } [17:26:50.441] }) [17:26:50.441] withCallingHandlers({ [17:26:50.441] NA [17:26:50.441] }, immediateCondition = function(cond) { [17:26:50.441] sendCondition <- ...future.makeSendCondition() [17:26:50.441] sendCondition(cond) [17:26:50.441] muffleCondition <- function (cond, pattern = "^muffle") [17:26:50.441] { [17:26:50.441] inherits <- base::inherits [17:26:50.441] invokeRestart <- base::invokeRestart [17:26:50.441] is.null <- base::is.null [17:26:50.441] muffled <- FALSE [17:26:50.441] if (inherits(cond, "message")) { [17:26:50.441] muffled <- grepl(pattern, "muffleMessage") [17:26:50.441] if (muffled) [17:26:50.441] invokeRestart("muffleMessage") [17:26:50.441] } [17:26:50.441] else if (inherits(cond, "warning")) { [17:26:50.441] muffled <- grepl(pattern, "muffleWarning") [17:26:50.441] if (muffled) [17:26:50.441] invokeRestart("muffleWarning") [17:26:50.441] } [17:26:50.441] else if (inherits(cond, "condition")) { [17:26:50.441] if (!is.null(pattern)) { [17:26:50.441] computeRestarts <- base::computeRestarts [17:26:50.441] grepl <- base::grepl [17:26:50.441] restarts <- computeRestarts(cond) [17:26:50.441] for (restart in restarts) { [17:26:50.441] name <- restart$name [17:26:50.441] if (is.null(name)) [17:26:50.441] next [17:26:50.441] if (!grepl(pattern, name)) [17:26:50.441] next [17:26:50.441] invokeRestart(restart) [17:26:50.441] muffled <- TRUE [17:26:50.441] break [17:26:50.441] } [17:26:50.441] } [17:26:50.441] } [17:26:50.441] invisible(muffled) [17:26:50.441] } [17:26:50.441] muffleCondition(cond) [17:26:50.441] }) [17:26:50.441] })) [17:26:50.441] future::FutureResult(value = ...future.value$value, [17:26:50.441] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:50.441] ...future.rng), globalenv = if (FALSE) [17:26:50.441] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:50.441] ...future.globalenv.names)) [17:26:50.441] else NULL, started = ...future.startTime, version = "1.8") [17:26:50.441] }, condition = base::local({ [17:26:50.441] c <- base::c [17:26:50.441] inherits <- base::inherits [17:26:50.441] invokeRestart <- base::invokeRestart [17:26:50.441] length <- base::length [17:26:50.441] list <- base::list [17:26:50.441] seq.int <- base::seq.int [17:26:50.441] signalCondition <- base::signalCondition [17:26:50.441] sys.calls <- base::sys.calls [17:26:50.441] `[[` <- base::`[[` [17:26:50.441] `+` <- base::`+` [17:26:50.441] `<<-` <- base::`<<-` [17:26:50.441] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:50.441] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:50.441] 3L)] [17:26:50.441] } [17:26:50.441] function(cond) { [17:26:50.441] is_error <- inherits(cond, "error") [17:26:50.441] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:50.441] NULL) [17:26:50.441] if (is_error) { [17:26:50.441] sessionInformation <- function() { [17:26:50.441] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:50.441] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:50.441] search = base::search(), system = base::Sys.info()) [17:26:50.441] } [17:26:50.441] ...future.conditions[[length(...future.conditions) + [17:26:50.441] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:50.441] cond$call), session = sessionInformation(), [17:26:50.441] timestamp = base::Sys.time(), signaled = 0L) [17:26:50.441] signalCondition(cond) [17:26:50.441] } [17:26:50.441] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:50.441] "immediateCondition"))) { [17:26:50.441] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:50.441] ...future.conditions[[length(...future.conditions) + [17:26:50.441] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:50.441] if (TRUE && !signal) { [17:26:50.441] muffleCondition <- function (cond, pattern = "^muffle") [17:26:50.441] { [17:26:50.441] inherits <- base::inherits [17:26:50.441] invokeRestart <- base::invokeRestart [17:26:50.441] is.null <- base::is.null [17:26:50.441] muffled <- FALSE [17:26:50.441] if (inherits(cond, "message")) { [17:26:50.441] muffled <- grepl(pattern, "muffleMessage") [17:26:50.441] if (muffled) [17:26:50.441] invokeRestart("muffleMessage") [17:26:50.441] } [17:26:50.441] else if (inherits(cond, "warning")) { [17:26:50.441] muffled <- grepl(pattern, "muffleWarning") [17:26:50.441] if (muffled) [17:26:50.441] invokeRestart("muffleWarning") [17:26:50.441] } [17:26:50.441] else if (inherits(cond, "condition")) { [17:26:50.441] if (!is.null(pattern)) { [17:26:50.441] computeRestarts <- base::computeRestarts [17:26:50.441] grepl <- base::grepl [17:26:50.441] restarts <- computeRestarts(cond) [17:26:50.441] for (restart in restarts) { [17:26:50.441] name <- restart$name [17:26:50.441] if (is.null(name)) [17:26:50.441] next [17:26:50.441] if (!grepl(pattern, name)) [17:26:50.441] next [17:26:50.441] invokeRestart(restart) [17:26:50.441] muffled <- TRUE [17:26:50.441] break [17:26:50.441] } [17:26:50.441] } [17:26:50.441] } [17:26:50.441] invisible(muffled) [17:26:50.441] } [17:26:50.441] muffleCondition(cond, pattern = "^muffle") [17:26:50.441] } [17:26:50.441] } [17:26:50.441] else { [17:26:50.441] if (TRUE) { [17:26:50.441] muffleCondition <- function (cond, pattern = "^muffle") [17:26:50.441] { [17:26:50.441] inherits <- base::inherits [17:26:50.441] invokeRestart <- base::invokeRestart [17:26:50.441] is.null <- base::is.null [17:26:50.441] muffled <- FALSE [17:26:50.441] if (inherits(cond, "message")) { [17:26:50.441] muffled <- grepl(pattern, "muffleMessage") [17:26:50.441] if (muffled) [17:26:50.441] invokeRestart("muffleMessage") [17:26:50.441] } [17:26:50.441] else if (inherits(cond, "warning")) { [17:26:50.441] muffled <- grepl(pattern, "muffleWarning") [17:26:50.441] if (muffled) [17:26:50.441] invokeRestart("muffleWarning") [17:26:50.441] } [17:26:50.441] else if (inherits(cond, "condition")) { [17:26:50.441] if (!is.null(pattern)) { [17:26:50.441] computeRestarts <- base::computeRestarts [17:26:50.441] grepl <- base::grepl [17:26:50.441] restarts <- computeRestarts(cond) [17:26:50.441] for (restart in restarts) { [17:26:50.441] name <- restart$name [17:26:50.441] if (is.null(name)) [17:26:50.441] next [17:26:50.441] if (!grepl(pattern, name)) [17:26:50.441] next [17:26:50.441] invokeRestart(restart) [17:26:50.441] muffled <- TRUE [17:26:50.441] break [17:26:50.441] } [17:26:50.441] } [17:26:50.441] } [17:26:50.441] invisible(muffled) [17:26:50.441] } [17:26:50.441] muffleCondition(cond, pattern = "^muffle") [17:26:50.441] } [17:26:50.441] } [17:26:50.441] } [17:26:50.441] })) [17:26:50.441] }, error = function(ex) { [17:26:50.441] base::structure(base::list(value = NULL, visible = NULL, [17:26:50.441] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:50.441] ...future.rng), started = ...future.startTime, [17:26:50.441] finished = Sys.time(), session_uuid = NA_character_, [17:26:50.441] version = "1.8"), class = "FutureResult") [17:26:50.441] }, finally = { [17:26:50.441] if (!identical(...future.workdir, getwd())) [17:26:50.441] setwd(...future.workdir) [17:26:50.441] { [17:26:50.441] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:50.441] ...future.oldOptions$nwarnings <- NULL [17:26:50.441] } [17:26:50.441] base::options(...future.oldOptions) [17:26:50.441] if (.Platform$OS.type == "windows") { [17:26:50.441] old_names <- names(...future.oldEnvVars) [17:26:50.441] envs <- base::Sys.getenv() [17:26:50.441] names <- names(envs) [17:26:50.441] common <- intersect(names, old_names) [17:26:50.441] added <- setdiff(names, old_names) [17:26:50.441] removed <- setdiff(old_names, names) [17:26:50.441] changed <- common[...future.oldEnvVars[common] != [17:26:50.441] envs[common]] [17:26:50.441] NAMES <- toupper(changed) [17:26:50.441] args <- list() [17:26:50.441] for (kk in seq_along(NAMES)) { [17:26:50.441] name <- changed[[kk]] [17:26:50.441] NAME <- NAMES[[kk]] [17:26:50.441] if (name != NAME && is.element(NAME, old_names)) [17:26:50.441] next [17:26:50.441] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:50.441] } [17:26:50.441] NAMES <- toupper(added) [17:26:50.441] for (kk in seq_along(NAMES)) { [17:26:50.441] name <- added[[kk]] [17:26:50.441] NAME <- NAMES[[kk]] [17:26:50.441] if (name != NAME && is.element(NAME, old_names)) [17:26:50.441] next [17:26:50.441] args[[name]] <- "" [17:26:50.441] } [17:26:50.441] NAMES <- toupper(removed) [17:26:50.441] for (kk in seq_along(NAMES)) { [17:26:50.441] name <- removed[[kk]] [17:26:50.441] NAME <- NAMES[[kk]] [17:26:50.441] if (name != NAME && is.element(NAME, old_names)) [17:26:50.441] next [17:26:50.441] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:50.441] } [17:26:50.441] if (length(args) > 0) [17:26:50.441] base::do.call(base::Sys.setenv, args = args) [17:26:50.441] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:50.441] } [17:26:50.441] else { [17:26:50.441] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:50.441] } [17:26:50.441] { [17:26:50.441] if (base::length(...future.futureOptionsAdded) > [17:26:50.441] 0L) { [17:26:50.441] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:50.441] base::names(opts) <- ...future.futureOptionsAdded [17:26:50.441] base::options(opts) [17:26:50.441] } [17:26:50.441] { [17:26:50.441] { [17:26:50.441] base::options(mc.cores = ...future.mc.cores.old) [17:26:50.441] NULL [17:26:50.441] } [17:26:50.441] options(future.plan = NULL) [17:26:50.441] if (is.na(NA_character_)) [17:26:50.441] Sys.unsetenv("R_FUTURE_PLAN") [17:26:50.441] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:50.441] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:50.441] .init = FALSE) [17:26:50.441] } [17:26:50.441] } [17:26:50.441] } [17:26:50.441] }) [17:26:50.441] if (TRUE) { [17:26:50.441] base::sink(type = "output", split = FALSE) [17:26:50.441] if (TRUE) { [17:26:50.441] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:50.441] } [17:26:50.441] else { [17:26:50.441] ...future.result["stdout"] <- base::list(NULL) [17:26:50.441] } [17:26:50.441] base::close(...future.stdout) [17:26:50.441] ...future.stdout <- NULL [17:26:50.441] } [17:26:50.441] ...future.result$conditions <- ...future.conditions [17:26:50.441] ...future.result$finished <- base::Sys.time() [17:26:50.441] ...future.result [17:26:50.441] } [17:26:50.527] MultisessionFuture started [17:26:50.527] result() for ClusterFuture ... [17:26:50.528] receiveMessageFromWorker() for ClusterFuture ... [17:26:50.528] - Validating connection of MultisessionFuture [17:26:50.580] - received message: FutureResult [17:26:50.580] - Received FutureResult [17:26:50.584] - Erased future from FutureRegistry [17:26:50.584] result() for ClusterFuture ... [17:26:50.584] - result already collected: FutureResult [17:26:50.584] result() for ClusterFuture ... done [17:26:50.584] receiveMessageFromWorker() for ClusterFuture ... done [17:26:50.585] result() for ClusterFuture ... done [17:26:50.585] result() for ClusterFuture ... [17:26:50.585] - result already collected: FutureResult [17:26:50.585] result() for ClusterFuture ... done [17:26:50.585] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:26:50.588] plan(): nbrOfWorkers() = 2 [17:26:50.588] getGlobalsAndPackages() ... [17:26:50.589] Searching for globals... [17:26:50.592] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [17:26:50.592] Searching for globals ... DONE [17:26:50.593] Resolving globals: FALSE [17:26:50.593] The total size of the 1 globals is 3.84 KiB (3936 bytes) [17:26:50.594] The total size of the 1 globals exported for future expression ('{; my_fcn; }') is 3.84 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'my_fcn' (3.84 KiB of class 'function') [17:26:50.594] - globals: [1] 'my_fcn' [17:26:50.594] [17:26:50.594] getGlobalsAndPackages() ... DONE [17:26:50.595] run() for 'Future' ... [17:26:50.595] - state: 'created' [17:26:50.595] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:26:50.610] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:26:50.610] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:26:50.610] - Field: 'node' [17:26:50.610] - Field: 'label' [17:26:50.610] - Field: 'local' [17:26:50.611] - Field: 'owner' [17:26:50.611] - Field: 'envir' [17:26:50.611] - Field: 'workers' [17:26:50.611] - Field: 'packages' [17:26:50.611] - Field: 'gc' [17:26:50.612] - Field: 'conditions' [17:26:50.612] - Field: 'persistent' [17:26:50.612] - Field: 'expr' [17:26:50.612] - Field: 'uuid' [17:26:50.612] - Field: 'seed' [17:26:50.613] - Field: 'version' [17:26:50.613] - Field: 'result' [17:26:50.613] - Field: 'asynchronous' [17:26:50.613] - Field: 'calls' [17:26:50.613] - Field: 'globals' [17:26:50.614] - Field: 'stdout' [17:26:50.614] - Field: 'earlySignal' [17:26:50.614] - Field: 'lazy' [17:26:50.614] - Field: 'state' [17:26:50.615] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:26:50.615] - Launch lazy future ... [17:26:50.615] Packages needed by the future expression (n = 0): [17:26:50.615] Packages needed by future strategies (n = 0): [17:26:50.616] { [17:26:50.616] { [17:26:50.616] { [17:26:50.616] ...future.startTime <- base::Sys.time() [17:26:50.616] { [17:26:50.616] { [17:26:50.616] { [17:26:50.616] { [17:26:50.616] base::local({ [17:26:50.616] has_future <- base::requireNamespace("future", [17:26:50.616] quietly = TRUE) [17:26:50.616] if (has_future) { [17:26:50.616] ns <- base::getNamespace("future") [17:26:50.616] version <- ns[[".package"]][["version"]] [17:26:50.616] if (is.null(version)) [17:26:50.616] version <- utils::packageVersion("future") [17:26:50.616] } [17:26:50.616] else { [17:26:50.616] version <- NULL [17:26:50.616] } [17:26:50.616] if (!has_future || version < "1.8.0") { [17:26:50.616] info <- base::c(r_version = base::gsub("R version ", [17:26:50.616] "", base::R.version$version.string), [17:26:50.616] platform = base::sprintf("%s (%s-bit)", [17:26:50.616] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:50.616] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:50.616] "release", "version")], collapse = " "), [17:26:50.616] hostname = base::Sys.info()[["nodename"]]) [17:26:50.616] info <- base::sprintf("%s: %s", base::names(info), [17:26:50.616] info) [17:26:50.616] info <- base::paste(info, collapse = "; ") [17:26:50.616] if (!has_future) { [17:26:50.616] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:50.616] info) [17:26:50.616] } [17:26:50.616] else { [17:26:50.616] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:50.616] info, version) [17:26:50.616] } [17:26:50.616] base::stop(msg) [17:26:50.616] } [17:26:50.616] }) [17:26:50.616] } [17:26:50.616] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:50.616] base::options(mc.cores = 1L) [17:26:50.616] } [17:26:50.616] ...future.strategy.old <- future::plan("list") [17:26:50.616] options(future.plan = NULL) [17:26:50.616] Sys.unsetenv("R_FUTURE_PLAN") [17:26:50.616] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:50.616] } [17:26:50.616] ...future.workdir <- getwd() [17:26:50.616] } [17:26:50.616] ...future.oldOptions <- base::as.list(base::.Options) [17:26:50.616] ...future.oldEnvVars <- base::Sys.getenv() [17:26:50.616] } [17:26:50.616] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:50.616] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:50.616] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:50.616] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:50.616] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:50.616] future.stdout.windows.reencode = NULL, width = 80L) [17:26:50.616] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:50.616] base::names(...future.oldOptions)) [17:26:50.616] } [17:26:50.616] if (FALSE) { [17:26:50.616] } [17:26:50.616] else { [17:26:50.616] if (TRUE) { [17:26:50.616] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:50.616] open = "w") [17:26:50.616] } [17:26:50.616] else { [17:26:50.616] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:50.616] windows = "NUL", "/dev/null"), open = "w") [17:26:50.616] } [17:26:50.616] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:50.616] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:50.616] base::sink(type = "output", split = FALSE) [17:26:50.616] base::close(...future.stdout) [17:26:50.616] }, add = TRUE) [17:26:50.616] } [17:26:50.616] ...future.frame <- base::sys.nframe() [17:26:50.616] ...future.conditions <- base::list() [17:26:50.616] ...future.rng <- base::globalenv()$.Random.seed [17:26:50.616] if (FALSE) { [17:26:50.616] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:50.616] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:50.616] } [17:26:50.616] ...future.result <- base::tryCatch({ [17:26:50.616] base::withCallingHandlers({ [17:26:50.616] ...future.value <- base::withVisible(base::local({ [17:26:50.616] ...future.makeSendCondition <- base::local({ [17:26:50.616] sendCondition <- NULL [17:26:50.616] function(frame = 1L) { [17:26:50.616] if (is.function(sendCondition)) [17:26:50.616] return(sendCondition) [17:26:50.616] ns <- getNamespace("parallel") [17:26:50.616] if (exists("sendData", mode = "function", [17:26:50.616] envir = ns)) { [17:26:50.616] parallel_sendData <- get("sendData", mode = "function", [17:26:50.616] envir = ns) [17:26:50.616] envir <- sys.frame(frame) [17:26:50.616] master <- NULL [17:26:50.616] while (!identical(envir, .GlobalEnv) && [17:26:50.616] !identical(envir, emptyenv())) { [17:26:50.616] if (exists("master", mode = "list", envir = envir, [17:26:50.616] inherits = FALSE)) { [17:26:50.616] master <- get("master", mode = "list", [17:26:50.616] envir = envir, inherits = FALSE) [17:26:50.616] if (inherits(master, c("SOCKnode", [17:26:50.616] "SOCK0node"))) { [17:26:50.616] sendCondition <<- function(cond) { [17:26:50.616] data <- list(type = "VALUE", value = cond, [17:26:50.616] success = TRUE) [17:26:50.616] parallel_sendData(master, data) [17:26:50.616] } [17:26:50.616] return(sendCondition) [17:26:50.616] } [17:26:50.616] } [17:26:50.616] frame <- frame + 1L [17:26:50.616] envir <- sys.frame(frame) [17:26:50.616] } [17:26:50.616] } [17:26:50.616] sendCondition <<- function(cond) NULL [17:26:50.616] } [17:26:50.616] }) [17:26:50.616] withCallingHandlers({ [17:26:50.616] { [17:26:50.616] my_fcn [17:26:50.616] } [17:26:50.616] }, immediateCondition = function(cond) { [17:26:50.616] sendCondition <- ...future.makeSendCondition() [17:26:50.616] sendCondition(cond) [17:26:50.616] muffleCondition <- function (cond, pattern = "^muffle") [17:26:50.616] { [17:26:50.616] inherits <- base::inherits [17:26:50.616] invokeRestart <- base::invokeRestart [17:26:50.616] is.null <- base::is.null [17:26:50.616] muffled <- FALSE [17:26:50.616] if (inherits(cond, "message")) { [17:26:50.616] muffled <- grepl(pattern, "muffleMessage") [17:26:50.616] if (muffled) [17:26:50.616] invokeRestart("muffleMessage") [17:26:50.616] } [17:26:50.616] else if (inherits(cond, "warning")) { [17:26:50.616] muffled <- grepl(pattern, "muffleWarning") [17:26:50.616] if (muffled) [17:26:50.616] invokeRestart("muffleWarning") [17:26:50.616] } [17:26:50.616] else if (inherits(cond, "condition")) { [17:26:50.616] if (!is.null(pattern)) { [17:26:50.616] computeRestarts <- base::computeRestarts [17:26:50.616] grepl <- base::grepl [17:26:50.616] restarts <- computeRestarts(cond) [17:26:50.616] for (restart in restarts) { [17:26:50.616] name <- restart$name [17:26:50.616] if (is.null(name)) [17:26:50.616] next [17:26:50.616] if (!grepl(pattern, name)) [17:26:50.616] next [17:26:50.616] invokeRestart(restart) [17:26:50.616] muffled <- TRUE [17:26:50.616] break [17:26:50.616] } [17:26:50.616] } [17:26:50.616] } [17:26:50.616] invisible(muffled) [17:26:50.616] } [17:26:50.616] muffleCondition(cond) [17:26:50.616] }) [17:26:50.616] })) [17:26:50.616] future::FutureResult(value = ...future.value$value, [17:26:50.616] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:50.616] ...future.rng), globalenv = if (FALSE) [17:26:50.616] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:50.616] ...future.globalenv.names)) [17:26:50.616] else NULL, started = ...future.startTime, version = "1.8") [17:26:50.616] }, condition = base::local({ [17:26:50.616] c <- base::c [17:26:50.616] inherits <- base::inherits [17:26:50.616] invokeRestart <- base::invokeRestart [17:26:50.616] length <- base::length [17:26:50.616] list <- base::list [17:26:50.616] seq.int <- base::seq.int [17:26:50.616] signalCondition <- base::signalCondition [17:26:50.616] sys.calls <- base::sys.calls [17:26:50.616] `[[` <- base::`[[` [17:26:50.616] `+` <- base::`+` [17:26:50.616] `<<-` <- base::`<<-` [17:26:50.616] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:50.616] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:50.616] 3L)] [17:26:50.616] } [17:26:50.616] function(cond) { [17:26:50.616] is_error <- inherits(cond, "error") [17:26:50.616] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:50.616] NULL) [17:26:50.616] if (is_error) { [17:26:50.616] sessionInformation <- function() { [17:26:50.616] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:50.616] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:50.616] search = base::search(), system = base::Sys.info()) [17:26:50.616] } [17:26:50.616] ...future.conditions[[length(...future.conditions) + [17:26:50.616] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:50.616] cond$call), session = sessionInformation(), [17:26:50.616] timestamp = base::Sys.time(), signaled = 0L) [17:26:50.616] signalCondition(cond) [17:26:50.616] } [17:26:50.616] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:50.616] "immediateCondition"))) { [17:26:50.616] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:50.616] ...future.conditions[[length(...future.conditions) + [17:26:50.616] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:50.616] if (TRUE && !signal) { [17:26:50.616] muffleCondition <- function (cond, pattern = "^muffle") [17:26:50.616] { [17:26:50.616] inherits <- base::inherits [17:26:50.616] invokeRestart <- base::invokeRestart [17:26:50.616] is.null <- base::is.null [17:26:50.616] muffled <- FALSE [17:26:50.616] if (inherits(cond, "message")) { [17:26:50.616] muffled <- grepl(pattern, "muffleMessage") [17:26:50.616] if (muffled) [17:26:50.616] invokeRestart("muffleMessage") [17:26:50.616] } [17:26:50.616] else if (inherits(cond, "warning")) { [17:26:50.616] muffled <- grepl(pattern, "muffleWarning") [17:26:50.616] if (muffled) [17:26:50.616] invokeRestart("muffleWarning") [17:26:50.616] } [17:26:50.616] else if (inherits(cond, "condition")) { [17:26:50.616] if (!is.null(pattern)) { [17:26:50.616] computeRestarts <- base::computeRestarts [17:26:50.616] grepl <- base::grepl [17:26:50.616] restarts <- computeRestarts(cond) [17:26:50.616] for (restart in restarts) { [17:26:50.616] name <- restart$name [17:26:50.616] if (is.null(name)) [17:26:50.616] next [17:26:50.616] if (!grepl(pattern, name)) [17:26:50.616] next [17:26:50.616] invokeRestart(restart) [17:26:50.616] muffled <- TRUE [17:26:50.616] break [17:26:50.616] } [17:26:50.616] } [17:26:50.616] } [17:26:50.616] invisible(muffled) [17:26:50.616] } [17:26:50.616] muffleCondition(cond, pattern = "^muffle") [17:26:50.616] } [17:26:50.616] } [17:26:50.616] else { [17:26:50.616] if (TRUE) { [17:26:50.616] muffleCondition <- function (cond, pattern = "^muffle") [17:26:50.616] { [17:26:50.616] inherits <- base::inherits [17:26:50.616] invokeRestart <- base::invokeRestart [17:26:50.616] is.null <- base::is.null [17:26:50.616] muffled <- FALSE [17:26:50.616] if (inherits(cond, "message")) { [17:26:50.616] muffled <- grepl(pattern, "muffleMessage") [17:26:50.616] if (muffled) [17:26:50.616] invokeRestart("muffleMessage") [17:26:50.616] } [17:26:50.616] else if (inherits(cond, "warning")) { [17:26:50.616] muffled <- grepl(pattern, "muffleWarning") [17:26:50.616] if (muffled) [17:26:50.616] invokeRestart("muffleWarning") [17:26:50.616] } [17:26:50.616] else if (inherits(cond, "condition")) { [17:26:50.616] if (!is.null(pattern)) { [17:26:50.616] computeRestarts <- base::computeRestarts [17:26:50.616] grepl <- base::grepl [17:26:50.616] restarts <- computeRestarts(cond) [17:26:50.616] for (restart in restarts) { [17:26:50.616] name <- restart$name [17:26:50.616] if (is.null(name)) [17:26:50.616] next [17:26:50.616] if (!grepl(pattern, name)) [17:26:50.616] next [17:26:50.616] invokeRestart(restart) [17:26:50.616] muffled <- TRUE [17:26:50.616] break [17:26:50.616] } [17:26:50.616] } [17:26:50.616] } [17:26:50.616] invisible(muffled) [17:26:50.616] } [17:26:50.616] muffleCondition(cond, pattern = "^muffle") [17:26:50.616] } [17:26:50.616] } [17:26:50.616] } [17:26:50.616] })) [17:26:50.616] }, error = function(ex) { [17:26:50.616] base::structure(base::list(value = NULL, visible = NULL, [17:26:50.616] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:50.616] ...future.rng), started = ...future.startTime, [17:26:50.616] finished = Sys.time(), session_uuid = NA_character_, [17:26:50.616] version = "1.8"), class = "FutureResult") [17:26:50.616] }, finally = { [17:26:50.616] if (!identical(...future.workdir, getwd())) [17:26:50.616] setwd(...future.workdir) [17:26:50.616] { [17:26:50.616] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:50.616] ...future.oldOptions$nwarnings <- NULL [17:26:50.616] } [17:26:50.616] base::options(...future.oldOptions) [17:26:50.616] if (.Platform$OS.type == "windows") { [17:26:50.616] old_names <- names(...future.oldEnvVars) [17:26:50.616] envs <- base::Sys.getenv() [17:26:50.616] names <- names(envs) [17:26:50.616] common <- intersect(names, old_names) [17:26:50.616] added <- setdiff(names, old_names) [17:26:50.616] removed <- setdiff(old_names, names) [17:26:50.616] changed <- common[...future.oldEnvVars[common] != [17:26:50.616] envs[common]] [17:26:50.616] NAMES <- toupper(changed) [17:26:50.616] args <- list() [17:26:50.616] for (kk in seq_along(NAMES)) { [17:26:50.616] name <- changed[[kk]] [17:26:50.616] NAME <- NAMES[[kk]] [17:26:50.616] if (name != NAME && is.element(NAME, old_names)) [17:26:50.616] next [17:26:50.616] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:50.616] } [17:26:50.616] NAMES <- toupper(added) [17:26:50.616] for (kk in seq_along(NAMES)) { [17:26:50.616] name <- added[[kk]] [17:26:50.616] NAME <- NAMES[[kk]] [17:26:50.616] if (name != NAME && is.element(NAME, old_names)) [17:26:50.616] next [17:26:50.616] args[[name]] <- "" [17:26:50.616] } [17:26:50.616] NAMES <- toupper(removed) [17:26:50.616] for (kk in seq_along(NAMES)) { [17:26:50.616] name <- removed[[kk]] [17:26:50.616] NAME <- NAMES[[kk]] [17:26:50.616] if (name != NAME && is.element(NAME, old_names)) [17:26:50.616] next [17:26:50.616] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:50.616] } [17:26:50.616] if (length(args) > 0) [17:26:50.616] base::do.call(base::Sys.setenv, args = args) [17:26:50.616] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:50.616] } [17:26:50.616] else { [17:26:50.616] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:50.616] } [17:26:50.616] { [17:26:50.616] if (base::length(...future.futureOptionsAdded) > [17:26:50.616] 0L) { [17:26:50.616] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:50.616] base::names(opts) <- ...future.futureOptionsAdded [17:26:50.616] base::options(opts) [17:26:50.616] } [17:26:50.616] { [17:26:50.616] { [17:26:50.616] base::options(mc.cores = ...future.mc.cores.old) [17:26:50.616] NULL [17:26:50.616] } [17:26:50.616] options(future.plan = NULL) [17:26:50.616] if (is.na(NA_character_)) [17:26:50.616] Sys.unsetenv("R_FUTURE_PLAN") [17:26:50.616] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:50.616] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:50.616] .init = FALSE) [17:26:50.616] } [17:26:50.616] } [17:26:50.616] } [17:26:50.616] }) [17:26:50.616] if (TRUE) { [17:26:50.616] base::sink(type = "output", split = FALSE) [17:26:50.616] if (TRUE) { [17:26:50.616] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:50.616] } [17:26:50.616] else { [17:26:50.616] ...future.result["stdout"] <- base::list(NULL) [17:26:50.616] } [17:26:50.616] base::close(...future.stdout) [17:26:50.616] ...future.stdout <- NULL [17:26:50.616] } [17:26:50.616] ...future.result$conditions <- ...future.conditions [17:26:50.616] ...future.result$finished <- base::Sys.time() [17:26:50.616] ...future.result [17:26:50.616] } [17:26:50.621] Exporting 1 global objects (3.84 KiB) to cluster node #1 ... [17:26:50.622] Exporting 'my_fcn' (3.84 KiB) to cluster node #1 ... [17:26:50.622] Exporting 'my_fcn' (3.84 KiB) to cluster node #1 ... DONE [17:26:50.622] Exporting 1 global objects (3.84 KiB) to cluster node #1 ... DONE [17:26:50.623] MultisessionFuture started [17:26:50.623] - Launch lazy future ... done [17:26:50.623] run() for 'MultisessionFuture' ... done [17:26:50.624] result() for ClusterFuture ... [17:26:50.624] receiveMessageFromWorker() for ClusterFuture ... [17:26:50.624] - Validating connection of MultisessionFuture [17:26:50.638] - received message: FutureResult [17:26:50.639] - Received FutureResult [17:26:50.639] - Erased future from FutureRegistry [17:26:50.639] result() for ClusterFuture ... [17:26:50.639] - result already collected: FutureResult [17:26:50.639] result() for ClusterFuture ... done [17:26:50.640] receiveMessageFromWorker() for ClusterFuture ... done [17:26:50.640] result() for ClusterFuture ... done [17:26:50.640] result() for ClusterFuture ... [17:26:50.640] - result already collected: FutureResult [17:26:50.640] result() for ClusterFuture ... done new("standardGeneric", .Data = function (x) standardGeneric("my_fcn"), generic = "my_fcn", package = ".GlobalEnv", group = list(), valueClass = character(0), signature = "x", default = NULL, skeleton = (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", "my_fcn"), domain = NA))(x)) attr(,"generic") [1] "my_fcn" attr(,"generic")attr(,"package") [1] ".GlobalEnv" attr(,"package") [1] ".GlobalEnv" attr(,"group") list() attr(,"valueClass") character(0) attr(,"signature") [1] "x" attr(,"default") `\001NULL\001` attr(,"skeleton") (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", "my_fcn"), domain = NA))(x) attr(,"class") [1] "standardGeneric" attr(,"class")attr(,"package") [1] "methods" [17:26:50.641] getGlobalsAndPackages() ... [17:26:50.641] Searching for globals... [17:26:50.645] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [17:26:50.645] Searching for globals ... DONE [17:26:50.645] Resolving globals: FALSE [17:26:50.646] The total size of the 1 globals is 3.84 KiB (3936 bytes) [17:26:50.647] The total size of the 1 globals exported for future expression ('{; my_fcn(3); }') is 3.84 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'my_fcn' (3.84 KiB of class 'function') [17:26:50.647] - globals: [1] 'my_fcn' [17:26:50.647] [17:26:50.647] getGlobalsAndPackages() ... DONE [17:26:50.648] run() for 'Future' ... [17:26:50.648] - state: 'created' [17:26:50.648] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:26:50.663] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:26:50.663] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:26:50.663] - Field: 'node' [17:26:50.663] - Field: 'label' [17:26:50.663] - Field: 'local' [17:26:50.664] - Field: 'owner' [17:26:50.664] - Field: 'envir' [17:26:50.664] - Field: 'workers' [17:26:50.664] - Field: 'packages' [17:26:50.664] - Field: 'gc' [17:26:50.665] - Field: 'conditions' [17:26:50.665] - Field: 'persistent' [17:26:50.665] - Field: 'expr' [17:26:50.665] - Field: 'uuid' [17:26:50.665] - Field: 'seed' [17:26:50.666] - Field: 'version' [17:26:50.666] - Field: 'result' [17:26:50.666] - Field: 'asynchronous' [17:26:50.666] - Field: 'calls' [17:26:50.666] - Field: 'globals' [17:26:50.667] - Field: 'stdout' [17:26:50.667] - Field: 'earlySignal' [17:26:50.667] - Field: 'lazy' [17:26:50.667] - Field: 'state' [17:26:50.667] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:26:50.668] - Launch lazy future ... [17:26:50.668] Packages needed by the future expression (n = 0): [17:26:50.668] Packages needed by future strategies (n = 0): [17:26:50.669] { [17:26:50.669] { [17:26:50.669] { [17:26:50.669] ...future.startTime <- base::Sys.time() [17:26:50.669] { [17:26:50.669] { [17:26:50.669] { [17:26:50.669] { [17:26:50.669] base::local({ [17:26:50.669] has_future <- base::requireNamespace("future", [17:26:50.669] quietly = TRUE) [17:26:50.669] if (has_future) { [17:26:50.669] ns <- base::getNamespace("future") [17:26:50.669] version <- ns[[".package"]][["version"]] [17:26:50.669] if (is.null(version)) [17:26:50.669] version <- utils::packageVersion("future") [17:26:50.669] } [17:26:50.669] else { [17:26:50.669] version <- NULL [17:26:50.669] } [17:26:50.669] if (!has_future || version < "1.8.0") { [17:26:50.669] info <- base::c(r_version = base::gsub("R version ", [17:26:50.669] "", base::R.version$version.string), [17:26:50.669] platform = base::sprintf("%s (%s-bit)", [17:26:50.669] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:26:50.669] os = base::paste(base::Sys.info()[base::c("sysname", [17:26:50.669] "release", "version")], collapse = " "), [17:26:50.669] hostname = base::Sys.info()[["nodename"]]) [17:26:50.669] info <- base::sprintf("%s: %s", base::names(info), [17:26:50.669] info) [17:26:50.669] info <- base::paste(info, collapse = "; ") [17:26:50.669] if (!has_future) { [17:26:50.669] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:26:50.669] info) [17:26:50.669] } [17:26:50.669] else { [17:26:50.669] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:26:50.669] info, version) [17:26:50.669] } [17:26:50.669] base::stop(msg) [17:26:50.669] } [17:26:50.669] }) [17:26:50.669] } [17:26:50.669] ...future.mc.cores.old <- base::getOption("mc.cores") [17:26:50.669] base::options(mc.cores = 1L) [17:26:50.669] } [17:26:50.669] ...future.strategy.old <- future::plan("list") [17:26:50.669] options(future.plan = NULL) [17:26:50.669] Sys.unsetenv("R_FUTURE_PLAN") [17:26:50.669] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:26:50.669] } [17:26:50.669] ...future.workdir <- getwd() [17:26:50.669] } [17:26:50.669] ...future.oldOptions <- base::as.list(base::.Options) [17:26:50.669] ...future.oldEnvVars <- base::Sys.getenv() [17:26:50.669] } [17:26:50.669] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:26:50.669] future.globals.maxSize = NULL, future.globals.method = NULL, [17:26:50.669] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:26:50.669] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:26:50.669] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:26:50.669] future.stdout.windows.reencode = NULL, width = 80L) [17:26:50.669] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:26:50.669] base::names(...future.oldOptions)) [17:26:50.669] } [17:26:50.669] if (FALSE) { [17:26:50.669] } [17:26:50.669] else { [17:26:50.669] if (TRUE) { [17:26:50.669] ...future.stdout <- base::rawConnection(base::raw(0L), [17:26:50.669] open = "w") [17:26:50.669] } [17:26:50.669] else { [17:26:50.669] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:26:50.669] windows = "NUL", "/dev/null"), open = "w") [17:26:50.669] } [17:26:50.669] base::sink(...future.stdout, type = "output", split = FALSE) [17:26:50.669] base::on.exit(if (!base::is.null(...future.stdout)) { [17:26:50.669] base::sink(type = "output", split = FALSE) [17:26:50.669] base::close(...future.stdout) [17:26:50.669] }, add = TRUE) [17:26:50.669] } [17:26:50.669] ...future.frame <- base::sys.nframe() [17:26:50.669] ...future.conditions <- base::list() [17:26:50.669] ...future.rng <- base::globalenv()$.Random.seed [17:26:50.669] if (FALSE) { [17:26:50.669] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:26:50.669] "...future.value", "...future.globalenv.names", ".Random.seed") [17:26:50.669] } [17:26:50.669] ...future.result <- base::tryCatch({ [17:26:50.669] base::withCallingHandlers({ [17:26:50.669] ...future.value <- base::withVisible(base::local({ [17:26:50.669] ...future.makeSendCondition <- base::local({ [17:26:50.669] sendCondition <- NULL [17:26:50.669] function(frame = 1L) { [17:26:50.669] if (is.function(sendCondition)) [17:26:50.669] return(sendCondition) [17:26:50.669] ns <- getNamespace("parallel") [17:26:50.669] if (exists("sendData", mode = "function", [17:26:50.669] envir = ns)) { [17:26:50.669] parallel_sendData <- get("sendData", mode = "function", [17:26:50.669] envir = ns) [17:26:50.669] envir <- sys.frame(frame) [17:26:50.669] master <- NULL [17:26:50.669] while (!identical(envir, .GlobalEnv) && [17:26:50.669] !identical(envir, emptyenv())) { [17:26:50.669] if (exists("master", mode = "list", envir = envir, [17:26:50.669] inherits = FALSE)) { [17:26:50.669] master <- get("master", mode = "list", [17:26:50.669] envir = envir, inherits = FALSE) [17:26:50.669] if (inherits(master, c("SOCKnode", [17:26:50.669] "SOCK0node"))) { [17:26:50.669] sendCondition <<- function(cond) { [17:26:50.669] data <- list(type = "VALUE", value = cond, [17:26:50.669] success = TRUE) [17:26:50.669] parallel_sendData(master, data) [17:26:50.669] } [17:26:50.669] return(sendCondition) [17:26:50.669] } [17:26:50.669] } [17:26:50.669] frame <- frame + 1L [17:26:50.669] envir <- sys.frame(frame) [17:26:50.669] } [17:26:50.669] } [17:26:50.669] sendCondition <<- function(cond) NULL [17:26:50.669] } [17:26:50.669] }) [17:26:50.669] withCallingHandlers({ [17:26:50.669] { [17:26:50.669] my_fcn(3) [17:26:50.669] } [17:26:50.669] }, immediateCondition = function(cond) { [17:26:50.669] sendCondition <- ...future.makeSendCondition() [17:26:50.669] sendCondition(cond) [17:26:50.669] muffleCondition <- function (cond, pattern = "^muffle") [17:26:50.669] { [17:26:50.669] inherits <- base::inherits [17:26:50.669] invokeRestart <- base::invokeRestart [17:26:50.669] is.null <- base::is.null [17:26:50.669] muffled <- FALSE [17:26:50.669] if (inherits(cond, "message")) { [17:26:50.669] muffled <- grepl(pattern, "muffleMessage") [17:26:50.669] if (muffled) [17:26:50.669] invokeRestart("muffleMessage") [17:26:50.669] } [17:26:50.669] else if (inherits(cond, "warning")) { [17:26:50.669] muffled <- grepl(pattern, "muffleWarning") [17:26:50.669] if (muffled) [17:26:50.669] invokeRestart("muffleWarning") [17:26:50.669] } [17:26:50.669] else if (inherits(cond, "condition")) { [17:26:50.669] if (!is.null(pattern)) { [17:26:50.669] computeRestarts <- base::computeRestarts [17:26:50.669] grepl <- base::grepl [17:26:50.669] restarts <- computeRestarts(cond) [17:26:50.669] for (restart in restarts) { [17:26:50.669] name <- restart$name [17:26:50.669] if (is.null(name)) [17:26:50.669] next [17:26:50.669] if (!grepl(pattern, name)) [17:26:50.669] next [17:26:50.669] invokeRestart(restart) [17:26:50.669] muffled <- TRUE [17:26:50.669] break [17:26:50.669] } [17:26:50.669] } [17:26:50.669] } [17:26:50.669] invisible(muffled) [17:26:50.669] } [17:26:50.669] muffleCondition(cond) [17:26:50.669] }) [17:26:50.669] })) [17:26:50.669] future::FutureResult(value = ...future.value$value, [17:26:50.669] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:26:50.669] ...future.rng), globalenv = if (FALSE) [17:26:50.669] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:26:50.669] ...future.globalenv.names)) [17:26:50.669] else NULL, started = ...future.startTime, version = "1.8") [17:26:50.669] }, condition = base::local({ [17:26:50.669] c <- base::c [17:26:50.669] inherits <- base::inherits [17:26:50.669] invokeRestart <- base::invokeRestart [17:26:50.669] length <- base::length [17:26:50.669] list <- base::list [17:26:50.669] seq.int <- base::seq.int [17:26:50.669] signalCondition <- base::signalCondition [17:26:50.669] sys.calls <- base::sys.calls [17:26:50.669] `[[` <- base::`[[` [17:26:50.669] `+` <- base::`+` [17:26:50.669] `<<-` <- base::`<<-` [17:26:50.669] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:26:50.669] calls[seq.int(from = from + 12L, to = length(calls) - [17:26:50.669] 3L)] [17:26:50.669] } [17:26:50.669] function(cond) { [17:26:50.669] is_error <- inherits(cond, "error") [17:26:50.669] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:26:50.669] NULL) [17:26:50.669] if (is_error) { [17:26:50.669] sessionInformation <- function() { [17:26:50.669] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:26:50.669] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:26:50.669] search = base::search(), system = base::Sys.info()) [17:26:50.669] } [17:26:50.669] ...future.conditions[[length(...future.conditions) + [17:26:50.669] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:26:50.669] cond$call), session = sessionInformation(), [17:26:50.669] timestamp = base::Sys.time(), signaled = 0L) [17:26:50.669] signalCondition(cond) [17:26:50.669] } [17:26:50.669] else if (!ignore && TRUE && inherits(cond, c("condition", [17:26:50.669] "immediateCondition"))) { [17:26:50.669] signal <- TRUE && inherits(cond, "immediateCondition") [17:26:50.669] ...future.conditions[[length(...future.conditions) + [17:26:50.669] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:26:50.669] if (TRUE && !signal) { [17:26:50.669] muffleCondition <- function (cond, pattern = "^muffle") [17:26:50.669] { [17:26:50.669] inherits <- base::inherits [17:26:50.669] invokeRestart <- base::invokeRestart [17:26:50.669] is.null <- base::is.null [17:26:50.669] muffled <- FALSE [17:26:50.669] if (inherits(cond, "message")) { [17:26:50.669] muffled <- grepl(pattern, "muffleMessage") [17:26:50.669] if (muffled) [17:26:50.669] invokeRestart("muffleMessage") [17:26:50.669] } [17:26:50.669] else if (inherits(cond, "warning")) { [17:26:50.669] muffled <- grepl(pattern, "muffleWarning") [17:26:50.669] if (muffled) [17:26:50.669] invokeRestart("muffleWarning") [17:26:50.669] } [17:26:50.669] else if (inherits(cond, "condition")) { [17:26:50.669] if (!is.null(pattern)) { [17:26:50.669] computeRestarts <- base::computeRestarts [17:26:50.669] grepl <- base::grepl [17:26:50.669] restarts <- computeRestarts(cond) [17:26:50.669] for (restart in restarts) { [17:26:50.669] name <- restart$name [17:26:50.669] if (is.null(name)) [17:26:50.669] next [17:26:50.669] if (!grepl(pattern, name)) [17:26:50.669] next [17:26:50.669] invokeRestart(restart) [17:26:50.669] muffled <- TRUE [17:26:50.669] break [17:26:50.669] } [17:26:50.669] } [17:26:50.669] } [17:26:50.669] invisible(muffled) [17:26:50.669] } [17:26:50.669] muffleCondition(cond, pattern = "^muffle") [17:26:50.669] } [17:26:50.669] } [17:26:50.669] else { [17:26:50.669] if (TRUE) { [17:26:50.669] muffleCondition <- function (cond, pattern = "^muffle") [17:26:50.669] { [17:26:50.669] inherits <- base::inherits [17:26:50.669] invokeRestart <- base::invokeRestart [17:26:50.669] is.null <- base::is.null [17:26:50.669] muffled <- FALSE [17:26:50.669] if (inherits(cond, "message")) { [17:26:50.669] muffled <- grepl(pattern, "muffleMessage") [17:26:50.669] if (muffled) [17:26:50.669] invokeRestart("muffleMessage") [17:26:50.669] } [17:26:50.669] else if (inherits(cond, "warning")) { [17:26:50.669] muffled <- grepl(pattern, "muffleWarning") [17:26:50.669] if (muffled) [17:26:50.669] invokeRestart("muffleWarning") [17:26:50.669] } [17:26:50.669] else if (inherits(cond, "condition")) { [17:26:50.669] if (!is.null(pattern)) { [17:26:50.669] computeRestarts <- base::computeRestarts [17:26:50.669] grepl <- base::grepl [17:26:50.669] restarts <- computeRestarts(cond) [17:26:50.669] for (restart in restarts) { [17:26:50.669] name <- restart$name [17:26:50.669] if (is.null(name)) [17:26:50.669] next [17:26:50.669] if (!grepl(pattern, name)) [17:26:50.669] next [17:26:50.669] invokeRestart(restart) [17:26:50.669] muffled <- TRUE [17:26:50.669] break [17:26:50.669] } [17:26:50.669] } [17:26:50.669] } [17:26:50.669] invisible(muffled) [17:26:50.669] } [17:26:50.669] muffleCondition(cond, pattern = "^muffle") [17:26:50.669] } [17:26:50.669] } [17:26:50.669] } [17:26:50.669] })) [17:26:50.669] }, error = function(ex) { [17:26:50.669] base::structure(base::list(value = NULL, visible = NULL, [17:26:50.669] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:26:50.669] ...future.rng), started = ...future.startTime, [17:26:50.669] finished = Sys.time(), session_uuid = NA_character_, [17:26:50.669] version = "1.8"), class = "FutureResult") [17:26:50.669] }, finally = { [17:26:50.669] if (!identical(...future.workdir, getwd())) [17:26:50.669] setwd(...future.workdir) [17:26:50.669] { [17:26:50.669] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:26:50.669] ...future.oldOptions$nwarnings <- NULL [17:26:50.669] } [17:26:50.669] base::options(...future.oldOptions) [17:26:50.669] if (.Platform$OS.type == "windows") { [17:26:50.669] old_names <- names(...future.oldEnvVars) [17:26:50.669] envs <- base::Sys.getenv() [17:26:50.669] names <- names(envs) [17:26:50.669] common <- intersect(names, old_names) [17:26:50.669] added <- setdiff(names, old_names) [17:26:50.669] removed <- setdiff(old_names, names) [17:26:50.669] changed <- common[...future.oldEnvVars[common] != [17:26:50.669] envs[common]] [17:26:50.669] NAMES <- toupper(changed) [17:26:50.669] args <- list() [17:26:50.669] for (kk in seq_along(NAMES)) { [17:26:50.669] name <- changed[[kk]] [17:26:50.669] NAME <- NAMES[[kk]] [17:26:50.669] if (name != NAME && is.element(NAME, old_names)) [17:26:50.669] next [17:26:50.669] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:50.669] } [17:26:50.669] NAMES <- toupper(added) [17:26:50.669] for (kk in seq_along(NAMES)) { [17:26:50.669] name <- added[[kk]] [17:26:50.669] NAME <- NAMES[[kk]] [17:26:50.669] if (name != NAME && is.element(NAME, old_names)) [17:26:50.669] next [17:26:50.669] args[[name]] <- "" [17:26:50.669] } [17:26:50.669] NAMES <- toupper(removed) [17:26:50.669] for (kk in seq_along(NAMES)) { [17:26:50.669] name <- removed[[kk]] [17:26:50.669] NAME <- NAMES[[kk]] [17:26:50.669] if (name != NAME && is.element(NAME, old_names)) [17:26:50.669] next [17:26:50.669] args[[name]] <- ...future.oldEnvVars[[name]] [17:26:50.669] } [17:26:50.669] if (length(args) > 0) [17:26:50.669] base::do.call(base::Sys.setenv, args = args) [17:26:50.669] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:26:50.669] } [17:26:50.669] else { [17:26:50.669] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:26:50.669] } [17:26:50.669] { [17:26:50.669] if (base::length(...future.futureOptionsAdded) > [17:26:50.669] 0L) { [17:26:50.669] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:26:50.669] base::names(opts) <- ...future.futureOptionsAdded [17:26:50.669] base::options(opts) [17:26:50.669] } [17:26:50.669] { [17:26:50.669] { [17:26:50.669] base::options(mc.cores = ...future.mc.cores.old) [17:26:50.669] NULL [17:26:50.669] } [17:26:50.669] options(future.plan = NULL) [17:26:50.669] if (is.na(NA_character_)) [17:26:50.669] Sys.unsetenv("R_FUTURE_PLAN") [17:26:50.669] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:26:50.669] future::plan(...future.strategy.old, .cleanup = FALSE, [17:26:50.669] .init = FALSE) [17:26:50.669] } [17:26:50.669] } [17:26:50.669] } [17:26:50.669] }) [17:26:50.669] if (TRUE) { [17:26:50.669] base::sink(type = "output", split = FALSE) [17:26:50.669] if (TRUE) { [17:26:50.669] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:26:50.669] } [17:26:50.669] else { [17:26:50.669] ...future.result["stdout"] <- base::list(NULL) [17:26:50.669] } [17:26:50.669] base::close(...future.stdout) [17:26:50.669] ...future.stdout <- NULL [17:26:50.669] } [17:26:50.669] ...future.result$conditions <- ...future.conditions [17:26:50.669] ...future.result$finished <- base::Sys.time() [17:26:50.669] ...future.result [17:26:50.669] } [17:26:50.674] Exporting 1 global objects (3.84 KiB) to cluster node #1 ... [17:26:50.675] Exporting 'my_fcn' (3.84 KiB) to cluster node #1 ... [17:26:50.675] Exporting 'my_fcn' (3.84 KiB) to cluster node #1 ... DONE [17:26:50.675] Exporting 1 global objects (3.84 KiB) to cluster node #1 ... DONE [17:26:50.676] MultisessionFuture started [17:26:50.676] - Launch lazy future ... done [17:26:50.676] run() for 'MultisessionFuture' ... done [17:26:50.677] result() for ClusterFuture ... [17:26:50.677] receiveMessageFromWorker() for ClusterFuture ... [17:26:50.677] - Validating connection of MultisessionFuture [17:26:50.691] - received message: FutureResult [17:26:50.691] - Received FutureResult [17:26:50.691] - Erased future from FutureRegistry [17:26:50.692] result() for ClusterFuture ... [17:26:50.692] - result already collected: FutureResult [17:26:50.692] result() for ClusterFuture ... done [17:26:50.692] receiveMessageFromWorker() for ClusterFuture ... done [17:26:50.692] result() for ClusterFuture ... done [17:26:50.692] result() for ClusterFuture ... [17:26:50.693] - result already collected: FutureResult [17:26:50.693] result() for ClusterFuture ... done [1] -3 > > message("*** Globals - S4 methods ... DONE") *** Globals - S4 methods ... DONE > > source("incl/end.R") [17:26:50.694] plan(): Setting new future strategy stack: [17:26:50.694] List of future strategies: [17:26:50.694] 1. FutureStrategy: [17:26:50.694] - args: function (..., envir = parent.frame(), workers = "") [17:26:50.694] - tweaked: FALSE [17:26:50.694] - call: future::plan(oplan) [17:26:50.695] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=204] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', 'RTOOLS44_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS44_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 0.46 0.14 1.26