<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/escaping-the-macos-10-14-mojave-filesystem-sandbox-with-r-rstudio/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://rud.is/b/2018/11/09/escaping-the-macos-10-14-mojave-sandbox-with-r-rstudio/"> R – rud.is</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>If you’re an R/RStudio user who has migrated to Mojave (macOS 10.14) or are contemplating migrating to it, you will likely eventually run into an issue where you’re trying to access resources that are in Apple’s new hardened filesystem sandboxes.</p>
<p>Rather than reinvent the wheel by blathering about what that means, give these links a visit if you want more background info:</p>
<ul>
<li><a rel="nofollow" href="https://eclecticlight.co/2018/08/27/mojaves-privacy-protection-is-complex-and-will-crash-innocent-apps/" target="_blank">Mojave’s privacy protection is complex and will crash innocent apps</a></li>
<li><a rel="nofollow" href="https://eclecticlight.co/2018/09/06/working-with-mojaves-privacy-protection/" target="_blank">Working with Mojave’s Privacy Protection </a></li>
<li><a rel="nofollow" href="https://eclecticlight.co/2018/09/17/managing-mojaves-privacy-protection-privacy-controls/" target="_blank">Managing Mojave’s privacy protection: Privacy controls</a></li>
</ul>
<p>and/or Google/DuckDuckGo for <code>macos privacy tcc full disk access</code> as there have been a <em>ton</em> of blogs on this topic.</p>
<p>The TLDR for getting your R/RStudio bits to work in these sandboxed areas is to grant them “Full Disk Access” (if that sounds scary, it is) permissions. You can do that by adding both the R executable and RStudio executable (drag their icons) to the <code>Full Disk Access</code> pane under the <code>Privacy</code> tab of <code>System Preferences</code> => <code>Security &amp; Privacy</code>:</p>
<p><a rel="nofollow" href="https://rud.is/b/2018/11/09/escaping-the-macos-10-14-mojave-sandbox-with-r-rstudio/screen-shot-2018-11-09-at-6-51-54-am/" target="_blank"><img data-orig-file="https://i0.wp.com/rud.is/b/wp-content/uploads/2018/11/Screen-Shot-2018-11-09-at-6.51.54-AM.png?fit=1560%2C1370&amp;ssl=1" data-orig-size="1560,1370" data-medium-file="https://i0.wp.com/rud.is/b/wp-content/uploads/2018/11/Screen-Shot-2018-11-09-at-6.51.54-AM.png?fit=300%2C263&amp;ssl=1" data-attachment-id="11638" data-image-meta="{" data-image-description="" src="https://i0.wp.com/rud.is/b/wp-content/uploads/2018/11/Screen-Shot-2018-11-09-at-6.51.54-AM.png?resize=780%2C685&ssl=1" data-permalink="https://rud.is/b/2018/11/09/escaping-the-macos-10-14-mojave-sandbox-with-r-rstudio/screen-shot-2018-11-09-at-6-51-54-am/" data-large-file="https://i0.wp.com/rud.is/b/wp-content/uploads/2018/11/Screen-Shot-2018-11-09-at-6.51.54-AM.png?fit=530%2C465&amp;ssl=1" alt="" data-image-title="Screen Shot 2018-11-09 at 6.51.54 AM" width="450" data-comments-opened="1" class="wp-image-11638" data-recalc-dims="1"></a></p>
<p>I also used the Finder’s “Go To” command to head on over <code>/usr/local/bin</code> and use the “Show Original” popup on both <code>R</code> and <code>Rscript</code> and dragged their fully qualified path binaries into the pane as well (you can’t see them b/c the pane is far too small). The symbolic links <em>might</em> be sufficient, but I’ve been running this way since the betas and just re-drag the versioned R/Rscript binaries each time I upgrade (or rebuild) R.</p>
<p>If you do grant FDA to R/RStudio just make sure be even more careful about trusting R code you run from the internet or R packages you install from untrusted sources (like GitHub) since R/RStudio are now potential choice conduits for malicious code that wants to get at your seekret things.</p>
<p><span>Photo by Alexander Dummer on Unsplash</span></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="https://rud.is/b/2018/11/09/escaping-the-macos-10-14-mojave-sandbox-with-r-rstudio/"> R – rud.is</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 rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/huvVS9sW8rE" height="1"></a></div>