Running ‘testthat.R’ [10s/36s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(OpenSpecy)
  > 
  > test_check("OpenSpecy")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • OSF is online (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-manage_lib.R:18:3): get_lib() downloads test library ────────────
  Error in `curl::curl_fetch_memory(x$url$url, handle = x$url$handle)`: SSL certificate problem: certificate has expired
  Backtrace:
       █
    1. ├─testthat::expect_message(...) test-manage_lib.R:18:2
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat:::.capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─testthat::expect_output(...)
    8. │ └─testthat:::quasi_capture(...)
    9. │   ├─testthat:::.capture(...)
   10. │   │ └─testthat::capture_output_lines(code, print, width = width)
   11. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
   12. │   │     ├─withr::with_output_sink(temp, withVisible(code))
   13. │   │     │ └─base::force(code)
   14. │   │     └─base::withVisible(code)
   15. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   16. ├─OpenSpecy::get_lib(...)
   17. │ ├─osf_retrieve_node(node) %>% osf_ls_files(pattern = ".rds", n_max = Inf)
   18. │ └─osfr::osf_retrieve_node(node)
   19. │   └─osfr:::.osf_node_retrieve(id)
   20. │     └─osfr:::.osf_request("get", path)
   21. │       └─cli$retry(...)
   22. │         └─crul:::verb_func(...)
   23. │           └─private$make_request(rr)
   24. │             └─crul:::crul_fetch(opts)
   25. │               └─curl::curl_fetch_memory(x$url$url, handle = x$url$handle)
   26. └─osfr::osf_ls_files(., pattern = ".rds", n_max = Inf)
  ── Failure (test-manage_lib.R:27:3): check_lib() finds test library ────────────
  `check_lib(which = "test", type = c("metadata", "library"), path = tmp)` produced warnings.
  ── Error (test-manage_lib.R:36:3): load_lib() works as expected ────────────────
  Error:  library missing or incomplete; use 'get_lib()' to download a current version
  Backtrace:
       █
    1. ├─testthat::expect_silent(...) test-manage_lib.R:36:2
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─OpenSpecy::load_lib(...)
   10.   └─base::lapply(which, .chkf, types = types, path = lp, condition = "stop")
   11.     └─OpenSpecy:::FUN(X[[i]], ...)
   12.       └─base::do.call(...)
  
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 104 ]
  Error: Test failures
  Execution halted