Re: [R] Accessing methods and extending S4 classes of existing packages

From: Johannes Huesing <>
Date: Sun, 29 Jun 2008 20:17:17 +0200

Johannes Huesing <> [Sun, Jun 29, 2008 at 08:13:27AM CEST]:
> Dear all,
> I am trying to understand how to access S4 methods after loading a
> package, using the online documentation of getMethod and friends.
> This is what I have been trying:
> > library(coin)
> > findMethods("ApproxNullDistribution")
> list()
> Warning message:
> In findMethods("ApproxNullDistribution") :
> nicht-generische Funktion an findMethods() ├╝bergeben
> whereas in the source of coin I can see the lines:
> setGeneric("ApproxNullDistribution", function(object, ...)
> standardGeneric("ApproxNullDistribution"))
> It seems that I am not getting what is going on here. Could anybody
> give me a hint?

It seems like the package authors chose not to export the ApproxNullDistribution generic method from the package, as seen in the NAMESPACE file of the package.

Does it mean that if I want to write personal extensions to the package, the correct approach is to take the whole package and modify it?

Johannes H├╝sing               There is something fascinating about science. 
                              One gets such wholesale returns of conjecture  from such a trifling investment of fact.                (Mark Twain, "Life on the Mississippi")

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 29 Jun 2008 - 18:20:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 29 Jun 2008 - 23:31:43 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive