error_on_false | R Documentation |
check helper
error_on_false(
check,
x,
var_name,
input_name,
allow_null,
allow_na,
expected,
call,
class
)
check |
boolean statement to check |
x |
the variable to check |
var_name |
the variable name the user gave the input |
input_name |
the name of the input we are checking |
allow_null |
allow check to pass if x is null |
allow_na |
allow check to pass if any element of x is na |
expected |
a string describing what the input should be |
call |
the call environment |
class |
the class of the error |
invisible true/falses
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.