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