View source: R/rstudio-test-yaml-header.R
test_yaml_header | R Documentation |
Check whether the student specified the correct options in the yaml header (for R Markdown exercises). This test should be called outside an test_rmd_group call.
test_yaml_header(options = NULL, check_equality = TRUE, not_called_msg = NULL, incorrect_msg = NULL)
options |
Set of options. Embedded options have to be specified using the dot notation. |
check_equality |
whether or not to actually check the value assigned to the option (default TRUE) |
not_called_msg |
feedback message if option was not specified (optional but recommended) |
incorrect_msg |
feedback message if option was incorrectly set (optional but recommended) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.