check_length | R Documentation |
TODO.
check_length(x, arg_length = 1L, alt_null = FALSE, add_msg = NULL)
x |
Function arguments that are being asserted. |
arg_length |
Integer. Length of argument, for scalars it should take
value |
alt_null |
Logical. Should argument accept NULL value. |
add_msg |
Is an additional message that can be printed over the standard function error message. You can:
|
Returns invisible NULL
when argument is of asserted length,
otherwise it will throw an error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.