Read and accept the various prompts until it’s installed.Paste the following into the Termainal window and hit enter/return (accept any dialog/prompt):.Find and open the Terminal program in the Utilities folder under the Applications folder.When the intallation is done, open Xcode then close it just to verify it installed correctly.Get Xcode and install it like any “normal” Mac application.You can wait to do the following until it’s needed, but since you’re already installing things… That requires utilities not installed on OS X by default. Double click the downloaded disk image then double click on the XQuartz.pkg and follow the installation steps.As of this post, that’s version 2.7.8 and this is the direct link Go to and download the top-most “quick download” disk image file.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 XQuartz. Some functions in R require an “X11 Server” and/or libraries associated with an X11 server. Double-click it and you should see an RStudio window with four panes.įrom now on, just start RStudio when you want to work in R.Look in the Applications folder for the RStudio application.Drag the RStudio icon to the Applications folder.The direct URL for that verison (which was current at the time of this post) is It’ll say something like RStudio 0.99.486 - Mac OS X 10.6+ (64-bit). Go to and download the RStudio version for Mac OS X.RStudio is an integrated development environment for R that will make your life and coding easier. Once you’ve verified R is working, quit the app.If that did not work, try installing R again.Double-click it and you should see an R console window.Look in the Applications folder for the R application.Install the package by double-clicking on it and working through the prompts.As of this post, it’s R-3.2.2.pkg and the direct URL is If you’re on a recent version of OS X, download the first.Since this colleague uses OS X, I offered to put together instructions for how to get R & RStudio installed and finally had 5 minutes to crank out a blog post to help the broader community with the information. Hopefully this will becomre a top priority for the R Consortium. 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. I recently had a similar experience helping folks who use Windows get R & RStudio up and running and that’s even more of a nightmare, especially if you do not have Administrator privileges (or, perhaps I just scare easily). 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. 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 -). Some excellent additional advice and “gotchas” by some super-helpful readers. NOTE: The comments are a must read for this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |