Devtools comes with some simple packages for testing. This function returns the path to them.

devtest(package)

Arguments

package

Name of the test package.

Examples

if (has_tests()) { devtest("testUseData") }
#> [1] "/data/GHE/mpn/deployment/deployments/2020-09-22/renv/library/R-3.6/x86_64-pc-linux-gnu/devtools/tests/testthat/testUseData"