From ripley at stats.ox.ac.uk  Sat May 24 11:09:12 2003
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sat May 24 11:09:28 2003
Subject: [Rd] library(MASS) in .First() (PR#3085)
In-Reply-To: <200305231516.h4NFGN2b025959@pubhealth.ku.dk>
Message-ID: <Pine.LNX.4.44.0305241008030.4516-100000@gannet.stats>

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@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@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 

-- 
Brian D. Ripley,                  ripley@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


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