File: pkgtest.Rd

package info (click to toggle)
r-cran-pkgload 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,164 kB
  • sloc: sh: 13; cpp: 9; ansic: 8; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 459 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/has_tests.R
\name{pkgtest}
\alias{pkgtest}
\title{Return the path to one of the packages in the devtools test dir}
\usage{
pkgtest(package)
}
\arguments{
\item{package}{Name of the test package.}
}
\description{
devtools comes with some simple packages for testing. This function
returns the path to them.
}
\examples{
if (has_tests()) {
pkgtest("testData")
}
}
\keyword{internal}