A Safe Version of setGeneric
. Intended for internal use only.
setGenericVerif(name, ...)
The character string name of the generic function.
Additional arguments to pass to setGeneric
.
setGenericVerif
really exists for its side effect; but returns the value returned by setGeneric
or NULL.
setGeneric
will overwrite existing generic functions. This will result in the loss of all methods already associated with that generic.
setGenericVerif
only sets the generic if it is not already a generic.
If a generic by the name of name
already exists, a warning is issued and NULL is returned. Otherwise setGeneric
is called and its value returned.