View source: R/04-fruitsClass.R
checkClass | R Documentation |
Check if class is in a set of accepted classes
checkClass(x, classesExpected = "list", argName = NULL)
x |
any object |
classesExpected |
character: vector with accepted classes |
argName |
character: name of argument displayed in error message |
ReSources:::checkClass(c(1, 2, 3), c("numeric", "integer"))
## Not run:
ReSources:::checkClass("This is not a list", argName = "x")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.