Re: [Rd] Unhidden predict methods

2007-03-16 Thread Gabor Grothendieck
Sometimes its useful to call a method on a class other than the method indicated by the suffix of the method name and in that case one needs to call the method directly rather than via the generic. For an example, see: http://tolstoy.newcastle.edu.au/R/e2/help/07/01/9383.html On 3/16/07, Henric

Re: [Rd] Unhidden predict methods

2007-03-16 Thread Henric Nilsson (Public)
Den 2007-03-16 13:25, Prof Brian Ripley skrev: > The reason some are not hidden is historical: they were called > explicitly by (contributed) package code at the time namespaces were > introduced. Ah, I see. In that case I'll just hide away as much as possible in the new package I'm working o

Re: [Rd] Unhidden predict methods

2007-03-16 Thread Prof Brian Ripley
The reason some are not hidden is historical: they were called explicitly by (contributed) package code at the time namespaces were introduced. It would be a good idea to revisit some of those decisions, but it is not a very appealing way to spend one's time. On Fri, 16 Mar 2007, Henric Nilsson

Re: [Rd] Unhidden predict methods

2007-03-16 Thread Henrik Bengtsson
One reason is that you should never call those methods directly but only via the generic function predict(), and this is a way to prevent such misuse/mishaps. You can always use getAnywhere() if you want look at the code. /H On 3/16/07, Henric Nilsson (Public) <[EMAIL PROTECTED]> wrote: > Hi, >

[Rd] Unhidden predict methods

2007-03-16 Thread Henric Nilsson (Public)
Hi, I've noted that not all `predict' methods are hidden in the namespace: > methods("predict") [1] predict.ar*predict.Arima* [3] predict.arima0*predict.glm [5] predict.HoltWinters* predict.lm [7] predict.loess* predict.mlm [9] predict.nls*