stopIfNotIn | R Documentation |
Stop with info message if element is not in expected set of elements
stopIfNotIn( element, elements, singular = "option", plural = paste0(singular, "s"), do_stop = TRUE )
element |
element to be looked for in |
elements |
vector of possible elements |
singular |
name of object to appear in error message. Default:
|
plural |
name of object (plural) to appear in error message. Default:
|
do_stop |
if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.