Running ‘test-all.R’ [93s/108s]
  Running ‘test-helpers.R’ [0s/1s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > # Sys.setenv("_R_CHECK_THINGS_IN_OTHER_DIRS_" = "true") ## check if things left behind
  > # Sys.setenv("R_REQUIRE_RUN_ALL_TESTS" = "true") # use this if Version is a release version, but want to run as Dev
  > # Sys.setenv(R_REQUIRE_CHECK_AS_CRAN = "true") # set this to test as if it is CRAN (short and silent)
  > # Sys.setenv(R_REQUIRE_TEST_AS_INTERACTIVE = "false") # set this to test as if GitHub Actions (short and loud)
  > # THIS IS USING THE MECHANISM FOR CRAN THAT IF THE VERSION NUMBER IS NOT A DEV VERSION (E.G., .9000) THEN IT IS RUN AS CRAN
  > # source("tests/test-all.R") # run this for tests; set neither of above 2 for "long" testing
  > ########## THe next 3 lines are good to test for CRAN
  > # Sys.setenv("_R_CHECK_THINGS_IN_OTHER_DIRS_" = "TRUE") ## check if things left behind
  > # Sys.setenv(R_REQUIRE_CHECK_AS_CRAN = "true") # set this to test as if it is CRAN (short and silent)
  > # devtools::check(args = c('--as-cran','--run-dontrun','--no-clean','--run-donttest'))
  > 
  > optNcpus <- options(Ncpus = 2L)
  > 
  > checks <- list()
  > checks$start <- list()
  > checks$start[["getwd"]] <- getwd()
  > checks$start[["libPaths"]] <- .libPaths()
  > checks$start[["envVars"]] <- Sys.getenv()
  > envOrig <- checks$start[["envVars"]]
  > 
  > if (Require:::.isDevelVersion() && nchar(Sys.getenv("R_REQUIRE_RUN_ALL_TESTS")) == 0) {
  +   Sys.setenv("R_REQUIRE_RUN_ALL_TESTS" = "true")
  + }
  > # GitHub Actions, R CMD check locally
  > isDev <- Sys.getenv("R_REQUIRE_RUN_ALL_TESTS") == "true" &&
  +   Sys.getenv("R_REQUIRE_CHECK_AS_CRAN") != "true"
  > # Actually interactive
  > isDevAndInteractive <- interactive() && isDev && Sys.getenv("R_REQUIRE_TEST_AS_INTERACTIVE") != "false"
  > 
  > if (!isDevAndInteractive) { # i.e., CRAN
  +   Sys.setenv(R_REQUIRE_PKG_CACHE = "FALSE")
  + }
  > 
  > suppressPackageStartupMessages(library(Require)) # this will trigger data.table options to be set so that we have them part of our "before" snapshot
  > library(testit)
  > 
  > # These are only defined sufficiently to be undone *after* loading the package
  > checks$start[["options"]] <- options()
  > origOptions <- checks$start[["options"]]
  > checks$start[["cacheDir"]] <- dir(Require::RequireCacheDir(FALSE), recursive = TRUE)
  > checks$start[["tempdir2"]] <- dir(Require::tempdir2(create = FALSE), recursive = TRUE)
  > 
  > # helper files for this test
  > source(dir(pattern = "test-helpers.R", recursive = TRUE, full.names = TRUE))
  > 
  > # Can emulate CRAN by setting Sys.setenv(R_REQUIRE_CHECK_AS_CRAN = "true"); source()
  > # if (isFALSE(isDev)) {
  > #   try(unlink(RequireCacheDir(), recursive = TRUE))
  > # }
  > 
  > # Put this in a function so we can wrap it in a try, so that we can revert everything
  > # runTests <- function(checks) {
  > ## force tests to be executed if in dev release which we define as
  > ## having a sub-release, eg 0.9.15.5 is one whereas 0.9.16 is not
  > ee <- new.env()
  > 
  > optsBioC <- options(
  +   BIOCONDUCTOR_USE_CONTAINER_REPOSITORY = FALSE,
  +   BiocManager.check_repositories = FALSE
  + )
  > 
  > startTimeAll <- startTime <- Sys.time()
  > tdOuter <- Require::tempdir2("tests")
  > try(saveRDS(startTimeAll, file = file.path(tdOuter, "startTimeAll")), silent = TRUE)
  > 
  > optsListNew <- list()
  > verbosity <- if (isDevAndInteractive) 2 else if (isDev) 2 else -2
  > # options(Require.RPackageCache = FALSE)
  > 
  > if (!startsWith(getOption("repos")[[1]], "http")) { # deal with @CRAN@
  +   origRepos <- options(repos = c(CRAN = Require:::srcPackageURLOnCRAN))
  + }
  > 
  > optsListPrevLinux <- if (isDevAndInteractive) Require::setLinuxBinaryRepo() else NULL
  > 
  > optsListNew <- Require::modifyList2(optsListNew, list(Require.verbose = verbosity),
  +   keep.null = TRUE
  + )
  > optsNcpus <- options("Ncpus" = 4)
  > optsListPrev <- options(optsListNew)
  > # optsListNew <- modifyList2(optsListNew, options("repos"))
  > origLibPaths <- .libPaths()
  > origWd <- getwd()
  > 
  > # The test
  > try(test_pkg("Require")) # not sure if this works with try
  'Rscript' should not be used without a path -- see par. 1.6 of the manual
  Error from pkgDep("data.table", purge = TRUE)  at test-4other.R#14 
  Error in file.exists(SHAfile) : invalid 'file' argument
  > 
  > if (!isDevAndInteractive || !isDev) { # i.e., CRAN
  +   Require:::.cleanup(list())
  + }
  Error in file.exists(SHAfile) : invalid 'file' argument
  Calls: <Anonymous> -> clearRequirePackageCache -> file.exists
  Execution halted