Running ‘BatchtoolsFuture,gc.R’ [1s/1s]
Running the tests in ‘tests/BatchtoolsFuture,gc.R’ failed.
Complete output:
  > source("incl/start.R")
  Loading required package: future
  > 
  > message("*** BatchtoolsFuture() and garbage collection ...")
  *** BatchtoolsFuture() and garbage collection ...
  > 
  > plan(batchtools_local)
  > 
  > for (how in c("resolve", "value")) {
  +   f <- future({ 1 })
  +   print(f)
  + 
  +   if (how == "value") {
  +     v <- value(f)
  +     print(v)
  +   } else if (how == "resolve") {
  +     resolve(f)
  +   }
  + 
  +   stopifnot(resolved(f))
  + 
  +   reg <- f$config$reg
  + 
  +   ## Force removal of batchtools registry files
  +   rm(list = "f")
  +   gc()
  + 
  +   ## Assert removal of files only happens if there was not
  +   ## a failure and option future.delete is not TRUE.
  +   stopifnot(!file_test("-d", reg$file.dir))
  +   fail <- try(checkIds(reg, ids = 1L), silent = TRUE)
  +   stopifnot(inherits(fail, "try-error"))
  + } ## for (how ...)
  getGlobalsAndPackages() ...
  Searching for globals ...
  - globals found: [1] '{'
  Searching for globals ... DONE
  Resolving globals: FALSE
  
  
  getGlobalsAndPackages() ... DONE
  No configuration file found
  Created registry in '/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/future.batchtools.Rcheck/tests/.future/20170915_201452-54jZEG/batchtools_2129019321' using cluster functions 'Interactive'
  Job Registry
    Backend  : Interactive
    File dir : /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/future.batchtools.Rcheck/tests/.future/20170915_201452-54jZEG/batchtools_2129019321
    Work dir : /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/future.batchtools.Rcheck/tests
    Jobs     : 0
    Seed     : 105545969
    Writeable: TRUE
  Packages needed by future strategies (n = 0): <none>
  Packages needed by the future expression (n = 0): <none>
  {
      {
          ...future.oldOptions <- options(future.startup.loadScript = FALSE, 
              future.globals.onMissing = "error")
          {
              NULL
              future::plan("default", .cleanup = FALSE, .init = FALSE)
          }
      }
      tryCatch({
          local({
              1
          })
      }, finally = {
          {
              {
                  NULL
                  future::plan(list(function (expr, envir = parent.frame(), 
                    substitute = TRUE, globals = TRUE, label = NULL, 
                    workers = 1L, ...) 
                  {
                    if (substitute) 
                      expr <- substitute(expr)
                    cf <- makeClusterFunctionsInteractive(external = TRUE)
                    future <- BatchtoolsFuture(expr = expr, envir = envir, 
                      substitute = FALSE, globals = globals, label = label, 
                      workers = workers, cluster.functions = cf, 
                      ...)
                    if (!future$lazy) 
                      future <- run(future)
                    future
                  }), .cleanup = FALSE, .init = FALSE)
              }
              options(...future.oldOptions)
          }
      })
  }
  batchtools::batchMap()
  Adding 1 jobs ...
  Created BatchtoolsFuture future #1
  Submitting 1 jobs in 1 chunks using cluster functions 'Interactive' ...
  Launched future #1
  BatchtoolsFuture:
  Label: '<none>'
  Expression:
  {
      1
  }
  Lazy evaluation: FALSE
  Asynchronous evaluation: TRUE
  Local evaluation: TRUE
  Environment: <environment: R_GlobalEnv>
  Globals: <none>
  Packages: <none>
  L'Ecuyer-CMRG RNG seed: <none>
  Resolved: TRUE
  Value: <not collected>
  Early signalling: FALSE
  Owner process: 3373c4a5-7248-89e7-1454-63df314f29cf
  Class: 'BatchtoolsFuture', 'Future', 'environment'
  batchtools cluster functions: 'Interactive'
  batchtools status: 'defined', 'expired', 'submitted'
  batchtools Registry:
    Job Registry
    Backend  : Interactive
    File dir : /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/future.batchtools.Rcheck/tests/.future/20170915_201452-54jZEG/batchtools_2129019321
    Work dir : /home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/future.batchtools.Rcheck/tests
    Jobs     : 1
    Seed     : 105545969
    Writeable: TRUE
  A BatchtoolsFuture was resolved (value was not collected)
  delete(): Option 'future.delete = '<NULL>'
  delete(): Will not remove batchtools registry, because the status of the batchtools was 'defined', 'expired', 'submitted' and option 'future.delete' is FALSE or running in an interactive session: '/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/future.batchtools.Rcheck/tests/.future/20170915_201452-54jZEG/batchtools_2129019321'
  Warning in delete.BatchtoolsFuture(future, onRunning = "skip", onMissing = "ignore",  :
    Will not remove batchtools registry, because the status of the batchtools was 'defined', 'expired', 'submitted' and option 'future.delete' is FALSE or running in an interactive session: '/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/future.batchtools.Rcheck/tests/.future/20170915_201452-54jZEG/batchtools_2129019321'
  Error: !file_test("-d", reg$file.dir) is not TRUE
  Execution halted