Re: [Rd] Help for methods

From: hadley wickham <h.wickham_at_gmail.com>
Date: Tue 19 Sep 2006 - 13:16:13 GMT

> In the alpha of 2.4.0, both suggestions above work, as do ?summary and
> ?summary(data.frame()). ?summary(lm()) gives the same man page, rather
> than the summary.lm page (but the page does have a link to that page).

That's great.

The fact that summary includes a link to summary.lm is relevant for this specific example, but not in general.

This is also related to my distaste for having multiple methods documented in one function. As a developer of R packages, I understand why people do it (and do it myself), but as a user of help, it makes the documentation harder to read.

> The problem with S3 methods is that it's pretty difficult for R to know
> that a particular object is an S3 generic. The only sign is that it has
> a call to UseMethod() in it. I think this is one of the motivations for S4.

Well, it is even more difficult for a human to know!

Hadley



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Sep 19 23:31:21 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 19 Sep 2006 - 14:30:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.