some errors
Or you can just (setenv "R_LIBS" (format "%s/Library/R/library" (getenv "HOME"))) in your .emacs. You can also set your DISPLAY variable there as well. I'm sure if you were VERY enterprising you could write some elisp that would snarf your .profile, parse it and then run the elisp equivalents.
On Jun 8, 2005, at 8:48 PM, Seth Falcon wrote:
Hi Kasper, On 8 Jun 2005, k.hansen@biostat.ku.dk wrote:
On the terminal as well as using ESS (Emacs) I can not get .libPaths() to include /Users/kdh/Library/R despite the fact that I have exported it from ~/.profile and the variable is set (output below). I have also tried using ~/.Renviron
I suspect the issue here is that Emacs isn't picking up your environment. GUI apps started from the Finder don't get the same environment (.profile, .bash_profile, etc.) that apps started from the Terminal do. My solution: I start my Emacs from Terminal and then it inherits the proper PATH and other env vars such as R_LIBS. There is another possible solution that involves editing ~/.MacOSX/environment.plist, but I never managed to get that working as I wanted. Best, + seth
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac
--- Byron Ellis (ellis@stat.harvard.edu) "Oook" -- The Librarian