check_option.MarkdownChunkState: Check markdown code chunk option

View source: R/check-rmd.R

check_option.MarkdownChunkStateR Documentation

Check markdown code chunk option

Description

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.

Usage

## S3 method for class 'MarkdownChunkState'
check_option(state, name,
  not_found_msg = NULL, append = TRUE, ...)

Arguments

state

the state to start from. Should be a state produced by check_chunk.

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

Value

A state that zooms in on the code chunk option.


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