File: path_package.Rd

package info (click to toggle)
r-cran-fs 1.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 724 kB
  • sloc: cpp: 1,269; ansic: 531; sh: 13; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 948 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/path_package.R
\name{path_package}
\alias{path_package}
\title{Construct a path to a location within an installed or development package}
\usage{
path_package(package, ...)
}
\arguments{
\item{package}{Name of the package to in which to search}

\item{...}{Additional paths appended to the package path by \code{\link[=path]{path()}}.}
}
\description{
\code{path_package} differs from \code{\link[=system.file]{system.file()}} in that it always returns an
error if the package does not exist. It also returns a different error if
the file within the package does not exist.
}
\details{
\code{path_package()} also automatically works with packages loaded with devtools
even if the \code{path_package()} call comes from a different package.
}
\examples{
path_package("base")
path_package("stats")
path_package("base", "INDEX")
path_package("splines", "help", "AnIndex")
}