test_yaml_header: Test yaml header (Markdown)
Description
Test 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.
Usage
test_yaml_header(options = NULL, check_equality = TRUE, allow_extra = TRUE, not_called_msg = NULL, incorrect_msg = NULL)
Arguments
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)
allow_extra
whether or not the definition of additional options is accepted (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)