match_input | R Documentation |
Match each user input to an expected/allowed value.
match_input(
user,
expected,
fail_action = c("stop", "warning", "message", "nothing"),
user_value_label = NULL
)
user |
Character vector of user input. These will be matched to
|
expected |
Character vector of expected/allowed values. |
fail_action |
If any value in |
user_value_label |
How to refer to the user input in a stop or warning
message. If |
Raise a warning if either
several user inputs match the same expected value, or at least one could not
be matched to any expected value. ciftiTools
uses this function to
match keyword arguments for a function call. Another use is to match
brainstructure labels ("left", "right", or "subcortical").
The matched user inputs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.