[R-SIG-Mac] Help with running R from within Aquamacs
Simon Urbanek
simon.urbanek at r-project.org
Sat Feb 9 22:02:59 CET 2008
On Feb 9, 2008, at 12:33 PM, Kasper Daniel Hansen wrote:
> 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()
And even better check .libPaths() [see the FAQ].
> A way to fix this is to make a ~/.Rprofile file containing, sat
> .libPaths("~/Library/R")
I would discourage this as it won't be compatible with the R GUI
setting. Also it is a source of many problems as people forget to
update their packages with R version.
Cheers,
Simon
More information about the R-SIG-Mac
mailing list