[R] problems in loading MASS

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Apr 13 05:38:30 CEST 2007


MASS is part of the standard R installation, as a recommended package.

I suggest you try re-installing R and not then trying to download a 
different version.

I would also suggest trying 2.5.0 beta at this stage in preference to 
2.4.1 if you do need to re-install R.

Beyond that, there is a list (r-sig-mac) for Mac-specific problems
(and this is an OS-specific problem).

On Thu, 12 Apr 2007, Weiwei Shi wrote:

> Hi, there:
>
> After I upgraded my R to 2.4.1, it is my first time of trying to use
> MASS and found the following error message:
>> install.packages("MASS")
> --- Please select a CRAN mirror for use in this session ---
> trying URL 'http://cran.cnr.Berkeley.edu/bin/macosx/universal/contrib/2.4/VR_7.2-33.tgz'
> Content type 'application/x-gzip' length 995260 bytes
> opened URL
> ==================================================
> downloaded 971Kb
>
>
> The downloaded packages are in
> 	/tmp/RtmpmAzBwa/downloaded_packages
>
>> library(MASS)
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
> 	unable to load shared library
> '/Library/Frameworks/R.framework/Versions/2.4/Resources/library/MASS/libs/i386/MASS.so':
>  dlopen(/Library/Frameworks/R.framework/Versions/2.4/Resources/library/MASS/libs/i386/MASS.so,
> 6): Library not loaded:
> /usr/local/gcc4.0/i686-apple-darwin8/lib/libgcc_s.1.0.dylib
>  Referenced from:
> /Library/Frameworks/R.framework/Versions/2.4/Resources/library/MASS/libs/i386/MASS.so
>  Reason: image not found
> Error: package/namespace load failed for 'MASS'

[...]

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