Description Usage Arguments Value Author(s) References See Also Examples
See generic: ensureClassRegistration
1 2 | ## S4 method for signature 'character'
ensureClassRegistration(cl, strict = FALSE, ...)
|
cl |
|
strict |
|
... |
Further arguments passed to subsequent functions/methods.
In particular:
|
logical
. TRUE
.
Janko Thyson janko.thyson@rappster.de
http://github.com/rappster/classr
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
## NOTE //
## Keeping the default for 'where' that is used by 'setOldClass',
## i.e. simply *not* providing a value in the call to 'ensureClassRegistration',
## only works as long as your package has not been fully loaded yet
ensureClassRegistration(cl = "TestClass")
isClass("TestClass")
ensureClassRegistration(cl = "TestClass")
try(ensureClassRegistration(cl = "TestClass", strict = TRUE))
ensureClassRegistration(cl = c("TestClass1", "TestClass2"))
isClass("TestClass1")
isClass("TestClass2")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.