Unit testing in R

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

I find your lack of unit tests disturbing

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/)

Get set up and see some examples at https://philmikejones.github.io/RUnitTesting/ I also shared some examples from rakeR and my thesis.