[R] problems in loading MASS
skiadas at hanover.edu
Fri Apr 13 01:04:07 CEST 2007
I have never had much success installing packages from within R.app
on MacOSX, because the location that it is supposed to save things, /
Library/Frameworks/...., needs elevated priviledges, which the app
doesn't seem to try to get. So it at best ends up saving it in some
temporary location, and it has to be downloaded again next time R is
As a result, I have always downloaded the tgz file from my browser,
then go to the terminal in that folder and do a "sudo R CMD INSTALL
But perhaps I am doing something wrong and one can do this properly
from within R.app, I would love to be wrong on this one.
R version 2.4.1 (2006-12-18)
attached base packages:
 "stats" "graphics" "grDevices" "utils" "datasets"
Department of Mathematics and Computer Science
On Apr 12, 2007, at 6:04 PM, 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:
> --- Please select a CRAN mirror for use in this session ---
> trying URL 'http://cran.cnr.Berkeley.edu/bin/macosx/universal/
> Content type 'application/x-gzip' length 995260 bytes
> opened URL
> downloaded 971Kb
> The downloaded packages are in
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
> unable to load shared library
> 6): Library not loaded:
> Referenced from:
> Reason: image not found
> Error: package/namespace load failed for 'MASS'
> R version 2.4.1 (2006-12-18)
> attached base packages:
>  "stats" "graphics" "grDevices" "utils" "datasets"
> "methods" "base"
> other attached packages:
> randomForest dprep
> "4.5-18" "1.0"
> platform i386-apple-darwin8.8.1
> arch i386
> os darwin8.8.1
> system i386, darwin8.8.1
> major 2
> minor 4.1
> year 2006
> month 12
> day 18
> svn rev 40228
> language R
> version.string R version 2.4.1 (2006-12-18)
> Weiwei Shi, Ph.D
> Research Scientist
> GeneGO, Inc.
More information about the R-help