Example of unit testing R code with testthat
The Endeavour 2013-06-12
Summary:
Here’s a little example of using Hadley Wickham’s testthat package for unit testing R code. You can read more about testthat here. The function below computes the real roots of a quadratic. All that really matters for our purposes is…