- Fixes issues with examples taking too long to run
- Now precomputes vignettes to better align with CRAN policies regarding internet access
Release 1.0.1
fixes a handful of minor issues
- Lowered the per_page limit on API requests to the indicators endpoint in functions
wb_indicators()
andwb_cache()
. This should result in fewer timeouts.
- Resolved error when
unit
field is missing in certainwb_data()
calls
The 1.0.0
release represents a complete overhaul of the wbstats
package to
hopefully be more consistent and easy to use.
- Data now returns in a wide format by default with each indicator being its own column
- Adoption of the "tidyverse" ecosystem.
- New naming convention,
wb_*()
for allwbstats
functions. Relatedly, - Older functions from previous versions are now deprecated and should produce a warning
- Support for custom indicator names by passing a named vector to
wb_data()
- Includes support for most recent non-empty value queries. Basically quering the most recent
n
values from each location, regardless of the date. wb_search()
now accepts anygrep()
argument passed through...
- add non-exported .wb_url function for debugging purposes
wbdatacatalog()
now returns all catalog entries instead of first 10- When only Namibia is queried the iso2c column now returns
"NA"
instead of logicalNA
- For some indicators
wb()
queries would return iso3c IDs in the iso2c column. This is a behavior of the world bank API. This is now properly handled. - Indicators from source
WDI Database Archives
are now accessible
-
Now uses Version 2 of the World Bank API.
This new version of the API returns some new columns the old version didn't. Including data of last update for all available data sources This version also provides access to over 700 indicators that were moved to the
WDI Database Archives
. These indicators are not available using the older API -
added the parameter
return_wide
towb()
allowing data returns to be formatted in a wide format with each queried indicator being its own column named by its correspondingindicatorID
.This added functionality was done by importing the
tidyr
package and usingtidyr::spread_
. While it is not ideal to add a dependency for one feature I believe thetidyr
and othertidyverse
packages are inline with futurewbstats
features and are now common enough that the added dependency is worth the addition. -
More explicit error messaging when encountering API call errors
-
update cached data in
wb_cachelist
- Add 'aggregates' and 'countries_only' options to
wb()
per bapfeld pr - update cached data in
wb_cachelist