use_raw_dataset {DataPackageR} | R Documentation |
Add a raw data set to inst/extdata
Description
The file or directory specified by path
will be moved into
the inst/extdata directory.
Usage
use_raw_dataset(path = NULL, ignore = FALSE)
Arguments
path |
|
ignore |
|
Value
invisibly returns TRUE for success. Stops on failure.
Examples
if(rmarkdown::pandoc_available()){
myfile <- tempfile()
file <- system.file("extdata", "tests", "extra.Rmd",
package = "DataPackageR")
raw_data <- system.file("extdata", "tests", "raw_data",
package = "DataPackageR")
datapackage_skeleton(
name = "datatest",
path = tempdir(),
code_files = file,
force = TRUE,
r_object_names = "data")
use_raw_dataset(raw_data)
}
[Package DataPackageR version 0.16.0 Index]