Get a method for an S3 generic, possibly from a namespace or the generic's registry.
a character string giving the name of the generic.
a character string giving the name of the class.
logical: should failure to find the generic or a method be allowed?
S3 methods may be hidden in namespaces, and will not
then be found by
get: this function can retrieve
such functions, primarily for debugging purposes.
Further, S3 methods can be registered on the generic when a namespace is loaded, and the registered method will be used if none is visible (using namespace scoping rules).
It is possible that which S3 method will be used may depend on where
f is called from:
getS3method returns the
method found if
f were called from the same environment.
The function found, or
NULL if no function is found and
optional = TRUE.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.