obr: Access 'Office for Budget Responsibility' Data

Provides clean, tidy access to data published by the 'Office for Budget Responsibility' ('OBR'), the UK's independent fiscal watchdog. Covers the Public Finances Databank (outturn for PSNB, PSND, receipts, and expenditure since 1946), the Historical Official Forecasts Database (every 'OBR' forecast since 2010), the Economic and Fiscal Outlook detailed forecast tables (five-year projections from the latest Budget), the Welfare Trends Report (incapacity benefit spending and caseloads), and the Fiscal Risks and Sustainability Report (50-year state pension projections). All returned objects carry provenance metadata recording the source URL, publication vintage, retrieval time, and file fingerprint, so analyses can be audited and reproduced. Data is downloaded from the 'OBR' on first use and cached locally for subsequent calls. Data is sourced from the 'OBR' website <https://obr.uk>.

Version: 0.5.1
Depends: R (≥ 4.1.0)
Imports: cli, httr2, readxl, tools
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown
Published: 2026-07-27
DOI: 10.32614/CRAN.package.obr
Author: Charles Coverdale [aut, cre]
Maintainer: Charles Coverdale <charlesfcoverdale at gmail.com>
BugReports: https://github.com/charlescoverdale/obr/issues
License: MIT + file LICENSE
URL: https://charlescoverdale.github.io/obr/, https://github.com/charlescoverdale/obr
NeedsCompilation: no
Language: en-GB
Citation: obr citation info
Materials: README, NEWS
CRAN checks: obr results

Documentation:

Reference manual: obr.html , obr.pdf
Vignettes: Working with EFO forecasts (source, R code)
Anatomy of a forecast revision (source, R code)
Tracking fiscal policy measures since 1970 (source, R code)
Pinning to a specific OBR publication (source, R code)

Downloads:

Package source: obr_0.5.1.tar.gz
Windows binaries: r-devel: obr_0.2.5.zip, r-release: obr_0.2.5.zip, r-oldrel: obr_0.2.5.zip
macOS binaries: r-release (arm64): obr_0.2.5.tgz, r-oldrel (arm64): obr_0.2.5.tgz, r-release (x86_64): obr_0.2.5.tgz, r-oldrel (x86_64): obr_0.2.5.tgz
Old sources: obr archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=obr to link to this page.