get_extdata: Get the extdata file path of a package

Description Usage Arguments Value Author(s) Examples

Description

Get the extdata file path of a package

Usage

1
get_extdata(pkg, name, dir = "extdata", mustWork = TRUE)

Arguments

pkg

character, the name of a package

name

character, the name of the extdata file

dir

character, the directory in the package hierarchy

mustWork

See system.file

Value

character, the extdata file path

Author(s)

Xiaobei Zhao

Examples

1
2
3
4
## Not run: 
try(get_extdata('datasets','morley.tab','data'))

## End(Not run)

Xmisc documentation built on May 2, 2019, 8:23 a.m.