Data Innovation Team, Scottish Government
24 September 2025
Would it be a nightmare to have to go back and rerun your data project from the beginning if you found a mistake?
Do you have to make a lot of manual edits to code before each run?
Is there a lot of repetition in your code?
Would a new person find it difficult to understand?
An overall approach to analysis
A RAP will:
Source: Government Analysis Function
Source: Government Analysis Function
Criteria categorised into 4 ‘levels’: Aspiring, Fundamental, Intermediate and Advanced.
Description and links to further resources for each criteria.
Complete form and download report to track progress and inform next steps.
Aspiring RAP Repository self-contained and
well-structured
Intermediate RAP Functions used where appropriate
Fundamental RAP Code follows a style guide
Advanced RAP Functions have unit tests
Start small and iterate (Agile project development helps here!)
Share what you are doing and learn from others around you
Find a critical friend who is willing to review your project
Use an issues log to keep track and plan future improvements