Convenience function for methods::new()
that ensures that the provided
class name is namespaced with a package name.
New(Class, ...)
the name of the S4 class to be instantiated
additional parameters for methods::new()
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.