[R-SIG-Mac] R.app path and environment variables

Byron Ellis byron.ellis at gmail.com
Sat Aug 9 19:05:14 CEST 2008


The Window Manager in OS X does not execute as you nor does it spawn a  
shell to start a process so your bash profile is never called. There  
are ways to change the environment variables through editing the  
OSXEnvironment plist...


On Aug 9, 2008, at 5:13 AM, Gad Abraham <gabraham at csse.unimelb.edu.au>  
wrote:

> Hi,
>
> Where does R.app, when launched from the Dock, get its environment
> variables from, including PATH?
>
> 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
>
> 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 at csse.unimelb.edu.au
> web: http://www.csse.unimelb.edu.au/~gabraham
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list