check_choice | R Documentation |
Checks whether a certain choice complies with a provided choice_type.
This helper function is called by the step template after the documentation block
when choice is not NULL
.
check_choice(choice, choice_type)
choice |
a list containing choices |
choice_type |
a list of lists characterizing valid choices. Needs to be specified by the user for each design step. |
check_choice(list("my_choice"),
list(list(name = "achoice",
type = "character",
valid_values = c("my_choice", "another_choice"))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.