Description Usage Arguments Details Value Author(s)
prepare_yaml
Obtains the yaml header of a Rmd document to add the default
prerequisites and targets to be used in a Makefile.
1 | prepare_yaml(file_rmd, dir_blog = "docs")
|
file_rmd |
File to obtain the initial yaml header. This should be relative to the project root path. |
dir_blog |
File to obtain the initial yaml header. |
The yaml header is checked to add the default target "html" file and the default prerequisite "Rmd" file. It append these default in case other targets and prerequisites have already been defined in the header file. These can be defined using a parameter starting with "targ" (e.g. targets: path/to/file.RData) for targets and a parameter starting with "prer" (e.g. prerequisites: path/to/req1.RData path/to/req2.RData) for prerequisites.
A yaml list with added default target and prerequisite.
Erick A. Chacón-Montalván
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.