Running examples in ‘worldbank-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: wb_country_indicator
> ### Title: World Bank country indicator data
> ### Aliases: wb_country_indicator wb_data
> 
> ### ** Examples
> 
> ind <- wb_country_indicator("NY.GDP.MKTP.CD", "US")
> head(ind)
  date   indicator_id    indicator_name country_id  country_name country_code
1 2024 NY.GDP.MKTP.CD GDP (current US$)         US United States          USA
2 2023 NY.GDP.MKTP.CD GDP (current US$)         US United States          USA
3 2022 NY.GDP.MKTP.CD GDP (current US$)         US United States          USA
4 2021 NY.GDP.MKTP.CD GDP (current US$)         US United States          USA
5 2020 NY.GDP.MKTP.CD GDP (current US$)         US United States          USA
6 2019 NY.GDP.MKTP.CD GDP (current US$)         US United States          USA
         value unit obs_status decimal
1 2.918489e+13 <NA>       <NA>       0
2 2.772071e+13 <NA>       <NA>       0
3 2.600689e+13 <NA>       <NA>       0
4 2.368117e+13 <NA>       <NA>       0
5 2.135410e+13 <NA>       <NA>       0
6 2.153998e+13 <NA>       <NA>       0
> ind <- wb_country_indicator(
+   indicator = c("NY.GDP.MKTP.CD", "FP.CPI.TOTL.ZG"),
+   country = c("US", "DE", "FR", "CH", "JP"),
+   start_date = 2015, end_date = 2023
+ )
iterating ■■■■■■■■■■■■■■■■                  50% | ETA:  2m
Error in `req_perform()`:
! HTTP 400 Bad Request.
Backtrace:
     ▆
  1. └─worldbank::wb_country_indicator(...)
  2.   └─worldbank:::worldbank_seq(resource = resource, lang = lang, date = date)
  3.     ├─worldbank:::map(...)
  4.     │ └─base::lapply(.x, .f, ...)
  5.     └─httr2::req_perform_sequential(...)
  6.       ├─base::tryCatch(...)
  7.       │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  8.       │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9.       │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 10.       └─httr2::req_perform(reqs[[i]], path = paths[[i]])
 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(...)
Execution halted