Running ‘testthat.R’ [4s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(dawaR)
  ## {dawaR} provides data from the Danish Agency of Climate Data
  ## Terms and conditions apply.
  ## Read more at: https://dawadocs.dataforsyningen.dk/dok/om#vilkaar
  > 
  > test_check("dawaR")
  Starting 2 test processes.
  
  Error:
  ! testthat subprocess failed to start.
    ## {dawaR} provides data from the Danish Agency of Climate Data
    ## Terms and conditions apply.
    ## Read more at: https://dawadocs.dataforsyningen.dk/dok/om#vilkaar
    Error in `source_dir()`:
    ! Failed to evaluate './helper-vcr.R'.
    Caused by error in `library()`:
    ! there is no package called 'vcr'
    Backtrace:
    ▆
    1. ├─global callr_startup_hook()
    2. │ └─asNamespace("testthat")$queue_process_setup(...)
    3. │ └─asNamespace("testthat")$test_files_setup_state(...)
    4. │ └─testthat::source_test_helpers(".", env)
    5. │ └─testthat::source_dir(path, "^helper.*\\.[rR]$", env = env, wrap =
    FALSE)
    6. │ └─base::lapply(...)
    7. │ └─testthat (local) FUN(X[[i]], ...)
    8. │ └─testthat::source_file(...)
    9. │ ├─base::withCallingHandlers(...)
    10. │ └─base::eval(exprs, env)
    11. │ └─base::eval(exprs, env)
    12. │ └─base::library("vcr") at ./helper-vcr.R:1:1
    13. │ └─base::stop(packageNotFoundError(package, lib.loc, sys.call()))
    14. └─testthat (local) `<fn>`(`<pckgNtFE>`)
    15.  └─cli::cli_abort(...)
    16.  └─rlang::abort(...)
    Ran 4/4 deferred expressions
    Error in deferred_run(env) : could not find function "deferred_run"
    Calls: <Anonymous>
    
  Backtrace:
       ▆
    1. └─testthat::test_check("dawaR")
    2.   └─testthat::test_dir(...)
    3.     └─testthat:::test_files(...)
    4.       └─testthat:::test_files_parallel(...)
    5.         ├─withr::with_dir(...)
    6.         │ └─base::force(code)
    7.         ├─testthat::with_reporter(...)
    8.         │ └─base::tryCatch(...)
    9.         │   └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.         │     └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.         │       └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   12.         └─testthat:::parallel_event_loop_chunky(queue, reporters, ".")
   13.           └─queue$poll(Inf)
   14.             └─base::lapply(...)
   15.               └─testthat (local) FUN(X[[i]], ...)
   16.                 └─private$handle_error(msg, i)
   17.                   └─cli::cli_abort(...)
   18.                     └─rlang::abort(...)
  Execution halted