Release1.0.1 fixes a handful of minor issues
wb_indicators() andwb_cache(). This should result in fewer timeouts.unit field is missing in certainwb_data() callsThe1.0.0 release represents a complete overhaul of thewbstats package to hopefully be more consistent and easy touse.
wb_*() for allwbstats functions. Relatedly,wb_data()n values from each location,regardless of the date.wb_search() now accepts anygrep()argument passed through...wbdatacatalog() now returns all catalog entries insteadof first 10"NA" instead of logicalNAwb() queries would return iso3c IDsin the iso2c column. This is a behavior of the world bank API. This isnow properly handled.WDI Database Archives are nowaccessibleNow uses Version 2 of the World Bank API.
This new version of the API returns some new columns the old versiondidn’t. Including data of last update for all available data sourcesThis version also provides access to over 700 indicators that were movedto theWDI Database Archives. These indicators are notavailable using the older API
added the parameterreturn_wide towb()allowing data returns to be formatted in a wide format with each queriedindicator being its own column named by its correspondingindicatorID.
This added functionality was done by importing thetidyrpackage and usingtidyr::spread_. While it is not ideal toadd a dependency for one feature I believe thetidyr andothertidyverse packages are inline with futurewbstats features and are now common enough that the addeddependency is worth the addition.
More explicit error messaging when encountering API callerrors
update cached data inwb_cachelist
wb()per bapfeld prwb_cachelist