[prev in list] [next in list] [prev in thread] [next in thread]
List: r-sig-mac
Subject: Re: [R-SIG-Mac] R.app path and environment variables
From: Simon Urbanek <simon.urbanek () r-project ! org>
Date: 2008-08-10 21:30:23
Message-ID: 5FD7CC05-8796-44E7-BE0C-E01FF0584B9C () r-project ! org
[Download RAW message or body]
On Aug 9, 2008, at 6:13 AM, Gad Abraham wrote:
> Hi,
>
> Where does R.app, when launched from the Dock, get its environment
> variables from, including PATH?
>
From the launchd process (or LS in general, details depend on the
version of OS X you use).
> I've tried setting the PATH in ~/.bash_profile and /etc/paths, but
> when
> launched from the Dock, it doesn't get through:
>> system("echo $PATH")
> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
>
That is as expected since launchd doesn't read those. You can use
Environment.plist for processes started by LS, see
http://developer.apple.com/qa/qa2001/qa1067.html
Cheers,
Simon
> If I start R.app from Terminal using
> /Applications/R.app/Contents/MacOS/R, it does show up:
>> system("echo $PATH")
> /usr/bin:/bin:/usr/sbin:/sbin:/sw/bin:/usr/local/bin:/sw/sbin:/usr/
> X11/bin:/usr/local/git/bin/:/usr/local/bin
>
> I'm using R 2.7.1 on Leopard 10.5.4.
>
> Thanks,
> Gad
>
> --
> Gad Abraham
> Dept. CSSE and NICTA
> The University of Melbourne
> Parkville 3010, Victoria, Australia
> email: gabraham@csse.unimelb.edu.au
> web: http://www.csse.unimelb.edu.au/~gabraham
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>
_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic