duber duber - 1 year ago 80
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

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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download