R and GNU tools via Homebrew
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Introduction
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.
Post-installation
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.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.