testwhat (version 4.2.2)

test_chunk_options: Test whether the student defined the correct chunk options (R Markdown exercises)

Description

Test whether the student defined the correct chunk options in an R Markdown exercise

Usage

test_chunk_options(options = NULL, allow_extra = TRUE, not_called_msg = NULL, incorrect_msg = NULL)

Arguments

options
Set of options
allow_extra
whether or not the definition of additional options is accepted (default TRUE)
not_called_msg
feedback message if option was not specified
incorrect_msg
feedback message if option was incorrectly set

Details

This test can only be called inside a test_rmd_group() call!