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

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Mon 26 Jul 2004 - 06:22:15 EST

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



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jul 26 06:34:06 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:38:22 EST