pkgtest: Return the path to one of the packages in the devtools test...

Description Usage Arguments Examples

View source: R/has_tests.R

Description

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

Usage

1
pkgtest(package)

Arguments

package

Name of the test package.

Examples

1
2
3
if (has_tests()) {
pkgtest("testData")
}

Example output



pkgload documentation built on Oct. 14, 2021, 1:08 a.m.