Yesterday I gave a short talk for the Sheffield R Users’ Group about unit testing in R.
In short, there are two things you should really be testing when working in R:
- Data analysis scripts (usually in
- Functions (usually in
Head over to the repo and follow the instructions there to get started with your own tests: https://philmikejones.github.io/RUnitTesting/