Learn R Programming

devtools (version 2.2.2)

devtest: Return the path to one of the packages in the devtools test dir

Description

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

Usage

devtest(package)

Arguments

package

Name of the test package.

Examples

Run this code
# NOT RUN {
if (has_tests()) {
devtest("testUseData")
}
# }

Run the code above in your browser using DataLab