>-----Original Message----- >From: r-help-bounces at stat.math.ethz.ch >[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of >Francisco J Molina >Sent: Sunday, May 11, 2003 7:34 PM >To: r-help >Subject: [R] I can not load MASS at starting R > > > >I have istalled R with the rpm package available for RedHat 9.0. >My machine is a pentium4. > >This is my .Rprofile file ( placed in my home directory ): > >w <- function ( x, y ) write.table ( t ( x ), file = y, quote >= F, col.names = F, row.names = F, sep = ',' ) >q <- function () q ( save = 'no' ) >library( stepfun ) >library ( MASS ) > >The MASS library is not loaded when R is started. These are the error >messages I got: > >Error in get(x, envir, mode, inherits) : variable "biplot" was >not found >Error in library(MASS) : package/namespace load failedFrancisco, Instead of using: library(MASS) library(stepfun) Use: options(defaultPackages=c(getOption("defaultPackages"), "MASS", "stepfun")) That should resolve the problem. HTH, Marc Schwartz
This is known: search the archives for the solutions (you are not intended to use .Rprofile to call library(): that's the purpose of options("defaultPackages") so set that, but there are at least two other solutions.) Specifically, I sent a message to R-help on Date: Sat, 3 May 2003 08:42:39 +0100 (BST) Subject: Re: [R] failed to load MASS at start up On Sun, 11 May 2003, Francisco J Molina wrote:> I have istalled R with the rpm package available for RedHat 9.0. > My machine is a pentium4. > > This is my .Rprofile file ( placed in my home directory ): > > w <- function ( x, y ) write.table ( t ( x ), file = y, quote = F, col.names = F, row.names = F, sep = ',' ) > q <- function () q ( save = 'no' ) > library( stepfun ) > library ( MASS ) > > The MASS library is not loaded when R is started. These are the error > messages I got: > > Error in get(x, envir, mode, inherits) : variable "biplot" was not found > Error in library(MASS) : package/namespace load failed-- 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
I have istalled R with the rpm package available for RedHat 9.0. My machine is a pentium4. This is my .Rprofile file ( placed in my home directory ): w <- function ( x, y ) write.table ( t ( x ), file = y, quote = F, col.names = F, row.names = F, sep = ',' ) q <- function () q ( save = 'no' ) library( stepfun ) library ( MASS ) The MASS library is not loaded when R is started. These are the error messages I got: Error in get(x, envir, mode, inherits) : variable "biplot" was not found Error in library(MASS) : package/namespace load failed