Skip to contents

Get DataPackageR extdata path

Usage

project_extdata_path(file = NULL)

Arguments

file

character or NULL (default).

Value

character

Details

Returns the path to the data package extdata subdirectory, or constructs a path to a file in the extdata subdirectory from the file argument.

Examples

if(rmarkdown::pandoc_available()){
project_extdata_path(file = "mydata.csv")
}
#> Warning: path[1]="/tmp/Rtmpw1g9qC/file880d025b86/inst/extdata/mydata.csv": No such file or directory
#> [1] "/tmp/Rtmpw1g9qC/file880d025b86/inst/extdata/mydata.csv"