Running ‘testthat.R’ [18s/29s]
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")
  [ FAIL 1 | WARN 0 | 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 ──
  <httr2_http_503/httr2_http/httr2_error/rlang_error/error/condition>
  Error in `httr2::req_perform(httr2::req_headers(httr2::request(file_url), 
      Accept = "*/*"))`: HTTP 503 Service Unavailable.
  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.     └─wbids:::get_response_headers(file_url)
   10.       ├─httr2::resp_headers(...)
   11.       │ └─httr2:::check_response(resp)
   12.       │   └─httr2:::is_response(resp)
   13.       └─httr2::req_perform(httr2::req_headers(httr2::request(file_url), Accept = "*/*"))
   14.         └─httr2:::handle_resp(req, resp, error_call = error_call)
   15.           └─httr2:::resp_abort(resp, req, body, call = error_call)
   16.             └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 8 | PASS 85 ]
  Error: Test failures
  Execution halted