Description Usage Arguments Details Author(s) References See Also Examples
Ensures that classes are registrated in a sense that they are recognized
by isClass
.
1 | ensureClassRegistration(cl, strict = FALSE, ...)
|
cl |
Signature argument. Object containing class information. This usually corresponds to the name of a class. |
strict |
|
... |
Further arguments passed to subsequent functions/methods.
In particular:
|
Esentially, this functions simply calls setOldClass
in order to register the classes. A call to this method might make sense
inside .onLoad
and .onAttach
of
your packages.
Janko Thyson janko.thyson@rappster.de
http://github.com/rappster/classr
ensureClassRegistration-missing-method
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.