Usage
showMethods(f = character(), where = topenv(parent.frame()), classes = NULL, includeDefs = FALSE, inherited = !includeDefs, showEmpty, printTo = stdout(), fdef)
.S4methods(generic.function, class)
Arguments
f
one or more function names. If omitted, all functions
will be shown that match the other arguments. The argument can also be an expression that evaluates to a single
generic function, in which
case argument fdef
is ignored. Providing an expression for
the function allows examination of hidden or anonymous functions;
see the example for isDiagonal()
.
where
Where to find the generic function, if not supplied as an
argument. When f
is missing, or length 0, this also
determines which generic functions to examine. If where
is
supplied, only the generic functions returned by
getGenerics(where)
are eligible for printing. If
where
is also missing, all the cached generic functions are
considered.
classes
If argument classes
is supplied, it is a vector
of class names that restricts the displayed results to those methods
whose signatures include one or more of those classes.
includeDefs
If includeDefs
is TRUE
, include the
definitions of the individual methods in the printout.
inherited
logical indicating if methods that have been found by
inheritance, so far in the session, will be included and marked as
inherited. Note that an inherited method will not usually appear
until it has been used in this session. See
selectMethod
if you want to know what method would be
dispatched for particular classes of arguments. showEmpty
logical indicating whether methods with no defined
methods matching the other criteria should be shown at all. By
default, TRUE
if and only if argument f
is not
missing.
printTo
The connection on which the information will be
shown; by default, on standard output.
fdef
Optionally, the generic function definition to use; if
missing, one is found, looking in where
if that is specified.
See also comment in Details.
generic.function, class
See methods
.