# Unit testing in R

Yesterday I gave a short talk for the Sheffield R Users’ Group about unit testing in R.

I shared some examples of tests I’ve used with rakeR and my thesis.

In short, there are two things you should really be testing when working in R:

1. Data analysis scripts (usually in data-raw/)
2. Functions (usually in R/)

Head over to the repo and follow the instructions there to get started with your own tests: https://philmikejones.github.io/RUnitTesting/