Description Usage Arguments Value Examples
Templates are objects which are meant to capture the structure of an R Markdown document and facilitate the comparison between the template and new Rmd documents, usually to ensure the structure and/or content matches sufficiently.
1 2 3 4 5 6 7 8 |
rmd |
R Markdown document in the form of an |
keep_content |
Should the template keep the document's content (markdown text and chunk code). |
keep_labels |
Should the template keep the document's code chunk labels. |
keep_headings |
Should the template keep the document's headings. |
keep_yaml |
Should the template keep the document's yaml. |
... |
Unused, for extensibility. |
Returns an rmd_template
object, which is a derived tibble containing relevant structural
details of the document.
1 2 3 4 | rmd = parse_rmd(system.file("hw01.Rmd", package="parsermd"))
rmd_select(rmd, by_section(c("Exercise *", "Solution"))) %>%
rmd_template()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.