assert_type_ | R Documentation |
Check if type is as expected (without using non standard evaluation)
assert_type_(var, types, var_name, allow_na = TRUE)
var |
Variable whose type should be checked |
types |
(vector of strings) A vector of allowed type values |
var_name |
(string) Name of the variable passed in in |
allow_na |
(logical) Is a missing value allowed? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.