On 24/10/2014, 1:37 AM, Simon Urbanek wrote: > > On Oct 24, 2014, at 12:22 AM, Emma Sherratt <[email protected]> wrote: > >> Dear Mac R community, >> >> I wonder if anyone else has come across this issue. After installing the >> new Mac OS10.10 Yosemite, I am now having a strange problem. >> >> I'm trying to use movie3d and run similar functions based on this I have >> written myself. >> >> Specifically, when I run >> >>> system("convert --version") >> sh: convert: command not found >> >> yet, it is not a path issue. >>> Sys.getenv("PATH") >> [1] >> "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin: >> */opt/ImageMagick/bin*:/usr/texbin" >> > > It is, because Yosemite ignores PATH for processes started from a GUI > application. You will see if you run > system("echo $PATH") > > You have to use full paths in Yosemite for anything that is not on the > "sanctioned" PATH -- or use R from the shell.
What is the best way to find the full path to a command there, since Sys.which() sees the same PATH as system() does? Alternatively, how do you modify the PATH that system() sees? Duncan Murdoch _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
