When I try to run the following command:
R --slave --no-save --no-restore -e "print('foo')"
/usr/local/bin/R: line 193: /usr/local/Library/ENV/4.3/sed: No such file or directory
ERROR: option '-e' requires a non-empty argument
This happens because
brew has changed it's paths in this commit so if you've run
brew update in the last 4 days, this is what has caused the breakage.
I ran into some other issues when I tried this though. I didn't have X11 installed and I had a conflict with the
tcl-tk which meant that it caused some other failures when it was compiling so:
ln -s /opt/X11/include/X11 /usr/local/include/X11(note that your homebrew directory may be different)
brew install homebrew/dupes/tcl-tk brew link --overwrite --force tcl-tk; brew unlink tcl-tk
brew reinstall -s r
And then it worked for me. I think once the
r bottle is upgraded this issue should disappear but for the moment this is what I had to do.