<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/r-and-gnu-tools-via-homebrew/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://pachamaltese.github.io/r_and_gnu_tools_via_homebrew.html"> Reimagined Invention</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<h1>Introduction</h1>
<p>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 <code>pip</code> were not recognised from RStudio. Here’s my solution to make RStudio, and GUI apps in general, use stock Python. </p>
<h1>Why should you do this?</h1>
<p>To forget further complications such as downloading R installer and other tools when you want to update to a newer version. With a single <code>brew upgrade</code> you’ll be ready.</p>
<h1>What do you need to do this?</h1>
<p>You’ll need Homebrew and XCode installed. How to do that? check these links</p>
<ul>
<li><a target="_blank" rel="nofollow" href="http://brew.sh/">Install Homebrew</a></li>
<li><a target="_blank" rel="nofollow" href="https://developer.apple.com/download/">Install XCode</a></li>
</ul>
<h1>Hands to the work</h1>
<p>To install R, GNU tools and updated tools via Homebrew run <a target="_blank" rel="nofollow" href="https://gist.github.com/pachamaltese/a789eb3bc96f33b47e5a1499481c0f4b">this script</a>. The original was made by <a target="_blank" rel="nofollow" href="https://gist.github.com/xuhdev/8b1b16fb802f6870729038ce3789568f">Xudev</a>.</p>
<h1>Post-installation</h1>
<p>Update your path by running</p>
<div>
<pre><span></span>sudo launchctl config user path /usr/local/opt/coreutils/libexec/gnuman:/usr/local/sbin:/usr/local/bin
</pre>
</div>
<p>Don’t forget to follow <a target="_blank" rel="nofollow" href="https://medium.com/@royalstream/how-to-install-and-codesign-gdb-on-os-x-el-capitan-aab3d1172e95#.jbzcfeegv">this post-installation tutorial</a> by Steven Burns to get <code>gdb</code> working.</p>
<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://pachamaltese.github.io/r_and_gnu_tools_via_homebrew.html"> Reimagined Invention</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/GJgYn1fQrXU"></a></div>