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 June 28, 2024, 5:07 p.m.