Changelog
Source:NEWS.md
ons 0.1.4
- Added rate limiting to
ons_search()to match other API functions and prevent accidental 429 errors.
ons 0.1.3
CRAN release: 2026-03-18
- Examples now wrapped in
try()to handle transient ONS API failures gracefully during CRAN checks.
ons 0.1.1
- Examples now cache to
tempdir()instead of the user’s home directory, fixing CRAN policy compliance for\donttestexamples. - Cache directory is now configurable via
options(ons.cache_dir = ...).
ons 0.1.0
CRAN release: 2026-03-12
- Initial release.
- Data functions:
ons_gdp(),ons_monthly_gdp(),ons_cpi(),ons_unemployment(),ons_employment(),ons_inactivity(),ons_wages(),ons_trade(),ons_retail_sales(),ons_house_prices(),ons_productivity(),ons_population(),ons_public_finances(). - Generic fetch:
ons_get()fetches any series by CDID code. - Discovery:
ons_search()searches the ONS catalogue by keyword. - Caching:
clear_cache()manages locally cached data.