worldbank
R package worldbank by m-muecke — release notes from GitHub.
A World Bank data wrapper that keeps finding the places its own API can't reach.
◆Recent moves
- 1mo ago
Empty queries return an empty frame instead of erroring
A small fix in service of a long-standing goal: since 0.4.0 this package has been explicit about type stability, and a query with no observations erroring rather than returning an empty data frame broke that contract. Minor in code, but it is the difference between a loop over countries completing and dying on the first sparse series.
View source ↗ - 3mo ago
Bulk WDI download reaches metadata the API never exposes
wb_bulk() bypasses the API to fetch the entire World Development Indicators dataset as a zip, returning its six CSVs — including footnote and series-time metadata the endpoints do not serve. Paired with wb_search() for regex queries against the indicator catalog, this is the package acknowledging that discovery and completeness are both easier outside the per-request API.
View source ↗ - 5mo ago
Most-recent-values and gap filling, plus project records
mrv and gapfill move common post-processing into the query itself, which is the shape most of this package's ergonomic work takes. wb_project() and pip_cp() widen the data surface past indicators into project records and PIP country profiles, and the nowcast parameter admits estimates alongside measured values.
View source ↗ - 8mo ago
Test suite stops caching queries for CRAN compliance
A packaging fix with no user-facing effect, disabling cache use inside tests to satisfy CRAN policy. Ordinary cost of shipping an HTTP client through a strict repository.
View source ↗ - 9mo ago
Opt-in request caching with a one-day default
Caching arrives as an option rather than a default, with helpers to locate and clear the cache — the same design the maintainer shipped to their central bank and Treasury packages. For repeated indicator pulls in reports and teaching material, it removes the main reason to hand-roll a local copy.
View source ↗ - 1y ago
wb_data() added as an alias for wb_country_indicator()
A one-line alias, though a consequential one in retrospect: every later release documents the short name, which has effectively become the package's primary entry point.
View source ↗