- using R version 4.5.2 Patched (2025-11-30 r89083)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-10) 14.3.0
GNU Fortran (Debian 14.3.0-10) 14.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘wbwdi/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘wbwdi’ version ‘1.0.3’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘wbwdi’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [7s/10s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/3s] ERROR
Running examples in ‘wbwdi-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: wdi_get_languages
> ### Title: Download languages from the World Bank API
> ### Aliases: wdi_get_languages
>
> ### ** Examples
>
> ## Don't show:
> if (curl::has_internet()) withAutoprint({ # examplesIf
+ ## End(Don't show)
+ # Download all languages
+ wdi_get_languages()
+ ## Don't show:
+ }) # examplesIf
> wdi_get_languages()
! Failed to retrieve data from the World Bank API for request
https://api.worldbank.org/v2/languages?format=json&per_page=10000. Error
message: HTTP 401 Unauthorized.
Error in wdi_get_languages() : object 'languages_processed' not found
Calls: withAutoprint ... source -> withVisible -> eval -> eval -> wdi_get_languages
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [7s/11s] ERROR
Running ‘testthat.R’ [6s/11s]
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(wbwdi)
>
> test_check("wbwdi")
! Failed to retrieve data from the World Bank API for request
https://localhost:9999/countries?format=json&per_page=10000. Error message:
Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`:
! Could not connect to server [localhost]: Failed to connect to localhost port
9999 after 0 ms: Could not connect to server
! Failed to retrieve data from the World Bank API for request
https://localhost:9999/countries?format=json&per_page=10000. Error message:
Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`:
! Could not connect to server [localhost]: Failed to connect to localhost port
9999 after 0 ms: Could not connect to server
! Failed to retrieve data from the World Bank API for request
https://api.worldbank.org/v2/xx/country/USA/indicator/NY.GDP.MKTP.CD?format=json&per_page=10000&date=%3A.
Error message: HTTP 401 Unauthorized.
Saving _problems/tests-wdi_get-8.R
! Failed to retrieve data from the World Bank API for request
https://api.worldbank.org/v2/xx/countries/all?format=json&per_page=1000. Error
message: HTTP 401 Unauthorized.
Saving _problems/tests-wdi_get_entities-4.R
! Failed to retrieve data from the World Bank API for request
https://api.worldbank.org/v2/xx/indicators?format=json&per_page=32500. Error
message: HTTP 401 Unauthorized.
Saving _problems/tests-wdi_get_indicators-4.R
! Failed to retrieve data from the World Bank API for request
https://api.worldbank.org/v2/xx/lendingTypes?format=json&per_page=10000. Error
message: HTTP 401 Unauthorized.
Saving _problems/tests-wdi_get_lending_types-4.R
! Failed to retrieve data from the World Bank API for request
https://api.worldbank.org/v2/xx/region?format=json&per_page=10000. Error
message: HTTP 401 Unauthorized.
Saving _problems/tests-wdi_get_regions-4.R
! Failed to retrieve data from the World Bank API for request
https://api.worldbank.org/v2/xx/sources?format=json&per_page=10000. Error
message: HTTP 401 Unauthorized.
Saving _problems/tests-wdi_get_sources-4.R
! Failed to retrieve data from the World Bank API for request
https://api.worldbank.org/v2/xx/topics?format=json&per_page=10000. Error
message: HTTP 401 Unauthorized.
Saving _problems/tests-wdi_get_topics-4.R
[ FAIL 7 | WARN 0 | SKIP 33 | PASS 122 ]
══ Skipped tests (33) ══════════════════════════════════════════════════════════
• On CRAN (33): 'tests-perform_request.R:26:3', 'tests-perform_request.R:40:3',
'tests-perform_request.R:52:3', 'tests-perform_request.R:65:3',
'tests-perform_request.R:77:3', 'tests-perform_request.R:96:3',
'tests-perform_request.R:108:3', 'tests-perform_request.R:120:3',
'tests-perform_request.R:132:3', 'tests-perform_request.R:159:3',
'tests-perform_request.R:181:3', 'tests-perform_request.R:197:3',
'tests-perform_request.R:241:3', 'tests-wdi_get.R:60:3',
'tests-wdi_get.R:78:3', 'tests-wdi_get.R:97:3', 'tests-wdi_get.R:104:3',
'tests-wdi_get.R:114:3', 'tests-wdi_get.R:124:3', 'tests-wdi_get.R:154:3',
'tests-wdi_get_entities.R:20:3', 'tests-wdi_get_entities.R:94:3',
'tests-wdi_get_income_levels.R:2:3', 'tests-wdi_get_income_levels.R:33:3',
'tests-wdi_get_indicators.R:20:3', 'tests-wdi_get_indicators.R:69:3',
'tests-wdi_get_languages.R:2:3', 'tests-wdi_get_lending_types.R:8:3',
'tests-wdi_get_lending_types.R:64:3', 'tests-wdi_get_regions.R:8:3',
'tests-wdi_get_regions.R:80:3', 'tests-wdi_get_topics.R:8:3',
'tests-wdi_get_topics.R:71:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('tests-wdi_get.R:2:3'): wdi_get_handles invalid language input ─────
Expected `wdi_get(entities = "USA", indicators = "NY.GDP.MKTP.CD", language = "xx")` to throw a error.
── Failure ('tests-wdi_get_entities.R:2:3'): wdi_get_entities handles invalid language input ──
Expected `wdi_get_entities(language = "xx")` to throw a error.
── Failure ('tests-wdi_get_indicators.R:2:3'): wdi_get_indicators handles ivalid language input ──
Expected `wdi_get_indicators(language = "xx")` to throw a error.
── Failure ('tests-wdi_get_lending_types.R:2:3'): wdi_get_lending_types handles invalid language input ──
Expected `wdi_get_lending_types(language = "xx")` to throw a error.
── Failure ('tests-wdi_get_regions.R:2:3'): wdi_get_regions handles invalid language input ──
Expected `wdi_get_regions(language = "xx")` to throw a error.
── Failure ('tests-wdi_get_sources.R:2:3'): wdi_get_sources handles invalid language input ──
Expected `wdi_get_sources(language = "xx")` to throw a error.
── Failure ('tests-wdi_get_topics.R:2:3'): wdi_get_topics handles invalid language input ──
Expected `wdi_get_topics(language = "xx")` to throw a error.
[ FAIL 7 | WARN 0 | SKIP 33 | PASS 122 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [1s/1s] OK
- checking PDF version of manual ... [6s/8s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs