Running ‘test-BatchtoolsFuture,gc.R’ [8s/11s]
  Running ‘test-BatchtoolsFuture.R’ [10s/12s]
  Running ‘test-BatchtoolsFutureError.R’ [11s/13s]
  Running ‘test-batchtools_bash.R’
  Running ‘test-batchtools_custom.R’ [18s/24s]
  Running ‘test-batchtools_hpc.R’
  Running ‘test-batchtools_interactive.R’
  Running ‘test-batchtools_local.R’ [16s/20s]
  Running ‘test-batchtools_multicore.R’
  Running ‘test-batchtools_ssh.R’
  Running ‘test-batchtools_template.R’
  Running ‘test-demo.R’ [14s/18s]
  Running ‘test-dotdotdot.R’ [15s/18s]
  Running ‘test-future,labels.R’ [13s/19s]
  Running ‘test-future,lazy.R’ [8s/11s]
  Running ‘test-globals,formulas.R’ [33s/48s]
  Running ‘test-globals,manual.R’ [14s/18s]
  Running ‘test-globals,subassignment.R’ [24s/33s]
  Running ‘test-globals,tricky.R’ [28s/38s]
  Running ‘test-nbrOfWorkers.R’
  Running ‘test-plan.R’ [9s/11s]
  Running ‘test-resources_OP.R’
  Running ‘test-rng.R’ [29s/33s]
  Running ‘test-stdout.R’ [19s/21s]
  Running ‘test-utils.R’
  Running ‘test-zzz,future_lapply.R’ [48s/56s]
  Running ‘test-zzz.onUnload.R’
Running the tests in ‘tests/test-globals,manual.R’ failed.
Complete output:
  > ## This runs testme test script inst/testme/test-globals,manual.R
  > ## Don't edit - it was autogenerated by inst/testme/deploy.R
  > future.batchtools:::testme("globals,manual")
  Test 'globals,manual' ...
  Sourcing 9 prologue scripts ...
  01/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.batchtools.Rcheck/future.batchtools/testme/_prologue/001.load.R'
  02/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.batchtools.Rcheck/future.batchtools/testme/_prologue/002.record-state.R'
  03/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.batchtools.Rcheck/future.batchtools/testme/_prologue/030.imports.R'
  04/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.batchtools.Rcheck/future.batchtools/testme/_prologue/050.utils.R'
  05/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.batchtools.Rcheck/future.batchtools/testme/_prologue/090.context.R'
  06/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.batchtools.Rcheck/future.batchtools/testme/_prologue/090.options.R'
  07/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.batchtools.Rcheck/future.batchtools/testme/_prologue/091.envvars.R'
  08/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.batchtools.Rcheck/future.batchtools/testme/_prologue/099.future-setup.R'
  09/09 prologue script '/data/gannet/ripley/R/packages/tests-devel/future.batchtools.Rcheck/future.batchtools/testme/_prologue/995.detrius-connections.R'
  Sourcing 9 prologue scripts ... done
  Running test script: '/data/gannet/ripley/R/packages/tests-devel/future.batchtools.Rcheck/future.batchtools/testme/test-globals,manual.R'
  
  > library(future)
  
  > plan(future.batchtools::batchtools_local)
  
  > message("*** Globals - manually ...")
  *** Globals - manually ...
  
  > message("*** Globals manually specified as named list ...")
  *** Globals manually specified as named list ...
  
  > globals <- list(a = 1, b = 2, sumtwo = function(x) x[1] + 
  +     x[2])
  
  > attach_locally(globals)
  
  > v0 <- local({
  +     x <- 1:10
  +     sumtwo(a + b * x)
  + })
  
  > message("*** Globals - automatic ...")
  *** Globals - automatic ...
  
  > attach_locally(globals)
  
  > f <- future({
  +     x <- 1:10
  +     sumtwo(a + b * x)
  + }, globals = TRUE)
  
  > rm(list = names(globals))
  
  > y <- value(f)
  
  > print(y)
  [1] 8
  
  > stopifnot(all.equal(y, v0))
  
  > attach_locally(globals)
  
  > y %<-% {
  +     x <- 1:10
  +     sumtwo(a + b * x)
  + } %globals% TRUE
  
  > rm(list = names(globals))
  
  > print(y)
  [1] 8
  
  > stopifnot(all.equal(y, v0))
  
  > y %<-% {
  +     1
  + } %globals% FALSE
  
  > print(y)
  [1] 1
  
  > stopifnot(identical(y, 1))
  
  > attach_locally(globals)
  
  > f <- future({
  +     x <- 1:10
  +     sumtwo(a + b * x)
  + }, globals = FALSE)
  
  > rm(list = names(globals))
  
  > y <- tryCatch(value(f), error = identity)
  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': '/tmp/RtmpLH7c4o/working_dir/Rtmpnyw07N/.future/20260423_095612-nyw07N/batchtools_1181944045'
  
  > if (!inherits(f, c("SequentialFuture", "MulticoreFuture"))) {
  +     stopifnot(inherits(y, "simpleError"))
  + }
  Error: inherits(y, "simpleError") is not TRUE
  Execution halted
  Warning 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': '/tmp/RtmpLH7c4o/working_dir/Rtmpnyw07N/.future/20260423_095612-nyw07N/batchtools_1181944045'