MethodSupport {methods} | R Documentation |
These are support routines for computations on formal methods.
getMethodsForDispatch(f) cacheMethod(f, sig, def, args = names(sig)) hasMethod(f, signature=character()) resetGeneric(f)
hasMethod
:TRUE
if f
is the name of a generic function with an (explicit) method for
this signature.
resetGeneric
:TRUE
or
FALSE
according to whether information for the function was
found in the metadata.
You must call this function when you change relevant inheritance information during a session, to guarantee that the new information is used if this generic has already been called.
cacheMethod
:No persistent effect, since the method metadata is session-scope only.
getMethodsForDispatch
:allMethods
slot.
If methods have not yet been merged, calling
getMethodsForDispatch
will cause the merge to take place.