Learn R Programming

Xmisc (version 0.2.1)

get_extdata: Get the extdata file path of a package

Description

Get the extdata file path of a package

Usage

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

Examples

Run this code
## Not run: 
# try(get_extdata('datasets','morley.tab','data'))
# ## End(Not run)

Run the code above in your browser using DataLab