Description Usage Arguments Value Author(s) Examples
Checks if an argument is a list
of objects inheriting from the S3 class specified.
1 | assert_list_of(arg, class, optional = TRUE)
|
arg |
A function argument to be checked |
class |
The S3 class to check for |
optional |
Is the checked parameter optional? If set to |
The function throws an error if arg
is not a list or if arg
is a list but its
elements are not objects inheriting from class
Thomas Neitmann
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.