Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pkgtest

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

Simulate Package Installation and Attach

v1.2.1
GPL-3
Authors
Hadley Wickham [aut], Jim Hester [aut, cre], Winston Chang [aut], RStudio [cph], R Core team [ctb] (Some namespace and vignette code extracted from base R)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.