Package: obr 0.5.0

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>.

Authors:Charles Coverdale [aut, cre]

obr_0.5.0.tar.gz
obr_0.5.0.zip(r-4.7)obr_0.5.0.zip(r-4.6)obr_0.5.0.zip(r-4.5)
obr_0.5.0.tgz(r-4.6-any)obr_0.5.0.tgz(r-4.5-any)
obr_0.5.0.tar.gz(r-4.7-any)obr_0.5.0.tar.gz(r-4.6-any)
obr_0.5.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
obr/json (API)
NEWS

# Install 'obr' in R:
install.packages('obr', repos = c('https://charlescoverdale.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/charlescoverdale/obr/issues

Pkgdown/docs site:https://charlescoverdale.github.io

On CRAN:

Conda:

5.20 score 1 stars 3 scripts 426 downloads 30 exports 26 dependencies

Last updated from:2649862747. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK153
source / vignettesOK186
linux-release-x86_64OK139
macos-release-arm64OK120
macos-oldrel-arm64OK106
windows-develOK127
windows-releaseOK83
windows-oldrelOK80
wasm-releaseOK107

Exports:clear_cacheget_efo_economyget_efo_fiscalget_efo_tableget_expenditureget_forecast_revisionsget_forecastsget_incapacity_caseloadsget_incapacity_spendingget_pension_projectionsget_policy_measuresget_psnbget_psndget_public_financesget_receiptsget_welfare_spendinglist_efo_economy_measureslist_forecast_seriesobr_actual_vs_forecastobr_as_ofobr_compare_vintagesobr_efo_catalogueobr_efo_vintagesobr_fiscal_rulesobr_forecast_panelobr_pinobr_pinnedobr_provenanceobr_unpinpolicy_measures_summary

Dependencies:askpasscellrangerclicpp11crayoncurlgluehmshttr2lifecyclemagrittropensslpillarpkgconfigprettyunitsprogressR6rappdirsreadxlrematchrlangsystibbleutf8vctrswithr

Anatomy of a forecast revision

Rendered fromforecast-revisions.Rmdusingknitr::rmarkdownon May 12 2026.

Last update: 2026-04-25
Started: 2026-04-25

Pinning to a specific OBR publication

Rendered fromvintages.Rmdusingknitr::rmarkdownon May 12 2026.

Last update: 2026-05-07
Started: 2026-04-25

Tracking fiscal policy measures since 1970

Rendered frompolicy-measures.Rmdusingknitr::rmarkdownon May 12 2026.

Last update: 2026-04-25
Started: 2026-04-25

Working with EFO forecasts

Rendered fromefo-forecasts.Rmdusingknitr::rmarkdownon May 12 2026.

Last update: 2026-05-07
Started: 2026-05-07

Readme and manuals

Help Manual

Help pageTopics
Subset an obr_tbl, preserving provenance[.obr_tbl
Coerce an obr_tbl to a plain data.frameas.data.frame.obr_tbl
Clear cached OBR filesclear_cache
Get EFO economy projectionsget_efo_economy
Get EFO fiscal projections (net borrowing components)get_efo_fiscal
Get any EFO detailed-forecast table by idget_efo_table
Get Total Managed Expenditureget_expenditure
Get OBR forecast revisionsget_forecast_revisions
Get OBR forecast history for a fiscal seriesget_forecasts
Get incapacity benefit caseloadsget_incapacity_caseloads
Get incapacity benefits spending by typeget_incapacity_spending
Get long-run state pension spending projectionsget_pension_projections
Get OBR policy measures by fiscal eventget_policy_measures
Get Public Sector Net Borrowing (PSNB)get_psnb
Get Public Sector Net Debt (PSND)get_psnd
Get all Public Finances Databank aggregatesget_public_finances
Get public sector receipts by tax typeget_receipts
Get working-age welfare spendingget_welfare_spending
List available EFO economy measureslist_efo_economy_measures
List available forecast serieslist_forecast_series
Pair OBR forecasts with PFD outturnobr_actual_vs_forecast
Find the OBR publication that was current on a given dateobr_as_of
Compare two EFO vintagesobr_compare_vintages
List the EFO detailed-forecast tables this package can fetchobr_efo_catalogue
List known OBR Economic and Fiscal Outlook vintagesobr_efo_vintages
Get the current UK fiscal rulesobr_fiscal_rules
Build a wide real-time panel of OBR forecastsobr_forecast_panel
Pin a session-wide OBR EFO vintageobr_pin
Show the currently pinned OBR EFO vintageobr_pinned
Extract OBR provenance metadataobr_provenance
Clear the pinned OBR EFO vintageobr_unpin
Summarise policy measures by fiscal eventpolicy_measures_summary
Print an obr_tblprint.obr_tbl
Summary of an obr_tblsummary.obr_tbl