Unit Testing in R

Why unit testing is really a good idea — even for non-packages. Write tests for creating robust software, save time, and have fun!

Entangled software breaks upon tiny changes — like these wirings (Photo by Pexel on Pixabay)

Unit Testing Basics

Unit Tests in R

The output is shown after calling the tests. So the function did not work with an empty list c().

Detangle your code, write unit tests, and have fun!
Spend more time with interesting features — and less with debugging.

Computer scientist, senior software developer acting in R, Python, C++, Kotlin an many other languages. Machine learning, data visualization, statistics.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store