find_extdata: Construct paths to files in the extdata folder of a package

View source: R/extdata.R

find_extdataR Documentation

Construct paths to files in the extdata folder of a package

Description

Construct paths to files in the extdata folder of a package

Usage

find_extdata(..., package = NULL, firstpath = NULL, Verbose = FALSE)

Arguments

...

components of the path (eventually appended to location of extdata)

package

The package to search

firstpath

An additional location to check before looking anywhere else

Verbose

Whether to print messages about failed paths while looking for extdata

Details

inst/extdata is the conventional place to store data that is not managed directly by the standard R package mechanisms. Unfortunately its location changes at different stages of the package build/load process, since in the final package all folders underneath inst are moved directly to the package root.

Value

A character vector containing the constructed path

See Also

Other extdata: read_nl_from_parts(), save_nl_in_parts()

Examples

find_extdata(package='nat.utils')

nat.utils documentation built on June 7, 2023, 6:30 p.m.