R Under development (unstable) (2024-07-28 r86931 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [17:27:45.674] plan(): Setting new future strategy stack: [17:27:45.675] List of future strategies: [17:27:45.675] 1. sequential: [17:27:45.675] - args: function (..., envir = parent.frame(), workers = "") [17:27:45.675] - tweaked: FALSE [17:27:45.675] - call: future::plan("sequential") [17:27:45.698] 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:27:45.748] plan(): Setting new future strategy stack: [17:27:45.748] List of future strategies: [17:27:45.748] 1. sequential: [17:27:45.748] - args: function (..., envir = parent.frame(), workers = "") [17:27:45.748] - tweaked: FALSE [17:27:45.748] - call: plan(strategy) [17:27:45.776] plan(): nbrOfWorkers() = 1 [17:27:45.777] getGlobalsAndPackages() ... [17:27:45.777] Searching for globals... [17:27:45.789] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [17:27:45.790] Searching for globals ... DONE [17:27:45.790] Resolving globals: FALSE [17:27:45.793] The total size of the 1 globals is 2.53 KiB (2591 bytes) [17:27:45.794] The total size of the 1 globals exported for future expression ('{; my_fcn; }') is 2.53 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'my_fcn' (2.53 KiB of class 'function') [17:27:45.794] - globals: [1] 'my_fcn' [17:27:45.794] [17:27:45.794] getGlobalsAndPackages() ... DONE [17:27:45.796] run() for 'Future' ... [17:27:45.796] - state: 'created' [17:27:45.796] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:27:45.797] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:45.797] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:27:45.798] - Field: 'label' [17:27:45.798] - Field: 'local' [17:27:45.798] - Field: 'owner' [17:27:45.798] - Field: 'envir' [17:27:45.799] - Field: 'packages' [17:27:45.799] - Field: 'gc' [17:27:45.799] - Field: 'conditions' [17:27:45.800] - Field: 'expr' [17:27:45.800] - Field: 'uuid' [17:27:45.800] - Field: 'seed' [17:27:45.801] - Field: 'version' [17:27:45.801] - Field: 'result' [17:27:45.801] - Field: 'asynchronous' [17:27:45.801] - Field: 'calls' [17:27:45.802] - Field: 'globals' [17:27:45.802] - Field: 'stdout' [17:27:45.802] - Field: 'earlySignal' [17:27:45.803] - Field: 'lazy' [17:27:45.803] - Field: 'state' [17:27:45.803] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:27:45.803] - Launch lazy future ... [17:27:45.805] Packages needed by the future expression (n = 0): [17:27:45.805] Packages needed by future strategies (n = 0): [17:27:45.807] { [17:27:45.807] { [17:27:45.807] { [17:27:45.807] ...future.startTime <- base::Sys.time() [17:27:45.807] { [17:27:45.807] { [17:27:45.807] { [17:27:45.807] base::local({ [17:27:45.807] has_future <- base::requireNamespace("future", [17:27:45.807] quietly = TRUE) [17:27:45.807] if (has_future) { [17:27:45.807] ns <- base::getNamespace("future") [17:27:45.807] version <- ns[[".package"]][["version"]] [17:27:45.807] if (is.null(version)) [17:27:45.807] version <- utils::packageVersion("future") [17:27:45.807] } [17:27:45.807] else { [17:27:45.807] version <- NULL [17:27:45.807] } [17:27:45.807] if (!has_future || version < "1.8.0") { [17:27:45.807] info <- base::c(r_version = base::gsub("R version ", [17:27:45.807] "", base::R.version$version.string), [17:27:45.807] platform = base::sprintf("%s (%s-bit)", [17:27:45.807] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:45.807] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:45.807] "release", "version")], collapse = " "), [17:27:45.807] hostname = base::Sys.info()[["nodename"]]) [17:27:45.807] info <- base::sprintf("%s: %s", base::names(info), [17:27:45.807] info) [17:27:45.807] info <- base::paste(info, collapse = "; ") [17:27:45.807] if (!has_future) { [17:27:45.807] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:45.807] info) [17:27:45.807] } [17:27:45.807] else { [17:27:45.807] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:45.807] info, version) [17:27:45.807] } [17:27:45.807] base::stop(msg) [17:27:45.807] } [17:27:45.807] }) [17:27:45.807] } [17:27:45.807] ...future.strategy.old <- future::plan("list") [17:27:45.807] options(future.plan = NULL) [17:27:45.807] Sys.unsetenv("R_FUTURE_PLAN") [17:27:45.807] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:45.807] } [17:27:45.807] ...future.workdir <- getwd() [17:27:45.807] } [17:27:45.807] ...future.oldOptions <- base::as.list(base::.Options) [17:27:45.807] ...future.oldEnvVars <- base::Sys.getenv() [17:27:45.807] } [17:27:45.807] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:45.807] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:45.807] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:45.807] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:45.807] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:45.807] future.stdout.windows.reencode = NULL, width = 80L) [17:27:45.807] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:45.807] base::names(...future.oldOptions)) [17:27:45.807] } [17:27:45.807] if (FALSE) { [17:27:45.807] } [17:27:45.807] else { [17:27:45.807] if (TRUE) { [17:27:45.807] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:45.807] open = "w") [17:27:45.807] } [17:27:45.807] else { [17:27:45.807] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:45.807] windows = "NUL", "/dev/null"), open = "w") [17:27:45.807] } [17:27:45.807] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:45.807] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:45.807] base::sink(type = "output", split = FALSE) [17:27:45.807] base::close(...future.stdout) [17:27:45.807] }, add = TRUE) [17:27:45.807] } [17:27:45.807] ...future.frame <- base::sys.nframe() [17:27:45.807] ...future.conditions <- base::list() [17:27:45.807] ...future.rng <- base::globalenv()$.Random.seed [17:27:45.807] if (FALSE) { [17:27:45.807] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:45.807] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:45.807] } [17:27:45.807] ...future.result <- base::tryCatch({ [17:27:45.807] base::withCallingHandlers({ [17:27:45.807] ...future.value <- base::withVisible(base::local({ [17:27:45.807] my_fcn [17:27:45.807] })) [17:27:45.807] future::FutureResult(value = ...future.value$value, [17:27:45.807] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:45.807] ...future.rng), globalenv = if (FALSE) [17:27:45.807] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:45.807] ...future.globalenv.names)) [17:27:45.807] else NULL, started = ...future.startTime, version = "1.8") [17:27:45.807] }, condition = base::local({ [17:27:45.807] c <- base::c [17:27:45.807] inherits <- base::inherits [17:27:45.807] invokeRestart <- base::invokeRestart [17:27:45.807] length <- base::length [17:27:45.807] list <- base::list [17:27:45.807] seq.int <- base::seq.int [17:27:45.807] signalCondition <- base::signalCondition [17:27:45.807] sys.calls <- base::sys.calls [17:27:45.807] `[[` <- base::`[[` [17:27:45.807] `+` <- base::`+` [17:27:45.807] `<<-` <- base::`<<-` [17:27:45.807] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:45.807] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:45.807] 3L)] [17:27:45.807] } [17:27:45.807] function(cond) { [17:27:45.807] is_error <- inherits(cond, "error") [17:27:45.807] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:45.807] NULL) [17:27:45.807] if (is_error) { [17:27:45.807] sessionInformation <- function() { [17:27:45.807] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:45.807] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:45.807] search = base::search(), system = base::Sys.info()) [17:27:45.807] } [17:27:45.807] ...future.conditions[[length(...future.conditions) + [17:27:45.807] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:45.807] cond$call), session = sessionInformation(), [17:27:45.807] timestamp = base::Sys.time(), signaled = 0L) [17:27:45.807] signalCondition(cond) [17:27:45.807] } [17:27:45.807] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:45.807] "immediateCondition"))) { [17:27:45.807] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:45.807] ...future.conditions[[length(...future.conditions) + [17:27:45.807] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:45.807] if (TRUE && !signal) { [17:27:45.807] muffleCondition <- function (cond, pattern = "^muffle") [17:27:45.807] { [17:27:45.807] inherits <- base::inherits [17:27:45.807] invokeRestart <- base::invokeRestart [17:27:45.807] is.null <- base::is.null [17:27:45.807] muffled <- FALSE [17:27:45.807] if (inherits(cond, "message")) { [17:27:45.807] muffled <- grepl(pattern, "muffleMessage") [17:27:45.807] if (muffled) [17:27:45.807] invokeRestart("muffleMessage") [17:27:45.807] } [17:27:45.807] else if (inherits(cond, "warning")) { [17:27:45.807] muffled <- grepl(pattern, "muffleWarning") [17:27:45.807] if (muffled) [17:27:45.807] invokeRestart("muffleWarning") [17:27:45.807] } [17:27:45.807] else if (inherits(cond, "condition")) { [17:27:45.807] if (!is.null(pattern)) { [17:27:45.807] computeRestarts <- base::computeRestarts [17:27:45.807] grepl <- base::grepl [17:27:45.807] restarts <- computeRestarts(cond) [17:27:45.807] for (restart in restarts) { [17:27:45.807] name <- restart$name [17:27:45.807] if (is.null(name)) [17:27:45.807] next [17:27:45.807] if (!grepl(pattern, name)) [17:27:45.807] next [17:27:45.807] invokeRestart(restart) [17:27:45.807] muffled <- TRUE [17:27:45.807] break [17:27:45.807] } [17:27:45.807] } [17:27:45.807] } [17:27:45.807] invisible(muffled) [17:27:45.807] } [17:27:45.807] muffleCondition(cond, pattern = "^muffle") [17:27:45.807] } [17:27:45.807] } [17:27:45.807] else { [17:27:45.807] if (TRUE) { [17:27:45.807] muffleCondition <- function (cond, pattern = "^muffle") [17:27:45.807] { [17:27:45.807] inherits <- base::inherits [17:27:45.807] invokeRestart <- base::invokeRestart [17:27:45.807] is.null <- base::is.null [17:27:45.807] muffled <- FALSE [17:27:45.807] if (inherits(cond, "message")) { [17:27:45.807] muffled <- grepl(pattern, "muffleMessage") [17:27:45.807] if (muffled) [17:27:45.807] invokeRestart("muffleMessage") [17:27:45.807] } [17:27:45.807] else if (inherits(cond, "warning")) { [17:27:45.807] muffled <- grepl(pattern, "muffleWarning") [17:27:45.807] if (muffled) [17:27:45.807] invokeRestart("muffleWarning") [17:27:45.807] } [17:27:45.807] else if (inherits(cond, "condition")) { [17:27:45.807] if (!is.null(pattern)) { [17:27:45.807] computeRestarts <- base::computeRestarts [17:27:45.807] grepl <- base::grepl [17:27:45.807] restarts <- computeRestarts(cond) [17:27:45.807] for (restart in restarts) { [17:27:45.807] name <- restart$name [17:27:45.807] if (is.null(name)) [17:27:45.807] next [17:27:45.807] if (!grepl(pattern, name)) [17:27:45.807] next [17:27:45.807] invokeRestart(restart) [17:27:45.807] muffled <- TRUE [17:27:45.807] break [17:27:45.807] } [17:27:45.807] } [17:27:45.807] } [17:27:45.807] invisible(muffled) [17:27:45.807] } [17:27:45.807] muffleCondition(cond, pattern = "^muffle") [17:27:45.807] } [17:27:45.807] } [17:27:45.807] } [17:27:45.807] })) [17:27:45.807] }, error = function(ex) { [17:27:45.807] base::structure(base::list(value = NULL, visible = NULL, [17:27:45.807] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:45.807] ...future.rng), started = ...future.startTime, [17:27:45.807] finished = Sys.time(), session_uuid = NA_character_, [17:27:45.807] version = "1.8"), class = "FutureResult") [17:27:45.807] }, finally = { [17:27:45.807] if (!identical(...future.workdir, getwd())) [17:27:45.807] setwd(...future.workdir) [17:27:45.807] { [17:27:45.807] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:45.807] ...future.oldOptions$nwarnings <- NULL [17:27:45.807] } [17:27:45.807] base::options(...future.oldOptions) [17:27:45.807] if (.Platform$OS.type == "windows") { [17:27:45.807] old_names <- names(...future.oldEnvVars) [17:27:45.807] envs <- base::Sys.getenv() [17:27:45.807] names <- names(envs) [17:27:45.807] common <- intersect(names, old_names) [17:27:45.807] added <- setdiff(names, old_names) [17:27:45.807] removed <- setdiff(old_names, names) [17:27:45.807] changed <- common[...future.oldEnvVars[common] != [17:27:45.807] envs[common]] [17:27:45.807] NAMES <- toupper(changed) [17:27:45.807] args <- list() [17:27:45.807] for (kk in seq_along(NAMES)) { [17:27:45.807] name <- changed[[kk]] [17:27:45.807] NAME <- NAMES[[kk]] [17:27:45.807] if (name != NAME && is.element(NAME, old_names)) [17:27:45.807] next [17:27:45.807] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:45.807] } [17:27:45.807] NAMES <- toupper(added) [17:27:45.807] for (kk in seq_along(NAMES)) { [17:27:45.807] name <- added[[kk]] [17:27:45.807] NAME <- NAMES[[kk]] [17:27:45.807] if (name != NAME && is.element(NAME, old_names)) [17:27:45.807] next [17:27:45.807] args[[name]] <- "" [17:27:45.807] } [17:27:45.807] NAMES <- toupper(removed) [17:27:45.807] for (kk in seq_along(NAMES)) { [17:27:45.807] name <- removed[[kk]] [17:27:45.807] NAME <- NAMES[[kk]] [17:27:45.807] if (name != NAME && is.element(NAME, old_names)) [17:27:45.807] next [17:27:45.807] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:45.807] } [17:27:45.807] if (length(args) > 0) [17:27:45.807] base::do.call(base::Sys.setenv, args = args) [17:27:45.807] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:45.807] } [17:27:45.807] else { [17:27:45.807] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:45.807] } [17:27:45.807] { [17:27:45.807] if (base::length(...future.futureOptionsAdded) > [17:27:45.807] 0L) { [17:27:45.807] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:45.807] base::names(opts) <- ...future.futureOptionsAdded [17:27:45.807] base::options(opts) [17:27:45.807] } [17:27:45.807] { [17:27:45.807] { [17:27:45.807] NULL [17:27:45.807] RNGkind("Mersenne-Twister") [17:27:45.807] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:45.807] inherits = FALSE) [17:27:45.807] } [17:27:45.807] options(future.plan = NULL) [17:27:45.807] if (is.na(NA_character_)) [17:27:45.807] Sys.unsetenv("R_FUTURE_PLAN") [17:27:45.807] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:45.807] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:45.807] .init = FALSE) [17:27:45.807] } [17:27:45.807] } [17:27:45.807] } [17:27:45.807] }) [17:27:45.807] if (TRUE) { [17:27:45.807] base::sink(type = "output", split = FALSE) [17:27:45.807] if (TRUE) { [17:27:45.807] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:45.807] } [17:27:45.807] else { [17:27:45.807] ...future.result["stdout"] <- base::list(NULL) [17:27:45.807] } [17:27:45.807] base::close(...future.stdout) [17:27:45.807] ...future.stdout <- NULL [17:27:45.807] } [17:27:45.807] ...future.result$conditions <- ...future.conditions [17:27:45.807] ...future.result$finished <- base::Sys.time() [17:27:45.807] ...future.result [17:27:45.807] } [17:27:45.813] assign_globals() ... [17:27:45.813] List of 1 [17:27:45.813] $ my_fcn:Formal class 'standardGeneric' [package "methods"] with 8 slots [17:27:45.813] .. ..@ .Data :function (x) [17:27:45.813] .. ..@ generic : chr "my_fcn" [17:27:45.813] .. .. ..- attr(*, "package")= chr ".GlobalEnv" [17:27:45.813] .. ..@ package : chr ".GlobalEnv" [17:27:45.813] .. ..@ group : list() [17:27:45.813] .. ..@ valueClass: chr(0) [17:27:45.813] .. ..@ signature : chr "x" [17:27:45.813] .. ..@ default : NULL [17:27:45.813] .. ..@ skeleton : language (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", ... [17:27:45.813] - attr(*, "where")=List of 1 [17:27:45.813] ..$ my_fcn: [17:27:45.813] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:27:45.813] - attr(*, "resolved")= logi FALSE [17:27:45.813] - attr(*, "total_size")= int 2591 [17:27:45.813] - attr(*, "already-done")= logi TRUE [17:27:45.829] - reassign environment for 'my_fcn' [17:27:45.829] - copied 'my_fcn' to environment [17:27:45.829] assign_globals() ... done [17:27:45.830] plan(): Setting new future strategy stack: [17:27:45.830] List of future strategies: [17:27:45.830] 1. sequential: [17:27:45.830] - args: function (..., envir = parent.frame(), workers = "") [17:27:45.830] - tweaked: FALSE [17:27:45.830] - call: NULL [17:27:45.831] plan(): nbrOfWorkers() = 1 [17:27:45.834] plan(): Setting new future strategy stack: [17:27:45.834] List of future strategies: [17:27:45.834] 1. sequential: [17:27:45.834] - args: function (..., envir = parent.frame(), workers = "") [17:27:45.834] - tweaked: FALSE [17:27:45.834] - call: plan(strategy) [17:27:45.835] plan(): nbrOfWorkers() = 1 [17:27:45.835] SequentialFuture started (and completed) [17:27:45.836] - Launch lazy future ... done [17:27:45.836] 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:27:45.838] getGlobalsAndPackages() ... [17:27:45.838] Searching for globals... [17:27:45.846] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [17:27:45.847] Searching for globals ... DONE [17:27:45.847] Resolving globals: FALSE [17:27:45.848] The total size of the 1 globals is 2.53 KiB (2591 bytes) [17:27:45.849] The total size of the 1 globals exported for future expression ('{; my_fcn(3); }') is 2.53 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'my_fcn' (2.53 KiB of class 'function') [17:27:45.849] - globals: [1] 'my_fcn' [17:27:45.849] [17:27:45.850] getGlobalsAndPackages() ... DONE [17:27:45.850] run() for 'Future' ... [17:27:45.851] - state: 'created' [17:27:45.851] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:27:45.852] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:27:45.852] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:27:45.852] - Field: 'label' [17:27:45.853] - Field: 'local' [17:27:45.853] - Field: 'owner' [17:27:45.853] - Field: 'envir' [17:27:45.853] - Field: 'packages' [17:27:45.854] - Field: 'gc' [17:27:45.854] - Field: 'conditions' [17:27:45.854] - Field: 'expr' [17:27:45.855] - Field: 'uuid' [17:27:45.855] - Field: 'seed' [17:27:45.855] - Field: 'version' [17:27:45.856] - Field: 'result' [17:27:45.856] - Field: 'asynchronous' [17:27:45.856] - Field: 'calls' [17:27:45.857] - Field: 'globals' [17:27:45.857] - Field: 'stdout' [17:27:45.857] - Field: 'earlySignal' [17:27:45.858] - Field: 'lazy' [17:27:45.858] - Field: 'state' [17:27:45.858] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:27:45.859] - Launch lazy future ... [17:27:45.859] Packages needed by the future expression (n = 0): [17:27:45.859] Packages needed by future strategies (n = 0): [17:27:45.860] { [17:27:45.860] { [17:27:45.860] { [17:27:45.860] ...future.startTime <- base::Sys.time() [17:27:45.860] { [17:27:45.860] { [17:27:45.860] { [17:27:45.860] base::local({ [17:27:45.860] has_future <- base::requireNamespace("future", [17:27:45.860] quietly = TRUE) [17:27:45.860] if (has_future) { [17:27:45.860] ns <- base::getNamespace("future") [17:27:45.860] version <- ns[[".package"]][["version"]] [17:27:45.860] if (is.null(version)) [17:27:45.860] version <- utils::packageVersion("future") [17:27:45.860] } [17:27:45.860] else { [17:27:45.860] version <- NULL [17:27:45.860] } [17:27:45.860] if (!has_future || version < "1.8.0") { [17:27:45.860] info <- base::c(r_version = base::gsub("R version ", [17:27:45.860] "", base::R.version$version.string), [17:27:45.860] platform = base::sprintf("%s (%s-bit)", [17:27:45.860] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:45.860] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:45.860] "release", "version")], collapse = " "), [17:27:45.860] hostname = base::Sys.info()[["nodename"]]) [17:27:45.860] info <- base::sprintf("%s: %s", base::names(info), [17:27:45.860] info) [17:27:45.860] info <- base::paste(info, collapse = "; ") [17:27:45.860] if (!has_future) { [17:27:45.860] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:45.860] info) [17:27:45.860] } [17:27:45.860] else { [17:27:45.860] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:45.860] info, version) [17:27:45.860] } [17:27:45.860] base::stop(msg) [17:27:45.860] } [17:27:45.860] }) [17:27:45.860] } [17:27:45.860] ...future.strategy.old <- future::plan("list") [17:27:45.860] options(future.plan = NULL) [17:27:45.860] Sys.unsetenv("R_FUTURE_PLAN") [17:27:45.860] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:45.860] } [17:27:45.860] ...future.workdir <- getwd() [17:27:45.860] } [17:27:45.860] ...future.oldOptions <- base::as.list(base::.Options) [17:27:45.860] ...future.oldEnvVars <- base::Sys.getenv() [17:27:45.860] } [17:27:45.860] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:45.860] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:45.860] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:45.860] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:45.860] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:45.860] future.stdout.windows.reencode = NULL, width = 80L) [17:27:45.860] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:45.860] base::names(...future.oldOptions)) [17:27:45.860] } [17:27:45.860] if (FALSE) { [17:27:45.860] } [17:27:45.860] else { [17:27:45.860] if (TRUE) { [17:27:45.860] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:45.860] open = "w") [17:27:45.860] } [17:27:45.860] else { [17:27:45.860] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:45.860] windows = "NUL", "/dev/null"), open = "w") [17:27:45.860] } [17:27:45.860] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:45.860] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:45.860] base::sink(type = "output", split = FALSE) [17:27:45.860] base::close(...future.stdout) [17:27:45.860] }, add = TRUE) [17:27:45.860] } [17:27:45.860] ...future.frame <- base::sys.nframe() [17:27:45.860] ...future.conditions <- base::list() [17:27:45.860] ...future.rng <- base::globalenv()$.Random.seed [17:27:45.860] if (FALSE) { [17:27:45.860] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:45.860] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:45.860] } [17:27:45.860] ...future.result <- base::tryCatch({ [17:27:45.860] base::withCallingHandlers({ [17:27:45.860] ...future.value <- base::withVisible(base::local({ [17:27:45.860] my_fcn(3) [17:27:45.860] })) [17:27:45.860] future::FutureResult(value = ...future.value$value, [17:27:45.860] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:45.860] ...future.rng), globalenv = if (FALSE) [17:27:45.860] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:45.860] ...future.globalenv.names)) [17:27:45.860] else NULL, started = ...future.startTime, version = "1.8") [17:27:45.860] }, condition = base::local({ [17:27:45.860] c <- base::c [17:27:45.860] inherits <- base::inherits [17:27:45.860] invokeRestart <- base::invokeRestart [17:27:45.860] length <- base::length [17:27:45.860] list <- base::list [17:27:45.860] seq.int <- base::seq.int [17:27:45.860] signalCondition <- base::signalCondition [17:27:45.860] sys.calls <- base::sys.calls [17:27:45.860] `[[` <- base::`[[` [17:27:45.860] `+` <- base::`+` [17:27:45.860] `<<-` <- base::`<<-` [17:27:45.860] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:45.860] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:45.860] 3L)] [17:27:45.860] } [17:27:45.860] function(cond) { [17:27:45.860] is_error <- inherits(cond, "error") [17:27:45.860] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:45.860] NULL) [17:27:45.860] if (is_error) { [17:27:45.860] sessionInformation <- function() { [17:27:45.860] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:45.860] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:45.860] search = base::search(), system = base::Sys.info()) [17:27:45.860] } [17:27:45.860] ...future.conditions[[length(...future.conditions) + [17:27:45.860] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:45.860] cond$call), session = sessionInformation(), [17:27:45.860] timestamp = base::Sys.time(), signaled = 0L) [17:27:45.860] signalCondition(cond) [17:27:45.860] } [17:27:45.860] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:45.860] "immediateCondition"))) { [17:27:45.860] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:45.860] ...future.conditions[[length(...future.conditions) + [17:27:45.860] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:45.860] if (TRUE && !signal) { [17:27:45.860] muffleCondition <- function (cond, pattern = "^muffle") [17:27:45.860] { [17:27:45.860] inherits <- base::inherits [17:27:45.860] invokeRestart <- base::invokeRestart [17:27:45.860] is.null <- base::is.null [17:27:45.860] muffled <- FALSE [17:27:45.860] if (inherits(cond, "message")) { [17:27:45.860] muffled <- grepl(pattern, "muffleMessage") [17:27:45.860] if (muffled) [17:27:45.860] invokeRestart("muffleMessage") [17:27:45.860] } [17:27:45.860] else if (inherits(cond, "warning")) { [17:27:45.860] muffled <- grepl(pattern, "muffleWarning") [17:27:45.860] if (muffled) [17:27:45.860] invokeRestart("muffleWarning") [17:27:45.860] } [17:27:45.860] else if (inherits(cond, "condition")) { [17:27:45.860] if (!is.null(pattern)) { [17:27:45.860] computeRestarts <- base::computeRestarts [17:27:45.860] grepl <- base::grepl [17:27:45.860] restarts <- computeRestarts(cond) [17:27:45.860] for (restart in restarts) { [17:27:45.860] name <- restart$name [17:27:45.860] if (is.null(name)) [17:27:45.860] next [17:27:45.860] if (!grepl(pattern, name)) [17:27:45.860] next [17:27:45.860] invokeRestart(restart) [17:27:45.860] muffled <- TRUE [17:27:45.860] break [17:27:45.860] } [17:27:45.860] } [17:27:45.860] } [17:27:45.860] invisible(muffled) [17:27:45.860] } [17:27:45.860] muffleCondition(cond, pattern = "^muffle") [17:27:45.860] } [17:27:45.860] } [17:27:45.860] else { [17:27:45.860] if (TRUE) { [17:27:45.860] muffleCondition <- function (cond, pattern = "^muffle") [17:27:45.860] { [17:27:45.860] inherits <- base::inherits [17:27:45.860] invokeRestart <- base::invokeRestart [17:27:45.860] is.null <- base::is.null [17:27:45.860] muffled <- FALSE [17:27:45.860] if (inherits(cond, "message")) { [17:27:45.860] muffled <- grepl(pattern, "muffleMessage") [17:27:45.860] if (muffled) [17:27:45.860] invokeRestart("muffleMessage") [17:27:45.860] } [17:27:45.860] else if (inherits(cond, "warning")) { [17:27:45.860] muffled <- grepl(pattern, "muffleWarning") [17:27:45.860] if (muffled) [17:27:45.860] invokeRestart("muffleWarning") [17:27:45.860] } [17:27:45.860] else if (inherits(cond, "condition")) { [17:27:45.860] if (!is.null(pattern)) { [17:27:45.860] computeRestarts <- base::computeRestarts [17:27:45.860] grepl <- base::grepl [17:27:45.860] restarts <- computeRestarts(cond) [17:27:45.860] for (restart in restarts) { [17:27:45.860] name <- restart$name [17:27:45.860] if (is.null(name)) [17:27:45.860] next [17:27:45.860] if (!grepl(pattern, name)) [17:27:45.860] next [17:27:45.860] invokeRestart(restart) [17:27:45.860] muffled <- TRUE [17:27:45.860] break [17:27:45.860] } [17:27:45.860] } [17:27:45.860] } [17:27:45.860] invisible(muffled) [17:27:45.860] } [17:27:45.860] muffleCondition(cond, pattern = "^muffle") [17:27:45.860] } [17:27:45.860] } [17:27:45.860] } [17:27:45.860] })) [17:27:45.860] }, error = function(ex) { [17:27:45.860] base::structure(base::list(value = NULL, visible = NULL, [17:27:45.860] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:45.860] ...future.rng), started = ...future.startTime, [17:27:45.860] finished = Sys.time(), session_uuid = NA_character_, [17:27:45.860] version = "1.8"), class = "FutureResult") [17:27:45.860] }, finally = { [17:27:45.860] if (!identical(...future.workdir, getwd())) [17:27:45.860] setwd(...future.workdir) [17:27:45.860] { [17:27:45.860] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:45.860] ...future.oldOptions$nwarnings <- NULL [17:27:45.860] } [17:27:45.860] base::options(...future.oldOptions) [17:27:45.860] if (.Platform$OS.type == "windows") { [17:27:45.860] old_names <- names(...future.oldEnvVars) [17:27:45.860] envs <- base::Sys.getenv() [17:27:45.860] names <- names(envs) [17:27:45.860] common <- intersect(names, old_names) [17:27:45.860] added <- setdiff(names, old_names) [17:27:45.860] removed <- setdiff(old_names, names) [17:27:45.860] changed <- common[...future.oldEnvVars[common] != [17:27:45.860] envs[common]] [17:27:45.860] NAMES <- toupper(changed) [17:27:45.860] args <- list() [17:27:45.860] for (kk in seq_along(NAMES)) { [17:27:45.860] name <- changed[[kk]] [17:27:45.860] NAME <- NAMES[[kk]] [17:27:45.860] if (name != NAME && is.element(NAME, old_names)) [17:27:45.860] next [17:27:45.860] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:45.860] } [17:27:45.860] NAMES <- toupper(added) [17:27:45.860] for (kk in seq_along(NAMES)) { [17:27:45.860] name <- added[[kk]] [17:27:45.860] NAME <- NAMES[[kk]] [17:27:45.860] if (name != NAME && is.element(NAME, old_names)) [17:27:45.860] next [17:27:45.860] args[[name]] <- "" [17:27:45.860] } [17:27:45.860] NAMES <- toupper(removed) [17:27:45.860] for (kk in seq_along(NAMES)) { [17:27:45.860] name <- removed[[kk]] [17:27:45.860] NAME <- NAMES[[kk]] [17:27:45.860] if (name != NAME && is.element(NAME, old_names)) [17:27:45.860] next [17:27:45.860] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:45.860] } [17:27:45.860] if (length(args) > 0) [17:27:45.860] base::do.call(base::Sys.setenv, args = args) [17:27:45.860] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:45.860] } [17:27:45.860] else { [17:27:45.860] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:45.860] } [17:27:45.860] { [17:27:45.860] if (base::length(...future.futureOptionsAdded) > [17:27:45.860] 0L) { [17:27:45.860] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:45.860] base::names(opts) <- ...future.futureOptionsAdded [17:27:45.860] base::options(opts) [17:27:45.860] } [17:27:45.860] { [17:27:45.860] { [17:27:45.860] NULL [17:27:45.860] RNGkind("Mersenne-Twister") [17:27:45.860] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:27:45.860] inherits = FALSE) [17:27:45.860] } [17:27:45.860] options(future.plan = NULL) [17:27:45.860] if (is.na(NA_character_)) [17:27:45.860] Sys.unsetenv("R_FUTURE_PLAN") [17:27:45.860] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:45.860] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:45.860] .init = FALSE) [17:27:45.860] } [17:27:45.860] } [17:27:45.860] } [17:27:45.860] }) [17:27:45.860] if (TRUE) { [17:27:45.860] base::sink(type = "output", split = FALSE) [17:27:45.860] if (TRUE) { [17:27:45.860] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:45.860] } [17:27:45.860] else { [17:27:45.860] ...future.result["stdout"] <- base::list(NULL) [17:27:45.860] } [17:27:45.860] base::close(...future.stdout) [17:27:45.860] ...future.stdout <- NULL [17:27:45.860] } [17:27:45.860] ...future.result$conditions <- ...future.conditions [17:27:45.860] ...future.result$finished <- base::Sys.time() [17:27:45.860] ...future.result [17:27:45.860] } [17:27:45.864] assign_globals() ... [17:27:45.865] List of 1 [17:27:45.865] $ my_fcn:Formal class 'standardGeneric' [package "methods"] with 8 slots [17:27:45.865] .. ..@ .Data :function (x) [17:27:45.865] .. ..@ generic : chr "my_fcn" [17:27:45.865] .. .. ..- attr(*, "package")= chr ".GlobalEnv" [17:27:45.865] .. ..@ package : chr ".GlobalEnv" [17:27:45.865] .. ..@ group : list() [17:27:45.865] .. ..@ valueClass: chr(0) [17:27:45.865] .. ..@ signature : chr "x" [17:27:45.865] .. ..@ default : NULL [17:27:45.865] .. ..@ skeleton : language (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", ... [17:27:45.865] - attr(*, "where")=List of 1 [17:27:45.865] ..$ my_fcn: [17:27:45.865] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:27:45.865] - attr(*, "resolved")= logi FALSE [17:27:45.865] - attr(*, "total_size")= int 2591 [17:27:45.865] - attr(*, "already-done")= logi TRUE [17:27:45.872] - reassign environment for 'my_fcn' [17:27:45.873] - copied 'my_fcn' to environment [17:27:45.873] assign_globals() ... done [17:27:45.873] plan(): Setting new future strategy stack: [17:27:45.873] List of future strategies: [17:27:45.873] 1. sequential: [17:27:45.873] - args: function (..., envir = parent.frame(), workers = "") [17:27:45.873] - tweaked: FALSE [17:27:45.873] - call: NULL [17:27:45.874] plan(): nbrOfWorkers() = 1 [17:27:45.877] plan(): Setting new future strategy stack: [17:27:45.877] List of future strategies: [17:27:45.877] 1. sequential: [17:27:45.877] - args: function (..., envir = parent.frame(), workers = "") [17:27:45.877] - tweaked: FALSE [17:27:45.877] - call: plan(strategy) [17:27:45.878] plan(): nbrOfWorkers() = 1 [17:27:45.878] SequentialFuture started (and completed) [17:27:45.878] signalConditions() ... [17:27:45.879] - include = 'immediateCondition' [17:27:45.879] - exclude = [17:27:45.879] - resignal = FALSE [17:27:45.879] - Number of conditions: 1 [17:27:45.879] signalConditions() ... done [17:27:45.879] - Launch lazy future ... done [17:27:45.880] run() for 'SequentialFuture' ... done [17:27:45.880] signalConditions() ... [17:27:45.880] - include = 'immediateCondition' [17:27:45.880] - exclude = [17:27:45.880] - resignal = FALSE [17:27:45.881] - Number of conditions: 1 [17:27:45.881] signalConditions() ... done [17:27:45.881] Future state: 'finished' [17:27:45.881] signalConditions() ... [17:27:45.881] - include = 'condition' [17:27:45.881] - exclude = 'immediateCondition' [17:27:45.882] - resignal = TRUE [17:27:45.882] - Number of conditions: 1 [17:27:45.882] - Condition #1: 'simpleError', 'error', 'condition' [17:27:45.882] signalConditions() ... done Type of future: multisession [17:27:45.883] plan(): Setting new future strategy stack: [17:27:45.883] List of future strategies: [17:27:45.883] 1. multisession: [17:27:45.883] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:27:45.883] - tweaked: FALSE [17:27:45.883] - call: plan(strategy) [17:27:45.883] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [17:27:45.884] multisession: [17:27:45.884] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [17:27:45.884] - tweaked: FALSE [17:27:45.884] - call: plan(strategy) [17:27:45.888] getGlobalsAndPackages() ... [17:27:45.888] Not searching for globals [17:27:45.888] - globals: [0] [17:27:45.889] getGlobalsAndPackages() ... DONE [17:27:45.889] [local output] makeClusterPSOCK() ... [17:27:45.941] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:27:45.949] [local output] Base port: 23528 [17:27:45.950] [local output] Getting setup options for 2 cluster nodes ... [17:27:45.950] [local output] - Node #1 of 2 ... [17:27:45.951] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:45.953] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpMT1N9d/worker.rank=1.parallelly.parent=112600.1b7d8622e569a.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpMT1N9d/worker.rank=1.parallelly.parent=112600.1b7d8622e569a.pid\")"' [17:27:46.392] - Possible to infer worker's PID: TRUE [17:27:46.394] [local output] Rscript port: 23528 [17:27:46.394] [local output] - Node #2 of 2 ... [17:27:46.395] [local output] localMachine=TRUE => revtunnel=FALSE [17:27:46.397] [local output] Rscript port: 23528 [17:27:46.397] [local output] Getting setup options for 2 cluster nodes ... done [17:27:46.398] [local output] - Parallel setup requested for some PSOCK nodes [17:27:46.398] [local output] Setting up PSOCK nodes in parallel [17:27:46.399] List of 36 [17:27:46.399] $ worker : chr "localhost" [17:27:46.399] ..- attr(*, "localhost")= logi TRUE [17:27:46.399] $ master : chr "localhost" [17:27:46.399] $ port : int 23528 [17:27:46.399] $ connectTimeout : num 120 [17:27:46.399] $ timeout : num 120 [17:27:46.399] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:27:46.399] $ homogeneous : logi TRUE [17:27:46.399] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=globals,S4methods.R:112600:CRANW"| __truncated__ [17:27:46.399] $ rscript_envs : NULL [17:27:46.399] $ rscript_libs : chr [1:2] "D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda" "D:/RCompile/recent/R/library" [17:27:46.399] $ rscript_startup : NULL [17:27:46.399] $ rscript_sh : chr [1:2] "cmd" "cmd" [17:27:46.399] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:46.399] $ methods : logi TRUE [17:27:46.399] $ socketOptions : chr "no-delay" [17:27:46.399] $ useXDR : logi FALSE [17:27:46.399] $ outfile : chr "/dev/null" [17:27:46.399] $ renice : int NA [17:27:46.399] $ rshcmd : NULL [17:27:46.399] $ user : chr(0) [17:27:46.399] $ revtunnel : logi FALSE [17:27:46.399] $ rshlogfile : NULL [17:27:46.399] $ rshopts : chr(0) [17:27:46.399] $ rank : int 1 [17:27:46.399] $ manual : logi FALSE [17:27:46.399] $ dryrun : logi FALSE [17:27:46.399] $ quiet : logi FALSE [17:27:46.399] $ setup_strategy : chr "parallel" [17:27:46.399] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:46.399] $ pidfile : chr "D:/temp/RtmpMT1N9d/worker.rank=1.parallelly.parent=112600.1b7d8622e569a.pid" [17:27:46.399] $ rshcmd_label : NULL [17:27:46.399] $ rsh_call : NULL [17:27:46.399] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:27:46.399] $ localMachine : logi TRUE [17:27:46.399] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:27:46.399] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:27:46.399] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:27:46.399] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:27:46.399] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:27:46.399] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [17:27:46.399] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [17:27:46.399] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:27:46.399] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:27:46.399] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:27:46.399] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:27:46.399] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:27:46.399] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:27:46.399] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:27:46.399] $ arguments :List of 28 [17:27:46.399] ..$ worker : chr "localhost" [17:27:46.399] ..$ master : NULL [17:27:46.399] ..$ port : int 23528 [17:27:46.399] ..$ connectTimeout : num 120 [17:27:46.399] ..$ timeout : num 120 [17:27:46.399] ..$ rscript : NULL [17:27:46.399] ..$ homogeneous : NULL [17:27:46.399] ..$ rscript_args : NULL [17:27:46.399] ..$ rscript_envs : NULL [17:27:46.399] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda" "D:/RCompile/recent/R/library" [17:27:46.399] ..$ rscript_startup : NULL [17:27:46.399] ..$ rscript_sh : chr "auto" [17:27:46.399] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:27:46.399] ..$ methods : logi TRUE [17:27:46.399] ..$ socketOptions : chr "no-delay" [17:27:46.399] ..$ useXDR : logi FALSE [17:27:46.399] ..$ outfile : chr "/dev/null" [17:27:46.399] ..$ renice : int NA [17:27:46.399] ..$ rshcmd : NULL [17:27:46.399] ..$ user : NULL [17:27:46.399] ..$ revtunnel : logi NA [17:27:46.399] ..$ rshlogfile : NULL [17:27:46.399] ..$ rshopts : NULL [17:27:46.399] ..$ rank : int 1 [17:27:46.399] ..$ manual : logi FALSE [17:27:46.399] ..$ dryrun : logi FALSE [17:27:46.399] ..$ quiet : logi FALSE [17:27:46.399] ..$ setup_strategy : chr "parallel" [17:27:46.399] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:27:46.437] [local output] System call to launch all workers: [17:27:46.437] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=globals,S4methods.R:112600:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpMT1N9d/worker.rank=1.parallelly.parent=112600.1b7d8622e569a.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpsXpk4j/RLIBS_1097c668d2fda\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=23528 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:27:46.437] [local output] Starting PSOCK main server [17:27:46.448] [local output] Workers launched [17:27:46.449] [local output] Waiting for workers to connect back [17:27:46.449] - [local output] 0 workers out of 2 ready [17:27:46.701] - [local output] 0 workers out of 2 ready [17:27:46.702] - [local output] 1 workers out of 2 ready [17:27:46.703] - [local output] 2 workers out of 2 ready [17:27:46.704] [local output] Launching of 2 workers completed [17:27:46.704] [local output] Number of nodes in cluster: 2 [17:27:46.704] [local output] Collecting session information from 2 workers [17:27:46.707] [local output] - Worker #1 of 2 [17:27:46.708] [local output] - Worker #2 of 2 [17:27:46.709] [local output] makeClusterPSOCK() ... done [17:27:46.729] Packages needed by the future expression (n = 0): [17:27:46.730] Packages needed by future strategies (n = 0): [17:27:46.731] { [17:27:46.731] { [17:27:46.731] { [17:27:46.731] ...future.startTime <- base::Sys.time() [17:27:46.731] { [17:27:46.731] { [17:27:46.731] { [17:27:46.731] { [17:27:46.731] base::local({ [17:27:46.731] has_future <- base::requireNamespace("future", [17:27:46.731] quietly = TRUE) [17:27:46.731] if (has_future) { [17:27:46.731] ns <- base::getNamespace("future") [17:27:46.731] version <- ns[[".package"]][["version"]] [17:27:46.731] if (is.null(version)) [17:27:46.731] version <- utils::packageVersion("future") [17:27:46.731] } [17:27:46.731] else { [17:27:46.731] version <- NULL [17:27:46.731] } [17:27:46.731] if (!has_future || version < "1.8.0") { [17:27:46.731] info <- base::c(r_version = base::gsub("R version ", [17:27:46.731] "", base::R.version$version.string), [17:27:46.731] platform = base::sprintf("%s (%s-bit)", [17:27:46.731] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:46.731] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:46.731] "release", "version")], collapse = " "), [17:27:46.731] hostname = base::Sys.info()[["nodename"]]) [17:27:46.731] info <- base::sprintf("%s: %s", base::names(info), [17:27:46.731] info) [17:27:46.731] info <- base::paste(info, collapse = "; ") [17:27:46.731] if (!has_future) { [17:27:46.731] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:46.731] info) [17:27:46.731] } [17:27:46.731] else { [17:27:46.731] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:46.731] info, version) [17:27:46.731] } [17:27:46.731] base::stop(msg) [17:27:46.731] } [17:27:46.731] }) [17:27:46.731] } [17:27:46.731] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:46.731] base::options(mc.cores = 1L) [17:27:46.731] } [17:27:46.731] ...future.strategy.old <- future::plan("list") [17:27:46.731] options(future.plan = NULL) [17:27:46.731] Sys.unsetenv("R_FUTURE_PLAN") [17:27:46.731] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:46.731] } [17:27:46.731] ...future.workdir <- getwd() [17:27:46.731] } [17:27:46.731] ...future.oldOptions <- base::as.list(base::.Options) [17:27:46.731] ...future.oldEnvVars <- base::Sys.getenv() [17:27:46.731] } [17:27:46.731] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:46.731] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:46.731] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:46.731] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:46.731] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:46.731] future.stdout.windows.reencode = NULL, width = 80L) [17:27:46.731] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:46.731] base::names(...future.oldOptions)) [17:27:46.731] } [17:27:46.731] if (FALSE) { [17:27:46.731] } [17:27:46.731] else { [17:27:46.731] if (TRUE) { [17:27:46.731] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:46.731] open = "w") [17:27:46.731] } [17:27:46.731] else { [17:27:46.731] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:46.731] windows = "NUL", "/dev/null"), open = "w") [17:27:46.731] } [17:27:46.731] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:46.731] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:46.731] base::sink(type = "output", split = FALSE) [17:27:46.731] base::close(...future.stdout) [17:27:46.731] }, add = TRUE) [17:27:46.731] } [17:27:46.731] ...future.frame <- base::sys.nframe() [17:27:46.731] ...future.conditions <- base::list() [17:27:46.731] ...future.rng <- base::globalenv()$.Random.seed [17:27:46.731] if (FALSE) { [17:27:46.731] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:46.731] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:46.731] } [17:27:46.731] ...future.result <- base::tryCatch({ [17:27:46.731] base::withCallingHandlers({ [17:27:46.731] ...future.value <- base::withVisible(base::local({ [17:27:46.731] ...future.makeSendCondition <- base::local({ [17:27:46.731] sendCondition <- NULL [17:27:46.731] function(frame = 1L) { [17:27:46.731] if (is.function(sendCondition)) [17:27:46.731] return(sendCondition) [17:27:46.731] ns <- getNamespace("parallel") [17:27:46.731] if (exists("sendData", mode = "function", [17:27:46.731] envir = ns)) { [17:27:46.731] parallel_sendData <- get("sendData", mode = "function", [17:27:46.731] envir = ns) [17:27:46.731] envir <- sys.frame(frame) [17:27:46.731] master <- NULL [17:27:46.731] while (!identical(envir, .GlobalEnv) && [17:27:46.731] !identical(envir, emptyenv())) { [17:27:46.731] if (exists("master", mode = "list", envir = envir, [17:27:46.731] inherits = FALSE)) { [17:27:46.731] master <- get("master", mode = "list", [17:27:46.731] envir = envir, inherits = FALSE) [17:27:46.731] if (inherits(master, c("SOCKnode", [17:27:46.731] "SOCK0node"))) { [17:27:46.731] sendCondition <<- function(cond) { [17:27:46.731] data <- list(type = "VALUE", value = cond, [17:27:46.731] success = TRUE) [17:27:46.731] parallel_sendData(master, data) [17:27:46.731] } [17:27:46.731] return(sendCondition) [17:27:46.731] } [17:27:46.731] } [17:27:46.731] frame <- frame + 1L [17:27:46.731] envir <- sys.frame(frame) [17:27:46.731] } [17:27:46.731] } [17:27:46.731] sendCondition <<- function(cond) NULL [17:27:46.731] } [17:27:46.731] }) [17:27:46.731] withCallingHandlers({ [17:27:46.731] NA [17:27:46.731] }, immediateCondition = function(cond) { [17:27:46.731] sendCondition <- ...future.makeSendCondition() [17:27:46.731] sendCondition(cond) [17:27:46.731] muffleCondition <- function (cond, pattern = "^muffle") [17:27:46.731] { [17:27:46.731] inherits <- base::inherits [17:27:46.731] invokeRestart <- base::invokeRestart [17:27:46.731] is.null <- base::is.null [17:27:46.731] muffled <- FALSE [17:27:46.731] if (inherits(cond, "message")) { [17:27:46.731] muffled <- grepl(pattern, "muffleMessage") [17:27:46.731] if (muffled) [17:27:46.731] invokeRestart("muffleMessage") [17:27:46.731] } [17:27:46.731] else if (inherits(cond, "warning")) { [17:27:46.731] muffled <- grepl(pattern, "muffleWarning") [17:27:46.731] if (muffled) [17:27:46.731] invokeRestart("muffleWarning") [17:27:46.731] } [17:27:46.731] else if (inherits(cond, "condition")) { [17:27:46.731] if (!is.null(pattern)) { [17:27:46.731] computeRestarts <- base::computeRestarts [17:27:46.731] grepl <- base::grepl [17:27:46.731] restarts <- computeRestarts(cond) [17:27:46.731] for (restart in restarts) { [17:27:46.731] name <- restart$name [17:27:46.731] if (is.null(name)) [17:27:46.731] next [17:27:46.731] if (!grepl(pattern, name)) [17:27:46.731] next [17:27:46.731] invokeRestart(restart) [17:27:46.731] muffled <- TRUE [17:27:46.731] break [17:27:46.731] } [17:27:46.731] } [17:27:46.731] } [17:27:46.731] invisible(muffled) [17:27:46.731] } [17:27:46.731] muffleCondition(cond) [17:27:46.731] }) [17:27:46.731] })) [17:27:46.731] future::FutureResult(value = ...future.value$value, [17:27:46.731] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:46.731] ...future.rng), globalenv = if (FALSE) [17:27:46.731] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:46.731] ...future.globalenv.names)) [17:27:46.731] else NULL, started = ...future.startTime, version = "1.8") [17:27:46.731] }, condition = base::local({ [17:27:46.731] c <- base::c [17:27:46.731] inherits <- base::inherits [17:27:46.731] invokeRestart <- base::invokeRestart [17:27:46.731] length <- base::length [17:27:46.731] list <- base::list [17:27:46.731] seq.int <- base::seq.int [17:27:46.731] signalCondition <- base::signalCondition [17:27:46.731] sys.calls <- base::sys.calls [17:27:46.731] `[[` <- base::`[[` [17:27:46.731] `+` <- base::`+` [17:27:46.731] `<<-` <- base::`<<-` [17:27:46.731] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:46.731] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:46.731] 3L)] [17:27:46.731] } [17:27:46.731] function(cond) { [17:27:46.731] is_error <- inherits(cond, "error") [17:27:46.731] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:46.731] NULL) [17:27:46.731] if (is_error) { [17:27:46.731] sessionInformation <- function() { [17:27:46.731] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:46.731] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:46.731] search = base::search(), system = base::Sys.info()) [17:27:46.731] } [17:27:46.731] ...future.conditions[[length(...future.conditions) + [17:27:46.731] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:46.731] cond$call), session = sessionInformation(), [17:27:46.731] timestamp = base::Sys.time(), signaled = 0L) [17:27:46.731] signalCondition(cond) [17:27:46.731] } [17:27:46.731] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:46.731] "immediateCondition"))) { [17:27:46.731] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:46.731] ...future.conditions[[length(...future.conditions) + [17:27:46.731] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:46.731] if (TRUE && !signal) { [17:27:46.731] muffleCondition <- function (cond, pattern = "^muffle") [17:27:46.731] { [17:27:46.731] inherits <- base::inherits [17:27:46.731] invokeRestart <- base::invokeRestart [17:27:46.731] is.null <- base::is.null [17:27:46.731] muffled <- FALSE [17:27:46.731] if (inherits(cond, "message")) { [17:27:46.731] muffled <- grepl(pattern, "muffleMessage") [17:27:46.731] if (muffled) [17:27:46.731] invokeRestart("muffleMessage") [17:27:46.731] } [17:27:46.731] else if (inherits(cond, "warning")) { [17:27:46.731] muffled <- grepl(pattern, "muffleWarning") [17:27:46.731] if (muffled) [17:27:46.731] invokeRestart("muffleWarning") [17:27:46.731] } [17:27:46.731] else if (inherits(cond, "condition")) { [17:27:46.731] if (!is.null(pattern)) { [17:27:46.731] computeRestarts <- base::computeRestarts [17:27:46.731] grepl <- base::grepl [17:27:46.731] restarts <- computeRestarts(cond) [17:27:46.731] for (restart in restarts) { [17:27:46.731] name <- restart$name [17:27:46.731] if (is.null(name)) [17:27:46.731] next [17:27:46.731] if (!grepl(pattern, name)) [17:27:46.731] next [17:27:46.731] invokeRestart(restart) [17:27:46.731] muffled <- TRUE [17:27:46.731] break [17:27:46.731] } [17:27:46.731] } [17:27:46.731] } [17:27:46.731] invisible(muffled) [17:27:46.731] } [17:27:46.731] muffleCondition(cond, pattern = "^muffle") [17:27:46.731] } [17:27:46.731] } [17:27:46.731] else { [17:27:46.731] if (TRUE) { [17:27:46.731] muffleCondition <- function (cond, pattern = "^muffle") [17:27:46.731] { [17:27:46.731] inherits <- base::inherits [17:27:46.731] invokeRestart <- base::invokeRestart [17:27:46.731] is.null <- base::is.null [17:27:46.731] muffled <- FALSE [17:27:46.731] if (inherits(cond, "message")) { [17:27:46.731] muffled <- grepl(pattern, "muffleMessage") [17:27:46.731] if (muffled) [17:27:46.731] invokeRestart("muffleMessage") [17:27:46.731] } [17:27:46.731] else if (inherits(cond, "warning")) { [17:27:46.731] muffled <- grepl(pattern, "muffleWarning") [17:27:46.731] if (muffled) [17:27:46.731] invokeRestart("muffleWarning") [17:27:46.731] } [17:27:46.731] else if (inherits(cond, "condition")) { [17:27:46.731] if (!is.null(pattern)) { [17:27:46.731] computeRestarts <- base::computeRestarts [17:27:46.731] grepl <- base::grepl [17:27:46.731] restarts <- computeRestarts(cond) [17:27:46.731] for (restart in restarts) { [17:27:46.731] name <- restart$name [17:27:46.731] if (is.null(name)) [17:27:46.731] next [17:27:46.731] if (!grepl(pattern, name)) [17:27:46.731] next [17:27:46.731] invokeRestart(restart) [17:27:46.731] muffled <- TRUE [17:27:46.731] break [17:27:46.731] } [17:27:46.731] } [17:27:46.731] } [17:27:46.731] invisible(muffled) [17:27:46.731] } [17:27:46.731] muffleCondition(cond, pattern = "^muffle") [17:27:46.731] } [17:27:46.731] } [17:27:46.731] } [17:27:46.731] })) [17:27:46.731] }, error = function(ex) { [17:27:46.731] base::structure(base::list(value = NULL, visible = NULL, [17:27:46.731] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:46.731] ...future.rng), started = ...future.startTime, [17:27:46.731] finished = Sys.time(), session_uuid = NA_character_, [17:27:46.731] version = "1.8"), class = "FutureResult") [17:27:46.731] }, finally = { [17:27:46.731] if (!identical(...future.workdir, getwd())) [17:27:46.731] setwd(...future.workdir) [17:27:46.731] { [17:27:46.731] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:46.731] ...future.oldOptions$nwarnings <- NULL [17:27:46.731] } [17:27:46.731] base::options(...future.oldOptions) [17:27:46.731] if (.Platform$OS.type == "windows") { [17:27:46.731] old_names <- names(...future.oldEnvVars) [17:27:46.731] envs <- base::Sys.getenv() [17:27:46.731] names <- names(envs) [17:27:46.731] common <- intersect(names, old_names) [17:27:46.731] added <- setdiff(names, old_names) [17:27:46.731] removed <- setdiff(old_names, names) [17:27:46.731] changed <- common[...future.oldEnvVars[common] != [17:27:46.731] envs[common]] [17:27:46.731] NAMES <- toupper(changed) [17:27:46.731] args <- list() [17:27:46.731] for (kk in seq_along(NAMES)) { [17:27:46.731] name <- changed[[kk]] [17:27:46.731] NAME <- NAMES[[kk]] [17:27:46.731] if (name != NAME && is.element(NAME, old_names)) [17:27:46.731] next [17:27:46.731] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:46.731] } [17:27:46.731] NAMES <- toupper(added) [17:27:46.731] for (kk in seq_along(NAMES)) { [17:27:46.731] name <- added[[kk]] [17:27:46.731] NAME <- NAMES[[kk]] [17:27:46.731] if (name != NAME && is.element(NAME, old_names)) [17:27:46.731] next [17:27:46.731] args[[name]] <- "" [17:27:46.731] } [17:27:46.731] NAMES <- toupper(removed) [17:27:46.731] for (kk in seq_along(NAMES)) { [17:27:46.731] name <- removed[[kk]] [17:27:46.731] NAME <- NAMES[[kk]] [17:27:46.731] if (name != NAME && is.element(NAME, old_names)) [17:27:46.731] next [17:27:46.731] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:46.731] } [17:27:46.731] if (length(args) > 0) [17:27:46.731] base::do.call(base::Sys.setenv, args = args) [17:27:46.731] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:46.731] } [17:27:46.731] else { [17:27:46.731] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:46.731] } [17:27:46.731] { [17:27:46.731] if (base::length(...future.futureOptionsAdded) > [17:27:46.731] 0L) { [17:27:46.731] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:46.731] base::names(opts) <- ...future.futureOptionsAdded [17:27:46.731] base::options(opts) [17:27:46.731] } [17:27:46.731] { [17:27:46.731] { [17:27:46.731] base::options(mc.cores = ...future.mc.cores.old) [17:27:46.731] NULL [17:27:46.731] } [17:27:46.731] options(future.plan = NULL) [17:27:46.731] if (is.na(NA_character_)) [17:27:46.731] Sys.unsetenv("R_FUTURE_PLAN") [17:27:46.731] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:46.731] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:46.731] .init = FALSE) [17:27:46.731] } [17:27:46.731] } [17:27:46.731] } [17:27:46.731] }) [17:27:46.731] if (TRUE) { [17:27:46.731] base::sink(type = "output", split = FALSE) [17:27:46.731] if (TRUE) { [17:27:46.731] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:46.731] } [17:27:46.731] else { [17:27:46.731] ...future.result["stdout"] <- base::list(NULL) [17:27:46.731] } [17:27:46.731] base::close(...future.stdout) [17:27:46.731] ...future.stdout <- NULL [17:27:46.731] } [17:27:46.731] ...future.result$conditions <- ...future.conditions [17:27:46.731] ...future.result$finished <- base::Sys.time() [17:27:46.731] ...future.result [17:27:46.731] } [17:27:46.853] MultisessionFuture started [17:27:46.854] result() for ClusterFuture ... [17:27:46.854] receiveMessageFromWorker() for ClusterFuture ... [17:27:46.855] - Validating connection of MultisessionFuture [17:27:46.943] - received message: FutureResult [17:27:46.944] - Received FutureResult [17:27:46.950] - Erased future from FutureRegistry [17:27:46.950] result() for ClusterFuture ... [17:27:46.950] - result already collected: FutureResult [17:27:46.951] result() for ClusterFuture ... done [17:27:46.951] receiveMessageFromWorker() for ClusterFuture ... done [17:27:46.951] result() for ClusterFuture ... done [17:27:46.952] result() for ClusterFuture ... [17:27:46.952] - result already collected: FutureResult [17:27:46.952] result() for ClusterFuture ... done [17:27:46.953] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:27:46.957] plan(): nbrOfWorkers() = 2 [17:27:46.957] getGlobalsAndPackages() ... [17:27:46.957] Searching for globals... [17:27:46.963] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [17:27:46.963] Searching for globals ... DONE [17:27:46.964] Resolving globals: FALSE [17:27:46.965] The total size of the 1 globals is 2.53 KiB (2591 bytes) [17:27:46.966] The total size of the 1 globals exported for future expression ('{; my_fcn; }') is 2.53 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'my_fcn' (2.53 KiB of class 'function') [17:27:46.966] - globals: [1] 'my_fcn' [17:27:46.967] [17:27:46.967] getGlobalsAndPackages() ... DONE [17:27:46.967] run() for 'Future' ... [17:27:46.968] - state: 'created' [17:27:46.968] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:46.989] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:46.989] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:46.990] - Field: 'node' [17:27:46.990] - Field: 'label' [17:27:46.990] - Field: 'local' [17:27:46.991] - Field: 'owner' [17:27:46.991] - Field: 'envir' [17:27:46.991] - Field: 'workers' [17:27:46.992] - Field: 'packages' [17:27:46.992] - Field: 'gc' [17:27:46.993] - Field: 'conditions' [17:27:46.993] - Field: 'persistent' [17:27:46.993] - Field: 'expr' [17:27:46.994] - Field: 'uuid' [17:27:46.994] - Field: 'seed' [17:27:46.994] - Field: 'version' [17:27:46.995] - Field: 'result' [17:27:46.995] - Field: 'asynchronous' [17:27:46.996] - Field: 'calls' [17:27:46.996] - Field: 'globals' [17:27:46.996] - Field: 'stdout' [17:27:46.997] - Field: 'earlySignal' [17:27:46.997] - Field: 'lazy' [17:27:46.997] - Field: 'state' [17:27:46.998] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:46.998] - Launch lazy future ... [17:27:46.999] Packages needed by the future expression (n = 0): [17:27:46.999] Packages needed by future strategies (n = 0): [17:27:47.000] { [17:27:47.000] { [17:27:47.000] { [17:27:47.000] ...future.startTime <- base::Sys.time() [17:27:47.000] { [17:27:47.000] { [17:27:47.000] { [17:27:47.000] { [17:27:47.000] base::local({ [17:27:47.000] has_future <- base::requireNamespace("future", [17:27:47.000] quietly = TRUE) [17:27:47.000] if (has_future) { [17:27:47.000] ns <- base::getNamespace("future") [17:27:47.000] version <- ns[[".package"]][["version"]] [17:27:47.000] if (is.null(version)) [17:27:47.000] version <- utils::packageVersion("future") [17:27:47.000] } [17:27:47.000] else { [17:27:47.000] version <- NULL [17:27:47.000] } [17:27:47.000] if (!has_future || version < "1.8.0") { [17:27:47.000] info <- base::c(r_version = base::gsub("R version ", [17:27:47.000] "", base::R.version$version.string), [17:27:47.000] platform = base::sprintf("%s (%s-bit)", [17:27:47.000] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:47.000] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:47.000] "release", "version")], collapse = " "), [17:27:47.000] hostname = base::Sys.info()[["nodename"]]) [17:27:47.000] info <- base::sprintf("%s: %s", base::names(info), [17:27:47.000] info) [17:27:47.000] info <- base::paste(info, collapse = "; ") [17:27:47.000] if (!has_future) { [17:27:47.000] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:47.000] info) [17:27:47.000] } [17:27:47.000] else { [17:27:47.000] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:47.000] info, version) [17:27:47.000] } [17:27:47.000] base::stop(msg) [17:27:47.000] } [17:27:47.000] }) [17:27:47.000] } [17:27:47.000] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:47.000] base::options(mc.cores = 1L) [17:27:47.000] } [17:27:47.000] ...future.strategy.old <- future::plan("list") [17:27:47.000] options(future.plan = NULL) [17:27:47.000] Sys.unsetenv("R_FUTURE_PLAN") [17:27:47.000] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:47.000] } [17:27:47.000] ...future.workdir <- getwd() [17:27:47.000] } [17:27:47.000] ...future.oldOptions <- base::as.list(base::.Options) [17:27:47.000] ...future.oldEnvVars <- base::Sys.getenv() [17:27:47.000] } [17:27:47.000] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:47.000] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:47.000] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:47.000] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:47.000] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:47.000] future.stdout.windows.reencode = NULL, width = 80L) [17:27:47.000] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:47.000] base::names(...future.oldOptions)) [17:27:47.000] } [17:27:47.000] if (FALSE) { [17:27:47.000] } [17:27:47.000] else { [17:27:47.000] if (TRUE) { [17:27:47.000] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:47.000] open = "w") [17:27:47.000] } [17:27:47.000] else { [17:27:47.000] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:47.000] windows = "NUL", "/dev/null"), open = "w") [17:27:47.000] } [17:27:47.000] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:47.000] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:47.000] base::sink(type = "output", split = FALSE) [17:27:47.000] base::close(...future.stdout) [17:27:47.000] }, add = TRUE) [17:27:47.000] } [17:27:47.000] ...future.frame <- base::sys.nframe() [17:27:47.000] ...future.conditions <- base::list() [17:27:47.000] ...future.rng <- base::globalenv()$.Random.seed [17:27:47.000] if (FALSE) { [17:27:47.000] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:47.000] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:47.000] } [17:27:47.000] ...future.result <- base::tryCatch({ [17:27:47.000] base::withCallingHandlers({ [17:27:47.000] ...future.value <- base::withVisible(base::local({ [17:27:47.000] ...future.makeSendCondition <- base::local({ [17:27:47.000] sendCondition <- NULL [17:27:47.000] function(frame = 1L) { [17:27:47.000] if (is.function(sendCondition)) [17:27:47.000] return(sendCondition) [17:27:47.000] ns <- getNamespace("parallel") [17:27:47.000] if (exists("sendData", mode = "function", [17:27:47.000] envir = ns)) { [17:27:47.000] parallel_sendData <- get("sendData", mode = "function", [17:27:47.000] envir = ns) [17:27:47.000] envir <- sys.frame(frame) [17:27:47.000] master <- NULL [17:27:47.000] while (!identical(envir, .GlobalEnv) && [17:27:47.000] !identical(envir, emptyenv())) { [17:27:47.000] if (exists("master", mode = "list", envir = envir, [17:27:47.000] inherits = FALSE)) { [17:27:47.000] master <- get("master", mode = "list", [17:27:47.000] envir = envir, inherits = FALSE) [17:27:47.000] if (inherits(master, c("SOCKnode", [17:27:47.000] "SOCK0node"))) { [17:27:47.000] sendCondition <<- function(cond) { [17:27:47.000] data <- list(type = "VALUE", value = cond, [17:27:47.000] success = TRUE) [17:27:47.000] parallel_sendData(master, data) [17:27:47.000] } [17:27:47.000] return(sendCondition) [17:27:47.000] } [17:27:47.000] } [17:27:47.000] frame <- frame + 1L [17:27:47.000] envir <- sys.frame(frame) [17:27:47.000] } [17:27:47.000] } [17:27:47.000] sendCondition <<- function(cond) NULL [17:27:47.000] } [17:27:47.000] }) [17:27:47.000] withCallingHandlers({ [17:27:47.000] { [17:27:47.000] my_fcn [17:27:47.000] } [17:27:47.000] }, immediateCondition = function(cond) { [17:27:47.000] sendCondition <- ...future.makeSendCondition() [17:27:47.000] sendCondition(cond) [17:27:47.000] muffleCondition <- function (cond, pattern = "^muffle") [17:27:47.000] { [17:27:47.000] inherits <- base::inherits [17:27:47.000] invokeRestart <- base::invokeRestart [17:27:47.000] is.null <- base::is.null [17:27:47.000] muffled <- FALSE [17:27:47.000] if (inherits(cond, "message")) { [17:27:47.000] muffled <- grepl(pattern, "muffleMessage") [17:27:47.000] if (muffled) [17:27:47.000] invokeRestart("muffleMessage") [17:27:47.000] } [17:27:47.000] else if (inherits(cond, "warning")) { [17:27:47.000] muffled <- grepl(pattern, "muffleWarning") [17:27:47.000] if (muffled) [17:27:47.000] invokeRestart("muffleWarning") [17:27:47.000] } [17:27:47.000] else if (inherits(cond, "condition")) { [17:27:47.000] if (!is.null(pattern)) { [17:27:47.000] computeRestarts <- base::computeRestarts [17:27:47.000] grepl <- base::grepl [17:27:47.000] restarts <- computeRestarts(cond) [17:27:47.000] for (restart in restarts) { [17:27:47.000] name <- restart$name [17:27:47.000] if (is.null(name)) [17:27:47.000] next [17:27:47.000] if (!grepl(pattern, name)) [17:27:47.000] next [17:27:47.000] invokeRestart(restart) [17:27:47.000] muffled <- TRUE [17:27:47.000] break [17:27:47.000] } [17:27:47.000] } [17:27:47.000] } [17:27:47.000] invisible(muffled) [17:27:47.000] } [17:27:47.000] muffleCondition(cond) [17:27:47.000] }) [17:27:47.000] })) [17:27:47.000] future::FutureResult(value = ...future.value$value, [17:27:47.000] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:47.000] ...future.rng), globalenv = if (FALSE) [17:27:47.000] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:47.000] ...future.globalenv.names)) [17:27:47.000] else NULL, started = ...future.startTime, version = "1.8") [17:27:47.000] }, condition = base::local({ [17:27:47.000] c <- base::c [17:27:47.000] inherits <- base::inherits [17:27:47.000] invokeRestart <- base::invokeRestart [17:27:47.000] length <- base::length [17:27:47.000] list <- base::list [17:27:47.000] seq.int <- base::seq.int [17:27:47.000] signalCondition <- base::signalCondition [17:27:47.000] sys.calls <- base::sys.calls [17:27:47.000] `[[` <- base::`[[` [17:27:47.000] `+` <- base::`+` [17:27:47.000] `<<-` <- base::`<<-` [17:27:47.000] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:47.000] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:47.000] 3L)] [17:27:47.000] } [17:27:47.000] function(cond) { [17:27:47.000] is_error <- inherits(cond, "error") [17:27:47.000] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:47.000] NULL) [17:27:47.000] if (is_error) { [17:27:47.000] sessionInformation <- function() { [17:27:47.000] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:47.000] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:47.000] search = base::search(), system = base::Sys.info()) [17:27:47.000] } [17:27:47.000] ...future.conditions[[length(...future.conditions) + [17:27:47.000] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:47.000] cond$call), session = sessionInformation(), [17:27:47.000] timestamp = base::Sys.time(), signaled = 0L) [17:27:47.000] signalCondition(cond) [17:27:47.000] } [17:27:47.000] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:47.000] "immediateCondition"))) { [17:27:47.000] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:47.000] ...future.conditions[[length(...future.conditions) + [17:27:47.000] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:47.000] if (TRUE && !signal) { [17:27:47.000] muffleCondition <- function (cond, pattern = "^muffle") [17:27:47.000] { [17:27:47.000] inherits <- base::inherits [17:27:47.000] invokeRestart <- base::invokeRestart [17:27:47.000] is.null <- base::is.null [17:27:47.000] muffled <- FALSE [17:27:47.000] if (inherits(cond, "message")) { [17:27:47.000] muffled <- grepl(pattern, "muffleMessage") [17:27:47.000] if (muffled) [17:27:47.000] invokeRestart("muffleMessage") [17:27:47.000] } [17:27:47.000] else if (inherits(cond, "warning")) { [17:27:47.000] muffled <- grepl(pattern, "muffleWarning") [17:27:47.000] if (muffled) [17:27:47.000] invokeRestart("muffleWarning") [17:27:47.000] } [17:27:47.000] else if (inherits(cond, "condition")) { [17:27:47.000] if (!is.null(pattern)) { [17:27:47.000] computeRestarts <- base::computeRestarts [17:27:47.000] grepl <- base::grepl [17:27:47.000] restarts <- computeRestarts(cond) [17:27:47.000] for (restart in restarts) { [17:27:47.000] name <- restart$name [17:27:47.000] if (is.null(name)) [17:27:47.000] next [17:27:47.000] if (!grepl(pattern, name)) [17:27:47.000] next [17:27:47.000] invokeRestart(restart) [17:27:47.000] muffled <- TRUE [17:27:47.000] break [17:27:47.000] } [17:27:47.000] } [17:27:47.000] } [17:27:47.000] invisible(muffled) [17:27:47.000] } [17:27:47.000] muffleCondition(cond, pattern = "^muffle") [17:27:47.000] } [17:27:47.000] } [17:27:47.000] else { [17:27:47.000] if (TRUE) { [17:27:47.000] muffleCondition <- function (cond, pattern = "^muffle") [17:27:47.000] { [17:27:47.000] inherits <- base::inherits [17:27:47.000] invokeRestart <- base::invokeRestart [17:27:47.000] is.null <- base::is.null [17:27:47.000] muffled <- FALSE [17:27:47.000] if (inherits(cond, "message")) { [17:27:47.000] muffled <- grepl(pattern, "muffleMessage") [17:27:47.000] if (muffled) [17:27:47.000] invokeRestart("muffleMessage") [17:27:47.000] } [17:27:47.000] else if (inherits(cond, "warning")) { [17:27:47.000] muffled <- grepl(pattern, "muffleWarning") [17:27:47.000] if (muffled) [17:27:47.000] invokeRestart("muffleWarning") [17:27:47.000] } [17:27:47.000] else if (inherits(cond, "condition")) { [17:27:47.000] if (!is.null(pattern)) { [17:27:47.000] computeRestarts <- base::computeRestarts [17:27:47.000] grepl <- base::grepl [17:27:47.000] restarts <- computeRestarts(cond) [17:27:47.000] for (restart in restarts) { [17:27:47.000] name <- restart$name [17:27:47.000] if (is.null(name)) [17:27:47.000] next [17:27:47.000] if (!grepl(pattern, name)) [17:27:47.000] next [17:27:47.000] invokeRestart(restart) [17:27:47.000] muffled <- TRUE [17:27:47.000] break [17:27:47.000] } [17:27:47.000] } [17:27:47.000] } [17:27:47.000] invisible(muffled) [17:27:47.000] } [17:27:47.000] muffleCondition(cond, pattern = "^muffle") [17:27:47.000] } [17:27:47.000] } [17:27:47.000] } [17:27:47.000] })) [17:27:47.000] }, error = function(ex) { [17:27:47.000] base::structure(base::list(value = NULL, visible = NULL, [17:27:47.000] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:47.000] ...future.rng), started = ...future.startTime, [17:27:47.000] finished = Sys.time(), session_uuid = NA_character_, [17:27:47.000] version = "1.8"), class = "FutureResult") [17:27:47.000] }, finally = { [17:27:47.000] if (!identical(...future.workdir, getwd())) [17:27:47.000] setwd(...future.workdir) [17:27:47.000] { [17:27:47.000] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:47.000] ...future.oldOptions$nwarnings <- NULL [17:27:47.000] } [17:27:47.000] base::options(...future.oldOptions) [17:27:47.000] if (.Platform$OS.type == "windows") { [17:27:47.000] old_names <- names(...future.oldEnvVars) [17:27:47.000] envs <- base::Sys.getenv() [17:27:47.000] names <- names(envs) [17:27:47.000] common <- intersect(names, old_names) [17:27:47.000] added <- setdiff(names, old_names) [17:27:47.000] removed <- setdiff(old_names, names) [17:27:47.000] changed <- common[...future.oldEnvVars[common] != [17:27:47.000] envs[common]] [17:27:47.000] NAMES <- toupper(changed) [17:27:47.000] args <- list() [17:27:47.000] for (kk in seq_along(NAMES)) { [17:27:47.000] name <- changed[[kk]] [17:27:47.000] NAME <- NAMES[[kk]] [17:27:47.000] if (name != NAME && is.element(NAME, old_names)) [17:27:47.000] next [17:27:47.000] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:47.000] } [17:27:47.000] NAMES <- toupper(added) [17:27:47.000] for (kk in seq_along(NAMES)) { [17:27:47.000] name <- added[[kk]] [17:27:47.000] NAME <- NAMES[[kk]] [17:27:47.000] if (name != NAME && is.element(NAME, old_names)) [17:27:47.000] next [17:27:47.000] args[[name]] <- "" [17:27:47.000] } [17:27:47.000] NAMES <- toupper(removed) [17:27:47.000] for (kk in seq_along(NAMES)) { [17:27:47.000] name <- removed[[kk]] [17:27:47.000] NAME <- NAMES[[kk]] [17:27:47.000] if (name != NAME && is.element(NAME, old_names)) [17:27:47.000] next [17:27:47.000] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:47.000] } [17:27:47.000] if (length(args) > 0) [17:27:47.000] base::do.call(base::Sys.setenv, args = args) [17:27:47.000] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:47.000] } [17:27:47.000] else { [17:27:47.000] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:47.000] } [17:27:47.000] { [17:27:47.000] if (base::length(...future.futureOptionsAdded) > [17:27:47.000] 0L) { [17:27:47.000] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:47.000] base::names(opts) <- ...future.futureOptionsAdded [17:27:47.000] base::options(opts) [17:27:47.000] } [17:27:47.000] { [17:27:47.000] { [17:27:47.000] base::options(mc.cores = ...future.mc.cores.old) [17:27:47.000] NULL [17:27:47.000] } [17:27:47.000] options(future.plan = NULL) [17:27:47.000] if (is.na(NA_character_)) [17:27:47.000] Sys.unsetenv("R_FUTURE_PLAN") [17:27:47.000] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:47.000] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:47.000] .init = FALSE) [17:27:47.000] } [17:27:47.000] } [17:27:47.000] } [17:27:47.000] }) [17:27:47.000] if (TRUE) { [17:27:47.000] base::sink(type = "output", split = FALSE) [17:27:47.000] if (TRUE) { [17:27:47.000] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:47.000] } [17:27:47.000] else { [17:27:47.000] ...future.result["stdout"] <- base::list(NULL) [17:27:47.000] } [17:27:47.000] base::close(...future.stdout) [17:27:47.000] ...future.stdout <- NULL [17:27:47.000] } [17:27:47.000] ...future.result$conditions <- ...future.conditions [17:27:47.000] ...future.result$finished <- base::Sys.time() [17:27:47.000] ...future.result [17:27:47.000] } [17:27:47.009] Exporting 1 global objects (2.81 KiB) to cluster node #1 ... [17:27:47.009] Exporting 'my_fcn' (2.53 KiB) to cluster node #1 ... [17:27:47.010] Exporting 'my_fcn' (2.53 KiB) to cluster node #1 ... DONE [17:27:47.011] Exporting 1 global objects (2.81 KiB) to cluster node #1 ... DONE [17:27:47.012] MultisessionFuture started [17:27:47.012] - Launch lazy future ... done [17:27:47.012] run() for 'MultisessionFuture' ... done [17:27:47.013] result() for ClusterFuture ... [17:27:47.013] receiveMessageFromWorker() for ClusterFuture ... [17:27:47.013] - Validating connection of MultisessionFuture [17:27:47.038] - received message: FutureResult [17:27:47.038] - Received FutureResult [17:27:47.039] - Erased future from FutureRegistry [17:27:47.039] result() for ClusterFuture ... [17:27:47.039] - result already collected: FutureResult [17:27:47.039] result() for ClusterFuture ... done [17:27:47.040] receiveMessageFromWorker() for ClusterFuture ... done [17:27:47.040] result() for ClusterFuture ... done [17:27:47.040] result() for ClusterFuture ... [17:27:47.041] - result already collected: FutureResult [17:27:47.041] 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:27:47.042] getGlobalsAndPackages() ... [17:27:47.042] Searching for globals... [17:27:47.047] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [17:27:47.047] Searching for globals ... DONE [17:27:47.047] Resolving globals: FALSE [17:27:47.048] The total size of the 1 globals is 2.53 KiB (2591 bytes) [17:27:47.049] The total size of the 1 globals exported for future expression ('{; my_fcn(3); }') is 2.53 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'my_fcn' (2.53 KiB of class 'function') [17:27:47.049] - globals: [1] 'my_fcn' [17:27:47.050] [17:27:47.050] getGlobalsAndPackages() ... DONE [17:27:47.051] run() for 'Future' ... [17:27:47.051] - state: 'created' [17:27:47.051] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [17:27:47.070] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:27:47.071] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [17:27:47.071] - Field: 'node' [17:27:47.072] - Field: 'label' [17:27:47.072] - Field: 'local' [17:27:47.072] - Field: 'owner' [17:27:47.072] - Field: 'envir' [17:27:47.073] - Field: 'workers' [17:27:47.073] - Field: 'packages' [17:27:47.073] - Field: 'gc' [17:27:47.073] - Field: 'conditions' [17:27:47.074] - Field: 'persistent' [17:27:47.074] - Field: 'expr' [17:27:47.074] - Field: 'uuid' [17:27:47.074] - Field: 'seed' [17:27:47.075] - Field: 'version' [17:27:47.075] - Field: 'result' [17:27:47.075] - Field: 'asynchronous' [17:27:47.076] - Field: 'calls' [17:27:47.076] - Field: 'globals' [17:27:47.076] - Field: 'stdout' [17:27:47.076] - Field: 'earlySignal' [17:27:47.077] - Field: 'lazy' [17:27:47.077] - Field: 'state' [17:27:47.077] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [17:27:47.077] - Launch lazy future ... [17:27:47.078] Packages needed by the future expression (n = 0): [17:27:47.078] Packages needed by future strategies (n = 0): [17:27:47.079] { [17:27:47.079] { [17:27:47.079] { [17:27:47.079] ...future.startTime <- base::Sys.time() [17:27:47.079] { [17:27:47.079] { [17:27:47.079] { [17:27:47.079] { [17:27:47.079] base::local({ [17:27:47.079] has_future <- base::requireNamespace("future", [17:27:47.079] quietly = TRUE) [17:27:47.079] if (has_future) { [17:27:47.079] ns <- base::getNamespace("future") [17:27:47.079] version <- ns[[".package"]][["version"]] [17:27:47.079] if (is.null(version)) [17:27:47.079] version <- utils::packageVersion("future") [17:27:47.079] } [17:27:47.079] else { [17:27:47.079] version <- NULL [17:27:47.079] } [17:27:47.079] if (!has_future || version < "1.8.0") { [17:27:47.079] info <- base::c(r_version = base::gsub("R version ", [17:27:47.079] "", base::R.version$version.string), [17:27:47.079] platform = base::sprintf("%s (%s-bit)", [17:27:47.079] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:27:47.079] os = base::paste(base::Sys.info()[base::c("sysname", [17:27:47.079] "release", "version")], collapse = " "), [17:27:47.079] hostname = base::Sys.info()[["nodename"]]) [17:27:47.079] info <- base::sprintf("%s: %s", base::names(info), [17:27:47.079] info) [17:27:47.079] info <- base::paste(info, collapse = "; ") [17:27:47.079] if (!has_future) { [17:27:47.079] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:27:47.079] info) [17:27:47.079] } [17:27:47.079] else { [17:27:47.079] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:27:47.079] info, version) [17:27:47.079] } [17:27:47.079] base::stop(msg) [17:27:47.079] } [17:27:47.079] }) [17:27:47.079] } [17:27:47.079] ...future.mc.cores.old <- base::getOption("mc.cores") [17:27:47.079] base::options(mc.cores = 1L) [17:27:47.079] } [17:27:47.079] ...future.strategy.old <- future::plan("list") [17:27:47.079] options(future.plan = NULL) [17:27:47.079] Sys.unsetenv("R_FUTURE_PLAN") [17:27:47.079] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:27:47.079] } [17:27:47.079] ...future.workdir <- getwd() [17:27:47.079] } [17:27:47.079] ...future.oldOptions <- base::as.list(base::.Options) [17:27:47.079] ...future.oldEnvVars <- base::Sys.getenv() [17:27:47.079] } [17:27:47.079] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:27:47.079] future.globals.maxSize = NULL, future.globals.method = NULL, [17:27:47.079] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:27:47.079] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:27:47.079] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:27:47.079] future.stdout.windows.reencode = NULL, width = 80L) [17:27:47.079] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:27:47.079] base::names(...future.oldOptions)) [17:27:47.079] } [17:27:47.079] if (FALSE) { [17:27:47.079] } [17:27:47.079] else { [17:27:47.079] if (TRUE) { [17:27:47.079] ...future.stdout <- base::rawConnection(base::raw(0L), [17:27:47.079] open = "w") [17:27:47.079] } [17:27:47.079] else { [17:27:47.079] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:27:47.079] windows = "NUL", "/dev/null"), open = "w") [17:27:47.079] } [17:27:47.079] base::sink(...future.stdout, type = "output", split = FALSE) [17:27:47.079] base::on.exit(if (!base::is.null(...future.stdout)) { [17:27:47.079] base::sink(type = "output", split = FALSE) [17:27:47.079] base::close(...future.stdout) [17:27:47.079] }, add = TRUE) [17:27:47.079] } [17:27:47.079] ...future.frame <- base::sys.nframe() [17:27:47.079] ...future.conditions <- base::list() [17:27:47.079] ...future.rng <- base::globalenv()$.Random.seed [17:27:47.079] if (FALSE) { [17:27:47.079] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:27:47.079] "...future.value", "...future.globalenv.names", ".Random.seed") [17:27:47.079] } [17:27:47.079] ...future.result <- base::tryCatch({ [17:27:47.079] base::withCallingHandlers({ [17:27:47.079] ...future.value <- base::withVisible(base::local({ [17:27:47.079] ...future.makeSendCondition <- base::local({ [17:27:47.079] sendCondition <- NULL [17:27:47.079] function(frame = 1L) { [17:27:47.079] if (is.function(sendCondition)) [17:27:47.079] return(sendCondition) [17:27:47.079] ns <- getNamespace("parallel") [17:27:47.079] if (exists("sendData", mode = "function", [17:27:47.079] envir = ns)) { [17:27:47.079] parallel_sendData <- get("sendData", mode = "function", [17:27:47.079] envir = ns) [17:27:47.079] envir <- sys.frame(frame) [17:27:47.079] master <- NULL [17:27:47.079] while (!identical(envir, .GlobalEnv) && [17:27:47.079] !identical(envir, emptyenv())) { [17:27:47.079] if (exists("master", mode = "list", envir = envir, [17:27:47.079] inherits = FALSE)) { [17:27:47.079] master <- get("master", mode = "list", [17:27:47.079] envir = envir, inherits = FALSE) [17:27:47.079] if (inherits(master, c("SOCKnode", [17:27:47.079] "SOCK0node"))) { [17:27:47.079] sendCondition <<- function(cond) { [17:27:47.079] data <- list(type = "VALUE", value = cond, [17:27:47.079] success = TRUE) [17:27:47.079] parallel_sendData(master, data) [17:27:47.079] } [17:27:47.079] return(sendCondition) [17:27:47.079] } [17:27:47.079] } [17:27:47.079] frame <- frame + 1L [17:27:47.079] envir <- sys.frame(frame) [17:27:47.079] } [17:27:47.079] } [17:27:47.079] sendCondition <<- function(cond) NULL [17:27:47.079] } [17:27:47.079] }) [17:27:47.079] withCallingHandlers({ [17:27:47.079] { [17:27:47.079] my_fcn(3) [17:27:47.079] } [17:27:47.079] }, immediateCondition = function(cond) { [17:27:47.079] sendCondition <- ...future.makeSendCondition() [17:27:47.079] sendCondition(cond) [17:27:47.079] muffleCondition <- function (cond, pattern = "^muffle") [17:27:47.079] { [17:27:47.079] inherits <- base::inherits [17:27:47.079] invokeRestart <- base::invokeRestart [17:27:47.079] is.null <- base::is.null [17:27:47.079] muffled <- FALSE [17:27:47.079] if (inherits(cond, "message")) { [17:27:47.079] muffled <- grepl(pattern, "muffleMessage") [17:27:47.079] if (muffled) [17:27:47.079] invokeRestart("muffleMessage") [17:27:47.079] } [17:27:47.079] else if (inherits(cond, "warning")) { [17:27:47.079] muffled <- grepl(pattern, "muffleWarning") [17:27:47.079] if (muffled) [17:27:47.079] invokeRestart("muffleWarning") [17:27:47.079] } [17:27:47.079] else if (inherits(cond, "condition")) { [17:27:47.079] if (!is.null(pattern)) { [17:27:47.079] computeRestarts <- base::computeRestarts [17:27:47.079] grepl <- base::grepl [17:27:47.079] restarts <- computeRestarts(cond) [17:27:47.079] for (restart in restarts) { [17:27:47.079] name <- restart$name [17:27:47.079] if (is.null(name)) [17:27:47.079] next [17:27:47.079] if (!grepl(pattern, name)) [17:27:47.079] next [17:27:47.079] invokeRestart(restart) [17:27:47.079] muffled <- TRUE [17:27:47.079] break [17:27:47.079] } [17:27:47.079] } [17:27:47.079] } [17:27:47.079] invisible(muffled) [17:27:47.079] } [17:27:47.079] muffleCondition(cond) [17:27:47.079] }) [17:27:47.079] })) [17:27:47.079] future::FutureResult(value = ...future.value$value, [17:27:47.079] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:27:47.079] ...future.rng), globalenv = if (FALSE) [17:27:47.079] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:27:47.079] ...future.globalenv.names)) [17:27:47.079] else NULL, started = ...future.startTime, version = "1.8") [17:27:47.079] }, condition = base::local({ [17:27:47.079] c <- base::c [17:27:47.079] inherits <- base::inherits [17:27:47.079] invokeRestart <- base::invokeRestart [17:27:47.079] length <- base::length [17:27:47.079] list <- base::list [17:27:47.079] seq.int <- base::seq.int [17:27:47.079] signalCondition <- base::signalCondition [17:27:47.079] sys.calls <- base::sys.calls [17:27:47.079] `[[` <- base::`[[` [17:27:47.079] `+` <- base::`+` [17:27:47.079] `<<-` <- base::`<<-` [17:27:47.079] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:27:47.079] calls[seq.int(from = from + 12L, to = length(calls) - [17:27:47.079] 3L)] [17:27:47.079] } [17:27:47.079] function(cond) { [17:27:47.079] is_error <- inherits(cond, "error") [17:27:47.079] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:27:47.079] NULL) [17:27:47.079] if (is_error) { [17:27:47.079] sessionInformation <- function() { [17:27:47.079] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:27:47.079] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:27:47.079] search = base::search(), system = base::Sys.info()) [17:27:47.079] } [17:27:47.079] ...future.conditions[[length(...future.conditions) + [17:27:47.079] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:27:47.079] cond$call), session = sessionInformation(), [17:27:47.079] timestamp = base::Sys.time(), signaled = 0L) [17:27:47.079] signalCondition(cond) [17:27:47.079] } [17:27:47.079] else if (!ignore && TRUE && inherits(cond, c("condition", [17:27:47.079] "immediateCondition"))) { [17:27:47.079] signal <- TRUE && inherits(cond, "immediateCondition") [17:27:47.079] ...future.conditions[[length(...future.conditions) + [17:27:47.079] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:27:47.079] if (TRUE && !signal) { [17:27:47.079] muffleCondition <- function (cond, pattern = "^muffle") [17:27:47.079] { [17:27:47.079] inherits <- base::inherits [17:27:47.079] invokeRestart <- base::invokeRestart [17:27:47.079] is.null <- base::is.null [17:27:47.079] muffled <- FALSE [17:27:47.079] if (inherits(cond, "message")) { [17:27:47.079] muffled <- grepl(pattern, "muffleMessage") [17:27:47.079] if (muffled) [17:27:47.079] invokeRestart("muffleMessage") [17:27:47.079] } [17:27:47.079] else if (inherits(cond, "warning")) { [17:27:47.079] muffled <- grepl(pattern, "muffleWarning") [17:27:47.079] if (muffled) [17:27:47.079] invokeRestart("muffleWarning") [17:27:47.079] } [17:27:47.079] else if (inherits(cond, "condition")) { [17:27:47.079] if (!is.null(pattern)) { [17:27:47.079] computeRestarts <- base::computeRestarts [17:27:47.079] grepl <- base::grepl [17:27:47.079] restarts <- computeRestarts(cond) [17:27:47.079] for (restart in restarts) { [17:27:47.079] name <- restart$name [17:27:47.079] if (is.null(name)) [17:27:47.079] next [17:27:47.079] if (!grepl(pattern, name)) [17:27:47.079] next [17:27:47.079] invokeRestart(restart) [17:27:47.079] muffled <- TRUE [17:27:47.079] break [17:27:47.079] } [17:27:47.079] } [17:27:47.079] } [17:27:47.079] invisible(muffled) [17:27:47.079] } [17:27:47.079] muffleCondition(cond, pattern = "^muffle") [17:27:47.079] } [17:27:47.079] } [17:27:47.079] else { [17:27:47.079] if (TRUE) { [17:27:47.079] muffleCondition <- function (cond, pattern = "^muffle") [17:27:47.079] { [17:27:47.079] inherits <- base::inherits [17:27:47.079] invokeRestart <- base::invokeRestart [17:27:47.079] is.null <- base::is.null [17:27:47.079] muffled <- FALSE [17:27:47.079] if (inherits(cond, "message")) { [17:27:47.079] muffled <- grepl(pattern, "muffleMessage") [17:27:47.079] if (muffled) [17:27:47.079] invokeRestart("muffleMessage") [17:27:47.079] } [17:27:47.079] else if (inherits(cond, "warning")) { [17:27:47.079] muffled <- grepl(pattern, "muffleWarning") [17:27:47.079] if (muffled) [17:27:47.079] invokeRestart("muffleWarning") [17:27:47.079] } [17:27:47.079] else if (inherits(cond, "condition")) { [17:27:47.079] if (!is.null(pattern)) { [17:27:47.079] computeRestarts <- base::computeRestarts [17:27:47.079] grepl <- base::grepl [17:27:47.079] restarts <- computeRestarts(cond) [17:27:47.079] for (restart in restarts) { [17:27:47.079] name <- restart$name [17:27:47.079] if (is.null(name)) [17:27:47.079] next [17:27:47.079] if (!grepl(pattern, name)) [17:27:47.079] next [17:27:47.079] invokeRestart(restart) [17:27:47.079] muffled <- TRUE [17:27:47.079] break [17:27:47.079] } [17:27:47.079] } [17:27:47.079] } [17:27:47.079] invisible(muffled) [17:27:47.079] } [17:27:47.079] muffleCondition(cond, pattern = "^muffle") [17:27:47.079] } [17:27:47.079] } [17:27:47.079] } [17:27:47.079] })) [17:27:47.079] }, error = function(ex) { [17:27:47.079] base::structure(base::list(value = NULL, visible = NULL, [17:27:47.079] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:27:47.079] ...future.rng), started = ...future.startTime, [17:27:47.079] finished = Sys.time(), session_uuid = NA_character_, [17:27:47.079] version = "1.8"), class = "FutureResult") [17:27:47.079] }, finally = { [17:27:47.079] if (!identical(...future.workdir, getwd())) [17:27:47.079] setwd(...future.workdir) [17:27:47.079] { [17:27:47.079] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:27:47.079] ...future.oldOptions$nwarnings <- NULL [17:27:47.079] } [17:27:47.079] base::options(...future.oldOptions) [17:27:47.079] if (.Platform$OS.type == "windows") { [17:27:47.079] old_names <- names(...future.oldEnvVars) [17:27:47.079] envs <- base::Sys.getenv() [17:27:47.079] names <- names(envs) [17:27:47.079] common <- intersect(names, old_names) [17:27:47.079] added <- setdiff(names, old_names) [17:27:47.079] removed <- setdiff(old_names, names) [17:27:47.079] changed <- common[...future.oldEnvVars[common] != [17:27:47.079] envs[common]] [17:27:47.079] NAMES <- toupper(changed) [17:27:47.079] args <- list() [17:27:47.079] for (kk in seq_along(NAMES)) { [17:27:47.079] name <- changed[[kk]] [17:27:47.079] NAME <- NAMES[[kk]] [17:27:47.079] if (name != NAME && is.element(NAME, old_names)) [17:27:47.079] next [17:27:47.079] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:47.079] } [17:27:47.079] NAMES <- toupper(added) [17:27:47.079] for (kk in seq_along(NAMES)) { [17:27:47.079] name <- added[[kk]] [17:27:47.079] NAME <- NAMES[[kk]] [17:27:47.079] if (name != NAME && is.element(NAME, old_names)) [17:27:47.079] next [17:27:47.079] args[[name]] <- "" [17:27:47.079] } [17:27:47.079] NAMES <- toupper(removed) [17:27:47.079] for (kk in seq_along(NAMES)) { [17:27:47.079] name <- removed[[kk]] [17:27:47.079] NAME <- NAMES[[kk]] [17:27:47.079] if (name != NAME && is.element(NAME, old_names)) [17:27:47.079] next [17:27:47.079] args[[name]] <- ...future.oldEnvVars[[name]] [17:27:47.079] } [17:27:47.079] if (length(args) > 0) [17:27:47.079] base::do.call(base::Sys.setenv, args = args) [17:27:47.079] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:27:47.079] } [17:27:47.079] else { [17:27:47.079] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:27:47.079] } [17:27:47.079] { [17:27:47.079] if (base::length(...future.futureOptionsAdded) > [17:27:47.079] 0L) { [17:27:47.079] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:27:47.079] base::names(opts) <- ...future.futureOptionsAdded [17:27:47.079] base::options(opts) [17:27:47.079] } [17:27:47.079] { [17:27:47.079] { [17:27:47.079] base::options(mc.cores = ...future.mc.cores.old) [17:27:47.079] NULL [17:27:47.079] } [17:27:47.079] options(future.plan = NULL) [17:27:47.079] if (is.na(NA_character_)) [17:27:47.079] Sys.unsetenv("R_FUTURE_PLAN") [17:27:47.079] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:27:47.079] future::plan(...future.strategy.old, .cleanup = FALSE, [17:27:47.079] .init = FALSE) [17:27:47.079] } [17:27:47.079] } [17:27:47.079] } [17:27:47.079] }) [17:27:47.079] if (TRUE) { [17:27:47.079] base::sink(type = "output", split = FALSE) [17:27:47.079] if (TRUE) { [17:27:47.079] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:27:47.079] } [17:27:47.079] else { [17:27:47.079] ...future.result["stdout"] <- base::list(NULL) [17:27:47.079] } [17:27:47.079] base::close(...future.stdout) [17:27:47.079] ...future.stdout <- NULL [17:27:47.079] } [17:27:47.079] ...future.result$conditions <- ...future.conditions [17:27:47.079] ...future.result$finished <- base::Sys.time() [17:27:47.079] ...future.result [17:27:47.079] } [17:27:47.087] Exporting 1 global objects (2.81 KiB) to cluster node #1 ... [17:27:47.087] Exporting 'my_fcn' (2.53 KiB) to cluster node #1 ... [17:27:47.088] Exporting 'my_fcn' (2.53 KiB) to cluster node #1 ... DONE [17:27:47.088] Exporting 1 global objects (2.81 KiB) to cluster node #1 ... DONE [17:27:47.089] MultisessionFuture started [17:27:47.090] - Launch lazy future ... done [17:27:47.090] run() for 'MultisessionFuture' ... done [17:27:47.090] result() for ClusterFuture ... [17:27:47.091] receiveMessageFromWorker() for ClusterFuture ... [17:27:47.091] - Validating connection of MultisessionFuture [17:27:47.118] - received message: FutureResult [17:27:47.119] - Received FutureResult [17:27:47.119] - Erased future from FutureRegistry [17:27:47.119] result() for ClusterFuture ... [17:27:47.120] - result already collected: FutureResult [17:27:47.120] result() for ClusterFuture ... done [17:27:47.120] receiveMessageFromWorker() for ClusterFuture ... done [17:27:47.121] result() for ClusterFuture ... done [17:27:47.121] result() for ClusterFuture ... [17:27:47.121] - result already collected: FutureResult [17:27:47.122] result() for ClusterFuture ... done [1] -3 > > message("*** Globals - S4 methods ... DONE") *** Globals - S4 methods ... DONE > > source("incl/end.R") [17:27:47.123] plan(): Setting new future strategy stack: [17:27:47.124] List of future strategies: [17:27:47.124] 1. FutureStrategy: [17:27:47.124] - args: function (..., envir = parent.frame(), workers = "") [17:27:47.124] - tweaked: FALSE [17:27:47.124] - call: future::plan(oplan) [17:27:47.137] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=205] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', 'RTOOLS44_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS44_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_NOTE_MISSING_PACKAGE_ANCHORS_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 0.73 0.20 1.89