R Under development (unstable) (2025-08-24 r88696 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-batchtools_interactive.R > ## Don't edit - it was autogenerated by inst/testme/deploy.R > future.batchtools:::testme("batchtools_interactive") Test 'batchtools_interactive' ... 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-batchtools_interactive.R' > library(future) > library(listenv) > message("*** batchtools_interactive() ...") *** batchtools_interactive() ... > message("*** batchtools_interactive() without globals") *** batchtools_interactive() without globals > plan(future.batchtools::batchtools_interactive) > f <- future({ + 42 + }) > stopifnot(inherits(f, "BatchtoolsFuture")) > print(is_resolved <- resolved(f)) [1] TRUE > stopifnot(is_resolved) > y <- value(f) > print(y) [1] 42 > stopifnot(y == 42) > message("*** batchtools_interactive() with globals") *** batchtools_interactive() with globals > a <- 0 > f <- future({ + b <- 3 + c <- 2 + a * b * c + }) > a <- 7 > v <- value(f) > print(v) [1] 0 > stopifnot(v == 0) > message("*** batchtools_interactive() with globals (tricky)") *** batchtools_interactive() with globals (tricky) > x <- listenv() > for (ii in 1:2) x[[ii]] <- future({ + ii + }, globals = TRUE) > v <- unlist(value(x)) > stopifnot(all(v == 1:2)) > message("*** batchtools_interactive() and errors") *** batchtools_interactive() and errors > f <- future({ + stop("Whoops!") + 1 + }) > v <- value(f, signal = FALSE) Warning in delete.BatchtoolsFuture(future) : Will not remove batchtools registry, because the status of the batchtools was 'error', 'defined', 'finished', 'started', 'submitted' and future backend argument 'delete' is 'on-success': 'D:/temp/2025_08_26_00_40_17_26176/RtmpigMzbA/.future/20250826_004128-igMzbA/batchtools_1532381619' > print(v) > stopifnot(inherits(v, "simpleError")) > res <- try({ + v <- value(f) + }, silent = TRUE) > print(res) [1] "Error in eval(quote({ : Whoops!\n" attr(,"class") [1] "try-error" attr(,"condition") > stopifnot(inherits(res, "try-error")) > res <- try(value(f), silent = TRUE) > print(res) [1] "Error in eval(quote({ : Whoops!\n" attr(,"class") [1] "try-error" attr(,"condition") > stopifnot(inherits(res, "try-error")) > message("*** batchtools_interactive() ... DONE") *** batchtools_interactive() ... DONE Sourcing 6 epilogue scripts ... 01/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_epilogue/001.undo-future.R' 02/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_epilogue/002.undo-state.R' Failed to undo environment variables: - Expected environment variables: [n=214] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', ..., 'tempdirname' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: 03/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_epilogue/090.gc.R' 04/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_epilogue/099.session_info.R' 05/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_epilogue/995.detritus-connections.R' 06/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future.batchtools/testme/_epilogue/999.detritus-files.R' Skipping, because path appears not to be an 'R CMD check' folder: 'D:/temp/2025_08_26_00_40_17_26176' Sourcing 6 epilogue scripts ... done Test time: user.self=0.9s, sys.self=0.2s, elapsed=1s, user.child=NAs, sys.child=NAs Test 'tempdirname' ... success > > proc.time() user system elapsed 1.40 0.32 1.76 Warning message: In delete.BatchtoolsFuture(f, onRunning = "skip", onMissing = "ignore", : Will not remove batchtools registry, because the status of the batchtools was 'error', 'defined', 'finished', 'started', 'submitted' and future backend argument 'delete' is 'on-success': 'D:/temp/2025_08_26_00_40_17_26176/RtmpigMzbA/.future/20250826_004128-igMzbA/batchtools_1532381619'