R Under development (unstable) (2025-09-19 r88859 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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. > ## 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' ... Sourcing 9 prologue scripts ... 01/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_prologue/001.load.R' 02/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_prologue/002.record-state.R' 03/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_prologue/030.imports.R' 04/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_prologue/050.utils.R' 05/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_prologue/090.context.R' 06/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_prologue/090.options.R' 07/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_prologue/091.envvars.R' 08/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_prologue/099.future-setup.R' 09/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_prologue/995.detrius-connections.R' Sourcing 9 prologue scripts ... done Running test script: 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/test-BatchtoolsFuture.R' > 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.04311609 secs (started 2025-09-21 04:16:11.340906) 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 Asynchronous evaluation: TRUE Early signaling: FALSE Environment: R_GlobalEnv State: 'running' Resolved: TRUE Unique identifier: 634888e7d1979da613b981e9bc4785e9-2 Owner process: 634888e7d1979da613b981e9bc4785e9 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 31088 ... [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/2025_09_21_04_15_17_31299/Rtmp6jiAYY/.future/20250921_041610-6jiAYY/batchtools_968460270 Work dir : D:/RCompile/CRANincoming/R-devel/future.batchtools.Rcheck/tests Jobs : 1 Seed : 31087 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 Asynchronous evaluation: TRUE Early signaling: FALSE Environment: R_GlobalEnv State: 'finished' Resolved: TRUE Unique identifier: 634888e7d1979da613b981e9bc4785e9-2 Owner process: 634888e7d1979da613b981e9bc4785e9 Class: 'BatchtoolsLocalFuture', 'BatchtoolsUniprocessFuture', 'BatchtoolsFuture', 'Future' Value: 35 bytes of class 'integer' Duration: 0.04308391 secs (started 2025-09-21 04:16:12.150892) Worker process: 6a02a67e8a8a13868e04fb3a1a11be1b 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/2025_09_21_04_15_17_31299/Rtmp6jiAYY/.future/20250921_041610-6jiAYY/batchtools_968460270 Work dir : D:/RCompile/CRANincoming/R-devel/future.batchtools.Rcheck/tests Jobs : 1 Seed : 31087 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 Asynchronous evaluation: TRUE Early signaling: FALSE Environment: R_GlobalEnv State: 'finished' Resolved: TRUE Unique identifier: 634888e7d1979da613b981e9bc4785e9-2 Owner process: 634888e7d1979da613b981e9bc4785e9 Class: 'BatchtoolsLocalFuture', 'BatchtoolsUniprocessFuture', 'BatchtoolsFuture', 'Future' Value: 35 bytes of class 'integer' Duration: 0.04308391 secs (started 2025-09-21 04:16:12.150892) Worker process: 6a02a67e8a8a13868e04fb3a1a11be1b 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/2025_09_21_04_15_17_31299/Rtmp6jiAYY/.future/20250921_041610-6jiAYY/batchtools_968460270 Work dir : D:/RCompile/CRANincoming/R-devel/future.batchtools.Rcheck/tests Jobs : 1 Seed : 31087 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 Test time: user.self=0.5s, sys.self=0.06s, elapsed=3s, user.child=NAs, sys.child=NAs Test 'BatchtoolsFuture' ... success > > proc.time() user system elapsed 0.90 0.18 3.10