[Rd] getMethods() not finding all methods
Seth Falcon
sfalcon at fhcrc.org
Fri Oct 13 16:27:13 CEST 2006
John Chambers <jmc at r-project.org> writes:
> Yes, that's why showMethods() has the option includeDefs=TRUE to
> include the definitions. There are other options to look at multiple
> functions or specific classes. Look at ?showMethods
A feature request: it would be useful in the context of attempting to
build documentation helper tools to have a return value that was
more structured than what printTo=FALSE provides.
> And no, it's not a bug in getMethods(), which was never intended for
> human-readable output, but a side-effect of the changes for faster
> caching and dispatch in 2.4.0. With the use of environments in place
> of the methods list objects (returned by getMethods()), getMethods()
> will probably be deprecated in the next version.
I was expecting a different result based on the first sentence in the
doc describing getMethods:
The function 'getMethods' returns all the methods for a particular
generic (in the form of a generic function with the methods
information in its environment).
Hence, it surprises me that not all methods are returned. Reading on
I now see:
... is not intended to be called directly.
So I guess I got what I deserve ;-)
+ seth
More information about the R-devel
mailing list