R and GNU tools via Homebrew


I was in need of using stock Python (Homebrew provided version) from RStudio and I found that the user path is ignored by GUI applications. I discovered that because Python packages installed via pip were not recognised from RStudio. Here's my solution to make RStudio, and GUI apps in general, use stock Python.

Why should you do this?

To forget further complications such as downloading R installer and other tools when you want to update to a newer version. With a single brew upgrade you'll be ready.

What do you need to do this?

You'll need Homebrew and XCode installed. How to do that? check these links

Hands to the work

To install R, GNU tools and updated tools via Homebrew run this script. The original was made by Xudev.


Update your path by running

sudo launchctl config user path /usr/local/opt/coreutils/libexec/gnuman:/usr/local/sbin:/usr/local/bin

Don't forget to follow this post-installation tutorial by Steven Burns to get gdb working.