[R] Strange behaviour of load

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jan 12 09:21:35 CET 2006


On Wed, 11 Jan 2006, giovanni parrinello wrote:

> Dear All,
> simetimes when I load an Rdata I get this message
>
> #######
> Code:
>
> load('bladder1.RData')
> Carico il pacchetto richiesto: rpart ( Bad traslastion: Load required package-...)
> Carico il pacchetto richiesto: MASS
> Carico il pacchetto richiesto: mlbench
> Carico il pacchetto richiesto: survival
> Carico il pacchetto richiesto: splines
>
> Carico il pacchetto richiesto: 'survival'
>
>
>        The following object(s) are masked from package:Hmisc :
>
>         untangle.specials
>
> Carico il pacchetto richiesto: class
> Carico il pacchetto richiesto: nnet
> #########
>
> So  I have many unrequired packages loaded.
> Any idea?

They are required!  My guess is that you have object(s) saved with 
environment the namespace of some package, and loading that namespace is 
pulling these in.  The only CRAN package which requires mlbench appears to 
be ipred, and that requires all of those except splines, required by 
survival.

So I believe you have been using ipred and have saved a reference to its 
namespace.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list