Last updated on 2025-12-05 09:50:09 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.1.2 | 6.16 | 72.17 | 78.33 | OK | |
| r-devel-linux-x86_64-debian-gcc | 1.1.2 | 4.27 | 50.23 | 54.50 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 1.1.2 | 12.00 | 106.64 | 118.64 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 1.1.2 | 15.00 | 117.23 | 132.23 | OK | |
| r-devel-windows-x86_64 | 1.1.2 | 9.00 | 89.00 | 98.00 | OK | |
| r-patched-linux-x86_64 | 1.1.2 | 5.52 | 62.90 | 68.42 | ERROR | |
| r-release-linux-x86_64 | 1.1.2 | 5.73 | 66.28 | 72.01 | OK | |
| r-release-macos-arm64 | 1.1.2 | 2.00 | 34.00 | 36.00 | OK | |
| r-release-macos-x86_64 | 1.1.2 | 4.00 | 100.00 | 104.00 | OK | |
| r-release-windows-x86_64 | 1.1.2 | 8.00 | 90.00 | 98.00 | OK | |
| r-oldrel-macos-arm64 | 1.1.2 | 2.00 | 36.00 | 38.00 | OK | |
| r-oldrel-macos-x86_64 | 1.1.2 | 4.00 | 80.00 | 84.00 | OK | |
| r-oldrel-windows-x86_64 | 1.1.2 | 13.00 | 197.00 | 210.00 | ERROR |
Version: 1.1.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [6s/12s]
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")
Reading in file.
Processing file.
Downloading file to: /tmp/RtmpqAjszM/file364a5c2651db12.xlsx
Processing file.
Downloading file to: /tmp/RtmpqAjszM/file364a5c3fca3e68.xlsx
Reading in file.
Downloading file to: /tmp/RtmpqAjszM/file364a5c8c5f054.xlsx
Saving _problems/test-ids_get-101.R
Saving _problems/test-ids_get-119.R
Saving _problems/test-ids_get-448.R
Saving _problems/test-ids_get-456.R
Saving _problems/test-ids_get-469.R
Saving _problems/test-ids_get-481.R
Saving _problems/test-ids_get-577.R
Saving _problems/test-ids_get-633.R
Saving _problems/test-perform_request-16.R
Saving _problems/test-perform_request-63.R
Saving _problems/test-perform_request-83.R
Saving _problems/test-perform_request-113.R
[ FAIL 16 | WARN 0 | SKIP 6 | PASS 121 ]
══ Skipped tests (6) ═══════════════════════════════════════════════════════════
• On CRAN (6): 'test-ids_bulk.R:161:3', 'test-ids_bulk.R:215:3',
'test-ids_bulk.R:248:3', 'test-ids_bulk.R:301:3', 'test-ids_bulk.R:368:3',
'test-ids_get_ed.R:2:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-ids_get.R:94:3'): ids_get returns a tibble with expected columns ──
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. └─wbids::ids_get(...) at test-ids_get.R:94:3
2. └─wbids:::get_debt_statistics(...)
3. └─wbids:::perform_request(resource, progress = progress_message)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
7. ├─rlang::catch_cnd(...)
8. │ ├─rlang::eval_bare(...)
9. │ ├─base::tryCatch(...)
10. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ └─base::force(expr)
14. └─rlang::abort(...)
── Error ('test-ids_get.R:115:3'): ids_get returns a large data ────────────────
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. └─wbids::ids_get(entities = "ZMB", series = "DT.DOD.DPPG.CD", counterparts = c("all")) at test-ids_get.R:115:3
2. └─wbids:::get_debt_statistics(...)
3. └─wbids:::perform_request(resource, progress = progress_message)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
7. ├─rlang::catch_cnd(...)
8. │ ├─rlang::eval_bare(...)
9. │ ├─base::tryCatch(...)
10. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ └─base::force(expr)
14. └─rlang::abort(...)
── Error ('test-ids_get.R:164:3'): ids_get handles valid progress input ────────
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. ├─testthat::expect_silent(...) at test-ids_get.R:164:3
2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
3. │ ├─testthat (local) .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. └─wbids::ids_get(...)
10. └─wbids:::get_debt_statistics(...)
11. └─wbids:::perform_request(resource, progress = progress_message)
12. └─httr2::req_perform(req)
13. └─httr2:::handle_resp(req, resp, error_call = error_call)
14. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
15. ├─rlang::catch_cnd(...)
16. │ ├─rlang::eval_bare(...)
17. │ ├─base::tryCatch(...)
18. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
19. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
20. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
21. │ └─base::force(expr)
22. └─rlang::abort(...)
── Failure ('test-ids_get.R:442:3'): ids_get enforces vector length limits ─────
Expected `ids_get(entities = exactly_60, series = "DT.DOD.DPPG.CD")` not to throw any errors.
Actually got a <httr2_http_502> with message:
HTTP 502 Bad Gateway.
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-ids_get.R:442: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_get(entities = exactly_60, series = "DT.DOD.DPPG.CD")
8. └─wbids:::get_debt_statistics(...)
9. └─wbids:::perform_request(resource, progress = progress_message)
10. └─httr2::req_perform(req)
11. └─httr2:::handle_resp(req, resp, error_call = error_call)
12. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
13. ├─rlang::catch_cnd(...)
14. │ ├─rlang::eval_bare(...)
15. │ ├─base::tryCatch(...)
16. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
17. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
18. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
19. │ └─base::force(expr)
20. └─rlang::abort(...)
── Error ('test-ids_get.R:453:3'): ids_get uses new default parameters correctly ──
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. └─wbids::ids_get(entities = "GHA", series = "DT.DOD.DECT.CD") at test-ids_get.R:453:3
2. └─wbids:::get_debt_statistics(...)
3. └─wbids:::perform_request(resource, progress = progress_message)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
7. ├─rlang::catch_cnd(...)
8. │ ├─rlang::eval_bare(...)
9. │ ├─base::tryCatch(...)
10. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ └─base::force(expr)
14. └─rlang::abort(...)
── Error ('test-ids_get.R:466:3'): ids_get filters post-observed-year NAs correctly ──
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. └─wbids::ids_get(entities = "GHA", series = "DT.DOD.DECT.CD") at test-ids_get.R:466:3
2. └─wbids:::get_debt_statistics(...)
3. └─wbids:::perform_request(resource, progress = progress_message)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
7. ├─rlang::catch_cnd(...)
8. │ ├─rlang::eval_bare(...)
9. │ ├─base::tryCatch(...)
10. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ └─base::force(expr)
14. └─rlang::abort(...)
── Error ('test-ids_get.R:478:3'): ids_get correctly applies default years for projection series ──
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. └─wbids::ids_get(entities = "GHA", series = "DT.TDS.DECT.CD") at test-ids_get.R:478:3
2. └─wbids:::get_debt_statistics(...)
3. └─wbids:::perform_request(resource, progress = progress_message)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
7. ├─rlang::catch_cnd(...)
8. │ ├─rlang::eval_bare(...)
9. │ ├─base::tryCatch(...)
10. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ └─base::force(expr)
14. └─rlang::abort(...)
── Error ('test-ids_get.R:509:3'): ids_get handles valid entity codes correctly ──
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. ├─testthat::expect_silent(...) at test-ids_get.R:509:3
2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
3. │ ├─testthat (local) .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. └─wbids::ids_get(...)
10. └─wbids:::get_debt_statistics(...)
11. └─wbids:::perform_request(resource, progress = progress_message)
12. └─httr2::req_perform(req)
13. └─httr2:::handle_resp(req, resp, error_call = error_call)
14. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
15. ├─rlang::catch_cnd(...)
16. │ ├─rlang::eval_bare(...)
17. │ ├─base::tryCatch(...)
18. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
19. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
20. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
21. │ └─base::force(expr)
22. └─rlang::abort(...)
── Error ('test-ids_get.R:544:3'): ids_get handles valid counterpart codes correctly ──
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. ├─testthat::expect_silent(...) at test-ids_get.R:544:3
2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
3. │ ├─testthat (local) .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. └─wbids::ids_get(...)
10. └─wbids:::get_debt_statistics(...)
11. └─wbids:::perform_request(resource, progress = progress_message)
12. └─httr2::req_perform(req)
13. └─httr2:::handle_resp(req, resp, error_call = error_call)
14. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
15. ├─rlang::catch_cnd(...)
16. │ ├─rlang::eval_bare(...)
17. │ ├─base::tryCatch(...)
18. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
19. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
20. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
21. │ └─base::force(expr)
22. └─rlang::abort(...)
── Error ('test-ids_get.R:572:3'): ids_get returns expected data structure ─────
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. └─wbids::ids_get(...) at test-ids_get.R:572:3
2. └─wbids:::get_debt_statistics(...)
3. └─wbids:::perform_request(resource, progress = progress_message)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
7. ├─rlang::catch_cnd(...)
8. │ ├─rlang::eval_bare(...)
9. │ ├─base::tryCatch(...)
10. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ └─base::force(expr)
14. └─rlang::abort(...)
── Error ('test-ids_get.R:625:3'): ids_get handles pre-1970 dates correctly ────
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test-ids_get.R:625: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_get(...)
8. └─wbids:::get_debt_statistics(...)
9. └─wbids:::perform_request(resource, progress = progress_message)
10. └─httr2::req_perform(req)
11. └─httr2:::handle_resp(req, resp, error_call = error_call)
12. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
13. ├─rlang::catch_cnd(...)
14. │ ├─rlang::eval_bare(...)
15. │ ├─base::tryCatch(...)
16. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
17. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
18. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
19. │ └─base::force(expr)
20. └─rlang::abort(...)
── Error ('test-perform_request.R:15:7'): perform_request handles error responses ──
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. ├─testthat::with_mocked_bindings(...) at test-perform_request.R:10:3
2. ├─testthat::expect_error(perform_request("indicators"), "API error: Invalid indicator") at test-perform_request.R:15:7
3. │ └─testthat:::expect_condition_matching_(...)
4. │ └─testthat:::quasi_capture(...)
5. │ ├─testthat (local) .capture(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─wbids:::perform_request("indicators")
9. └─httr2::req_perform(req)
10. └─httr2:::handle_resp(req, resp, error_call = error_call)
11. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
12. ├─rlang::catch_cnd(...)
13. │ ├─rlang::eval_bare(...)
14. │ ├─base::tryCatch(...)
15. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
16. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
17. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
18. │ └─base::force(expr)
19. └─rlang::abort(...)
── Error ('test-perform_request.R:23:3'): perform_request validates per_page parameter ──
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. ├─testthat::expect_silent(perform_request("series", per_page = 1000)) at test-perform_request.R:23:3
2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
3. │ ├─testthat (local) .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. └─wbids:::perform_request("series", per_page = 1000)
10. └─httr2::req_perform(req)
11. └─httr2:::handle_resp(req, resp, error_call = error_call)
12. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
13. ├─rlang::catch_cnd(...)
14. │ ├─rlang::eval_bare(...)
15. │ ├─base::tryCatch(...)
16. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
17. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
18. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
19. │ └─base::force(expr)
20. └─rlang::abort(...)
── Error ('test-perform_request.R:63:3'): perform_request handles API errors gracefully ──
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
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-perform_request.R:77:7'): perform_request handles wrong requests gracefully ──
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. ├─testthat::with_mocked_bindings(...) at test-perform_request.R:74:3
2. ├─testthat::expect_error(...) at test-perform_request.R:77:7
3. │ └─testthat:::expect_condition_matching_(...)
4. │ └─testthat:::quasi_capture(...)
5. │ ├─testthat (local) .capture(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─wbids:::perform_request("country")
9. └─httr2::req_perform(req)
10. └─httr2:::handle_resp(req, resp, error_call = error_call)
11. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
12. ├─rlang::catch_cnd(...)
13. │ ├─rlang::eval_bare(...)
14. │ ├─base::tryCatch(...)
15. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
16. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
17. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
18. │ └─base::force(expr)
19. └─rlang::abort(...)
── Error ('test-perform_request.R:110:3'): perform_request handles pagination correctly ──
<httr2_http_502/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 502 Bad Gateway.
Backtrace:
▆
1. └─wbids:::perform_request(...) at test-perform_request.R:110:3
2. └─httr2::req_perform(req)
3. └─httr2:::handle_resp(req, resp, error_call = error_call)
4. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
5. ├─rlang::catch_cnd(...)
6. │ ├─rlang::eval_bare(...)
7. │ ├─base::tryCatch(...)
8. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
9. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
10. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
11. │ └─base::force(expr)
12. └─rlang::abort(...)
[ FAIL 16 | WARN 0 | SKIP 6 | PASS 121 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.1.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [9s/18s]
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")
Reading in file.
Processing file.
Downloading file to: /home/hornik/tmp/scratch/Rtmpv7krj3/file11c7e475c502a4.xlsx
Processing file.
Downloading file to: /home/hornik/tmp/scratch/Rtmpv7krj3/file11c7e4736100d1.xlsx
Reading in file.
Downloading file to: /home/hornik/tmp/scratch/Rtmpv7krj3/file11c7e455e170e7.xlsx
Saving _problems/test-ids_get-101.R
Saving _problems/test-ids_get-119.R
Saving _problems/test-ids_get-448.R
Saving _problems/test-ids_get-456.R
Saving _problems/test-ids_get-469.R
Saving _problems/test-ids_get-481.R
Saving _problems/test-ids_get-577.R
Saving _problems/test-ids_get-633.R
Saving _problems/test-perform_request-16.R
Saving _problems/test-perform_request-63.R
Saving _problems/test-perform_request-83.R
Saving _problems/test-perform_request-113.R
[ FAIL 16 | WARN 0 | SKIP 6 | PASS 120 ]
══ Skipped tests (6) ═══════════════════════════════════════════════════════════
• On CRAN (6): 'test-ids_bulk.R:161:3', 'test-ids_bulk.R:215:3',
'test-ids_bulk.R:248:3', 'test-ids_bulk.R:301:3', 'test-ids_bulk.R:368:3',
'test-ids_get_ed.R:2:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-ids_get.R:94:3'): ids_get returns a tibble with expected columns ──
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. └─wbids::ids_get(...) at test-ids_get.R:94:3
2. └─wbids:::get_debt_statistics(...)
3. └─wbids:::perform_request(resource, progress = progress_message)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
7. ├─rlang::catch_cnd(...)
8. │ ├─rlang::eval_bare(...)
9. │ ├─base::tryCatch(...)
10. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ └─base::force(expr)
14. └─rlang::abort(...)
── Error ('test-ids_get.R:115:3'): ids_get returns a large data ────────────────
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. └─wbids::ids_get(entities = "ZMB", series = "DT.DOD.DPPG.CD", counterparts = c("all")) at test-ids_get.R:115:3
2. └─wbids:::get_debt_statistics(...)
3. └─wbids:::perform_request(resource, progress = progress_message)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
7. ├─rlang::catch_cnd(...)
8. │ ├─rlang::eval_bare(...)
9. │ ├─base::tryCatch(...)
10. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ └─base::force(expr)
14. └─rlang::abort(...)
── Error ('test-ids_get.R:164:3'): ids_get handles valid progress input ────────
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. ├─testthat::expect_silent(...) at test-ids_get.R:164:3
2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
3. │ ├─testthat (local) .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. └─wbids::ids_get(...)
10. └─wbids:::get_debt_statistics(...)
11. └─wbids:::perform_request(resource, progress = progress_message)
12. └─httr2::req_perform(req)
13. └─httr2:::handle_resp(req, resp, error_call = error_call)
14. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
15. ├─rlang::catch_cnd(...)
16. │ ├─rlang::eval_bare(...)
17. │ ├─base::tryCatch(...)
18. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
19. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
20. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
21. │ └─base::force(expr)
22. └─rlang::abort(...)
── Failure ('test-ids_get.R:442:3'): ids_get enforces vector length limits ─────
Expected `ids_get(entities = exactly_60, series = "DT.DOD.DPPG.CD")` not to throw any errors.
Actually got a <httr2_http_401> with message:
HTTP 401 Unauthorized.
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-ids_get.R:442: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_get(entities = exactly_60, series = "DT.DOD.DPPG.CD")
8. └─wbids:::get_debt_statistics(...)
9. └─wbids:::perform_request(resource, progress = progress_message)
10. └─httr2::req_perform(req)
11. └─httr2:::handle_resp(req, resp, error_call = error_call)
12. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
13. ├─rlang::catch_cnd(...)
14. │ ├─rlang::eval_bare(...)
15. │ ├─base::tryCatch(...)
16. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
17. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
18. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
19. │ └─base::force(expr)
20. └─rlang::abort(...)
── Error ('test-ids_get.R:453:3'): ids_get uses new default parameters correctly ──
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. └─wbids::ids_get(entities = "GHA", series = "DT.DOD.DECT.CD") at test-ids_get.R:453:3
2. └─wbids:::get_debt_statistics(...)
3. └─wbids:::perform_request(resource, progress = progress_message)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
7. ├─rlang::catch_cnd(...)
8. │ ├─rlang::eval_bare(...)
9. │ ├─base::tryCatch(...)
10. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ └─base::force(expr)
14. └─rlang::abort(...)
── Error ('test-ids_get.R:466:3'): ids_get filters post-observed-year NAs correctly ──
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. └─wbids::ids_get(entities = "GHA", series = "DT.DOD.DECT.CD") at test-ids_get.R:466:3
2. └─wbids:::get_debt_statistics(...)
3. └─wbids:::perform_request(resource, progress = progress_message)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
7. ├─rlang::catch_cnd(...)
8. │ ├─rlang::eval_bare(...)
9. │ ├─base::tryCatch(...)
10. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ └─base::force(expr)
14. └─rlang::abort(...)
── Error ('test-ids_get.R:478:3'): ids_get correctly applies default years for projection series ──
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. └─wbids::ids_get(entities = "GHA", series = "DT.TDS.DECT.CD") at test-ids_get.R:478:3
2. └─wbids:::get_debt_statistics(...)
3. └─wbids:::perform_request(resource, progress = progress_message)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
7. ├─rlang::catch_cnd(...)
8. │ ├─rlang::eval_bare(...)
9. │ ├─base::tryCatch(...)
10. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ └─base::force(expr)
14. └─rlang::abort(...)
── Error ('test-ids_get.R:509:3'): ids_get handles valid entity codes correctly ──
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. ├─testthat::expect_silent(...) at test-ids_get.R:509:3
2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
3. │ ├─testthat (local) .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. └─wbids::ids_get(...)
10. └─wbids:::get_debt_statistics(...)
11. └─wbids:::perform_request(resource, progress = progress_message)
12. └─httr2::req_perform(req)
13. └─httr2:::handle_resp(req, resp, error_call = error_call)
14. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
15. ├─rlang::catch_cnd(...)
16. │ ├─rlang::eval_bare(...)
17. │ ├─base::tryCatch(...)
18. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
19. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
20. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
21. │ └─base::force(expr)
22. └─rlang::abort(...)
── Error ('test-ids_get.R:535:3'): ids_get handles valid counterpart codes correctly ──
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. ├─testthat::expect_silent(...) at test-ids_get.R:535:3
2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
3. │ ├─testthat (local) .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. └─wbids::ids_get(...)
10. └─wbids:::get_debt_statistics(...)
11. └─wbids:::perform_request(resource, progress = progress_message)
12. └─httr2::req_perform(req)
13. └─httr2:::handle_resp(req, resp, error_call = error_call)
14. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
15. ├─rlang::catch_cnd(...)
16. │ ├─rlang::eval_bare(...)
17. │ ├─base::tryCatch(...)
18. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
19. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
20. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
21. │ └─base::force(expr)
22. └─rlang::abort(...)
── Error ('test-ids_get.R:572:3'): ids_get returns expected data structure ─────
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. └─wbids::ids_get(...) at test-ids_get.R:572:3
2. └─wbids:::get_debt_statistics(...)
3. └─wbids:::perform_request(resource, progress = progress_message)
4. └─httr2::req_perform(req)
5. └─httr2:::handle_resp(req, resp, error_call = error_call)
6. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
7. ├─rlang::catch_cnd(...)
8. │ ├─rlang::eval_bare(...)
9. │ ├─base::tryCatch(...)
10. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
11. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
13. │ └─base::force(expr)
14. └─rlang::abort(...)
── Error ('test-ids_get.R:625:3'): ids_get handles pre-1970 dates correctly ────
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test-ids_get.R:625: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_get(...)
8. └─wbids:::get_debt_statistics(...)
9. └─wbids:::perform_request(resource, progress = progress_message)
10. └─httr2::req_perform(req)
11. └─httr2:::handle_resp(req, resp, error_call = error_call)
12. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
13. ├─rlang::catch_cnd(...)
14. │ ├─rlang::eval_bare(...)
15. │ ├─base::tryCatch(...)
16. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
17. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
18. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
19. │ └─base::force(expr)
20. └─rlang::abort(...)
── Error ('test-perform_request.R:15:7'): perform_request handles error responses ──
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. ├─testthat::with_mocked_bindings(...) at test-perform_request.R:10:3
2. ├─testthat::expect_error(perform_request("indicators"), "API error: Invalid indicator") at test-perform_request.R:15:7
3. │ └─testthat:::expect_condition_matching_(...)
4. │ └─testthat:::quasi_capture(...)
5. │ ├─testthat (local) .capture(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─wbids:::perform_request("indicators")
9. └─httr2::req_perform(req)
10. └─httr2:::handle_resp(req, resp, error_call = error_call)
11. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
12. ├─rlang::catch_cnd(...)
13. │ ├─rlang::eval_bare(...)
14. │ ├─base::tryCatch(...)
15. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
16. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
17. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
18. │ └─base::force(expr)
19. └─rlang::abort(...)
── Error ('test-perform_request.R:23:3'): perform_request validates per_page parameter ──
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. ├─testthat::expect_silent(perform_request("series", per_page = 1000)) at test-perform_request.R:23:3
2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
3. │ ├─testthat (local) .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. └─wbids:::perform_request("series", per_page = 1000)
10. └─httr2::req_perform(req)
11. └─httr2:::handle_resp(req, resp, error_call = error_call)
12. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
13. ├─rlang::catch_cnd(...)
14. │ ├─rlang::eval_bare(...)
15. │ ├─base::tryCatch(...)
16. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
17. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
18. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
19. │ └─base::force(expr)
20. └─rlang::abort(...)
── Error ('test-perform_request.R:63:3'): perform_request handles API errors gracefully ──
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
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-perform_request.R:77:7'): perform_request handles wrong requests gracefully ──
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. ├─testthat::with_mocked_bindings(...) at test-perform_request.R:74:3
2. ├─testthat::expect_error(...) at test-perform_request.R:77:7
3. │ └─testthat:::expect_condition_matching_(...)
4. │ └─testthat:::quasi_capture(...)
5. │ ├─testthat (local) .capture(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
8. └─wbids:::perform_request("country")
9. └─httr2::req_perform(req)
10. └─httr2:::handle_resp(req, resp, error_call = error_call)
11. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
12. ├─rlang::catch_cnd(...)
13. │ ├─rlang::eval_bare(...)
14. │ ├─base::tryCatch(...)
15. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
16. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
17. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
18. │ └─base::force(expr)
19. └─rlang::abort(...)
── Error ('test-perform_request.R:110:3'): perform_request handles pagination correctly ──
<httr2_http_401/httr2_http/httr2_error/rlang_error/rlang_error/error/condition>
Error in `httr2::req_perform(req)`: HTTP 401 Unauthorized.
Backtrace:
▆
1. └─wbids:::perform_request(...) at test-perform_request.R:110:3
2. └─httr2::req_perform(req)
3. └─httr2:::handle_resp(req, resp, error_call = error_call)
4. └─httr2:::resp_failure_cnd(req, resp, error_call = error_call)
5. ├─rlang::catch_cnd(...)
6. │ ├─rlang::eval_bare(...)
7. │ ├─base::tryCatch(...)
8. │ │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
9. │ │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
10. │ │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
11. │ └─base::force(expr)
12. └─rlang::abort(...)
[ FAIL 16 | WARN 0 | SKIP 6 | PASS 120 ]
Error:
! Test failures.
Execution halted
Flavor: r-patched-linux-x86_64
Version: 1.1.2
Check: tests
Result: ERROR
Running 'testthat.R' [101s]
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)
The tzdb package is not installed. Timezones will not be available to Arrow compute functions.
>
> test_check("wbids")
Reading in file.
Processing file.
Downloading file to: D:\temp\2025_12_03_01_50_00_178\RtmpMdBZwT\file136f42ec3...
Processing file.
Downloading file to: D:\temp\2025_12_03_01_50_00_178\RtmpMdBZwT\file136f457e7...
Reading in file.
Downloading file to: D:\temp\2025_12_03_01_50_00_178\RtmpMdBZwT\file136f44563...
Saving _problems/test-ids_get-474.R
[ FAIL 1 | WARN 0 | SKIP 6 | PASS 153 ]
══ Skipped tests (6) ═══════════════════════════════════════════════════════════
• On CRAN (6): 'test-ids_bulk.R:161:3', 'test-ids_bulk.R:215:3',
'test-ids_bulk.R:248:3', 'test-ids_bulk.R:301:3', 'test-ids_bulk.R:368:3',
'test-ids_get_ed.R:2:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-ids_get.R:472:3'): ids_get filters post-observed-year NAs correctly ──
Expected `all(result$year <= as.numeric(format(Sys.Date(), "%Y")) | !is.na(result$value))` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
[ FAIL 1 | WARN 0 | SKIP 6 | PASS 153 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-windows-x86_64