Uses the {testhat} package to run all unit tests in tests/testthat directory.
test_r(...)Additional arguments passed to testthat::test_dir().
None. This function is called for side effects.
if (interactive()) {
# Run all unit tests in the `tests/testthat` directory.
test_r()
}