Tests are assumed to be located in a
inst/tests/ directory. See
test_dir for the naming convention of test scripts within that directory.
test(pkg = ".", filter = NULL, fresh = FALSE)
- package description, can be path or package name. See
as.packagefor more information
- If not
NULL, 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
TRUE, will be run in a fresh R session. This has the advantage that there's no way the examples can depend on anything in the current session, but interactive code (like
browser) won't work.
Documentation reproduced from package devtools, version 1.4.1. License: GPL (>= 2)