Adding unit tests is a great way to ensure your code always works as expected. It will also improve your code coverage, which is a metric that get displayed as a badge in your README (see here for an example):
testthat is my preferred methods for implementing unit tests.
See here for some examples.
Adding unit tests is a great way to ensure your code always works as expected. It will also improve your code coverage, which is a metric that get displayed as a badge in your README (see here for an example):
testthat
is my preferred methods for implementing unit tests. See here for some examples.