duber duber - 3 months ago 13
R Question

Installing R with Homebrew

I'm trying to install R using Homebrew. I ran these commands which are recommended elsewhere on SO:

brew tap homebrew/science
brew install R


For
brew tap homebrew/science
, I'm receiving this error:

Error: Already tapped!


For the second command, I receive this:

Error: No available formula for r


Any suggestions?

Answer

Now (as of 2014 & Yosemite) the method is the following:

brew tap homebrew/science
brew install Caskroom/cask/xquartz
brew install r

The gcc package in the homebrew/science tap already contains the latest fortran compiler (gfortran), and most of all: the whole package is precompiled so it saves you a lot of compilation time.

This answer will also work for El Capitan.

Comments