check_scalar | R Documentation |
A function to check that argument is of proper class and of length 1.
check_scalar(..., arg_class, alt_null = FALSE)
... |
Function argument that is being asserted. |
arg_class |
Class name. Usually "character", "numeric", "data.frame", etc. |
alt_null |
Logical. Should argument accept NULL value. |
Invisible NULL
if assertion is TRUE
, otherwise an error message.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.