construct_yml_config | R Documentation |
Constructs a datapackager.yml configuration object from a vector of file names and a vector of object names (all quoted).
Can be written to disk via yml_write
.
render_root
is set to a randomly generated named subdirectory of tempdir()
.
construct_yml_config(code = NULL, data = NULL, render_root = NULL)
code |
A vector of filenames |
data |
A vector of quoted object names |
render_root |
The root directory where the package data processing code will be rendered.
Defaults to is set to a randomly generated named subdirectory of |
a datapackager.yml configuration represented as an R object
conf <- construct_yml_config(code = c('file1.rmd','file2.rmd'), data=c('object1','object2'))
tmp <- normalizePath(tempdir(), winslash = "/")
yml_write(conf,path=tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.