Running ‘testthat.R’ [5s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(OpenSpecy)
  > 
  > test_check("OpenSpecy")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-manage_lib.R:4:3): get_lib() downloads test library ─────────────
  Error: Failed to open file /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/OpenSpecy/extdata/test_metadata.rds.
  Backtrace:
       █
    1. ├─testthat::expect_message(...) test-manage_lib.R:4: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(which = "test", type = c("metadata", "library"))
   17. │ └─`%>%`(...)
   18. ├─osfr::osf_download(...)
   19. └─osfr:::osf_download.osf_tbl_file(...)
   20.   └─base::Map(...)
   21.     └─base::mapply(FUN = f, ..., SIMPLIFY = FALSE)
   22.       └─(function (x, path, conflicts, progress, verbose) ...
   23.         └─osfr:::.wb_download(...)
   24.           └─osfr:::.wb_request("get", api_path, query, disk = path, progress = progress)
   25.             └─cli$retry(...)
   26.               └─crul:::verb_func(...)
   27.                 └─private$make_request(rr)
   28.                   └─crul:::crul_fetch(opts)
   29.                     └─curl::curl_fetch_disk(x$url$url, x$disk, handle = x$url$handle)
  ── Failure (test-manage_lib.R:10:3): check_lib() finds test library ────────────
  `check_lib(which = "test", type = c("metadata", "library"))` produced warnings.
  ── Error (test-manage_lib.R:15: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:15: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(which = "test", type = c("metadata", "library"))
   10.   └─base::lapply(which, .chkf, types = types, path = path, condition = "stop")
   11.     └─OpenSpecy:::FUN(X[[i]], ...)
   12.       └─base::do.call(...)
  ── Error (test-read_spec.R:13:3): read_text() gives expected output ────────────
  Error: cannot open the connection
  Backtrace:
       █
    1. ├─testthat::expect_message(...) test-read_spec.R:13: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. └─OpenSpecy::read_text(read_extdata("raman_hdpe.csv"), share = "system")
    8.   ├─OpenSpecy::share_spec(df, share = share)
    9.   └─OpenSpecy:::share_spec.data.frame(df, share = share)
   10.     ├─utils::write.csv(data, fd, row.names = FALSE, quote = TRUE)
   11.     │ └─base::eval.parent(Call)
   12.     │   └─base::eval(expr, p)
   13.     │     └─base::eval(expr, p)
   14.     └─utils::write.table(...)
   15.       └─base::file(file, ifelse(append, "a", "w"))
  ── Error (test-share_spec.R:4:3): share_text() gives expected output ───────────
  Error: cannot open the connection
  Backtrace:
       █
    1. ├─testthat::expect_message(...) test-share_spec.R:4: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. ├─OpenSpecy::share_spec(...)
    8. └─OpenSpecy:::share_spec.data.frame(...)
    9.   ├─utils::write.csv(data, fd, row.names = FALSE, quote = TRUE)
   10.   │ └─base::eval.parent(Call)
   11.   │   └─base::eval(expr, p)
   12.   │     └─base::eval(expr, p)
   13.   └─utils::write.table(...)
   14.     └─base::file(file, ifelse(append, "a", "w"))
  
  [ FAIL 5 | WARN 5 | SKIP 0 | PASS 88 ]
  Error: Test failures
  Execution halted