Running 'testthat.R' [16s]
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: D:\temp\2025_11_08_01_50_00_24415\RtmpiwzadR\file601029c...
  [ FAIL 2 | WARN 1 | SKIP 7 | PASS 145 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • On CRAN (7): 'test-ids_bulk.R:5:3', 'test-ids_bulk.R:78:3',
    'test-ids_bulk.R:166:3', 'test-ids_bulk.R:220:3', 'test-ids_bulk.R:253:3',
    'test-ids_bulk.R:305:3', 'test-ids_bulk.R:372:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-perform_request.R:63:3'): perform_request handles API errors gracefully ──
  <httr2_http_403/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
  Error in `httr2::req_perform(req)`: HTTP 403 Forbidden.
  Backtrace:
       ▆
    1. ├─testthat::expect_error(perform_request("nonexistent"), "HTTP 400 Bad Request.") at test-perform_request.R:63: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:::perform_request("nonexistent")
    8.   └─httr2::req_perform(req)
    9.     └─httr2:::handle_resp(req, resp, error_call = error_call)
   10.       └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
   11.         ├─rlang::catch_cnd(...)
   12.         │ ├─rlang::eval_bare(...)
   13.         │ ├─base::tryCatch(...)
   14.         │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   15.         │ │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   16.         │ │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   17.         │ └─base::force(expr)
   18.         └─rlang::abort(...)
  ── Error ('test-read_bulk_info.R:2:3'): read_bulk_info returns necessary data structure ──
  Error in `open.connection(con, "rb")`: cannot open the connection to 'https://datacatalogapi.worldbank.org/ddhxext/DatasetDownload?dataset_unique_id=0038015&version_id='
  Backtrace:
      ▆
   1. └─wbids:::read_bulk_info() at test-read_bulk_info.R:2:3
   2.   └─jsonlite::fromJSON(...)
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_con(txt, bigint_as_char)
   6.           ├─base::open(con, "rb")
   7.           └─base::open.connection(con, "rb")
  
  [ FAIL 2 | WARN 1 | SKIP 7 | PASS 145 ]
  Error: Test failures
  Execution halted