Introduction | Requirements | How to use | How to contribute | Contact
The Local Skills dashboard provides published local data from a variety of sources in an easy to navigate format. To support local skills planning, the dashboard covers topics such as employment, qualifications, and education outcomes across England.
- Production - https://department-for-education.shinyapps.io/local-skills-dashboard/
- Pre-production - https://department-for-education.shinyapps.io/local-skills-dashboard-preprod/
-
Installation of R Studio 1.2.5033 or higher
-
Installation of R 3.6.2 or higher
-
Installation of RTools40 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.
- The app is deployed to the department's shinyapps.io subscription using GitHub actions, to https://department-for-education.shinyapps.io/local-skills-dashboard/. 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.
- /Data/2_...: Geographical lookup and shape files
- /Data/2_...: All the raw data files imported for use in the dashboard
- /Data/3_...: Text used within the dashboard
- /Data/AppData: The datafiles the app runs off
- /DeveloperGuide: Guide to updating the data in the dashboard (markdown is here: https://github.com/dfe-analytical-services/lsip_dashboard/blob/main/DeveloperGuide/LocalSkillsDeveloperGuide.md)
- /R: scripts run when the app runs
- /renv: package alignment
- /tests: testing changes to the app (not currently used)
- /www: web specific files (cookies, css)
- /ExtractLoadData.R: extract and load raw data
- /TransformData.R: converts raw data into the data shape used by the app
- /checkUpdateChanges.R: compares the old data with any update as part of the QA
- /server.R: calculates the data shown in the dashboard reacting to user input
- /ui.R: controls the layout of the dashboard
- /global.R: loads R package libraries and reusable functions
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 Statistics Development and UFS team can merge pull requests. Add lauraselby, cjrace and pjames as requested reviewers, and the team will review before merging.
If you have questions about the dashboard or data within it, please contact us at ufs.contact@education.gov.uk.