[R-SIG-Mac] Yosemite and R

Hadley Wickham h.wickham at gmail.com
Tue Oct 21 15:39:35 CEST 2014


On Mon, Oct 20, 2014 at 4:01 PM, David Winsemius <dwinsemius at comcast.net> wrote:
>
> On Oct 20, 2014, at 8:21 AM, Hadley Wickham wrote:
>
>>>
>>> I have been running Yosemite for quite a while and didn't see any issues so far. Given how little changed in Yosemite I don't expect any changes to the Mavericks build at this point (i.e. Mavericks will remain the base target for all recent OS X builds).
>>
>> At RStudio, we've seen one problem - the PATH is not passed along to
>> sub-processes, e.g. these two functions return different values:
>>
>> Sys.getenv("PATH")
>> system("echo $PATH")
>
> I seem to remember discussions on R-SIG-Mac that system("echo $PATH") gets passed to the bash environment which is not the same as the R environment. It is expected that the $PATH variable is different in the two environments.

No, it is not.  It is expected that the path in the terminal be
different to the path in R, it is _not_ expected that the path in R be
different to the path in a subprocess started by R.

(Well it is now expected, because this appears to be a new security
feature in Yosemite)

Hadley

-- 
http://had.co.nz/



More information about the R-SIG-Mac mailing list