[R-SIG-Mac] Can't load MASS when using Mac GUI.

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Feb 18 07:48:20 CET 2009


You are tryig to use MASS built for R 2.7.x on 2.8.1.
Looks like /Users/rturner/Rlib needs updating.

On Wed, 18 Feb 2009, Rolf Turner wrote:

>
> If I start R by clicking on the R icon on the ``dock'' then I am unable
> to load the MASS package.
>
> I get:
>
>> library(MASS)
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
> unable to load shared library '/Users/rturner/Rlib/MASS/libs/i386/MASS.so':
> dlopen(/Users/rturner/Rlib/MASS/libs/i386/MASS.so, 6): Library not loaded: 
> /Library/Frameworks/R.framework/Versions/2.7/Resources/lib/libR.dylib

Note the 2.7 here.

> Referenced from: /Users/rturner/Rlib/MASS/libs/i386/MASS.so
> Reason: image not found
> Error: package/namespace load failed for 'MASS'
>
>
> Can anyone tell me what's going wrong here?  Anything I can do about it?
>
> If I start R from the command line, there is no problem.

Different version of R, or different library paths.  Try .libPaths() 
in each.

>
> My session info from the GUI:
>
>> sessionInfo()
> R version 2.8.1 (2008-12-22)
> i386-apple-darwin8.11.1
>
> locale:
> en_NZ.UTF-8/en_NZ.UTF-8/C/C/en_NZ.UTF-8/en_NZ.UTF-8
>
> attached base packages:
> [1] datasets  utils     stats     graphics  grDevices methods   base
>
> loaded via a namespace (and not attached):
> [1] tools_2.8.1
>
> And from the command line startup:
>
>> sessionInfo()
> R version 2.8.1 (2008-12-22)
> i386-apple-darwin8.11.1
>
> locale:
> C
>
> attached base packages:
> [1] datasets  utils     stats     graphics  grDevices methods   base
>
> other attached packages:
> [1] misc_0.0-11    fortunes_1.3-5 MASS_7.2-44
>
>
> Thanks for any insights.
>
> 	cheers,
>
> 		Rolf Turner

-- 
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-SIG-Mac mailing list