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
DESCRIPTION |NEWS
card.svg |card.png
obr/json (API)

# 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 4 scripts 449 downloads 30 exports 26 dependencies

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

TargetResultTimeFilesSyslog
linux-devel-x86_64OK137
source / vignettesOK195
linux-release-x86_64OK136
macos-release-arm64OK85
macos-oldrel-arm64OK108
windows-develOK95
windows-releaseOK78
windows-oldrelOK76
wasm-releaseOK123

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

Pinning to a specific OBR publication
The vintage table | Resolving an EFO by date | Pinning a session-wide vintage | Downloading a specific vintage | What's recorded as provenance | How vintage interacts with get_forecasts()

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

Working with EFO forecasts
The standard schema | Index vs YoY: the v0.4.0 fix | Combining EFO with outturn from PFD | Comparing two vintages | What unit covers | Provenance

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

Anatomy of a forecast revision
The decomposition | Top-level revisions only | Per cent of GDP | Pairing with the forecast panel | Worked example: PSNB 2024-25 across the full vintage history | Provenance for cited results

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

Tracking fiscal policy measures since 1970
Pulling the database | Filtering by fiscal event | Searching by theme | Aggregating to the Budget scorecard | Worked example: contribution of each fiscal event | Cross-vintage comparison

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

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