Checks if a yaml header option was specified. If not, generates a feedback
message. If yes, zooms in on the YAML header option so you can use
check_equal to verify equality.
# S3 method for MarkdownYamlState check_option(state, name, not_found_msg = NULL, append = TRUE, ...)
| state | the state to start from. Should be a state produced by
|
|---|---|
| name | name of the YAML header option to zoom in on. If you want to
check a nested option, use |
| not_found_msg | If specified, this overrides the automatically generated message in case the option wasn't specified. |
| append | Whether or not to append the feedback to feedback built in previous states. |
| ... | S3 stuff |
A state that zooms in on the YAML header option.