Common Department for Education Analysis Tasks
Overview
Provides preferred methods for common analytical tasks undertaken across the Department for Education in England, including number formatting, project templates and curated reference data.
- **Breaking change**: Removed the deprecated
wd_pcon_lad_la_rgn_ctrydataset and its startup message. Usegeo_hierarchyinstead, which has all the same columns plus more, and is kept up to date (it includes 2025,wd_pcon_lad_la_rgn_ctrystopped at 2024). - Added
diagnostic_test()and a set ofcheck_*helpers to diagnose and (optionally) fix common DfE laptop R-setup issues — proxy settings, Git SSL verification,GITHUB_PAT, renv download methods, RTools toolchain, global.gitconfiglocation, and.Renviron/.Rprofilelocation. - Added
fetch_mp_lookup()to fetch the Westminster constituency to sitting MP lookup maintained at https://github.com/dfe-analytical-services/mp-lookup, giving one row per constituency with the MP's name, party, member ID and email alongside the geography the constituency maps to. It errors with an informative message if the upstream file is missing any expected columns. air_install()now checks the installed Air version and automatically reinstalls it if it is older than the minimum version required byair_style()(currently 0.10.0, when Air's defaultassignment-stylechanged to"arrow"). It also gains aforceargument to always reinstall. If the install does not leave a supported version of Air in place, it now warns rather than failing silently.
Show all changes in 2.0.0Hide the rest of the changes in 2.0.0
format_ay(),format_fy(),format_ay_reverse()andformat_fy_reverse()now accept vectors of years, e.g.format_ay(c(201617, 201718)). Previously they failed given more than one value.- Fixed
get_ons_api_data()ignoring anywherefilter inquery_params; filtered queries could return extra rows. It also now gives informative errors when a query matches nothing, the API can't be reached, or the API rejects the request (for example an unknowndata_id). - Fixed
air_style()failing when thetargetpath contains spaces (for example a OneDrive path under "OneDrive - Department for Education"). - Fixed
check_databricks_odbc()failing for users who don't havestringrinstalled.
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-17
- NOTE12 OK, 1 NOTE2026-10-01
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-20
Show 6 earlier changesHide 6 earlier changes
- ERROR12 OK, 1 ERROR2026-06-17
- OK13 OK2026-06-09
- NOTE12 OK, 1 NOTE2026-06-08
- OK13 OK2026-05-20
- ERROR12 OK, 1 ERROR2026-05-10
- OK14 OK2026-03-10
Documentation
- Help pages
- 49 (5 internal)includes a package overview page
- Examples that run
- 89%34 run in a plain check (2 of them under a condition) · 4 never run
- Exported functions with examples
- 100%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 91%
- Median days to close, 50 most recently updated closed issues
- 72
- Median days to close, 50 most recently updated closed PRs
- 10
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
15 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/dfe-analytical-services/dfer on 2026-10-25.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-25 · The repository has a site deploy workflow
pkgdown site last built 2026-09-25
Show all practicesHide 3 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-09-04Named in .Rbuildignore: .claudeNamed in .gitignore: .claudeCommits: at least 1 crediting it in the message
- Claude Fable 51 commit · Sep 2026
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 2.0.0Latest2026-09-23 · current release · diff ↗ ·
added 17 exports
air_install, air_style, check_databricks_odbc, check_git_sslverify, check_gitconfig_location, check_github_pat, check_proxy_settings, check_renv_dl_file_method, check_renv_download_method, check_renv_rprof_location, check_rtools, diagnostic_test, fetch_lsips, fetch_mayoral, fetch_mp_lookup, pretty_time, write_df_to_delta - RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.0.12025-01-15 · diff ↗
- 1.0.02025-01-13
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2025-01-13
- Total releases
- 3 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 346 KB / 6 files
- Download size
- 1.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("dfeR")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.