[R-SIG-Mac] R.app and JGR.app and the PATH environmental variable

Ian Fellows ian.fellows at stat.ucla.edu
Thu Mar 3 21:16:04 CET 2011


Hi All,

I'm observing some behavior in R.app that I can't quite figure out. In the terminal and R run from the terminal I get the following for my PATH

> Sys.getenv("PATH")
                                                                                      PATH 
"/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin" 
> q("no")
Ian-Fellowss-MacBook-Pro:~ ianfellows$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin

However, in R.app I get:

> Sys.getenv("PATH")
                                          PATH 
"/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" 

While in JGR-SL.app I get:

> Sys.getenv("PATH")
                           PATH 
"/usr/bin:/bin:/usr/sbin:/sbin"

Finally if I start JGR from the terminal

Ian-Fellowss-MacBook-Pro:~ ianfellows$ ./JGR-SL.app/Contents/MacOS/JGR

when JGR opens, the PATH is correct:

> Sys.getenv("PATH")
                                                                                      PATH 
"/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin"

Does anyone have any thoughts as to what is going on here.


Thanks,
Ian



More information about the R-SIG-Mac mailing list