inst/tests/
or
tests/testthat
directory (the latter is recommended).
See test_dir
for the naming convention of test
scripts within one of those directories and
test_check
for the folder structure conventions.test(pkg = ".", filter = NULL)
as.package
for more informationNULL
, only tests with file names matching this
regular expression will be executed. Matching will take on the file
name after it has been stripped of "test-"
and ".r"
.add_test_infrastructure
for more details.