use_raw_dataset | R Documentation |
The file or directory specified by path
will be moved into
the inst/extdata directory.
use_raw_dataset(path = NULL, ignore = FALSE)
path |
|
ignore |
|
invisibly returns TRUE for success. Stops on failure.
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.