R and GNU tools via Homebrew

January 7, 2017

(This article was first published on Reimagined Invention, and kindly contributed to R-bloggers)


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.

To leave a comment for the author, please follow the link and comment on their blog: Reimagined Invention.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)