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

View source: R/has_tests.R

pkgtestR Documentation

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

pkgtest(package)

Arguments

package

Name of the test package.

Examples

if (has_tests()) {
pkgtest("testData")
}

pkgload documentation built on Sept. 22, 2023, 9:06 a.m.