R version 4.6.0 RC (2026-04-22 r89945 ucrt) -- "Because it was There" Copyright (C) 2026 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. > #! /usr/bin/env Rscript > ## This runs testme test script inst/testme/test-BatchtoolsFuture.R > ## Don't edit - it was autogenerated by inst/testme/deploy.R > future.batchtools:::testme("BatchtoolsFuture") Test 'BatchtoolsFuture' ... chr "none" > library(future) > message("*** BatchtoolsFuture() ...") *** BatchtoolsFuture() ... > message("*** BatchtoolsFuture() - cleanup ...") *** BatchtoolsFuture() - cleanup ... > plan(future.batchtools::batchtools_local) > f <- future({ + 1 + }) > res <- await(f, cleanup = TRUE) > print(res) FutureResult: value: 'integer' visible: TRUE stdout: character conditions: [n = 0] RNG used: FALSE duration: 0.04488802 secs (started 2026-04-25 00:51:16.865835) version: 1.8 > stopifnot(res$value == 1) > message("*** BatchtoolsFuture() - cleanup ... DONE") *** BatchtoolsFuture() - cleanup ... DONE > message("*** BatchtoolsFuture() - deleting exceptions ...") *** BatchtoolsFuture() - deleting exceptions ... > f <- future(42) > print(f) BatchtoolsLocalFuture: Label: Expression: [1] 42 Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Capture standard output: TRUE Capture condition classes: 'condition' (excluding '') Immediate condition classes: 'immediateCondition' Lazy evaluation: FALSE Local evaluation: TRUE Early signaling: FALSE Actions: [n=1] 'run' State: 'finished' ("Future was resolved successfully") Resolved: TRUE Unique identifier: aa3a94bc63becf46664f3a387ffa6344-2 Owner process: aa3a94bc63becf46664f3a387ffa6344 Class: 'BatchtoolsLocalFuture', 'BatchtoolsUniprocessFuture', 'BatchtoolsFuture', 'Future' Value: Conditions captured: batchtools configuration file: batchtools cluster functions: 'Interactive' batchtools cluster functions template: batchtools status: 'defined', 'finished', 'started', 'submitted' Output captured by batchtools: [output] ### [bt]: This is batchtools v0.9.18 [output] ### [bt]: Starting calculation of 1 jobs [output] ### [bt]: Setting working directory to 'D:/RCompile/CRANincoming/R-devel/future.batchtools.Rcheck/tests' [output] Loading required package: methods [output] ### [bt]: Memory measurement disabled [output] ### [bt]: Starting job [batchtools job.id=1] [output] ### [bt]: Setting seed to 13437 ... [output] [output] ### [bt]: Job terminated successfully [batchtools job.id=1] [output] ### [bt]: Calculation finished! batchtools Registry: File dir exists: TRUE Work dir exists: TRUE Job Registry Backend : Interactive File dir : D:/temp/2026_04_25_00_50_17_18966/RtmpIDvrEz/.future/20260425_005116-IDvrEz/batchtools_1501434131 Work dir : D:/RCompile/CRANincoming/R-devel/future.batchtools.Rcheck/tests Jobs : 1 Seed : 13436 Writeable: TRUE > v <- value(f) > print(v) [1] 42 > stopifnot(v == 42) > res <- delete(f) > print(f) BatchtoolsLocalFuture: Label: Expression: [1] 42 Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Capture standard output: TRUE Capture condition classes: 'condition' (excluding '') Immediate condition classes: 'immediateCondition' Lazy evaluation: FALSE Local evaluation: TRUE Early signaling: FALSE Actions: [n=1] 'run' State: 'finished' ("Future was resolved successfully") Resolved: TRUE Unique identifier: aa3a94bc63becf46664f3a387ffa6344-2 Owner process: aa3a94bc63becf46664f3a387ffa6344 Class: 'BatchtoolsLocalFuture', 'BatchtoolsUniprocessFuture', 'BatchtoolsFuture', 'Future' Value: 35 bytes of class 'integer' Duration: 0.08329988 secs (started 2026-04-25 00:51:17.90771) Worker process: b00e42a0cebccde87244fb1ad8b3cb15 batchtools configuration file: batchtools cluster functions: 'Interactive' batchtools cluster functions template: batchtools status: 'defined', 'finished', 'started', 'submitted' Output captured by batchtools: batchtools Registry: File dir exists: FALSE Work dir exists: TRUE Job Registry Backend : Interactive File dir : D:/temp/2026_04_25_00_50_17_18966/RtmpIDvrEz/.future/20260425_005116-IDvrEz/batchtools_1501434131 Work dir : D:/RCompile/CRANincoming/R-devel/future.batchtools.Rcheck/tests Jobs : 1 Seed : 13436 Writeable: TRUE > res <- delete(f) > print(f) BatchtoolsLocalFuture: Label: Expression: [1] 42 Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Capture standard output: TRUE Capture condition classes: 'condition' (excluding '') Immediate condition classes: 'immediateCondition' Lazy evaluation: FALSE Local evaluation: TRUE Early signaling: FALSE Actions: [n=1] 'run' State: 'finished' ("Future was resolved successfully") Resolved: TRUE Unique identifier: aa3a94bc63becf46664f3a387ffa6344-2 Owner process: aa3a94bc63becf46664f3a387ffa6344 Class: 'BatchtoolsLocalFuture', 'BatchtoolsUniprocessFuture', 'BatchtoolsFuture', 'Future' Value: 35 bytes of class 'integer' Duration: 0.08329988 secs (started 2026-04-25 00:51:17.90771) Worker process: b00e42a0cebccde87244fb1ad8b3cb15 batchtools configuration file: batchtools cluster functions: 'Interactive' batchtools cluster functions template: batchtools status: 'defined', 'finished', 'started', 'submitted' Output captured by batchtools: batchtools Registry: File dir exists: FALSE Work dir exists: TRUE Job Registry Backend : Interactive File dir : D:/temp/2026_04_25_00_50_17_18966/RtmpIDvrEz/.future/20260425_005116-IDvrEz/batchtools_1501434131 Work dir : D:/RCompile/CRANincoming/R-devel/future.batchtools.Rcheck/tests Jobs : 1 Seed : 13436 Writeable: TRUE > message("*** BatchtoolsFuture() - deleting exceptions ... DONE") *** BatchtoolsFuture() - deleting exceptions ... DONE > message("*** BatchtoolsFuture() - registry exceptions ...") *** BatchtoolsFuture() - registry exceptions ... > f <- future({ + x <- 1 + }) > f$state <- "running" > if (!is.null(f$config$reg)) { + path <- f$config$reg$file.dir + unlink(path, recursive = TRUE) + } > res <- tryCatch({ + value(f) + }, error = function(ex) ex) > print(res) reg$mtime + 1) { warning("Registry has been altered since last read. Switching to read-only mode in this session. See ?loadRegistry.") reg$writeable = FALSE}: missing value where TRUE/FALSE needed> > stopifnot(inherits(res, "error")) > res <- tryCatch({ + await(f) + }, error = function(ex) ex) > print(res) reg$mtime + 1) { warning("Registry has been altered since last read. Switching to read-only mode in this session. See ?loadRegistry.") reg$writeable = FALSE}: missing value where TRUE/FALSE needed> > stopifnot(inherits(res, "error")) > message("*** BatchtoolsFuture() - registry exceptions ... DONE") *** BatchtoolsFuture() - registry exceptions ... DONE > message("*** BatchtoolsFuture() - timeout ...") *** BatchtoolsFuture() - timeout ... > if (fullTest && availableCores(constraints = "multicore") > + 1) { + plan(future.batchtools::batchtools_multicore) + options(future.wai .... [TRUNCATED] > message("*** BatchtoolsFuture() - timeout ... DONE") *** BatchtoolsFuture() - timeout ... DONE > message("*** BatchtoolsFuture() ... DONE") *** BatchtoolsFuture() ... DONE Failed to undo environment variables: - Expected environment variables: [n=220] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', ..., 'tempdirname' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: Skipping, because path appears not to be an 'R CMD check' folder: 'D:/temp/2026_04_25_00_50_17_18966' Test time: user.self=0.5s, sys.self=0.08s, elapsed=3s, user.child=NAs, sys.child=NAs Test 'tempdirname' ... success > > proc.time() user system elapsed 1.14 0.26 3.78