Introduction | Requirements | How to use | How to contribute | Contact
This dashboard allows users to explore time series data for 16 to 18 qualifications in England, with breakdowns by institution type (for average result/grade) and gender (for both A level average result/grade, and A level entries and grades in individual subjects).
It brings together figures compiled from the current and previous versions of the ‘A level and other 16 to 18 results’ statistical release.
-
Installation of R Studio 2023.12.0+369 or higher
-
Installation of R 4.4.2 or higher
-
Installation of RTools44 or higher
-
R at an intermediate level, DfE R training guide
-
Particularly R Shiny
-
Clone or download the repo.
-
Open the R project in R Studio.
-
Run
renv::restore()
to install dependencies. -
Run
shiny::runApp()
to run the app locally.
Package control is handled using renv. As in the steps above, you will need to run renv::restore()
if this is your first time using the project.
UI tests have been created using shinytest that check the app loads, that content appears correctly when different inputs are selected, and that tab content displays as expected. More should be added over time as extra features are added.
GitHub Actions provide CI by running the automated tests and checks for code styling. The yaml files for these workflows can be found in the .github/workflows folder.
The function run_tests_locally() is created in the Rprofile script and is available in the RStudio console at all times to run both the unit and ui tests.
- The app is deployed to the department's shinyapps.io subscription using GitHub actions. The yaml file for this can be found in the .github/workflows folder.
In general all .r files will have a usable outline, so make use of that for navigation if in RStudio: Ctrl-Shift-O
.
The function tidy_code() is created in the Rprofile script and therefore is always available in the RStudio console to tidy code according to tidyverse styling using the styler package. This function also helps to test the running of the code and for basic syntax errors such as missing commas and brackets.
If you spot any issues with the application, please flag it in the "Issues" tab of this repository, and label as a bug.
Only members of the 16-18 accountability data and development team can merge pull requests. Add patithomas, cjrace, and rmbielby as a requested reviewers, and the team will review before merging.
Email [email protected]