Last updated on 2025-04-21 14:49:55 CEST.
Package | ERROR | NOTE | OK |
---|---|---|---|
ACNE | 6 | 7 | |
aroma.affymetrix | 9 | 4 | |
aroma.apd | 13 | ||
aroma.cn | 13 | ||
aroma.core | 9 | 4 | |
calmate | 13 | ||
dChipIO | 13 | ||
doFuture | 3 | 10 | |
future | 3 | 10 | |
future.apply | 13 | ||
future.batchtools | 6 | 7 | |
future.callr | 13 | ||
future.mirai | 13 | ||
future.tests | 13 | ||
futureverse | 13 | ||
globals | 13 | ||
listenv | 13 | ||
matrixStats | 13 | ||
parallelly | 13 | ||
port4me | 13 | ||
profmem | 13 | ||
progressr | 13 | ||
PSCBS | 2 | 11 | |
R.cache | 13 | ||
R.devices | 1 | 12 | |
R.filesets | 13 | ||
R.huge | 13 | ||
R.matlab | 13 | ||
R.methodsS3 | 13 | ||
R.oo | 13 | ||
R.rsp | 13 | ||
R.utils | 13 | ||
seguid | 13 | ||
startup | 13 | ||
TopDom | 13 |
Current CRAN status: NOTE: 6, OK: 7
Version: 0.9.1
Check: Rd cross-references
Result: NOTE
Found the following Rd file(s) with Rd \link{} targets missing package
anchors:
doACNE.Rd: AffymetrixCelSet, Verbose
Please provide package anchors for all Rd \link{} targets not in the
package itself and the base packages.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-windows-x86_64
Current CRAN status: NOTE: 9, OK: 4
Version: 3.2.2
Check: Rd cross-references
Result: NOTE
Found the following Rd file(s) with Rd \link{} targets missing package
anchors:
SmoothMultiarrayModel.Rd: ChromosomalModel,
CopyNumberSegmentationModel
byPath.AffymetrixFileSet.Rd: GenericDataFile
calculateBaseline.ChipEffectSet.Rd: getAverageFile
doCRMAv1.Rd: Verbose
doCRMAv2.Rd: Verbose
doFIRMA.Rd: Verbose
doGCRMA.Rd: Verbose
doRMA.Rd: Verbose
justRMA.Rd: Verbose
Please provide package anchors for all Rd \link{} targets not in the
package itself and the base packages.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-windows-x86_64
Version: 3.2.2
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: ‘AffymetrixDataTestFiles’
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64
Version: 3.2.2
Check: installed package size
Result: NOTE
installed size is 6.1Mb
sub-directories of 1Mb or more:
R 3.0Mb
help 1.1Mb
testScripts 1.1Mb
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: NOTE: 9, OK: 4
Version: 3.3.1
Check: Rd cross-references
Result: NOTE
Found the following Rd file(s) with Rd \link{} targets missing package
anchors:
writeDataFrame.AromaUnitSignalBinaryFile.Rd: TabularTextFile
writeDataFrame.AromaUnitSignalBinarySet.Rd: TabularTextFileSet
writeDataFrame.AromaUnitTabularBinaryFile.Rd: TabularTextFile
Please provide package anchors for all Rd \link{} targets not in the
package itself and the base packages.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-windows-x86_64
Version: 3.3.1
Check: package dependencies
Result: NOTE
Packages suggested but not available for checking:
'sfit', 'expectile', 'HaarSeg', 'mpcbs'
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: ERROR: 3, OK: 10
Version: 1.0.2
Check: tests
Result: ERROR
Running 'foreach_dofuture,cluster-missing-doFuture-pkg.R' [62s]
Running 'foreach_dofuture,errors.R' [10s]
Running 'foreach_dofuture,globals.R' [7s]
Running 'foreach_dofuture,nested_colon.R' [14s]
Running 'foreach_dofuture,nested_dofuture.R' [15s]
Running 'foreach_dofuture,rng.R' [4s]
Running 'foreach_dofuture.R' [3s]
Running 'foreach_dopar,cluster-missing-doFuture-pkg.R' [62s]
Running 'foreach_dopar,doRNG,dopar.R' [2s]
Running 'foreach_dopar,doRNG,dorng.R' [5s]
Running 'foreach_dopar,errors.R' [8s]
Running 'foreach_dopar,globals.R' [7s]
Running 'foreach_dopar,nested_colon.R' [13s]
Running 'foreach_dopar,nested_dopar.R' [16s]
Running 'foreach_dopar,options-for-export.R' [5s]
Running 'foreach_dopar.R' [3s]
Running 'makeChunks.R' [4s]
Running 'options,nested.R' [4s]
Running 'registerDoFuture.R' [2s]
Running 'times.R' [2s]
Running 'utils.R' [1s]
Running 'withDoRNG.R' [4s]
Running the tests in 'tests/foreach_dofuture,cluster-missing-doFuture-pkg.R' failed.
Complete output:
> source("incl/start.R")
Loading required package: foreach
Loading required package: future
R Under development (unstable) (2025-04-19 r88161 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows Server 2022 x64 (build 20348)
Matrix products: default
LAPACK version 3.12.1
locale:
[1] LC_COLLATE=C LC_CTYPE=German_Germany.utf8
[3] LC_MONETARY=C LC_NUMERIC=C
[5] LC_TIME=C
time zone: Europe/Berlin
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] doFuture_1.0.2 future_1.40.0 foreach_1.5.2
loaded via a namespace (and not attached):
[1] compiler_4.6.0 parallelly_1.43.0 tools_4.6.0
[4] parallel_4.6.0 future.apply_1.11.3 listenv_0.9.1
[7] codetools_0.2-20 iterators_1.0.14 digest_0.6.37
[10] globals_0.17.0
> options(future.debug = FALSE)
>
> message("*** cluster() ...")
*** cluster() ...
>
> message("Library paths: ", paste(sQuote(.libPaths()), collapse = ", "))
Library paths: 'D:/temp/2025_04_20_01_50_00_2710/RtmpIbHUMU/RLIBS_1de545140549b', 'D:/RCompile/recent/R/library'
> message("Package path: ", sQuote(system.file(package = "future")))
Package path: 'D:/RCompile/CRANpkg/lib/4.6/future'
>
> types <- "PSOCK"
> #if (supportsMulticore()) types <- c(types, "FORK")
>
> setupClusterWithoutPkgs <- function(type = "PSOCK",
+ withs = c("digest", "globals",
+ "listenv", "future"),
+ withouts = c("doFuture")) {
+ cl <- parallel::makeCluster(1L, type = type, timeout = 60)
+
+ ## Emulate a worker that does not have 'future' installed.
+ ## by setting a different user library path on the worker.
+ libs <- parallel::clusterEvalQ(cl, .libPaths(tempdir()))[[1]]
+ attr(cl, "libs") <- libs
+
+ ## 'withouts' tops 'withs' for conveniency
+ withs <- setdiff(withs, withouts)
+
+ ## "Install" any 'withs' packages?
+ if (length(withs) > 0L) {
+ paths <- find.package(withs)
+ res <- parallel::clusterCall(cl, fun = sapply, X = paths,
+ FUN = file.copy, to = libs[1],
+ recursive = TRUE)[[1]]
+ res <- parallel::clusterCall(cl, fun = sapply, X = withs,
+ FUN = requireNamespace)[[1]]
+ }
+ attr(cl, "withs") <- res
+
+ ## Check whether 'future' is still available on the worker or not.
+ ## It could be that it is installed in the system library path, which
+ ## in case we cannot "hide" the future package from the worker.
+ res <- parallel::clusterCall(cl, fun = sapply, X = withouts,
+ FUN = requireNamespace)[[1]]
+ attr(cl, "withouts") <- res
+
+ cl
+ }
>
> cl <- NULL
> for (type in types) {
+ message(sprintf("Test set #1 with cluster type %s ...", sQuote(type)))
+
+ cl <- setupClusterWithoutPkgs(type, withouts = c("future", "doFuture"))
+ if (all(attr(cl, "withs")) && !all(attr(cl, "withouts"))) {
+ plan(cluster, workers = cl, .init = FALSE)
+
+ ## Here we will get:
+ ## <UnexpectedFutureResultError: Unexpected result (of class
+ ## 'snow-try-error' != 'FutureResult') retrieved for ClusterFuture
+ ## future (label = '<none>', expression = '{ ... }'):
+ ## Package 'future' is not installed on worker (r_version: ...)>
+ ## Note: This error is produced by the future backend when it recieves
+ ## the unexpected results.
+ res <- tryCatch({
+ y <- foreach(ii = 1:3) %dofuture% ii
+ }, error = identity)
+ print(res)
+ stopifnot(inherits(res, "FutureError"))
+ }
+ parallel::stopCluster(cl)
+ cl <- NULL
+
+ cl <- setupClusterWithoutPkgs(type)
+ if (all(attr(cl, "withs")) && !all(attr(cl, "withouts"))) {
+ plan(cluster, workers = cl, .init = FALSE)
+
+ ## Here we will get:
+ ## <UnexpectedFutureResultError: Unexpected result (of class
+ ## 'snow-try-error' != 'FutureResult') retrieved for ClusterFuture
+ ## future (label = '<none>', expression = '{ ... }'):
+ ## there is no package called 'doFuture'>
+ ## Note: This error is produced by the future backend when it recieves
+ ## the unexpected results.
+ res <- tryCatch({
+ y <- foreach(ii = 1:3) %dofuture% ii
+ }, error = identity)
+ print(res)
+ stopifnot(inherits(res, "FutureError"))
+ }
+ parallel::stopCluster(cl)
+ cl <- NULL
+
+ plan(sequential)
+
+ message(sprintf("Test set #1 with cluster type %s ... DONE", sQuote(type)))
+ } ## for (type ...)
Test set #1 with cluster type 'PSOCK' ...
[12:16:43.144] doFuture2() ...
[12:16:43.201] Number of chunks: 1
[12:16:43.202] Number of futures (= number of chunks): 1
[12:16:43.202] seed = FALSE
[12:16:43.202] NULL
[12:16:43.206] seed = FALSE
[12:16:43.206] seed = FALSE
[12:16:43.206] - %dofuture% R expression:
[12:16:43.207] ii
[12:16:43.207] - foreach iterator arguments: [1] 'ii'
[12:16:43.207] - dummy globals (as locals): [1] 'ii'
[12:16:43.208] - R expression (map-reduce expression adjusted for RNG):
[12:16:43.208] {
[12:16:43.208] NULL
[12:16:43.208] "# doFuture():::doFuture2(): process chunk of elements"
[12:16:43.208] lapply(seq_along(...future.x_ii), FUN = function(jj) {
[12:16:43.208] ...future.x_jj <- ...future.x_ii[[jj]]
[12:16:43.208] {
[12:16:43.208] NULL
[12:16:43.208] ii <- NULL
[12:16:43.208] }
[12:16:43.208] ...future.env <- environment()
[12:16:43.208] local({
[12:16:43.208] for (name in names(...future.x_jj)) {
[12:16:43.208] assign(name, ...future.x_jj[[name]], envir = ...future.env,
[12:16:43.208] inherits = FALSE)
[12:16:43.208] }
[12:16:43.208] })
[12:16:43.208] NULL
[12:16:43.208] tryCatch(ii, error = identity)
[12:16:43.208] })
[12:16:43.208] }
[12:16:43.209] - identifying globals and packages ...
[12:16:43.209] - Argument 'globals':
[12:16:43.209] logi TRUE
[12:16:43.209] - attr(*, "add")= chr "...future.x_ii"
[12:16:43.209] - attr(*, "ignore")= chr "ii"
[12:16:43.212] - R expression (map-reduce expression searched for globals):
[12:16:43.212] {
[12:16:43.212] NULL
[12:16:43.212] "# doFuture():::doFuture2(): process chunk of elements"
[12:16:43.212] lapply(seq_along(...future.x_ii), FUN = function(jj) {
[12:16:43.212] ...future.x_jj <- ...future.x_ii[[jj]]
[12:16:43.212] {
[12:16:43.212] NULL
[12:16:43.212] ii <- NULL
[12:16:43.212] }
[12:16:43.212] ...future.env <- environment()
[12:16:43.212] local({
[12:16:43.212] for (name in names(...future.x_jj)) {
[12:16:43.212] assign(name, ...future.x_jj[[name]], envir = ...future.env,
[12:16:43.212] inherits = FALSE)
[12:16:43.212] }
[12:16:43.212] })
[12:16:43.212] NULL
[12:16:43.212] tryCatch(ii, error = identity)
[12:16:43.212] })
[12:16:43.212] }
[12:16:43.228] - R expression (%dofuture% expression searched for globals):
[12:16:43.228] ii
[12:16:43.230] - Globals in %dofuture% R expression not in map-reduce expression:
[12:16:43.230] - Appending 0 globals only found in the vanilla %dofuture% expression:
[12:16:43.230] - globals: [1] '...future.x_ii'
[12:16:43.231] List of 1
[12:16:43.231] $ ...future.x_ii: num 42
[12:16:43.231] - attr(*, "where")=List of 1
[12:16:43.231] ..$ ...future.x_ii:<environment: R_EmptyEnv>
[12:16:43.231] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
[12:16:43.231] - attr(*, "resolved")= logi FALSE
[12:16:43.231] - attr(*, "total_size")= num 39
[12:16:43.235] - packages: [1] 'doFuture'
[12:16:43.235] - identifying globals and packages ... DONE
[12:16:43.235] Launching 1 futures (chunks) ...
[12:16:43.236] Chunk #1 of 1 ...
[12:16:43.236] - Finding globals in 'args_list' for chunk #1 ...
[12:16:43.237]
[12:16:43.237]
[12:16:43.238] - Finding globals in 'args_list' for chunk #1 ... DONE
[12:16:43.238] - seeds: <none>
[12:16:43.245] Chunk #1 of 1 ... DONE
[12:16:43.245] Launching 1 futures (chunks) ... DONE
[12:16:43.245] - resolving futures
[12:16:43.245] - gathering results & relaying conditions (except errors)
<FutureInterruptError: A future ('doFuture2-1') of class ClusterFuture was interrupted, while running on 'localhost'>
Future UUID: a511a1229c4a800940f693494d3ad513-2
DEBUG: BEGIN TROUBLESHOOTING HELP
Future involved:
ClusterFuture:
Label: 'doFuture2-1'
Expression:
{
NULL
"# doFuture():::doFuture2(): process chunk of elements"
lapply(seq_along(...future.x_ii), FUN = function(jj) {
...future.x_jj <- ...future.x_ii[[jj]]
{
NULL
ii <- NULL
}
...future.env <- environment()
local({
for (name in names(...future.x_jj)) {
assign(name, ...future.x_jj[[name]], envir = ...future.env,
inherits = FALSE)
}
})
NULL
tryCatch(ii, error = identity)
})
}
Lazy evaluation: FALSE
Asynchronous evaluation: TRUE
Local evaluation: TRUE
Environment: R_GlobalEnv
Capture standard output: TRUE
Capture condition classes: 'condition' (excluding '<none>')
Immediate condition classes: 'immediateCondition'
Globals: 1 objects totaling 194 bytes (list '...future.x_ii' of 194 bytes)
Packages: 1 packages ('doFuture')
L'Ecuyer-CMRG RNG seed: <none> (seed = FALSE)
Resolved: TRUE
Value: <not collected>
Conditions captured: <none>
Early signaling: FALSE
Owner process: a511a1229c4a800940f693494d3ad513
Class: 'ClusterFuture', 'MultiprocessFuture', 'Future'
DEBUG: END TROUBLESHOOTING HELP
Error in serialize(data, node$con) : error writing to connection
Calls: <Anonymous> ... postNode -> sendData -> sendData.SOCKnode -> serialize
Execution halted
Running the tests in 'tests/foreach_dopar,cluster-missing-doFuture-pkg.R' failed.
Complete output:
> source("incl/start.R")
Loading required package: foreach
Loading required package: future
R Under development (unstable) (2025-04-19 r88161 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows Server 2022 x64 (build 20348)
Matrix products: default
LAPACK version 3.12.1
locale:
[1] LC_COLLATE=C LC_CTYPE=German_Germany.utf8
[3] LC_MONETARY=C LC_NUMERIC=C
[5] LC_TIME=C
time zone: Europe/Berlin
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] doFuture_1.0.2 future_1.40.0 foreach_1.5.2
loaded via a namespace (and not attached):
[1] compiler_4.6.0 parallelly_1.43.0 tools_4.6.0
[4] parallel_4.6.0 future.apply_1.11.3 listenv_0.9.1
[7] codetools_0.2-20 iterators_1.0.14 digest_0.6.37
[10] globals_0.17.0
> options(future.debug = FALSE)
>
> message("*** cluster() ...")
*** cluster() ...
>
> registerDoFuture()
>
> message("Library paths: ", paste(sQuote(.libPaths()), collapse = ", "))
Library paths: 'D:/temp/2025_04_20_01_50_00_2710/RtmpIbHUMU/RLIBS_1de545140549b', 'D:/RCompile/recent/R/library'
> message("Package path: ", sQuote(system.file(package = "future")))
Package path: 'D:/RCompile/CRANpkg/lib/4.6/future'
>
> types <- "PSOCK"
> #if (supportsMulticore()) types <- c(types, "FORK")
>
> setupClusterWithoutPkgs <- function(type = "PSOCK",
+ withs = c("digest", "globals",
+ "listenv", "future"),
+ withouts = c("doFuture")) {
+ cl <- parallel::makeCluster(1L, type = type, timeout = 60)
+
+ ## Emulate a worker that does not have 'future' installed.
+ ## by setting a different user library path on the worker.
+ libs <- parallel::clusterEvalQ(cl, .libPaths(tempdir()))[[1]]
+ attr(cl, "libs") <- libs
+
+ ## 'withouts' tops 'withs' for conveniency
+ withs <- setdiff(withs, withouts)
+
+ ## "Install" any 'withs' packages?
+ if (length(withs) > 0L) {
+ paths <- find.package(withs)
+ res <- parallel::clusterCall(cl, fun = sapply, X = paths,
+ FUN = file.copy, to = libs[1],
+ recursive = TRUE)[[1]]
+ res <- parallel::clusterCall(cl, fun = sapply, X = withs,
+ FUN = requireNamespace)[[1]]
+ }
+ attr(cl, "withs") <- res
+
+ ## Check whether 'future' is still available on the worker or not.
+ ## It could be that it is installed in the system library path, which
+ ## in case we cannot "hide" the future package from the worker.
+ res <- parallel::clusterCall(cl, fun = sapply, X = withouts,
+ FUN = requireNamespace)[[1]]
+ attr(cl, "withouts") <- res
+
+ cl
+ }
>
>
> cl <- NULL
> for (type in types) {
+ message(sprintf("Test set #1 with cluster type %s ...", sQuote(type)))
+
+ cl <- setupClusterWithoutPkgs(type, withouts = c("future", "doFuture"))
+ if (all(attr(cl, "withs")) && !all(attr(cl, "withouts"))) {
+ plan(cluster, workers = cl, .init = FALSE)
+
+ ## Here we will get:
+ ## <UnexpectedFutureResultError: Unexpected result (of class
+ ## 'snow-try-error' != 'FutureResult') retrieved for ClusterFuture
+ ## future (label = '<none>', expression = '{ ... }'):
+ ## Package 'future' is not installed on worker (r_version: ...)>
+ ## Note: This error is produced by the future backend when it recieves
+ ## the unexpected results.
+ res <- tryCatch({
+ y <- foreach(ii = 1:3) %dopar% ii
+ }, error = identity)
+ print(res)
+ stopifnot(inherits(res, "FutureError"))
+ }
+ parallel::stopCluster(cl)
+ cl <- NULL
+
+ cl <- setupClusterWithoutPkgs(type)
+ if (all(attr(cl, "withs")) && !all(attr(cl, "withouts"))) {
+ plan(cluster, workers = cl, .init = FALSE)
+
+ ## Here we will get:
+ ## <UnexpectedFutureResultError: Unexpected result (of class
+ ## 'snow-try-error' != 'FutureResult') retrieved for ClusterFuture
+ ## future (label = '<none>', expression = '{ ... }'):
+ ## there is no package called 'doFuture'>
+ ## Note: This error is produced by the future backend when it recieves
+ ## the unexpected results.
+ res <- tryCatch({
+ y <- foreach(ii = 1:3) %dopar% ii
+ }, error = identity)
+ print(res)
+ stopifnot(inherits(res, "FutureError"))
+ }
+ parallel::stopCluster(cl)
+ cl <- NULL
+
+ plan(sequential)
+
+ message(sprintf("Test set #1 with cluster type %s ... DONE", sQuote(type)))
+ } ## for (type ...)
Test set #1 with cluster type 'PSOCK' ...
[12:18:38.401] doFuture() ...
[12:18:38.403] - dummy globals (as locals): [1] 'ii'
[12:18:38.404] - R expression:
[12:18:38.404] {
[12:18:38.404] "# doFuture():::doFuture(): Make sure that foreach uses 'doFuture'"
[12:18:38.404] "# also in nested calls "
[12:18:38.404] doFuture::registerDoFuture()
[12:18:38.404] "# doFuture():::doFuture(): process chunk of elements"
[12:18:38.404] lapply(seq_along(...future.x_ii), FUN = function(jj) {
[12:18:38.404] ...future.x_jj <- ...future.x_ii[[jj]]
[12:18:38.404] {
[12:18:38.404] NULL
[12:18:38.404] ii <- NULL
[12:18:38.404] }
[12:18:38.404] ...future.env <- environment()
[12:18:38.404] local({
[12:18:38.404] for (name in names(...future.x_jj)) {
[12:18:38.404] assign(name, ...future.x_jj[[name]], envir = ...future.env,
[12:18:38.404] inherits = FALSE)
[12:18:38.404] }
[12:18:38.404] })
[12:18:38.404] tryCatch(ii, error = identity)
[12:18:38.404] })
[12:18:38.404] }
[12:18:38.405] - identifying globals and packages ...
[12:18:38.423] List of 1
[12:18:38.423] $ ...future.x_ii: NULL
[12:18:38.423] - attr(*, "where")=List of 1
[12:18:38.423] ..$ ...future.x_ii:<environment: R_EmptyEnv>
[12:18:38.423] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
[12:18:38.423] - attr(*, "resolved")= logi FALSE
[12:18:38.423] - attr(*, "total_size")= num 27
[12:18:38.432] - R expression:
[12:18:38.432] {
[12:18:38.432] "# doFuture():::doFuture(): Make sure that foreach uses 'doFuture'"
[12:18:38.432] "# also in nested calls "
[12:18:38.432] doFuture::registerDoFuture()
[12:18:38.432] "# doFuture():::doFuture(): process chunk of elements"
[12:18:38.432] lapply(seq_along(...future.x_ii), FUN = function(jj) {
[12:18:38.432] ...future.x_jj <- ...future.x_ii[[jj]]
[12:18:38.432] {
[12:18:38.432] NULL
[12:18:38.432] ii <- NULL
[12:18:38.432] }
[12:18:38.432] ...future.env <- environment()
[12:18:38.432] local({
[12:18:38.432] for (name in names(...future.x_jj)) {
[12:18:38.432] assign(name, ...future.x_jj[[name]], envir = ...future.env,
[12:18:38.432] inherits = FALSE)
[12:18:38.432] }
[12:18:38.432] })
[12:18:38.432] tryCatch(ii, error = identity)
[12:18:38.432] })
[12:18:38.432] }
[12:18:38.433] - globals: [1] '...future.x_ii'
[12:18:38.434] List of 1
[12:18:38.434] $ ...future.x_ii: NULL
[12:18:38.434] - attr(*, "where")=List of 1
[12:18:38.434] ..$ ...future.x_ii:<environment: R_EmptyEnv>
[12:18:38.434] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
[12:18:38.434] - attr(*, "resolved")= logi FALSE
[12:18:38.434] - attr(*, "total_size")= num 27
[12:18:38.438] - packages: [1] 'doFuture'
[12:18:38.438] - identifying globals and packages ... DONE
[12:18:38.491] Number of chunks: 1
[12:18:38.491] Number of futures (= number of chunks): 1
[12:18:38.491] Launching 1 futures (chunks) ...
[12:18:38.492] Chunk #1 of 1 ...
[12:18:38.492] - Finding globals in 'args_list' chunk #1 ...
[12:18:38.493]
[12:18:38.493]
[12:18:38.494] - Finding globals in 'args_list' for chunk #1 ... DONE
[12:18:38.501] Chunk #1 of 1 ... DONE
[12:18:38.501] Launching 1 futures (chunks) ... DONE
[12:18:38.501] - resolving futures
[12:18:38.501] - gathering results & relaying conditions (except errors)
<FutureInterruptError: A future ('doFuture-1') of class ClusterFuture was interrupted, while running on 'localhost'>
Future UUID: dbc264267d972b4949a8481bff1a7732-2
DEBUG: BEGIN TROUBLESHOOTING HELP
Future involved:
ClusterFuture:
Label: 'doFuture-1'
Expression:
{
"# doFuture():::doFuture(): Make sure that foreach uses 'doFuture'"
"# also in nested calls "
doFuture::registerDoFuture()
"# doFuture():::doFuture(): process chunk of elements"
lapply(seq_along(...future.x_ii), FUN = function(jj) {
...future.x_jj <- ...future.x_ii[[jj]]
{
NULL
ii <- NULL
}
...future.env <- environment()
local({
for (name in names(...future.x_jj)) {
assign(name, ...future.x_jj[[name]], envir = ...future.env,
inherits = FALSE)
}
})
tryCatch(ii, error = identity)
})
}
Lazy evaluation: FALSE
Asynchronous evaluation: TRUE
Local evaluation: TRUE
Environment: R_GlobalEnv
Capture standard output: TRUE
Capture condition classes: 'condition' (excluding '<none>')
Immediate condition classes: 'immediateCondition'
Globals: 1 objects totaling 194 bytes (list '...future.x_ii' of 194 bytes)
Packages: 1 packages ('doFuture')
L'Ecuyer-CMRG RNG seed: <none> (seed = FALSE)
Resolved: TRUE
Value: <not collected>
Conditions captured: <none>
Early signaling: FALSE
Owner process: dbc264267d972b4949a8481bff1a7732
Class: 'ClusterFuture', 'MultiprocessFuture', 'Future'
DEBUG: END TROUBLESHOOTING HELP
Error in serialize(data, node$con) : error writing to connection
Calls: <Anonymous> ... postNode -> sendData -> sendData.SOCKnode -> serialize
Execution halted
Flavor: r-devel-windows-x86_64
Version: 1.0.2
Check: tests
Result: ERROR
Running 'foreach_dofuture,cluster-missing-doFuture-pkg.R' [62s]
Running 'foreach_dofuture,errors.R' [10s]
Running 'foreach_dofuture,globals.R' [7s]
Running 'foreach_dofuture,nested_colon.R' [13s]
Running 'foreach_dofuture,nested_dofuture.R' [14s]
Running 'foreach_dofuture,rng.R' [4s]
Running 'foreach_dofuture.R' [3s]
Running 'foreach_dopar,cluster-missing-doFuture-pkg.R' [62s]
Running 'foreach_dopar,doRNG,dopar.R' [2s]
Running 'foreach_dopar,doRNG,dorng.R' [5s]
Running 'foreach_dopar,errors.R' [7s]
Running 'foreach_dopar,globals.R' [7s]
Running 'foreach_dopar,nested_colon.R' [12s]
Running 'foreach_dopar,nested_dopar.R' [16s]
Running 'foreach_dopar,options-for-export.R' [4s]
Running 'foreach_dopar.R' [3s]
Running 'makeChunks.R' [4s]
Running 'options,nested.R' [3s]
Running 'registerDoFuture.R' [2s]
Running 'times.R' [2s]
Running 'utils.R' [1s]
Running 'withDoRNG.R' [4s]
Running the tests in 'tests/foreach_dofuture,cluster-missing-doFuture-pkg.R' failed.
Complete output:
> source("incl/start.R")
Loading required package: foreach
Loading required package: future
R version 4.5.0 (2025-04-11 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows Server 2022 x64 (build 20348)
Matrix products: default
LAPACK version 3.12.1
locale:
[1] LC_COLLATE=C LC_CTYPE=German_Germany.utf8
[3] LC_MONETARY=C LC_NUMERIC=C
[5] LC_TIME=C
time zone: Europe/Berlin
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] doFuture_1.0.2 future_1.40.0 foreach_1.5.2
loaded via a namespace (and not attached):
[1] compiler_4.5.0 parallelly_1.43.0 tools_4.5.0
[4] parallel_4.5.0 future.apply_1.11.3 listenv_0.9.1
[7] codetools_0.2-20 iterators_1.0.14 digest_0.6.37
[10] globals_0.17.0
> options(future.debug = FALSE)
>
> message("*** cluster() ...")
*** cluster() ...
>
> message("Library paths: ", paste(sQuote(.libPaths()), collapse = ", "))
Library paths: 'D:/temp/2025_04_19_01_50_00_15476/RtmpsrYCxV/RLIBS_30ba850314ff', 'D:/RCompile/recent/R-4.5.0/library'
> message("Package path: ", sQuote(system.file(package = "future")))
Package path: 'D:/RCompile/CRANpkg/lib/4.5/future'
>
> types <- "PSOCK"
> #if (supportsMulticore()) types <- c(types, "FORK")
>
> setupClusterWithoutPkgs <- function(type = "PSOCK",
+ withs = c("digest", "globals",
+ "listenv", "future"),
+ withouts = c("doFuture")) {
+ cl <- parallel::makeCluster(1L, type = type, timeout = 60)
+
+ ## Emulate a worker that does not have 'future' installed.
+ ## by setting a different user library path on the worker.
+ libs <- parallel::clusterEvalQ(cl, .libPaths(tempdir()))[[1]]
+ attr(cl, "libs") <- libs
+
+ ## 'withouts' tops 'withs' for conveniency
+ withs <- setdiff(withs, withouts)
+
+ ## "Install" any 'withs' packages?
+ if (length(withs) > 0L) {
+ paths <- find.package(withs)
+ res <- parallel::clusterCall(cl, fun = sapply, X = paths,
+ FUN = file.copy, to = libs[1],
+ recursive = TRUE)[[1]]
+ res <- parallel::clusterCall(cl, fun = sapply, X = withs,
+ FUN = requireNamespace)[[1]]
+ }
+ attr(cl, "withs") <- res
+
+ ## Check whether 'future' is still available on the worker or not.
+ ## It could be that it is installed in the system library path, which
+ ## in case we cannot "hide" the future package from the worker.
+ res <- parallel::clusterCall(cl, fun = sapply, X = withouts,
+ FUN = requireNamespace)[[1]]
+ attr(cl, "withouts") <- res
+
+ cl
+ }
>
> cl <- NULL
> for (type in types) {
+ message(sprintf("Test set #1 with cluster type %s ...", sQuote(type)))
+
+ cl <- setupClusterWithoutPkgs(type, withouts = c("future", "doFuture"))
+ if (all(attr(cl, "withs")) && !all(attr(cl, "withouts"))) {
+ plan(cluster, workers = cl, .init = FALSE)
+
+ ## Here we will get:
+ ## <UnexpectedFutureResultError: Unexpected result (of class
+ ## 'snow-try-error' != 'FutureResult') retrieved for ClusterFuture
+ ## future (label = '<none>', expression = '{ ... }'):
+ ## Package 'future' is not installed on worker (r_version: ...)>
+ ## Note: This error is produced by the future backend when it recieves
+ ## the unexpected results.
+ res <- tryCatch({
+ y <- foreach(ii = 1:3) %dofuture% ii
+ }, error = identity)
+ print(res)
+ stopifnot(inherits(res, "FutureError"))
+ }
+ parallel::stopCluster(cl)
+ cl <- NULL
+
+ cl <- setupClusterWithoutPkgs(type)
+ if (all(attr(cl, "withs")) && !all(attr(cl, "withouts"))) {
+ plan(cluster, workers = cl, .init = FALSE)
+
+ ## Here we will get:
+ ## <UnexpectedFutureResultError: Unexpected result (of class
+ ## 'snow-try-error' != 'FutureResult') retrieved for ClusterFuture
+ ## future (label = '<none>', expression = '{ ... }'):
+ ## there is no package called 'doFuture'>
+ ## Note: This error is produced by the future backend when it recieves
+ ## the unexpected results.
+ res <- tryCatch({
+ y <- foreach(ii = 1:3) %dofuture% ii
+ }, error = identity)
+ print(res)
+ stopifnot(inherits(res, "FutureError"))
+ }
+ parallel::stopCluster(cl)
+ cl <- NULL
+
+ plan(sequential)
+
+ message(sprintf("Test set #1 with cluster type %s ... DONE", sQuote(type)))
+ } ## for (type ...)
Test set #1 with cluster type 'PSOCK' ...
[06:02:33.722] doFuture2() ...
[06:02:33.778] Number of chunks: 1
[06:02:33.778] Number of futures (= number of chunks): 1
[06:02:33.779] seed = FALSE
[06:02:33.779] NULL
[06:02:33.782] seed = FALSE
[06:02:33.782] seed = FALSE
[06:02:33.782] - %dofuture% R expression:
[06:02:33.783] ii
[06:02:33.783] - foreach iterator arguments: [1] 'ii'
[06:02:33.783] - dummy globals (as locals): [1] 'ii'
[06:02:33.784] - R expression (map-reduce expression adjusted for RNG):
[06:02:33.784] {
[06:02:33.784] NULL
[06:02:33.784] "# doFuture():::doFuture2(): process chunk of elements"
[06:02:33.784] lapply(seq_along(...future.x_ii), FUN = function(jj) {
[06:02:33.784] ...future.x_jj <- ...future.x_ii[[jj]]
[06:02:33.784] {
[06:02:33.784] NULL
[06:02:33.784] ii <- NULL
[06:02:33.784] }
[06:02:33.784] ...future.env <- environment()
[06:02:33.784] local({
[06:02:33.784] for (name in names(...future.x_jj)) {
[06:02:33.784] assign(name, ...future.x_jj[[name]], envir = ...future.env,
[06:02:33.784] inherits = FALSE)
[06:02:33.784] }
[06:02:33.784] })
[06:02:33.784] NULL
[06:02:33.784] tryCatch(ii, error = identity)
[06:02:33.784] })
[06:02:33.784] }
[06:02:33.784] - identifying globals and packages ...
[06:02:33.785] - Argument 'globals':
[06:02:33.785] logi TRUE
[06:02:33.785] - attr(*, "add")= chr "...future.x_ii"
[06:02:33.785] - attr(*, "ignore")= chr "ii"
[06:02:33.788] - R expression (map-reduce expression searched for globals):
[06:02:33.788] {
[06:02:33.788] NULL
[06:02:33.788] "# doFuture():::doFuture2(): process chunk of elements"
[06:02:33.788] lapply(seq_along(...future.x_ii), FUN = function(jj) {
[06:02:33.788] ...future.x_jj <- ...future.x_ii[[jj]]
[06:02:33.788] {
[06:02:33.788] NULL
[06:02:33.788] ii <- NULL
[06:02:33.788] }
[06:02:33.788] ...future.env <- environment()
[06:02:33.788] local({
[06:02:33.788] for (name in names(...future.x_jj)) {
[06:02:33.788] assign(name, ...future.x_jj[[name]], envir = ...future.env,
[06:02:33.788] inherits = FALSE)
[06:02:33.788] }
[06:02:33.788] })
[06:02:33.788] NULL
[06:02:33.788] tryCatch(ii, error = identity)
[06:02:33.788] })
[06:02:33.788] }
[06:02:33.801] - R expression (%dofuture% expression searched for globals):
[06:02:33.801] ii
[06:02:33.803] - Globals in %dofuture% R expression not in map-reduce expression:
[06:02:33.803] - Appending 0 globals only found in the vanilla %dofuture% expression:
[06:02:33.803] - globals: [1] '...future.x_ii'
[06:02:33.803] List of 1
[06:02:33.803] $ ...future.x_ii: num 42
[06:02:33.803] - attr(*, "where")=List of 1
[06:02:33.803] ..$ ...future.x_ii:<environment: R_EmptyEnv>
[06:02:33.803] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
[06:02:33.803] - attr(*, "resolved")= logi FALSE
[06:02:33.803] - attr(*, "total_size")= num 39
[06:02:33.808] - packages: [1] 'doFuture'
[06:02:33.808] - identifying globals and packages ... DONE
[06:02:33.808] Launching 1 futures (chunks) ...
[06:02:33.808] Chunk #1 of 1 ...
[06:02:33.809] - Finding globals in 'args_list' for chunk #1 ...
[06:02:33.809]
[06:02:33.810]
[06:02:33.810] - Finding globals in 'args_list' for chunk #1 ... DONE
[06:02:33.810] - seeds: <none>
[06:02:33.826] Chunk #1 of 1 ... DONE
[06:02:33.827] Launching 1 futures (chunks) ... DONE
[06:02:33.827] - resolving futures
[06:02:33.827] - gathering results & relaying conditions (except errors)
<FutureInterruptError: A future ('doFuture2-1') of class ClusterFuture was interrupted, while running on 'localhost'>
Future UUID: b0fed4fece7b9a92116d216e27708efc-2
DEBUG: BEGIN TROUBLESHOOTING HELP
Future involved:
ClusterFuture:
Label: 'doFuture2-1'
Expression:
{
NULL
"# doFuture():::doFuture2(): process chunk of elements"
lapply(seq_along(...future.x_ii), FUN = function(jj) {
...future.x_jj <- ...future.x_ii[[jj]]
{
NULL
ii <- NULL
}
...future.env <- environment()
local({
for (name in names(...future.x_jj)) {
assign(name, ...future.x_jj[[name]], envir = ...future.env,
inherits = FALSE)
}
})
NULL
tryCatch(ii, error = identity)
})
}
Lazy evaluation: FALSE
Asynchronous evaluation: TRUE
Local evaluation: TRUE
Environment: R_GlobalEnv
Capture standard output: TRUE
Capture condition classes: 'condition' (excluding '<none>')
Immediate condition classes: 'immediateCondition'
Globals: 1 objects totaling 194 bytes (list '...future.x_ii' of 194 bytes)
Packages: 1 packages ('doFuture')
L'Ecuyer-CMRG RNG seed: <none> (seed = FALSE)
Resolved: TRUE
Value: <not collected>
Conditions captured: <none>
Early signaling: FALSE
Owner process: b0fed4fece7b9a92116d216e27708efc
Class: 'ClusterFuture', 'MultiprocessFuture', 'Future'
DEBUG: END TROUBLESHOOTING HELP
Error in serialize(data, node$con) : error writing to connection
Calls: <Anonymous> ... postNode -> sendData -> sendData.SOCKnode -> serialize
Execution halted
Running the tests in 'tests/foreach_dopar,cluster-missing-doFuture-pkg.R' failed.
Complete output:
> source("incl/start.R")
Loading required package: foreach
Loading required package: future
R version 4.5.0 (2025-04-11 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows Server 2022 x64 (build 20348)
Matrix products: default
LAPACK version 3.12.1
locale:
[1] LC_COLLATE=C LC_CTYPE=German_Germany.utf8
[3] LC_MONETARY=C LC_NUMERIC=C
[5] LC_TIME=C
time zone: Europe/Berlin
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] doFuture_1.0.2 future_1.40.0 foreach_1.5.2
loaded via a namespace (and not attached):
[1] compiler_4.5.0 parallelly_1.43.0 tools_4.5.0
[4] parallel_4.5.0 future.apply_1.11.3 listenv_0.9.1
[7] codetools_0.2-20 iterators_1.0.14 digest_0.6.37
[10] globals_0.17.0
> options(future.debug = FALSE)
>
> message("*** cluster() ...")
*** cluster() ...
>
> registerDoFuture()
>
> message("Library paths: ", paste(sQuote(.libPaths()), collapse = ", "))
Library paths: 'D:/temp/2025_04_19_01_50_00_15476/RtmpsrYCxV/RLIBS_30ba850314ff', 'D:/RCompile/recent/R-4.5.0/library'
> message("Package path: ", sQuote(system.file(package = "future")))
Package path: 'D:/RCompile/CRANpkg/lib/4.5/future'
>
> types <- "PSOCK"
> #if (supportsMulticore()) types <- c(types, "FORK")
>
> setupClusterWithoutPkgs <- function(type = "PSOCK",
+ withs = c("digest", "globals",
+ "listenv", "future"),
+ withouts = c("doFuture")) {
+ cl <- parallel::makeCluster(1L, type = type, timeout = 60)
+
+ ## Emulate a worker that does not have 'future' installed.
+ ## by setting a different user library path on the worker.
+ libs <- parallel::clusterEvalQ(cl, .libPaths(tempdir()))[[1]]
+ attr(cl, "libs") <- libs
+
+ ## 'withouts' tops 'withs' for conveniency
+ withs <- setdiff(withs, withouts)
+
+ ## "Install" any 'withs' packages?
+ if (length(withs) > 0L) {
+ paths <- find.package(withs)
+ res <- parallel::clusterCall(cl, fun = sapply, X = paths,
+ FUN = file.copy, to = libs[1],
+ recursive = TRUE)[[1]]
+ res <- parallel::clusterCall(cl, fun = sapply, X = withs,
+ FUN = requireNamespace)[[1]]
+ }
+ attr(cl, "withs") <- res
+
+ ## Check whether 'future' is still available on the worker or not.
+ ## It could be that it is installed in the system library path, which
+ ## in case we cannot "hide" the future package from the worker.
+ res <- parallel::clusterCall(cl, fun = sapply, X = withouts,
+ FUN = requireNamespace)[[1]]
+ attr(cl, "withouts") <- res
+
+ cl
+ }
>
>
> cl <- NULL
> for (type in types) {
+ message(sprintf("Test set #1 with cluster type %s ...", sQuote(type)))
+
+ cl <- setupClusterWithoutPkgs(type, withouts = c("future", "doFuture"))
+ if (all(attr(cl, "withs")) && !all(attr(cl, "withouts"))) {
+ plan(cluster, workers = cl, .init = FALSE)
+
+ ## Here we will get:
+ ## <UnexpectedFutureResultError: Unexpected result (of class
+ ## 'snow-try-error' != 'FutureResult') retrieved for ClusterFuture
+ ## future (label = '<none>', expression = '{ ... }'):
+ ## Package 'future' is not installed on worker (r_version: ...)>
+ ## Note: This error is produced by the future backend when it recieves
+ ## the unexpected results.
+ res <- tryCatch({
+ y <- foreach(ii = 1:3) %dopar% ii
+ }, error = identity)
+ print(res)
+ stopifnot(inherits(res, "FutureError"))
+ }
+ parallel::stopCluster(cl)
+ cl <- NULL
+
+ cl <- setupClusterWithoutPkgs(type)
+ if (all(attr(cl, "withs")) && !all(attr(cl, "withouts"))) {
+ plan(cluster, workers = cl, .init = FALSE)
+
+ ## Here we will get:
+ ## <UnexpectedFutureResultError: Unexpected result (of class
+ ## 'snow-try-error' != 'FutureResult') retrieved for ClusterFuture
+ ## future (label = '<none>', expression = '{ ... }'):
+ ## there is no package called 'doFuture'>
+ ## Note: This error is produced by the future backend when it recieves
+ ## the unexpected results.
+ res <- tryCatch({
+ y <- foreach(ii = 1:3) %dopar% ii
+ }, error = identity)
+ print(res)
+ stopifnot(inherits(res, "FutureError"))
+ }
+ parallel::stopCluster(cl)
+ cl <- NULL
+
+ plan(sequential)
+
+ message(sprintf("Test set #1 with cluster type %s ... DONE", sQuote(type)))
+ } ## for (type ...)
Test set #1 with cluster type 'PSOCK' ...
[06:04:26.835] doFuture() ...
[06:04:26.837] - dummy globals (as locals): [1] 'ii'
[06:04:26.837] - R expression:
[06:04:26.837] {
[06:04:26.837] "# doFuture():::doFuture(): Make sure that foreach uses 'doFuture'"
[06:04:26.837] "# also in nested calls "
[06:04:26.837] doFuture::registerDoFuture()
[06:04:26.837] "# doFuture():::doFuture(): process chunk of elements"
[06:04:26.837] lapply(seq_along(...future.x_ii), FUN = function(jj) {
[06:04:26.837] ...future.x_jj <- ...future.x_ii[[jj]]
[06:04:26.837] {
[06:04:26.837] NULL
[06:04:26.837] ii <- NULL
[06:04:26.837] }
[06:04:26.837] ...future.env <- environment()
[06:04:26.837] local({
[06:04:26.837] for (name in names(...future.x_jj)) {
[06:04:26.837] assign(name, ...future.x_jj[[name]], envir = ...future.env,
[06:04:26.837] inherits = FALSE)
[06:04:26.837] }
[06:04:26.837] })
[06:04:26.837] tryCatch(ii, error = identity)
[06:04:26.837] })
[06:04:26.837] }
[06:04:26.838] - identifying globals and packages ...
[06:04:26.851] List of 1
[06:04:26.851] $ ...future.x_ii: NULL
[06:04:26.851] - attr(*, "where")=List of 1
[06:04:26.851] ..$ ...future.x_ii:<environment: R_EmptyEnv>
[06:04:26.851] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
[06:04:26.851] - attr(*, "resolved")= logi FALSE
[06:04:26.851] - attr(*, "total_size")= num 27
[06:04:26.860] - R expression:
[06:04:26.860] {
[06:04:26.860] "# doFuture():::doFuture(): Make sure that foreach uses 'doFuture'"
[06:04:26.860] "# also in nested calls "
[06:04:26.860] doFuture::registerDoFuture()
[06:04:26.860] "# doFuture():::doFuture(): process chunk of elements"
[06:04:26.860] lapply(seq_along(...future.x_ii), FUN = function(jj) {
[06:04:26.860] ...future.x_jj <- ...future.x_ii[[jj]]
[06:04:26.860] {
[06:04:26.860] NULL
[06:04:26.860] ii <- NULL
[06:04:26.860] }
[06:04:26.860] ...future.env <- environment()
[06:04:26.860] local({
[06:04:26.860] for (name in names(...future.x_jj)) {
[06:04:26.860] assign(name, ...future.x_jj[[name]], envir = ...future.env,
[06:04:26.860] inherits = FALSE)
[06:04:26.860] }
[06:04:26.860] })
[06:04:26.860] tryCatch(ii, error = identity)
[06:04:26.860] })
[06:04:26.860] }
[06:04:26.861] - globals: [1] '...future.x_ii'
[06:04:26.862] List of 1
[06:04:26.862] $ ...future.x_ii: NULL
[06:04:26.862] - attr(*, "where")=List of 1
[06:04:26.862] ..$ ...future.x_ii:<environment: R_EmptyEnv>
[06:04:26.862] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
[06:04:26.862] - attr(*, "resolved")= logi FALSE
[06:04:26.862] - attr(*, "total_size")= num 27
[06:04:26.866] - packages: [1] 'doFuture'
[06:04:26.866] - identifying globals and packages ... DONE
[06:04:26.917] Number of chunks: 1
[06:04:26.918] Number of futures (= number of chunks): 1
[06:04:26.918] Launching 1 futures (chunks) ...
[06:04:26.918] Chunk #1 of 1 ...
[06:04:26.919] - Finding globals in 'args_list' chunk #1 ...
[06:04:26.920]
[06:04:26.920]
[06:04:26.920] - Finding globals in 'args_list' for chunk #1 ... DONE
[06:04:26.928] Chunk #1 of 1 ... DONE
[06:04:26.928] Launching 1 futures (chunks) ... DONE
[06:04:26.928] - resolving futures
[06:04:26.928] - gathering results & relaying conditions (except errors)
<FutureInterruptError: A future ('doFuture-1') of class ClusterFuture was interrupted, while running on 'localhost'>
Future UUID: f66d2198aea273bb7a34b590af381477-2
DEBUG: BEGIN TROUBLESHOOTING HELP
Future involved:
ClusterFuture:
Label: 'doFuture-1'
Expression:
{
"# doFuture():::doFuture(): Make sure that foreach uses 'doFuture'"
"# also in nested calls "
doFuture::registerDoFuture()
"# doFuture():::doFuture(): process chunk of elements"
lapply(seq_along(...future.x_ii), FUN = function(jj) {
...future.x_jj <- ...future.x_ii[[jj]]
{
NULL
ii <- NULL
}
...future.env <- environment()
local({
for (name in names(...future.x_jj)) {
assign(name, ...future.x_jj[[name]], envir = ...future.env,
inherits = FALSE)
}
})
tryCatch(ii, error = identity)
})
}
Lazy evaluation: FALSE
Asynchronous evaluation: TRUE
Local evaluation: TRUE
Environment: R_GlobalEnv
Capture standard output: TRUE
Capture condition classes: 'condition' (excluding '<none>')
Immediate condition classes: 'immediateCondition'
Globals: 1 objects totaling 194 bytes (list '...future.x_ii' of 194 bytes)
Packages: 1 packages ('doFuture')
L'Ecuyer-CMRG RNG seed: <none> (seed = FALSE)
Resolved: TRUE
Value: <not collected>
Conditions captured: <none>
Early signaling: FALSE
Owner process: f66d2198aea273bb7a34b590af381477
Class: 'ClusterFuture', 'MultiprocessFuture', 'Future'
DEBUG: END TROUBLESHOOTING HELP
Error in serialize(data, node$con) : error writing to connection
Calls: <Anonymous> ... postNode -> sendData -> sendData.SOCKnode -> serialize
Execution halted
Flavor: r-release-windows-x86_64
Version: 1.0.2
Check: tests
Result: ERROR
Running 'foreach_dofuture,cluster-missing-doFuture-pkg.R' [63s]
Running 'foreach_dofuture,errors.R' [14s]
Running 'foreach_dofuture,globals.R' [10s]
Running 'foreach_dofuture,nested_colon.R' [19s]
Running 'foreach_dofuture,nested_dofuture.R' [20s]
Running 'foreach_dofuture,rng.R' [6s]
Running 'foreach_dofuture.R' [4s]
Running 'foreach_dopar,cluster-missing-doFuture-pkg.R' [63s]
Running 'foreach_dopar,doRNG,dopar.R' [3s]
Running 'foreach_dopar,doRNG,dorng.R' [8s]
Running 'foreach_dopar,errors.R' [11s]
Running 'foreach_dopar,globals.R' [10s]
Running 'foreach_dopar,nested_colon.R' [17s]
Running 'foreach_dopar,nested_dopar.R' [23s]
Running 'foreach_dopar,options-for-export.R' [7s]
Running 'foreach_dopar.R' [4s]
Running 'makeChunks.R' [6s]
Running 'options,nested.R' [5s]
Running 'registerDoFuture.R' [3s]
Running 'times.R' [3s]
Running 'utils.R' [1s]
Running 'withDoRNG.R' [5s]
Running the tests in 'tests/foreach_dofuture,cluster-missing-doFuture-pkg.R' failed.
Complete output:
> source("incl/start.R")
Loading required package: foreach
Loading required package: future
R version 4.4.3 (2025-02-28 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows Server 2022 x64 (build 20348)
Matrix products: default
locale:
[1] LC_COLLATE=C LC_CTYPE=German_Germany.utf8
[3] LC_MONETARY=C LC_NUMERIC=C
[5] LC_TIME=C
time zone: Europe/Berlin
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] doFuture_1.0.2 future_1.40.0 foreach_1.5.2
loaded via a namespace (and not attached):
[1] compiler_4.4.3 parallelly_1.43.0 tools_4.4.3
[4] parallel_4.4.3 future.apply_1.11.3 listenv_0.9.1
[7] codetools_0.2-20 iterators_1.0.14 digest_0.6.37
[10] globals_0.17.0
> options(future.debug = FALSE)
>
> message("*** cluster() ...")
*** cluster() ...
>
> message("Library paths: ", paste(sQuote(.libPaths()), collapse = ", "))
Library paths: 'D:/temp/2025_04_19_01_50_00_15476/RtmpsVaBxi/RLIBS_206cc7ab72aa9', 'D:/RCompile/recent/R-4.4.3/library'
> message("Package path: ", sQuote(system.file(package = "future")))
Package path: 'D:/RCompile/CRANpkg/lib/4.4/future'
>
> types <- "PSOCK"
> #if (supportsMulticore()) types <- c(types, "FORK")
>
> setupClusterWithoutPkgs <- function(type = "PSOCK",
+ withs = c("digest", "globals",
+ "listenv", "future"),
+ withouts = c("doFuture")) {
+ cl <- parallel::makeCluster(1L, type = type, timeout = 60)
+
+ ## Emulate a worker that does not have 'future' installed.
+ ## by setting a different user library path on the worker.
+ libs <- parallel::clusterEvalQ(cl, .libPaths(tempdir()))[[1]]
+ attr(cl, "libs") <- libs
+
+ ## 'withouts' tops 'withs' for conveniency
+ withs <- setdiff(withs, withouts)
+
+ ## "Install" any 'withs' packages?
+ if (length(withs) > 0L) {
+ paths <- find.package(withs)
+ res <- parallel::clusterCall(cl, fun = sapply, X = paths,
+ FUN = file.copy, to = libs[1],
+ recursive = TRUE)[[1]]
+ res <- parallel::clusterCall(cl, fun = sapply, X = withs,
+ FUN = requireNamespace)[[1]]
+ }
+ attr(cl, "withs") <- res
+
+ ## Check whether 'future' is still available on the worker or not.
+ ## It could be that it is installed in the system library path, which
+ ## in case we cannot "hide" the future package from the worker.
+ res <- parallel::clusterCall(cl, fun = sapply, X = withouts,
+ FUN = requireNamespace)[[1]]
+ attr(cl, "withouts") <- res
+
+ cl
+ }
>
> cl <- NULL
> for (type in types) {
+ message(sprintf("Test set #1 with cluster type %s ...", sQuote(type)))
+
+ cl <- setupClusterWithoutPkgs(type, withouts = c("future", "doFuture"))
+ if (all(attr(cl, "withs")) && !all(attr(cl, "withouts"))) {
+ plan(cluster, workers = cl, .init = FALSE)
+
+ ## Here we will get:
+ ## <UnexpectedFutureResultError: Unexpected result (of class
+ ## 'snow-try-error' != 'FutureResult') retrieved for ClusterFuture
+ ## future (label = '<none>', expression = '{ ... }'):
+ ## Package 'future' is not installed on worker (r_version: ...)>
+ ## Note: This error is produced by the future backend when it recieves
+ ## the unexpected results.
+ res <- tryCatch({
+ y <- foreach(ii = 1:3) %dofuture% ii
+ }, error = identity)
+ print(res)
+ stopifnot(inherits(res, "FutureError"))
+ }
+ parallel::stopCluster(cl)
+ cl <- NULL
+
+ cl <- setupClusterWithoutPkgs(type)
+ if (all(attr(cl, "withs")) && !all(attr(cl, "withouts"))) {
+ plan(cluster, workers = cl, .init = FALSE)
+
+ ## Here we will get:
+ ## <UnexpectedFutureResultError: Unexpected result (of class
+ ## 'snow-try-error' != 'FutureResult') retrieved for ClusterFuture
+ ## future (label = '<none>', expression = '{ ... }'):
+ ## there is no package called 'doFuture'>
+ ## Note: This error is produced by the future backend when it recieves
+ ## the unexpected results.
+ res <- tryCatch({
+ y <- foreach(ii = 1:3) %dofuture% ii
+ }, error = identity)
+ print(res)
+ stopifnot(inherits(res, "FutureError"))
+ }
+ parallel::stopCluster(cl)
+ cl <- NULL
+
+ plan(sequential)
+
+ message(sprintf("Test set #1 with cluster type %s ... DONE", sQuote(type)))
+ } ## for (type ...)
Test set #1 with cluster type 'PSOCK' ...
[06:48:57.245] doFuture2() ...
[06:48:57.342] Number of chunks: 1
[06:48:57.343] Number of futures (= number of chunks): 1
[06:48:57.343] seed = FALSE
[06:48:57.344] NULL
[06:48:57.349] seed = FALSE
[06:48:57.349] seed = FALSE
[06:48:57.350] - %dofuture% R expression:
[06:48:57.350] ii
[06:48:57.351] - foreach iterator arguments: [1] 'ii'
[06:48:57.351] - dummy globals (as locals): [1] 'ii'
[06:48:57.352] - R expression (map-reduce expression adjusted for RNG):
[06:48:57.352] {
[06:48:57.352] NULL
[06:48:57.352] "# doFuture():::doFuture2(): process chunk of elements"
[06:48:57.352] lapply(seq_along(...future.x_ii), FUN = function(jj) {
[06:48:57.352] ...future.x_jj <- ...future.x_ii[[jj]]
[06:48:57.352] {
[06:48:57.352] NULL
[06:48:57.352] ii <- NULL
[06:48:57.352] }
[06:48:57.352] ...future.env <- environment()
[06:48:57.352] local({
[06:48:57.352] for (name in names(...future.x_jj)) {
[06:48:57.352] assign(name, ...future.x_jj[[name]], envir = ...future.env,
[06:48:57.352] inherits = FALSE)
[06:48:57.352] }
[06:48:57.352] })
[06:48:57.352] NULL
[06:48:57.352] tryCatch(ii, error = identity)
[06:48:57.352] })
[06:48:57.352] }
[06:48:57.353] - identifying globals and packages ...
[06:48:57.354] - Argument 'globals':
[06:48:57.354] logi TRUE
[06:48:57.354] - attr(*, "add")= chr "...future.x_ii"
[06:48:57.354] - attr(*, "ignore")= chr "ii"
[06:48:57.359] - R expression (map-reduce expression searched for globals):
[06:48:57.359] {
[06:48:57.359] NULL
[06:48:57.359] "# doFuture():::doFuture2(): process chunk of elements"
[06:48:57.359] lapply(seq_along(...future.x_ii), FUN = function(jj) {
[06:48:57.359] ...future.x_jj <- ...future.x_ii[[jj]]
[06:48:57.359] {
[06:48:57.359] NULL
[06:48:57.359] ii <- NULL
[06:48:57.359] }
[06:48:57.359] ...future.env <- environment()
[06:48:57.359] local({
[06:48:57.359] for (name in names(...future.x_jj)) {
[06:48:57.359] assign(name, ...future.x_jj[[name]], envir = ...future.env,
[06:48:57.359] inherits = FALSE)
[06:48:57.359] }
[06:48:57.359] })
[06:48:57.359] NULL
[06:48:57.359] tryCatch(ii, error = identity)
[06:48:57.359] })
[06:48:57.359] }
[06:48:57.383] - R expression (%dofuture% expression searched for globals):
[06:48:57.383] ii
[06:48:57.386] - Globals in %dofuture% R expression not in map-reduce expression:
[06:48:57.387] - Appending 0 globals only found in the vanilla %dofuture% expression:
[06:48:57.387] - globals: [1] '...future.x_ii'
[06:48:57.387] List of 1
[06:48:57.387] $ ...future.x_ii: num 42
[06:48:57.387] - attr(*, "where")=List of 1
[06:48:57.387] ..$ ...future.x_ii:<environment: R_EmptyEnv>
[06:48:57.387] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
[06:48:57.387] - attr(*, "resolved")= logi FALSE
[06:48:57.387] - attr(*, "total_size")= num 39
[06:48:57.394] - packages: [1] 'doFuture'
[06:48:57.394] - identifying globals and packages ... DONE
[06:48:57.394] Launching 1 futures (chunks) ...
[06:48:57.395] Chunk #1 of 1 ...
[06:48:57.396] - Finding globals in 'args_list' for chunk #1 ...
[06:48:57.397]
[06:48:57.398]
[06:48:57.398] - Finding globals in 'args_list' for chunk #1 ... DONE
[06:48:57.398] - seeds: <none>
[06:48:57.409] Chunk #1 of 1 ... DONE
[06:48:57.410] Launching 1 futures (chunks) ... DONE
[06:48:57.410] - resolving futures
[06:48:57.410] - gathering results & relaying conditions (except errors)
<FutureInterruptError: A future ('doFuture2-1') of class ClusterFuture was interrupted, while running on 'localhost'>
Future UUID: c879d416420255c1f5fe179bbe41b2e4-2
DEBUG: BEGIN TROUBLESHOOTING HELP
Future involved:
ClusterFuture:
Label: 'doFuture2-1'
Expression:
{
NULL
"# doFuture():::doFuture2(): process chunk of elements"
lapply(seq_along(...future.x_ii), FUN = function(jj) {
...future.x_jj <- ...future.x_ii[[jj]]
{
NULL
ii <- NULL
}
...future.env <- environment()
local({
for (name in names(...future.x_jj)) {
assign(name, ...future.x_jj[[name]], envir = ...future.env,
inherits = FALSE)
}
})
NULL
tryCatch(ii, error = identity)
})
}
Lazy evaluation: FALSE
Asynchronous evaluation: TRUE
Local evaluation: TRUE
Environment: R_GlobalEnv
Capture standard output: TRUE
Capture condition classes: 'condition' (excluding '<none>')
Immediate condition classes: 'immediateCondition'
Globals: 1 objects totaling 194 bytes (list '...future.x_ii' of 194 bytes)
Packages: 1 packages ('doFuture')
L'Ecuyer-CMRG RNG seed: <none> (seed = FALSE)
Resolved: TRUE
Value: <not collected>
Conditions captured: <none>
Early signaling: FALSE
Owner process: c879d416420255c1f5fe179bbe41b2e4
Class: 'ClusterFuture', 'MultiprocessFuture', 'Future'
DEBUG: END TROUBLESHOOTING HELP
Error in serialize(data, node$con) : error writing to connection
Calls: <Anonymous> ... postNode -> sendData -> sendData.SOCKnode -> serialize
Execution halted
Running the tests in 'tests/foreach_dopar,cluster-missing-doFuture-pkg.R' failed.
Complete output:
> source("incl/start.R")
Loading required package: foreach
Loading required package: future
R version 4.4.3 (2025-02-28 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows Server 2022 x64 (build 20348)
Matrix products: default
locale:
[1] LC_COLLATE=C LC_CTYPE=German_Germany.utf8
[3] LC_MONETARY=C LC_NUMERIC=C
[5] LC_TIME=C
time zone: Europe/Berlin
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] doFuture_1.0.2 future_1.40.0 foreach_1.5.2
loaded via a namespace (and not attached):
[1] compiler_4.4.3 parallelly_1.43.0 tools_4.4.3
[4] parallel_4.4.3 future.apply_1.11.3 listenv_0.9.1
[7] codetools_0.2-20 iterators_1.0.14 digest_0.6.37
[10] globals_0.17.0
> options(future.debug = FALSE)
>
> message("*** cluster() ...")
*** cluster() ...
>
> registerDoFuture()
>
> message("Library paths: ", paste(sQuote(.libPaths()), collapse = ", "))
Library paths: 'D:/temp/2025_04_19_01_50_00_15476/RtmpsVaBxi/RLIBS_206cc7ab72aa9', 'D:/RCompile/recent/R-4.4.3/library'
> message("Package path: ", sQuote(system.file(package = "future")))
Package path: 'D:/RCompile/CRANpkg/lib/4.4/future'
>
> types <- "PSOCK"
> #if (supportsMulticore()) types <- c(types, "FORK")
>
> setupClusterWithoutPkgs <- function(type = "PSOCK",
+ withs = c("digest", "globals",
+ "listenv", "future"),
+ withouts = c("doFuture")) {
+ cl <- parallel::makeCluster(1L, type = type, timeout = 60)
+
+ ## Emulate a worker that does not have 'future' installed.
+ ## by setting a different user library path on the worker.
+ libs <- parallel::clusterEvalQ(cl, .libPaths(tempdir()))[[1]]
+ attr(cl, "libs") <- libs
+
+ ## 'withouts' tops 'withs' for conveniency
+ withs <- setdiff(withs, withouts)
+
+ ## "Install" any 'withs' packages?
+ if (length(withs) > 0L) {
+ paths <- find.package(withs)
+ res <- parallel::clusterCall(cl, fun = sapply, X = paths,
+ FUN = file.copy, to = libs[1],
+ recursive = TRUE)[[1]]
+ res <- parallel::clusterCall(cl, fun = sapply, X = withs,
+ FUN = requireNamespace)[[1]]
+ }
+ attr(cl, "withs") <- res
+
+ ## Check whether 'future' is still available on the worker or not.
+ ## It could be that it is installed in the system library path, which
+ ## in case we cannot "hide" the future package from the worker.
+ res <- parallel::clusterCall(cl, fun = sapply, X = withouts,
+ FUN = requireNamespace)[[1]]
+ attr(cl, "withouts") <- res
+
+ cl
+ }
>
>
> cl <- NULL
> for (type in types) {
+ message(sprintf("Test set #1 with cluster type %s ...", sQuote(type)))
+
+ cl <- setupClusterWithoutPkgs(type, withouts = c("future", "doFuture"))
+ if (all(attr(cl, "withs")) && !all(attr(cl, "withouts"))) {
+ plan(cluster, workers = cl, .init = FALSE)
+
+ ## Here we will get:
+ ## <UnexpectedFutureResultError: Unexpected result (of class
+ ## 'snow-try-error' != 'FutureResult') retrieved for ClusterFuture
+ ## future (label = '<none>', expression = '{ ... }'):
+ ## Package 'future' is not installed on worker (r_version: ...)>
+ ## Note: This error is produced by the future backend when it recieves
+ ## the unexpected results.
+ res <- tryCatch({
+ y <- foreach(ii = 1:3) %dopar% ii
+ }, error = identity)
+ print(res)
+ stopifnot(inherits(res, "FutureError"))
+ }
+ parallel::stopCluster(cl)
+ cl <- NULL
+
+ cl <- setupClusterWithoutPkgs(type)
+ if (all(attr(cl, "withs")) && !all(attr(cl, "withouts"))) {
+ plan(cluster, workers = cl, .init = FALSE)
+
+ ## Here we will get:
+ ## <UnexpectedFutureResultError: Unexpected result (of class
+ ## 'snow-try-error' != 'FutureResult') retrieved for ClusterFuture
+ ## future (label = '<none>', expression = '{ ... }'):
+ ## there is no package called 'doFuture'>
+ ## Note: This error is produced by the future backend when it recieves
+ ## the unexpected results.
+ res <- tryCatch({
+ y <- foreach(ii = 1:3) %dopar% ii
+ }, error = identity)
+ print(res)
+ stopifnot(inherits(res, "FutureError"))
+ }
+ parallel::stopCluster(cl)
+ cl <- NULL
+
+ plan(sequential)
+
+ message(sprintf("Test set #1 with cluster type %s ... DONE", sQuote(type)))
+ } ## for (type ...)
Test set #1 with cluster type 'PSOCK' ...
[06:51:13.484] doFuture() ...
[06:51:13.488] - dummy globals (as locals): [1] 'ii'
[06:51:13.489] - R expression:
[06:51:13.489] {
[06:51:13.489] "# doFuture():::doFuture(): Make sure that foreach uses 'doFuture'"
[06:51:13.489] "# also in nested calls "
[06:51:13.489] doFuture::registerDoFuture()
[06:51:13.489] "# doFuture():::doFuture(): process chunk of elements"
[06:51:13.489] lapply(seq_along(...future.x_ii), FUN = function(jj) {
[06:51:13.489] ...future.x_jj <- ...future.x_ii[[jj]]
[06:51:13.489] {
[06:51:13.489] NULL
[06:51:13.489] ii <- NULL
[06:51:13.489] }
[06:51:13.489] ...future.env <- environment()
[06:51:13.489] local({
[06:51:13.489] for (name in names(...future.x_jj)) {
[06:51:13.489] assign(name, ...future.x_jj[[name]], envir = ...future.env,
[06:51:13.489] inherits = FALSE)
[06:51:13.489] }
[06:51:13.489] })
[06:51:13.489] tryCatch(ii, error = identity)
[06:51:13.489] })
[06:51:13.489] }
[06:51:13.491] - identifying globals and packages ...
[06:51:13.520] List of 1
[06:51:13.520] $ ...future.x_ii: NULL
[06:51:13.520] - attr(*, "where")=List of 1
[06:51:13.520] ..$ ...future.x_ii:<environment: R_EmptyEnv>
[06:51:13.520] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
[06:51:13.520] - attr(*, "resolved")= logi FALSE
[06:51:13.520] - attr(*, "total_size")= num 27
[06:51:13.533] - R expression:
[06:51:13.534] {
[06:51:13.534] "# doFuture():::doFuture(): Make sure that foreach uses 'doFuture'"
[06:51:13.534] "# also in nested calls "
[06:51:13.534] doFuture::registerDoFuture()
[06:51:13.534] "# doFuture():::doFuture(): process chunk of elements"
[06:51:13.534] lapply(seq_along(...future.x_ii), FUN = function(jj) {
[06:51:13.534] ...future.x_jj <- ...future.x_ii[[jj]]
[06:51:13.534] {
[06:51:13.534] NULL
[06:51:13.534] ii <- NULL
[06:51:13.534] }
[06:51:13.534] ...future.env <- environment()
[06:51:13.534] local({
[06:51:13.534] for (name in names(...future.x_jj)) {
[06:51:13.534] assign(name, ...future.x_jj[[name]], envir = ...future.env,
[06:51:13.534] inherits = FALSE)
[06:51:13.534] }
[06:51:13.534] })
[06:51:13.534] tryCatch(ii, error = identity)
[06:51:13.534] })
[06:51:13.534] }
[06:51:13.535] - globals: [1] '...future.x_ii'
[06:51:13.536] List of 1
[06:51:13.536] $ ...future.x_ii: NULL
[06:51:13.536] - attr(*, "where")=List of 1
[06:51:13.536] ..$ ...future.x_ii:<environment: R_EmptyEnv>
[06:51:13.536] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
[06:51:13.536] - attr(*, "resolved")= logi FALSE
[06:51:13.536] - attr(*, "total_size")= num 27
[06:51:13.543] - packages: [1] 'doFuture'
[06:51:13.543] - identifying globals and packages ... DONE
[06:51:13.635] Number of chunks: 1
[06:51:13.636] Number of futures (= number of chunks): 1
[06:51:13.636] Launching 1 futures (chunks) ...
[06:51:13.636] Chunk #1 of 1 ...
[06:51:13.637] - Finding globals in 'args_list' chunk #1 ...
[06:51:13.639]
[06:51:13.639]
[06:51:13.640] - Finding globals in 'args_list' for chunk #1 ... DONE
[06:51:13.650] Chunk #1 of 1 ... DONE
[06:51:13.651] Launching 1 futures (chunks) ... DONE
[06:51:13.651] - resolving futures
[06:51:13.651] - gathering results & relaying conditions (except errors)
<FutureInterruptError: A future ('doFuture-1') of class ClusterFuture was interrupted, while running on 'localhost'>
Future UUID: 2cdb72b955b75197715bc9e519a8f3c2-2
DEBUG: BEGIN TROUBLESHOOTING HELP
Future involved:
ClusterFuture:
Label: 'doFuture-1'
Expression:
{
"# doFuture():::doFuture(): Make sure that foreach uses 'doFuture'"
"# also in nested calls "
doFuture::registerDoFuture()
"# doFuture():::doFuture(): process chunk of elements"
lapply(seq_along(...future.x_ii), FUN = function(jj) {
...future.x_jj <- ...future.x_ii[[jj]]
{
NULL
ii <- NULL
}
...future.env <- environment()
local({
for (name in names(...future.x_jj)) {
assign(name, ...future.x_jj[[name]], envir = ...future.env,
inherits = FALSE)
}
})
tryCatch(ii, error = identity)
})
}
Lazy evaluation: FALSE
Asynchronous evaluation: TRUE
Local evaluation: TRUE
Environment: R_GlobalEnv
Capture standard output: TRUE
Capture condition classes: 'condition' (excluding '<none>')
Immediate condition classes: 'immediateCondition'
Globals: 1 objects totaling 194 bytes (list '...future.x_ii' of 194 bytes)
Packages: 1 packages ('doFuture')
L'Ecuyer-CMRG RNG seed: <none> (seed = FALSE)
Resolved: TRUE
Value: <not collected>
Conditions captured: <none>
Early signaling: FALSE
Owner process: 2cdb72b955b75197715bc9e519a8f3c2
Class: 'ClusterFuture', 'MultiprocessFuture', 'Future'
DEBUG: END TROUBLESHOOTING HELP
Error in serialize(data, node$con) : error writing to connection
Calls: <Anonymous> ... postNode -> sendData -> sendData.SOCKnode -> serialize
Execution halted
Flavor: r-oldrel-windows-x86_64
Current CRAN status: ERROR: 3, OK: 10
Version: 1.40.0
Check: tests
Result: ERROR
Running ‘test-FutureError.R’ [1s/1s]
Running ‘test-FutureGlobals.R’ [1s/1s]
Running ‘test-FutureRegistry.R’ [1s/2s]
Running ‘test-adhoc_native_to_utf8.R’ [1s/1s]
Running ‘test-backtrace.R’ [2s/4s]
Running ‘test-bquote.R’ [1s/1s]
Running ‘test-capture_journals.R’ [2s/4s]
Running ‘test-cluster,worker-termination.R’ [1s/4s]
Running ‘test-cluster-connection-clashes.R’ [2s/5s]
Running ‘test-cluster-missing-future-pkg.R’ [1s/2s]
Running ‘test-demo-fibonacci.R’ [2s/2s]
Running ‘test-demo-mandelbrot.R’ [4s/6s]
Running ‘test-dotdotdot.R’ [4s/6s]
Running ‘test-early-signaling.R’ [1s/2s]
Running ‘test-future,labels.R’ [3s/5s]
Running ‘test-future,optsenvvars.R’ [1s/3s]
Running ‘test-future.R’ [1s/1s]
Running ‘test-futureAssign.R’ [4s/7s]
Running ‘test-futureAssign_OP.R’ [6s/9s]
Running ‘test-futureAssign_OP_with_environment.R’ [1s/1s]
Running ‘test-futureAssign_OP_with_listenv.R’ [2s/2s]
Running ‘test-futureCall.R’ [4s/8s]
Running ‘test-futureOf.R’ [1s/1s]
Running ‘test-futureOf_with_environment.R’ [1s/1s]
Running ‘test-futureOf_with_listenv.R’ [1s/1s]
Running ‘test-futureSessionInfo.R’ [1s/2s]
Running ‘test-futures.R’ [20s/29s]
Running ‘test-globals,NSE.R’ [2s/4s]
Running ‘test-globals,S4methods.R’ [2s/4s]
Running ‘test-globals,formulas.R’ [8s/13s]
Running ‘test-globals,locals.R’ [2s/4s]
Running ‘test-globals,manual.R’ [6s/12s]
Running ‘test-globals,resolve.R’ [2s/3s]
Running ‘test-globals,subassignment.R’ [6s/11s]
Running ‘test-globals,toolarge.R’ [1s/2s]
Running ‘test-globals,tricky.R’ [16s/25s]
Running ‘test-globals,tricky_recursive.R’ [1s/3s]
Running ‘test-globalsOf,tweaks.R’ [1s/1s]
Running ‘test-immediateCondition.R’ [1s/2s]
Running ‘test-interrupt-sets.R’ [2s/5s]
Running ‘test-interrupt.R’ [1s/3s]
Running ‘test-interrupts-from-worker-itself.R’ [1s/3s]
Running ‘test-invalid-owner.R’ [2s/4s]
Running ‘test-mandelbrot.R’ [1s/1s]
Running ‘test-misuse-connections.R’ [1s/1s]
Running ‘test-mpi.R’ [1s/1s]
Running ‘test-multicore,multithreading.R’ [2s/2s]
Running ‘test-multicore,worker-termination.R’ [1s/1s]
Running ‘test-nbrOfWorkers.R’ [3s/7s]
Running ‘test-nested_futures,mc.cores.R’ [4s/15s]
Running ‘test-nested_futures.R’ [4s/10s]
Running ‘test-non-exportable,connections.R’ [1s/2s]
Running ‘test-objectSize.R’ [1s/1s]
Running ‘test-plan.R’ [3s/12s]
Running ‘test-relaying,muffle.R’ [1s/1s]
Running ‘test-relaying,split.R’ [1s/1s]
Running ‘test-relaying.R’ [2s/5s]
Running ‘test-requestCore.R’ [1s/1s]
Running ‘test-requestNode.R’ [1s/3s]
Running ‘test-reserved-keyword-functions.R’ [1s/1s]
Running ‘test-reset.R’ [2s/5s]
Running ‘test-resolve.R’ [9s/21s]
Running ‘test-resolved-non-blocking-test.R’ [0s/1s]
Running ‘test-rng.R’ [28s/34s]
Running ‘test-rng_utils.R’ [1s/1s]
Running ‘test-sequential.R’ [1s/1s]
Running ‘test-sessionDetails.R’ [1s/1s]
Running ‘test-startup-onAttach.R’ [1s/1s]
Running ‘test-startup-onLoad.R’ [1s/2s]
Running ‘test-startup-parseCmdArgs.R’ [1s/1s]
Running ‘test-stdout.R’ [5s/8s]
Running ‘test-timeouts.R’ [1s/3s]
Running ‘test-tweak.R’ [2s/4s]
Running ‘test-utils.R’ [1s/1s]
Running ‘test-uuid.R’ [1s/1s]
Running ‘test-value.R’ [14s/31s]
Running ‘test-whichIndex.R’ [1s/1s]
Running the tests in ‘tests/test-early-signaling.R’ failed.
Complete output:
> ## This runs testme test script incl/testme/test-early-signaling.R
> ## Don't edit - it was autogenerated by inst/testme/deploy.R
> future:::testme("early-signaling")
Test 'early-signaling' ...
Sourcing 9 prologue scripts ...
01/09 prologue script '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/future/testme/_prologue/001.load.R'
02/09 prologue script '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/future/testme/_prologue/002.record-state.R'
03/09 prologue script '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/future/testme/_prologue/030.imports.R'
04/09 prologue script '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/future/testme/_prologue/050.utils.R'
05/09 prologue script '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/future/testme/_prologue/090.context.R'
06/09 prologue script '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/future/testme/_prologue/090.options.R'
07/09 prologue script '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/future/testme/_prologue/091.envvars.R'
08/09 prologue script '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/future/testme/_prologue/099.future-setup.R'
09/09 prologue script '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/future/testme/_prologue/995.detrius-connections.R'
Sourcing 9 prologue scripts ... done
Running test script: '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/future/testme/test-early-signaling.R'
> library(future)
[00:01:08.456] Option 'future.startup.script': TRUE
[00:01:08.456] Future startup scripts considered: '.future.R', '~/.future.R'
[00:01:08.461] Future startup scripts found: <none>
> options(future.debug = FALSE)
> message("*** Early signaling of conditions ...")
*** Early signaling of conditions ...
> message("*** Early signaling of conditions with sequential futures ...")
*** Early signaling of conditions with sequential futures ...
> plan(sequential)
> f <- future({
+ stop("bang!")
+ })
> r <- resolved(f)
> stopifnot(r)
> v <- tryCatch(value(f), error = identity)
> stopifnot(inherits(v, "error"))
> message("- with lazy evaluation ...")
- with lazy evaluation ...
> f <- future({
+ stop("bang!")
+ }, lazy = TRUE)
> r <- resolved(f)
> v <- tryCatch(value(f), error = identity)
> stopifnot(inherits(v, "error"))
> plan(sequential, earlySignal = TRUE)
> f <- tryCatch(future({
+ stop("bang!")
+ }), error = identity)
> stopifnot(inherits(f, "error"))
> message("- with lazy evaluation ...")
- with lazy evaluation ...
> f <- future({
+ stop("bang!")
+ }, lazy = TRUE)
> r <- tryCatch(resolved(f), error = identity)
> stopifnot(inherits(r, "error"))
> v <- tryCatch(value(f), error = identity)
> stopifnot(inherits(v, "error"))
> f <- future({
+ warning("careful!")
+ }, lazy = TRUE)
> res <- tryCatch({
+ r <- resolved(f)
+ }, condition = function(w) w)
> str(res)
List of 2
$ message: chr "careful!"
$ call : language eval(quote({ { ...
- attr(*, "class")= chr [1:3] "simpleWarning" "warning" "condition"
> stopifnot(inherits(res, "warning"))
> f <- future({
+ message("hey!")
+ }, lazy = TRUE)
> res <- tryCatch({
+ r <- resolved(f)
+ }, condition = function(w) w)
> stopifnot(inherits(res, "message"))
> f <- future({
+ signalCondition(simpleCondition("hmm"))
+ }, lazy = TRUE)
> res <- tryCatch({
+ r <- resolved(f)
+ }, condition = function(w) w)
> stopifnot(inherits(res, "condition"))
> message("*** Early signaling of conditions with sequential futures ... DONE")
*** Early signaling of conditions with sequential futures ... DONE
> message("Number of available cores: ", availableCores())
Number of available cores: 2
> message("*** Early signaling of conditions with multisession futures ...")
*** Early signaling of conditions with multisession futures ...
> plan(multisession)
> f <- future({
+ stop("bang!")
+ })
> Sys.sleep(0.2)
> r <- resolved(f)
> stopifnot(r)
Error: r is not TRUE
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 1.40.0
Check: tests
Result: ERROR
Running ‘test-FutureError.R’
Running ‘test-FutureGlobals.R’
Running ‘test-FutureRegistry.R’
Running ‘test-adhoc_native_to_utf8.R’
Running ‘test-backtrace.R’ [4s/13s]
Running ‘test-bquote.R’
Running ‘test-capture_journals.R’
Running ‘test-cluster,worker-termination.R’ [2s/10s]
Running ‘test-cluster-connection-clashes.R’ [3s/20s]
Running ‘test-cluster-missing-future-pkg.R’
Running ‘test-demo-fibonacci.R’
Running ‘test-demo-mandelbrot.R’ [6s/17s]
Running ‘test-dotdotdot.R’ [7s/20s]
Running ‘test-early-signaling.R’
Running ‘test-future,labels.R’ [5s/17s]
Running ‘test-future,optsenvvars.R’ [2s/11s]
Running ‘test-future.R’
Running ‘test-futureAssign.R’ [7s/24s]
Running ‘test-futureAssign_OP.R’ [11s/34s]
Running ‘test-futureAssign_OP_with_environment.R’
Running ‘test-futureAssign_OP_with_listenv.R’
Running ‘test-futureCall.R’ [6s/26s]
Running ‘test-futureOf.R’
Running ‘test-futureOf_with_environment.R’
Running ‘test-futureOf_with_listenv.R’
Running ‘test-futureSessionInfo.R’
Running ‘test-futures.R’ [33s/76s]
Running ‘test-globals,NSE.R’ [3s/14s]
Running ‘test-globals,S4methods.R’ [4s/11s]
Running ‘test-globals,formulas.R’ [13s/36s]
Running ‘test-globals,locals.R’ [4s/13s]
Running ‘test-globals,manual.R’ [8s/26s]
Running ‘test-globals,resolve.R’ [3s/10s]
Running ‘test-globals,subassignment.R’ [11s/35s]
Running ‘test-globals,toolarge.R’
Running ‘test-globals,tricky.R’ [30s/74s]
Running ‘test-globals,tricky_recursive.R’
Running ‘test-globalsOf,tweaks.R’
Running ‘test-immediateCondition.R’
Running ‘test-interrupt-sets.R’ [3s/13s]
Running ‘test-interrupt.R’ [2s/10s]
Running ‘test-interrupts-from-worker-itself.R’
Running ‘test-invalid-owner.R’ [3s/10s]
Running ‘test-mandelbrot.R’
Running ‘test-misuse-connections.R’
Running ‘test-mpi.R’
Running ‘test-multicore,multithreading.R’
Running ‘test-multicore,worker-termination.R’
Running ‘test-nbrOfWorkers.R’ [5s/18s]
Running ‘test-nested_futures,mc.cores.R’ [7s/40s]
Running ‘test-nested_futures.R’ [6s/30s]
Running ‘test-non-exportable,connections.R’
Running ‘test-objectSize.R’
Running ‘test-plan.R’ [4s/33s]
Running ‘test-relaying,muffle.R’
Running ‘test-relaying,split.R’
Running ‘test-relaying.R’ [4s/14s]
Running ‘test-requestCore.R’
Running ‘test-requestNode.R’
Running ‘test-reserved-keyword-functions.R’
Running ‘test-reset.R’ [4s/12s]
Running ‘test-resolve.R’ [13s/41s]
Running ‘test-resolved-non-blocking-test.R’
Running ‘test-rng.R’ [51s/108s]
Running ‘test-rng_utils.R’
Running ‘test-sequential.R’
Running ‘test-sessionDetails.R’
Running ‘test-startup-onAttach.R’
Running ‘test-startup-onLoad.R’
Running ‘test-startup-parseCmdArgs.R’
Running ‘test-stdout.R’ [8s/23s]
Running ‘test-timeouts.R’
Running ‘test-tweak.R’ [4s/11s]
Running ‘test-utils.R’
Running ‘test-uuid.R’
Running ‘test-value.R’ [22s/53s]
Running ‘test-whichIndex.R’
Running the tests in ‘tests/test-early-signaling.R’ failed.
Complete output:
> ## This runs testme test script incl/testme/test-early-signaling.R
> ## Don't edit - it was autogenerated by inst/testme/deploy.R
> future:::testme("early-signaling")
Test 'early-signaling' ...
Sourcing 9 prologue scripts ...
01/09 prologue script '/data/gannet/ripley/R/packages/tests-clang/future.Rcheck/future/testme/_prologue/001.load.R'
02/09 prologue script '/data/gannet/ripley/R/packages/tests-clang/future.Rcheck/future/testme/_prologue/002.record-state.R'
03/09 prologue script '/data/gannet/ripley/R/packages/tests-clang/future.Rcheck/future/testme/_prologue/030.imports.R'
04/09 prologue script '/data/gannet/ripley/R/packages/tests-clang/future.Rcheck/future/testme/_prologue/050.utils.R'
05/09 prologue script '/data/gannet/ripley/R/packages/tests-clang/future.Rcheck/future/testme/_prologue/090.context.R'
06/09 prologue script '/data/gannet/ripley/R/packages/tests-clang/future.Rcheck/future/testme/_prologue/090.options.R'
07/09 prologue script '/data/gannet/ripley/R/packages/tests-clang/future.Rcheck/future/testme/_prologue/091.envvars.R'
08/09 prologue script '/data/gannet/ripley/R/packages/tests-clang/future.Rcheck/future/testme/_prologue/099.future-setup.R'
09/09 prologue script '/data/gannet/ripley/R/packages/tests-clang/future.Rcheck/future/testme/_prologue/995.detrius-connections.R'
Sourcing 9 prologue scripts ... done
Running test script: '/data/gannet/ripley/R/packages/tests-clang/future.Rcheck/future/testme/test-early-signaling.R'
> library(future)
[15:20:05.137] Option 'future.startup.script': TRUE
[15:20:05.139] Future startup scripts considered: '.future.R', '~/.future.R'
[15:20:05.139] Future startup scripts found: <none>
> options(future.debug = FALSE)
> message("*** Early signaling of conditions ...")
*** Early signaling of conditions ...
> message("*** Early signaling of conditions with sequential futures ...")
*** Early signaling of conditions with sequential futures ...
> plan(sequential)
> f <- future({
+ stop("bang!")
+ })
> r <- resolved(f)
> stopifnot(r)
> v <- tryCatch(value(f), error = identity)
> stopifnot(inherits(v, "error"))
> message("- with lazy evaluation ...")
- with lazy evaluation ...
> f <- future({
+ stop("bang!")
+ }, lazy = TRUE)
> r <- resolved(f)
> v <- tryCatch(value(f), error = identity)
> stopifnot(inherits(v, "error"))
> plan(sequential, earlySignal = TRUE)
> f <- tryCatch(future({
+ stop("bang!")
+ }), error = identity)
> stopifnot(inherits(f, "error"))
> message("- with lazy evaluation ...")
- with lazy evaluation ...
> f <- future({
+ stop("bang!")
+ }, lazy = TRUE)
> r <- tryCatch(resolved(f), error = identity)
> stopifnot(inherits(r, "error"))
> v <- tryCatch(value(f), error = identity)
> stopifnot(inherits(v, "error"))
> f <- future({
+ warning("careful!")
+ }, lazy = TRUE)
> res <- tryCatch({
+ r <- resolved(f)
+ }, condition = function(w) w)
> str(res)
List of 2
$ message: chr "careful!"
$ call : language eval(quote({ { ...
- attr(*, "class")= chr [1:3] "simpleWarning" "warning" "condition"
> stopifnot(inherits(res, "warning"))
> f <- future({
+ message("hey!")
+ }, lazy = TRUE)
> res <- tryCatch({
+ r <- resolved(f)
+ }, condition = function(w) w)
> stopifnot(inherits(res, "message"))
> f <- future({
+ signalCondition(simpleCondition("hmm"))
+ }, lazy = TRUE)
> res <- tryCatch({
+ r <- resolved(f)
+ }, condition = function(w) w)
> stopifnot(inherits(res, "condition"))
> message("*** Early signaling of conditions with sequential futures ... DONE")
*** Early signaling of conditions with sequential futures ... DONE
> message("Number of available cores: ", availableCores())
Number of available cores: 2
> message("*** Early signaling of conditions with multisession futures ...")
*** Early signaling of conditions with multisession futures ...
> plan(multisession)
> f <- future({
+ stop("bang!")
+ })
> Sys.sleep(0.2)
> r <- resolved(f)
> stopifnot(r)
Error: r is not TRUE
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 1.40.0
Check: tests
Result: ERROR
Running ‘test-FutureError.R’
Running ‘test-FutureGlobals.R’
Running ‘test-FutureRegistry.R’
Running ‘test-adhoc_native_to_utf8.R’
Running ‘test-backtrace.R’
Running ‘test-bquote.R’
Running ‘test-capture_journals.R’
Running ‘test-cluster,worker-termination.R’
Running ‘test-cluster-connection-clashes.R’
Running ‘test-cluster-missing-future-pkg.R’
Running ‘test-demo-fibonacci.R’
Running ‘test-demo-mandelbrot.R’
Running ‘test-dotdotdot.R’
Running ‘test-early-signaling.R’
Running ‘test-future,labels.R’
Running ‘test-future,optsenvvars.R’
Running ‘test-future.R’
Running ‘test-futureAssign.R’
Running ‘test-futureAssign_OP.R’ [9s/14s]
Running ‘test-futureAssign_OP_with_environment.R’
Running ‘test-futureAssign_OP_with_listenv.R’
Running ‘test-futureCall.R’ [5s/12s]
Running ‘test-futureOf.R’
Running ‘test-futureOf_with_environment.R’
Running ‘test-futureOf_with_listenv.R’
Running ‘test-futureSessionInfo.R’
Running ‘test-futures.R’ [30s/42s]
Running ‘test-globals,NSE.R’
Running ‘test-globals,S4methods.R’
Running ‘test-globals,formulas.R’ [12s/18s]
Running ‘test-globals,locals.R’
Running ‘test-globals,manual.R’ [8s/17s]
Running ‘test-globals,resolve.R’
Running ‘test-globals,subassignment.R’ [10s/16s]
Running ‘test-globals,toolarge.R’
Running ‘test-globals,tricky.R’ [26s/40s]
Running ‘test-globals,tricky_recursive.R’
Running ‘test-globalsOf,tweaks.R’
Running ‘test-immediateCondition.R’
Running ‘test-interrupt-sets.R’
Running ‘test-interrupt.R’
Running ‘test-interrupts-from-worker-itself.R’
Running ‘test-invalid-owner.R’
Running ‘test-mandelbrot.R’
Running ‘test-misuse-connections.R’
Running ‘test-mpi.R’
Running ‘test-multicore,multithreading.R’
Running ‘test-multicore,worker-termination.R’
Running ‘test-nbrOfWorkers.R’ [4s/10s]
Running ‘test-nested_futures,mc.cores.R’ [6s/22s]
Running ‘test-nested_futures.R’ [5s/15s]
Running ‘test-non-exportable,connections.R’
Running ‘test-objectSize.R’
Running ‘test-plan.R’ [4s/19s]
Running ‘test-relaying,muffle.R’
Running ‘test-relaying,split.R’
Running ‘test-relaying.R’
Running ‘test-requestCore.R’
Running ‘test-requestNode.R’
Running ‘test-reserved-keyword-functions.R’
Running ‘test-reset.R’
Running ‘test-resolve.R’ [13s/28s]
Running ‘test-resolved-non-blocking-test.R’
Running ‘test-rng.R’ [44s/53s]
Running ‘test-rng_utils.R’
Running ‘test-sequential.R’
Running ‘test-sessionDetails.R’
Running ‘test-startup-onAttach.R’
Running ‘test-startup-onLoad.R’
Running ‘test-startup-parseCmdArgs.R’
Running ‘test-stdout.R’ [7s/11s]
Running ‘test-timeouts.R’
Running ‘test-tweak.R’
Running ‘test-utils.R’ [13s/15s]
Running ‘test-uuid.R’
Running ‘test-value.R’ [20s/39s]
Running ‘test-whichIndex.R’
Running the tests in ‘tests/test-early-signaling.R’ failed.
Complete output:
> ## This runs testme test script incl/testme/test-early-signaling.R
> ## Don't edit - it was autogenerated by inst/testme/deploy.R
> future:::testme("early-signaling")
Test 'early-signaling' ...
Sourcing 9 prologue scripts ...
01/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.Rcheck/future/testme/_prologue/001.load.R'
02/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.Rcheck/future/testme/_prologue/002.record-state.R'
03/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.Rcheck/future/testme/_prologue/030.imports.R'
04/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.Rcheck/future/testme/_prologue/050.utils.R'
05/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.Rcheck/future/testme/_prologue/090.context.R'
06/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.Rcheck/future/testme/_prologue/090.options.R'
07/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.Rcheck/future/testme/_prologue/091.envvars.R'
08/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.Rcheck/future/testme/_prologue/099.future-setup.R'
09/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.Rcheck/future/testme/_prologue/995.detrius-connections.R'
Sourcing 9 prologue scripts ... done
Running test script: '/data/gannet/ripley/R/packages/tests-devel/future.Rcheck/future/testme/test-early-signaling.R'
> library(future)
[00:15:50.007] Option 'future.startup.script': TRUE
[00:15:50.008] Future startup scripts considered: '.future.R', '~/.future.R'
[00:15:50.009] Future startup scripts found: <none>
> options(future.debug = FALSE)
> message("*** Early signaling of conditions ...")
*** Early signaling of conditions ...
> message("*** Early signaling of conditions with sequential futures ...")
*** Early signaling of conditions with sequential futures ...
> plan(sequential)
> f <- future({
+ stop("bang!")
+ })
> r <- resolved(f)
> stopifnot(r)
> v <- tryCatch(value(f), error = identity)
> stopifnot(inherits(v, "error"))
> message("- with lazy evaluation ...")
- with lazy evaluation ...
> f <- future({
+ stop("bang!")
+ }, lazy = TRUE)
> r <- resolved(f)
> v <- tryCatch(value(f), error = identity)
> stopifnot(inherits(v, "error"))
> plan(sequential, earlySignal = TRUE)
> f <- tryCatch(future({
+ stop("bang!")
+ }), error = identity)
> stopifnot(inherits(f, "error"))
> message("- with lazy evaluation ...")
- with lazy evaluation ...
> f <- future({
+ stop("bang!")
+ }, lazy = TRUE)
> r <- tryCatch(resolved(f), error = identity)
> stopifnot(inherits(r, "error"))
> v <- tryCatch(value(f), error = identity)
> stopifnot(inherits(v, "error"))
> f <- future({
+ warning("careful!")
+ }, lazy = TRUE)
> res <- tryCatch({
+ r <- resolved(f)
+ }, condition = function(w) w)
> str(res)
List of 2
$ message: chr "careful!"
$ call : language eval(quote({ { ...
- attr(*, "class")= chr [1:3] "simpleWarning" "warning" "condition"
> stopifnot(inherits(res, "warning"))
> f <- future({
+ message("hey!")
+ }, lazy = TRUE)
> res <- tryCatch({
+ r <- resolved(f)
+ }, condition = function(w) w)
> stopifnot(inherits(res, "message"))
> f <- future({
+ signalCondition(simpleCondition("hmm"))
+ }, lazy = TRUE)
> res <- tryCatch({
+ r <- resolved(f)
+ }, condition = function(w) w)
> stopifnot(inherits(res, "condition"))
> message("*** Early signaling of conditions with sequential futures ... DONE")
*** Early signaling of conditions with sequential futures ... DONE
> message("Number of available cores: ", availableCores())
Number of available cores: 2
> message("*** Early signaling of conditions with multisession futures ...")
*** Early signaling of conditions with multisession futures ...
> plan(multisession)
> f <- future({
+ stop("bang!")
+ })
> Sys.sleep(0.2)
> r <- resolved(f)
> stopifnot(r)
Error: r is not TRUE
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Current CRAN status: OK: 13
Current CRAN status: NOTE: 6, OK: 7
Version: 0.12.1
Check: Rd cross-references
Result: NOTE
Found the following Rd file(s) with Rd \link{} targets missing package
anchors:
nbrOfWorkers.batchtools.Rd: plan
Please provide package anchors for all Rd \link{} targets not in the
package itself and the base packages.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-windows-x86_64
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: NOTE: 2, OK: 11
Version: 0.67.0
Check: Rd cross-references
Result: NOTE
Found the following Rd file(s) with Rd \link{} targets missing package
anchors:
as.CBS.DNAcopy.Rd: DNAcopy
as.DNAcopy.CBS.Rd: DNAcopy
Please provide package anchors for all Rd \link{} targets not in the
package itself and the base packages.
Flavors: r-devel-linux-x86_64-debian-clang, r-patched-linux-x86_64
Current CRAN status: NOTE: 13
Version: 0.16.0
Check: Rd files
Result: NOTE
checkRd: (-1) R.cache-package.Rd:28-30: Lost braces in \itemize; meant \describe ?
checkRd: (-1) R.cache-package.Rd:31-34: Lost braces in \itemize; meant \describe ?
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Current CRAN status: NOTE: 1, OK: 12
Version: 2.17.2
Check: package vignettes
Result: NOTE
Package has ‘vignettes’ subdirectory but apparently no vignettes.
Perhaps the ‘VignetteBuilder’ information is missing from the
DESCRIPTION file?
Flavor: r-oldrel-macos-x86_64
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: NOTE: 13
Version: 3.7.0
Check: Rd files
Result: NOTE
checkRd: (-1) setOption.Matlab.Rd:37-39: Lost braces in \itemize; meant \describe ?
checkRd: (-1) setOption.Matlab.Rd:40-41: Lost braces in \itemize; meant \describe ?
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: OK: 13
Current CRAN status: NOTE: 13
Version: 0.10.1
Check: Rd files
Result: NOTE
checkRd: (-1) TopDom.Rd:21: Lost braces; missing escapes or markup?
21 | Recommended range is in {5, ..., 20}.}
| ^
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64