test_yaml_header: Check yaml header (Markdown)

View source: R/rstudio-test-yaml-header.R

test_yaml_headerR Documentation

Check yaml header (Markdown)

Description

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.

Usage

test_yaml_header(options = NULL, check_equality = 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)

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)


datacamp/testwhat documentation built on June 26, 2022, 9:07 a.m.