package_file: Find file in a package.

View source: R/package.R

package_fileR Documentation

Find file in a package.

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

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

Arguments

...

Components of the path.

path

Place to start search for package directory.

Examples

## Not run: 
package_file("figures", "figure_1")

## End(Not run)

pkgload documentation built on June 28, 2024, 5:07 p.m.