Skip to contents

Get DataPackageR data path

Usage

project_data_path(file = NULL)

Arguments

file

character or NULL (default).

Value

character

Details

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

Examples

if(rmarkdown::pandoc_available()){
project_data_path( file = "data.rda" )
}
#> Warning: path[1]="/tmp/RtmpqmnlRG/file5b31767e0aa/data/data.rda": No such file or directory
#> [1] "/tmp/RtmpqmnlRG/file5b31767e0aa/data/data.rda"