Patrick Ward words, code, and music

Installing R from Homebrew on Mac OS X

I’m taking the Computing for Data Analysis on Coursera and needed to install the R language files. I prefer to install programs like R via homebrew. But, I ran into a few errors along the way. After a few tries and reading through issue 587 on Github, I was able to successfully install R via the following steps:

  1. First, I installed XQuartz to use as the X11 window system.
  2. Up next, the homebrew command line instructions:
brew update
brew tap homebrew/science
brew install r --env=std

It was the --env=std option that enabled me to fully install the R framework.