[R] I can not load MASS at starting R

Marc Schwartz mschwartz at medanalytics.com
Sun May 11 03:29:00 CEST 2003


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

Francisco,

Instead of using:

library(MASS)
library(stepfun)

Use:

options(defaultPackages=c(getOption("defaultPackages"), "MASS",
"stepfun"))

That should resolve the problem.

HTH,

Marc Schwartz




More information about the R-help mailing list