check_one_of | R Documentation |
Check valid values
check_one_of(
input,
against,
ref.input = NULL,
fdb.fn = "stop",
fdb.opt = 1,
ref.opt.2 = "valid input options",
suggest = TRUE,
verbose = TRUE,
with.time = FALSE,
in.shiny = FALSE,
...
)
input |
An input vector to be checked. |
against |
A vector of valid inputs. |
ref.input |
Character value or NULL. The reference for argument |
Error message is build via glue::glue()
building the following
string:
"Value/Values 'invalid values' of ref.input is/are invalid. Valid input options are: 'valid inputs'."
An error message or an invisible TRUE if all values of input are valid.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.