Learn R Programming

BALD (version 1.0.0-3)

setGenericVerif: A Safe Version of setGeneric.

Description

A Safe Version of setGeneric. Intended for internal use only.

Usage

setGenericVerif(name, ...)

Arguments

name

The character string name of the generic function.

Additional arguments to pass to setGeneric.

Value

setGenericVerif really exists for its side effect; but returns the value returned by setGeneric or NULL.

Details

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.

See Also

setGeneric