package_file: Find file in a package.

Description Usage Arguments Examples

View source: R/package.r

Description

It always starts by finding by walking up the path until it finds the root directory, i.e. a directory containing DESCRIPTION. If it cannot find the root directory, or it can't find the specified path, it will throw an error.

Usage

1
package_file(..., path = ".")

Arguments

...

Components of the path.

path

Place to start search for package directory.

Examples

1
2
3
4
## Not run: 
package_file("figures", "figure_1")

## End(Not run)

r-lib/pkgload documentation built on Oct. 12, 2018, 3:11 p.m.