View source: R/rmd_check_template.R
rmd_check_template | R Documentation |
This function compares the provided Rmd against a template and reports on discrepancies (e.g. missing or unmodified components).
rmd_check_template(rmd, template, ...)
rmd |
The rmd to be check, can be an |
template |
|
... |
Unused, for extensibility. |
Invisibly returns TRUE
if the rmd matches the template, FALSE
otherwise.
tmpl = parse_rmd(system.file("hw01.Rmd", package = "parsermd")) %>%
rmd_select(by_section(c("Exercise *", "Solution"))) %>%
rmd_template(keep_content = TRUE)
rmd_check_template(
system.file("hw01-student.Rmd", package = "parsermd"),
tmpl
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.