[R-SIG-Mac] Setting PATH in ~/.Renviron gives a different result in R64.app compared to result from R run in Terminal

Berend Hasselman bhh at xs4all.nl
Thu Aug 23 18:44:56 CEST 2012

I have a ~/.Renviron file to set some environment variables.
The contents are

 ~/.Renviron  contents

Using Sys.getenv  in R from the command line  (Terminal) gives

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

But the same command in R64.app GUI gives

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

/usr/local/bin has been appended to the value specified in .Renviron

This also happens in a clean guest account.

What's going on?


Running Mac OS X 10.6.8

R.app version: [R.app GUI 1.53 (6233) x86_64-apple-darwin9.8.0]

R version 2.15.1 Patched (2012-08-17 r60302)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

More information about the R-SIG-Mac mailing list