Skip to content
Back to formatted view

Raw Message

Message-ID: <D77FD93F-DAB2-4987-9AFA-9C10A554E7B2@stat.harvard.edu>
Date: 2005-06-09T05:56:16Z
From: Byron Ellis
Subject: some errors
In-Reply-To: <m2vf4ob37n.fsf@macaroni.local>

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