devtools comes with some simple packages for testing. This function returns the path to them.
pkgtest(package)
Name of the test package.
# NOT RUN { if (has_tests()) { pkgtest("testData") } # }
Run the code above in your browser using DataCamp Workspace