Checks if a code chunk option was specified. If not, generates a feedback
message. If yes, zooms in on the code chunk option so you can use
check_equal
to verify equality.
# S3 method for MarkdownChunkState 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 chunk option to zoom in on. |
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 code chunk option.