New | R Documentation |
Convenience function for methods::new()
that ensures that the provided
class name is namespaced with a package name.
New(Class, ...)
Class |
the name of the S4 class to be instantiated |
... |
additional parameters for |
If the provided class name is not already namespaced (see
methods::packageSlot()
), it will be namespaced with this package. This
mechanism is used by new()
to disambiguate if the class name clashes
with a class defined in another package.
This may not completely eliminate messages on standard error about
classes with the same name having been found in different packages. If
they appear, they will most likely have come from the call to the
methods::initialize()
generic that new()
issues at the end.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.