[Rd] library(MASS) in .First() (PR#3085)

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat May 24 11:09:12 MEST 2003


This is already solved in R-patched, and has been discussed on R-help 
several times with solutions.

The short answer is: don't do that or use R-patched.

On Fri, 23 May 2003 abroman at jhsph.edu wrote:

> Full_Name: Aimee Teo Broman
> Version: 1.7.0
> OS: Windows XP vers5.1
> Submission from: (NULL) (162.129.145.77)
> 
> 
> 
> My .First() function contains the command library(MASS) -- when I open R 1.7.0,
> I get this error:
> 
> Error in get(x, envir, mode, inherits) : variable "biplot" was not found
> Error in library(MASS) : package/namespace load failed
> 
> If I run library(MASS) outside of the .First() function, it does not produce an
> error, and the functions from that library seem to work fine.  I was not getting
> this error in 1.6.2.
> 
> The .First() function I'm using:
> 
> .First <- function(){
>   library(foreign)
>   library(modreg)
>   library(MASS)
> }
> 
> thanks,
> Aimee
> 
> ______________________________________________
> R-devel at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 

-- 
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-devel mailing list