Description Usage Arguments Value Examples
The data object will be added to the yml configuration file.
1 | use_data_object(object_name = NULL)
|
object_name |
Name of the data object. Should be created by a processing script in data-raw. |
invisibly returns TRUE for success.
1 2 3 4 5 6 7 8 9 10 11 12 | if(rmarkdown::pandoc_available()){
myfile <- tempfile()
file <- system.file("extdata", "tests", "extra.rmd",
package = "DataPackageR")
datapackage_skeleton(
name = "datatest",
path = tempdir(),
code_files = file,
force = TRUE,
r_object_names = "data")
use_data_object(object_name = "newobject")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.