[R-SIG-Mac] Help with running R from within Aquamacs
Kasper Daniel Hansen
khansen at stat.Berkeley.EDU
Sat Feb 9 18:33:29 CET 2008
On Feb 8, 2008, at 7:23 AM, Quan Li wrote:
> Hello,
>
> I had a rookie question. I can load add-on packages in R but cannot
> do so when R is run from within Aquamacs. The error message says
> "there is no package labeled "lattice"", for example. All my
> packages are stored in R's library. Any help on this is much
> appreciated.
My guess is that you are wrong and that your packages are stored
elsewhere (than the system library which is /Library/Frameworks/
R.framework/Resources/library. A good guess would be ~/Library/R. You
can check this using
R> installed.packages()
A way to fix this is to make a ~/.Rprofile file containing, sat
.libPaths("~/Library/R")
Kasper
More information about the R-SIG-Mac
mailing list