[R] help(package)->sink()

Thomas Lumley tlumley at u.washington.edu
Sun Jul 25 22:22:15 CEST 2004


On Sat, 24 Jul 2004, Spencer Graves wrote:

>
>       4.  A request for "packageInfo.print" returned "object ... not
> found".

I think someone may have been contaminated by Java or some such. It should
be print.packageInfo

>		 A request for class(mclustInfo) confirmed that it was a
> packageInfo object, so I tried getMethod("print",  "packageInfo");   I
> got, 'No generic function defined for "print"'.  Then I tried,
> getMethod("show", "packageInfo");  I got, 'No method defined for
> function "show" and signature object = "packageInfo"'.
>

For S3 methods you need getS3method("print","packageInfo") rather than
getMethod.

People often recommend getAnywhere("print.packageInfo"), which does take
less typing, but I prefer getS3method.

	-thomas




More information about the R-help mailing list