From nilsson.henric at gmail.com  Fri Mar 16 13:42:35 2007
From: nilsson.henric at gmail.com (Henric Nilsson (Public))
Date: Fri, 16 Mar 2007 13:42:35 +0100
Subject: [Rd] Unhidden predict methods
In-Reply-To: <Pine.LNX.4.64.0703161222340.8349@gannet.stats.ox.ac.uk>
References: <45FA812B.1060104@gmail.com>
	<Pine.LNX.4.64.0703161222340.8349@gannet.stats.ox.ac.uk>
Message-ID: <45FA90BB.3020308@gmail.com>

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 on.

> 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.

Agreed.

Thanks again!


Henric



> 
> On Fri, 16 Mar 2007, Henric Nilsson (Public) wrote:
> 
>> 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*               predict.poly
>> [11] predict.ppr*               predict.prcomp*
>> [13] predict.princomp*          predict.smooth.spline*
>> [15] predict.smooth.spline.fit* predict.StructTS*
>>
>>    Non-visible functions are asterisked
>>
>> I'm sure there's a good reason for this, but I haven't been able to
>> figure it out. Please enlighten me.
>



[Rd] Unhidden predict methods
Henric Nilsson (Public