- using R version 4.5.1 Patched (2025-08-11 r88569)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-19) 14.2.0
GNU Fortran (Debian 14.2.0-19) 14.2.0
- running under: Debian GNU/Linux 13 (trixie)
- using session charset: UTF-8
- checking for file ‘wbwdi/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘wbwdi’ version ‘1.0.1’
- 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/2s] 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/9s] OK
- checking Rd files ... [0s/0s] 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/2s] ERROR
Running examples in ‘wbwdi-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: wdi_get_entities
> ### Title: Download all countries and regions from the World Bank API
> ### Aliases: wdi_get_entities
>
> ### ** Examples
>
> ## Don't show:
> if (curl::has_internet()) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf
+ ## End(Don't show)
+ # Download all entities in English
+ wdi_get_entities()
+
+ # Download all entities in Spanish
+ wdi_get_entities(language = "zh")
+ ## Don't show:
+ }) # examplesIf
> wdi_get_entities()
Error in `req_perform()`:
! HTTP 502 Bad Gateway.
Backtrace:
▆
1. ├─(if (getRversion() >= "3.4") withAutoprint else force)(...)
2. │ └─base::source(...)
3. │ ├─base::withVisible(eval(ei, envir))
4. │ └─base::eval(ei, envir)
5. │ └─base::eval(ei, envir)
6. └─wbwdi::wdi_get_entities()
7. └─wbwdi:::perform_request("countries/all", language, per_page)
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(...)
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [6s/9s] OK
Running ‘testthat.R’ [5s/9s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [1s/2s] OK
- checking PDF version of manual ... [5s/8s] OK
- checking HTML version of manual ... [0s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR