Running 'testthat.R' [58s/92s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(callr)
  > 
  > Sys.unsetenv("R_TESTS")
  > 
  > if (ps::ps_is_supported() && Sys.getenv("ON_CRAN") == "true") {
  +   reporter <- ps::CleanupReporter(testthat::SummaryReporter)$new()
  +   results <- test_check("callr", reporter = reporter)
  +   failed <- sum(vapply(results, FUN.VALUE = integer(1), function(r) {
  +     sum(vapply(
  +       r$results,
  +       FUN.VALUE = logical(1),
  +       inherits, "expectation_error"))
  +   }))
  +   if (failed) stop("Test failures", call. = FALSE)
  + 
  + } else {
  +   ## ps does not support this platform
  + 
  +   sysname <- tolower(Sys.info()[["sysname"]])
  +   if (sysname != "sunos" || Sys.getenv("NOT_CRAN") == "true") {
  +     test_check("callr", reporter = "summary")
  +   }
  + }
  various bug fixes: .
  callbacks: ....
  clean-subprocess: ......
  errors: .......................SSS.......................
  r: .........................S..
  library path setup: .....W...........W.........W.........W...........S
  messages: 1S
  options: ..
  presets: .....
  calling quit(): ....
  r_bg: .........S
  r_process: .
  r_session messages: ...........
  r_session: ..................................S..............S......2...
  rcmd_bg: .....
  rcmd_process: ..S
  rcmd: ..................S
  rscript: .........SS
  spelling: S
  timeout: ..
  utils: .......................
  
  == Skipped =====================================================================
  1. error traces are merged (@test-error.R#117) - Reason: On CRAN
  
  2. errors in r_bg() are merged (@test-error.R#152) - Reason: On CRAN
  
  3. errors in r_process are merged (@test-error.R#176) - Reason: On CRAN
  
  4. cleans up temp files (@test-eval.R#205) - Reason: On CRAN
  
  5. libpath in system, in R CMD INSTALL (@test-libpath.R#210) - Reason: On CRAN
  
  6. messages in callr::r_bg do not crash session (@test-messages.R#12) - Reason: On CRAN
  
  7. cleans up temporary files (@test-r-bg.R#64) - Reason: On CRAN
  
  8. stdout/stderr from pipe (@test-r-session.R#79) - Reason: On CRAN
  
  9. crash (@test-r-session.R#214) - Reason: On CRAN
  
  10. cleans up temp files (@test-rcmd-process.R#17) - Reason: On CRAN
  
  11. cleans up temp files (@test-rcmd.R#91) - Reason: On CRAN
  
  12. cleans up temporary files (@test-rscript.R#46) - Reason: On CRAN
  
  13. bg process cleans up temporary files (@test-rscript.R#69) - Reason: On CRAN
  
  14. spell check (@test-spelling.R#5) - Reason: On CRAN
  
  == Warnings ====================================================================
  1. libpath in system(), empty .Renviron (@test-libpath.R#74) - `new` argument of local_tempfile() is deprecated.
    Use `path <- local_tempfile()` instead.
  
  2. libpath in system, R_LIBS in .Renviron (@test-libpath.R#96) - `new` argument of local_tempfile() is deprecated.
    Use `path <- local_tempfile()` instead.
  
  3. libpath in system, R_LIBS (@test-libpath.R#119) - `new` argument of local_tempfile() is deprecated.
    Use `path <- local_tempfile()` instead.
  
  4. libpath in system, R_LIBS and .Renviron (@test-libpath.R#142) - `new` argument of local_tempfile() is deprecated.
    Use `path <- local_tempfile()` instead.
  
  == Failed ======================================================================
  -- 1. Error: messages in callr::r do not crash session (@test-messages.R#5)  ---
  callr subprocess failed: 'match' requires vector arguments
  Backtrace:
   1. callr::r(...) test-messages.R:5:2
   2. callr:::get_result(output = out, options)
   3. throw(newerr, parent = remerr[[2]])
  
  -- 2. Error: traceback (@test-r-session.R#271)  --------------------------------
  subscript out of bounds
  Backtrace:
   1. testthat::expect_match(c(tb[[4]]), "f()", fixed = TRUE) test-r-session.R:271:4
   2. testthat::quasi_label(enquo(object), label, arg = "object")
   3. rlang::eval_bare(expr, quo_get_env(quo))
  
  == DONE ========================================================================
  Error: Test failures
  Execution halted