

{"id":3709,"date":"2015-10-20T14:35:50","date_gmt":"2015-10-20T19:35:50","guid":{"rendered":"http:\/\/rud.is\/b\/?p=3709"},"modified":"2019-12-16T13:32:46","modified_gmt":"2019-12-16T18:32:46","slug":"installing-r-on-os-x","status":"publish","type":"post","link":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/","title":{"rendered":"Installing R on OS X"},"content":{"rendered":"<p>NOTE: The <a href=\"http:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/#comments\">comments<\/a> are a <em>must read<\/em> for this. Some excellent additional advice and &#8220;gotchas&#8221; by some super-helpful readers.<\/p>\n<hr noshade size=\"1\"\/>\n<p>I was in a conversation with an academic colleague (wicked smart dude) and the subject of installing R came up (NOTE: this will happen to you, too, if you ever have the misfortune to have a face-to-face convo with me ;-). They noted that getting up and running with R was not as seamless as one would like it to be and, to be honest, I have to agree, especially after typing the rest of this post out.<\/p>\n<p>I recently had a similar experience helping folks who use Windows get R &amp; RStudio up and running and that&#8217;s even more of a nightmare, especially if you do not have Administrator privileges (or, perhaps I just scare easily).<\/p>\n<p>Prior to these experiences, I never really stopped to consider just how less friendly the installation process of R is when compared to Excel, Tableau or other apps one might use for data analysis and visualization. Hopefully this will becomre a top priority for the <a href=\"https:\/\/www.r-consortium.org\/\">R Consortium<\/a>.<\/p>\n<p>Since this colleague uses OS X, I offered to put together instructions for how to get R &amp; RStudio installed and finally had 5 minutes to crank out a blog post to help the broader community with the information.<\/p>\n<hr \/>\n<h3>Get R<\/h3>\n<ul>\n<li>Go to <a href=\"https:\/\/cran.rstudio.com\/bin\/macosx\/\">https:\/\/cran.rstudio.com\/bin\/macosx\/<\/a><\/li>\n<li>If you&#8217;re on a recent version of OS X, download the first <code>.pkg<\/code> link. As of this post, it&#8217;s <code>R-3.2.2.pkg<\/code> and the direct URL is <a href=\"https:\/\/cran.rstudio.com\/bin\/macosx\/R-3.2.2.pkg\">https:\/\/cran.rstudio.com\/bin\/macosx\/R-3.2.2.pkg<\/a><\/li>\n<li>Install the package by double-clicking on it and working through the prompts.<\/li>\n<\/ul>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3722\" data-permalink=\"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/r_for_mac_os_x-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/R_for_Mac_OS_X1.png?fit=854%2C664&amp;ssl=1\" data-orig-size=\"854,664\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"R_for_Mac_OS_X\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/R_for_Mac_OS_X1.png?fit=510%2C397&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/R_for_Mac_OS_X1.png?resize=510%2C397&#038;ssl=1\" alt=\"R_for_Mac_OS_X\" width=\"510\" height=\"397\" class=\"aligncenter size-full wp-image-3722\" \/><\/p>\n<hr \/>\n<h3>Verify R itself is working<\/h3>\n<ul>\n<li>Look in the <code>Applications<\/code> folder for the R application. <\/li>\n<li>Double-click it and you should see an R console window.<\/li>\n<li>If that did not work, try installing R again<\/li>\n<li>Once you&#8217;ve verified R is working, quit the app<\/li>\n<\/ul>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3718\" data-permalink=\"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/r_console\/\" data-orig-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/R_Console.png?fit=730%2C618&amp;ssl=1\" data-orig-size=\"730,618\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"R_Console\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/R_Console.png?fit=510%2C432&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/R_Console.png?resize=510%2C432&#038;ssl=1\" alt=\"R_Console\" width=\"510\" height=\"432\" class=\"aligncenter size-full wp-image-3718\" \/><\/p>\n<hr \/>\n<h3>Download RStudio<\/h3>\n<p>RStudio is an integrated development environment for R that will make your life and coding easier.<\/p>\n<ul>\n<li>Go to <a href=\"https:\/\/www.rstudio.com\/products\/rstudio\/download\/\">https:\/\/www.rstudio.com\/products\/rstudio\/download\/<\/a> and download the RStudio version for Mac OS X. It&#8217;ll say something like <code>RStudio 0.99.486 - Mac OS X 10.6+ (64-bit)<\/code>. The direct URL for that verison (which was current at the time of this post) is <a href=\"https:\/\/download1.rstudio.org\/RStudio-0.99.486.dmg\">https:\/\/download1.rstudio.org\/RStudio-0.99.486.dmg<\/a><\/li>\n<li>Double-click that DMG file<\/li>\n<li>Drag the RStudio icon to the <code>Applications<\/code> folder.<\/li>\n<\/ul>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3719\" data-permalink=\"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/rstudio_-_download_rstudio\/\" data-orig-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/RStudio_-_Download_RStudio.png?fit=844%2C786&amp;ssl=1\" data-orig-size=\"844,786\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"RStudio_-_Download_RStudio\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/RStudio_-_Download_RStudio.png?fit=510%2C475&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/RStudio_-_Download_RStudio.png?resize=510%2C475&#038;ssl=1\" alt=\"RStudio_-_Download_RStudio\" width=\"510\" height=\"475\" class=\"aligncenter size-full wp-image-3719\" \/><\/p>\n<hr \/>\n<h3>Verify RStudio &amp; R are working together<\/h3>\n<ul>\n<li>Look in the <code>Applications<\/code> folder for the RStudio application.<\/li>\n<li>Double-click it and you should see an RStudio window with four panes.<\/li>\n<\/ul>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3724\" data-permalink=\"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/niasra_uow_edu_au_content_groups_public__web__inf__math_documents_mm_uow183084_pdf\/\" data-orig-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/niasra_uow_edu_au_content_groups_public__web__inf__math_documents_mm_uow183084_pdf.png?fit=631%2C424&amp;ssl=1\" data-orig-size=\"631,424\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"niasra_uow_edu_au_content_groups_public__web__inf__math_documents_mm_uow183084_pdf\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/niasra_uow_edu_au_content_groups_public__web__inf__math_documents_mm_uow183084_pdf.png?fit=510%2C343&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/niasra_uow_edu_au_content_groups_public__web__inf__math_documents_mm_uow183084_pdf.png?resize=510%2C343&#038;ssl=1\" alt=\"niasra_uow_edu_au_content_groups_public__web__inf__math_documents_mm_uow183084_pdf\" width=\"510\" height=\"343\" class=\"aligncenter size-full wp-image-3724\" \/><\/p>\n<p>From now on, just start RStudio when you want to work in R.<\/p>\n<hr \/>\n<h3>[Optional] Install XQuartz<\/h3>\n<p>Some functions in R require an &#8220;X11 Server&#8221; and\/or libraries associated with an X11 server. Apple does not provide this software with OS X anymore so you have to do it on your own via a third-party application called <a href=\"\">XQuartz<\/a>.<\/p>\n<ul>\n<li>Go to <a href=\"http:\/\/xquartz.macosforge.org\/landing\/\">http:\/\/xquartz.macosforge.org\/landing\/<\/a> and download the top-most &#8220;quick download&#8221; disk image file. As of this post, that&#8217;s version 2.7.8 and this is the direct link <a href=\"http:\/\/xquartz.macosforge.org\/downloads\/SL\/XQuartz-2.7.8.dmg\">http:\/\/xquartz.macosforge.org\/downloads\/SL\/XQuartz-2.7.8.dmg<\/a><\/li>\n<li>Double click the downloaded disk image then double click on the <code>XQuartz.pkg<\/code> and follow the installation steps.<\/li>\n<\/ul>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3720\" data-permalink=\"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/xquartz\/\" data-orig-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/XQuartz.png?fit=746%2C569&amp;ssl=1\" data-orig-size=\"746,569\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"XQuartz\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/XQuartz.png?fit=510%2C389&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/XQuartz.png?resize=510%2C389&#038;ssl=1\" alt=\"XQuartz\" width=\"510\" height=\"389\" class=\"aligncenter size-full wp-image-3720\" \/><\/p>\n<hr \/>\n<h3>[Optional] Install Xcode Tools<\/h3>\n<p>Some R packages require compilation. That requires utilities not installed on OS X by default. You can wait to do the following until it&#8217;s needed, but since you&#8217;re already installing things&hellip;<\/p>\n<ul>\n<li>Get Xcode <a href=\"https:\/\/itunes.apple.com\/us\/app\/xcode\/id497799835?mt=12\">https:\/\/itunes.apple.com\/us\/app\/xcode\/id497799835?mt=12<\/a> and install it like any &#8220;normal&#8221; Mac application<\/li>\n<li>When the intallation is done, open Xcode then close it just to verify it installed correctly<\/li>\n<li>Find and open the <code>Terminal<\/code> program in the <code>Utilities<\/code> folder under the <code>Applications<\/code> folder<\/li>\n<li>Paste the following into the Termainal window and hit enter\/return (accept any dialog\/prompt):<\/li>\n<\/ul>\n<pre lang=\"bash\">xcode-select --install`<\/pre>\n<ul>\n<li>Close the Terminal application<\/li>\n<\/ul>\n<hr \/>\n<h3>[Optional] Set yourself up for easier future compiled package installation<\/h3>\n<p>Some R packages need additional libraries to work and most aren&#8217;t on your system by default. There are a myriad of ways to get these libraries, and the way I obtain them is via the <a href=\"http:\/\/brew.sh\/\"><code>homebrew<\/code><\/a> utility. You can save yourself the trouble of installing <code>homebrew<\/code> later by doing the following now:<\/p>\n<ul>\n<li>Find and open the <code>Terminal<\/code> program in the <code>Utilities<\/code> folder under the <code>Applications<\/code> folder<\/li>\n<li>Paste the following into the Terminal window and hit enter\/return:<\/li>\n<\/ul>\n<pre lang=\"bash\">ruby -e \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)\"<\/pre>\n<ul>\n<li>Read and accept the various prompts until it&#8217;s installed<\/li>\n<li>Close the Terminal application<\/li>\n<\/ul>\n<p>You can now do <code>brew install xyz<\/code> in the future when a library is needed to support a package. Drop a note in the comments if you&#8217;d like this discussed more in a future blog post.<\/p>\n<hr \/>\n<h3>[Optional] [If you have an hour+ to kill] Install MacTeX<\/h3>\n<p>R has an academic history and there are many semi-advanced functions that are tied to something called <a href=\"https:\/\/www.latex-project.org\/\"><code>latex<\/code><\/a>. Installing latex for OS X is not hard, just time (and bandwidth) consuming (it&#8217;s about the same size as a new OS X installer). If you delve into package creation or do more detailed output work in R, you&#8217;ll want to install MacTex sooner than later.<\/p>\n<ul>\n<li>Go to <a href=\"https:\/\/tug.org\/mactex\/mactex-download.html\">https:\/\/tug.org\/mactex\/mactex-download.html<\/a> and download the latest <code>MacTeX.pkg<\/code> file. This direct link should always work (until they change up the way their site works) <a href=\"http:\/\/tug.org\/cgi-bin\/mactex-download\/MacTeX.pkg\">http:\/\/tug.org\/cgi-bin\/mactex-download\/MacTeX.pkg<\/a><\/li>\n<li>Double-click the pkg installer and follow the prompts. The defaults should all be good enough for now.<\/li>\n<\/ul>\n<hr \/>\n<h3>Fin<\/h3>\n<p>If you have any changes\/additions\/etc drop a note in the comments. I may even stick this on github to make it easier to contribute in the future.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: The comments are a must read for this. Some excellent additional advice and &#8220;gotchas&#8221; by some super-helpful readers. I was in a conversation with an academic colleague (wicked smart dude) and the subject of installing R came up (NOTE: this will happen to you, too, if you ever have the misfortune to have a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3750,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[12,91],"tags":[810],"class_list":["post-3709","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-os-x","category-r","tag-post"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Installing R on OS X - rud.is<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing R on OS X - rud.is\" \/>\n<meta property=\"og:description\" content=\"NOTE: The comments are a must read for this. Some excellent additional advice and &#8220;gotchas&#8221; by some super-helpful readers. I was in a conversation with an academic colleague (wicked smart dude) and the subject of installing R came up (NOTE: this will happen to you, too, if you ever have the misfortune to have a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/\" \/>\n<meta property=\"og:site_name\" content=\"rud.is\" \/>\n<meta property=\"article:published_time\" content=\"2015-10-20T19:35:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-12-16T18:32:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/Rlogo.png?fit=200%2C155&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"155\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"hrbrmstr\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"hrbrmstr\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/\"},\"author\":{\"name\":\"hrbrmstr\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"headline\":\"Installing R on OS X\",\"datePublished\":\"2015-10-20T19:35:50+00:00\",\"dateModified\":\"2019-12-16T18:32:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/\"},\"wordCount\":926,\"commentCount\":15,\"publisher\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"image\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/Rlogo.png?fit=200%2C155&ssl=1\",\"keywords\":[\"post\"],\"articleSection\":[\"OS X\",\"R\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/\",\"url\":\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/\",\"name\":\"Installing R on OS X - rud.is\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/Rlogo.png?fit=200%2C155&ssl=1\",\"datePublished\":\"2015-10-20T19:35:50+00:00\",\"dateModified\":\"2019-12-16T18:32:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/Rlogo.png?fit=200%2C155&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2015\\\/10\\\/Rlogo.png?fit=200%2C155&ssl=1\",\"width\":200,\"height\":155},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/2015\\\/10\\\/20\\\/installing-r-on-os-x\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/rud.is\\\/b\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installing R on OS X\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#website\",\"url\":\"https:\\\/\\\/rud.is\\\/b\\\/\",\"name\":\"rud.is\",\"description\":\"&quot;In God we trust. All others must bring data&quot;\",\"publisher\":{\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/rud.is\\\/b\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/rud.is\\\/b\\\/#\\\/schema\\\/person\\\/d7cb7487ab0527447f7fda5c423ff886\",\"name\":\"hrbrmstr\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/ukr-shield.png?fit=460%2C460&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/ukr-shield.png?fit=460%2C460&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/ukr-shield.png?fit=460%2C460&ssl=1\",\"width\":460,\"height\":460,\"caption\":\"hrbrmstr\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/rud.is\\\/b\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/ukr-shield.png?fit=460%2C460&ssl=1\"},\"description\":\"Don't look at me\u2026I do what he does \u2014 just slower. #rstats avuncular \u2022 ?Resistance Fighter \u2022 Cook \u2022 Christian \u2022 [Master] Chef des Donn\u00e9es de S\u00e9curit\u00e9 @ @rapid7\",\"sameAs\":[\"http:\\\/\\\/rud.is\"],\"url\":\"https:\\\/\\\/rud.is\\\/b\\\/author\\\/hrbrmstr\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing R on OS X - rud.is","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/","og_locale":"en_US","og_type":"article","og_title":"Installing R on OS X - rud.is","og_description":"NOTE: The comments are a must read for this. Some excellent additional advice and &#8220;gotchas&#8221; by some super-helpful readers. I was in a conversation with an academic colleague (wicked smart dude) and the subject of installing R came up (NOTE: this will happen to you, too, if you ever have the misfortune to have a [&hellip;]","og_url":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/","og_site_name":"rud.is","article_published_time":"2015-10-20T19:35:50+00:00","article_modified_time":"2019-12-16T18:32:46+00:00","og_image":[{"width":200,"height":155,"url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/Rlogo.png?fit=200%2C155&ssl=1","type":"image\/png"}],"author":"hrbrmstr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"hrbrmstr","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/#article","isPartOf":{"@id":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/"},"author":{"name":"hrbrmstr","@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"headline":"Installing R on OS X","datePublished":"2015-10-20T19:35:50+00:00","dateModified":"2019-12-16T18:32:46+00:00","mainEntityOfPage":{"@id":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/"},"wordCount":926,"commentCount":15,"publisher":{"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"image":{"@id":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/Rlogo.png?fit=200%2C155&ssl=1","keywords":["post"],"articleSection":["OS X","R"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/","url":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/","name":"Installing R on OS X - rud.is","isPartOf":{"@id":"https:\/\/rud.is\/b\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/#primaryimage"},"image":{"@id":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/Rlogo.png?fit=200%2C155&ssl=1","datePublished":"2015-10-20T19:35:50+00:00","dateModified":"2019-12-16T18:32:46+00:00","breadcrumb":{"@id":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/#primaryimage","url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/Rlogo.png?fit=200%2C155&ssl=1","contentUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/Rlogo.png?fit=200%2C155&ssl=1","width":200,"height":155},{"@type":"BreadcrumbList","@id":"https:\/\/rud.is\/b\/2015\/10\/20\/installing-r-on-os-x\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rud.is\/b\/"},{"@type":"ListItem","position":2,"name":"Installing R on OS X"}]},{"@type":"WebSite","@id":"https:\/\/rud.is\/b\/#website","url":"https:\/\/rud.is\/b\/","name":"rud.is","description":"&quot;In God we trust. All others must bring data&quot;","publisher":{"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rud.is\/b\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/rud.is\/b\/#\/schema\/person\/d7cb7487ab0527447f7fda5c423ff886","name":"hrbrmstr","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1","url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1","contentUrl":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1","width":460,"height":460,"caption":"hrbrmstr"},"logo":{"@id":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2023\/10\/ukr-shield.png?fit=460%2C460&ssl=1"},"description":"Don't look at me\u2026I do what he does \u2014 just slower. #rstats avuncular \u2022 ?Resistance Fighter \u2022 Cook \u2022 Christian \u2022 [Master] Chef des Donn\u00e9es de S\u00e9curit\u00e9 @ @rapid7","sameAs":["http:\/\/rud.is"],"url":"https:\/\/rud.is\/b\/author\/hrbrmstr\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2015\/10\/Rlogo.png?fit=200%2C155&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p23idr-XP","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":3732,"url":"https:\/\/rud.is\/b\/2015\/10\/22\/installing-r-on-os-x-100-homebrew-edition\/","url_meta":{"origin":3709,"position":0},"title":"Installing R on OS X &#8211; &#8220;100% Homebrew Edition&#8221;","author":"hrbrmstr","date":"2015-10-22","format":false,"excerpt":"In a previous post I provided \"mouse-heavy\" instructions for getting R running on your Mac. A few of the comments suggested that an \"all Homebrew\" solution may be preferable for some folks. Now, there are issues with this since getting \"support\" for what may be R issues will be very\u2026","rel":"","context":"In &quot;OS X&quot;","block_context":{"text":"OS X","link":"https:\/\/rud.is\/b\/category\/os-x\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12476,"url":"https:\/\/rud.is\/b\/2019\/09\/01\/rswitch-1-4-1-released\/","url_meta":{"origin":3709,"position":1},"title":"RSwitch 1.4.1 Released","author":"hrbrmstr","date":"2019-09-01","format":false,"excerpt":"A minor update to RSwitch has been released. Apart from some internal code reorganization there are three user-facing changes. First, RSwitch is now notarized! That means you won't get a notice about it being from an \"unidentified developer\" nor will folks on Catalina see a warning about unable to check\u2026","rel":"","context":"In &quot;Apple&quot;","block_context":{"text":"Apple","link":"https:\/\/rud.is\/b\/category\/apple\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4051,"url":"https:\/\/rud.is\/b\/2016\/03\/07\/os-x-xquartz-vulnerability-test-using-r\/","url_meta":{"origin":3709,"position":2},"title":"OS X XQuartz Vulnerability Test Using R","author":"hrbrmstr","date":"2016-03-07","format":false,"excerpt":"It's usually a good thing when my #rstats and infosec worlds collide. Unfortunately, this time it's a script that R folk running on OS X can use to see if they are using a version of XQuartz that has a nasty vulnerability in the framework it uses to auto-update. If\u2026","rel":"","context":"In &quot;AppSec&quot;","block_context":{"text":"AppSec","link":"https:\/\/rud.is\/b\/category\/appsec\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12103,"url":"https:\/\/rud.is\/b\/2019\/03\/19\/assumptions-matter-more-than-dependencies\/","url_meta":{"origin":3709,"position":3},"title":"Assumptions Matter More Than Dependencies","author":"hrbrmstr","date":"2019-03-19","format":false,"excerpt":"There's been alot of talk about \"dependencies\" in the R universe of late. This is not really a post about that but more of a \"really, don't do this\" if you decide you want to poke the dependency bear by trying to build a deeply flawed model off of CRAN\u2026","rel":"","context":"In &quot;R&quot;","block_context":{"text":"R","link":"https:\/\/rud.is\/b\/category\/r\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5097,"url":"https:\/\/rud.is\/b\/2017\/02\/23\/on-watering-holes-trust-defensible-systems-and-data-science-community-security\/","url_meta":{"origin":3709,"position":4},"title":"On Watering Holes, Trust, Defensible Systems and Data Science Community Security","author":"hrbrmstr","date":"2017-02-23","format":false,"excerpt":"I've been threatening to do a series on \"data science community security\" for a while and had cause to issue this inaugural post today. It all started with this: Hey #rstats folks: don't do this. Srsly. Don't do this. Pls. Will blog why. Just don't do this. https:\/\/t.co\/qkem5ruEBi\u2014 boB Rudis\u2026","rel":"","context":"In &quot;R&quot;","block_context":{"text":"R","link":"https:\/\/rud.is\/b\/category\/r\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/hieRarchy.png?fit=1200%2C1035&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/hieRarchy.png?fit=1200%2C1035&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/hieRarchy.png?fit=1200%2C1035&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/hieRarchy.png?fit=1200%2C1035&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/rud.is\/b\/wp-content\/uploads\/2017\/02\/hieRarchy.png?fit=1200%2C1035&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":12645,"url":"https:\/\/rud.is\/b\/2020\/02\/06\/prying-r-script-files-away-from-xcode-et-al-on-macos\/","url_meta":{"origin":3709,"position":5},"title":"Prying &#8220;.R&#8221; Script Files Away from Xcode (et al) on macOS","author":"hrbrmstr","date":"2020-02-06","format":false,"excerpt":"As the maintainer of RSwitch --- and developer of my own (for personal use) macOS, iOS, watchOS, iPadOS and tvOS apps --- I need the full Apple Xcode install around (more R-focused macOS folk can get away with just the command-line tools being installed). As an Apple Developer who insanely\u2026","rel":"","context":"In &quot;macOS&quot;","block_context":{"text":"macOS","link":"https:\/\/rud.is\/b\/category\/macos\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts\/3709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/comments?post=3709"}],"version-history":[{"count":0,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/posts\/3709\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/media\/3750"}],"wp:attachment":[{"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/media?parent=3709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/categories?post=3709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rud.is\/b\/wp-json\/wp\/v2\/tags?post=3709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}