Running ‘testthat.R’ [29s/41s]
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(wbids)
  > 
  > test_check("wbids")
  Downloading file to: /home/hornik/tmp/scratch/RtmpsgzNyA/file3da5143611c578.xlsx
  trying URL 'https://invalid-url.com/file.xlsx'
  [ FAIL 1 | WARN 1 | SKIP 8 | PASS 85 ]
  
  ══ Skipped tests (8) ═══════════════════════════════════════════════════════════
  • On CRAN (8): 'test-ids_bulk.R:5:3', 'test-ids_bulk.R:58:3',
    'test-ids_bulk.R:106:3', 'test-ids_bulk.R:148:3', 'test-ids_bulk.R:198:3',
    'test-ids_bulk.R:228:3', 'test-ids_bulk.R:260:3', 'test-ids_bulk.R:314:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-ids_bulk.R:40:3'): ids_bulk fails gracefully with invalid URL ──
  Error in `value[[3L]](cond)`: Download timed out after 60 seconds. Try increasing the timeout parameter (e.g., timeout=600 for 10 minutes)
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-ids_bulk.R:40:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─wbids::ids_bulk("https://invalid-url.com/file.xlsx")
    8.   └─wbids:::download_bulk_file(...)
    9.     ├─withr::with_options(...)
   10.     │ └─base::force(code)
   11.     └─base::tryCatch(...)
   12.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   13.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   14.           └─value[[3L]](cond)
   15.             └─cli::cli_abort(...)
   16.               └─rlang::abort(...)
  
  [ FAIL 1 | WARN 1 | SKIP 8 | PASS 85 ]
  Error: Test failures
  Execution halted