└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # Downloading and Installing R 2 | 3 | These are instructions for downloading and installing R! 4 | 5 | > Jump to: 6 | 7 | > [Introduction](#introduction) 8 | 9 | > [Windows](#windows) 10 | 11 | > [Mac](#mac) 12 | 13 | # Introduction 14 | 15 | R was created as a statistical programming language. But these days it also rocks at jobs like: 16 | * cleaning and manipulating large data or complex data sets 17 | * creating good graphic 18 | * writing reports and slides (where you can embed your analysis into your text - no need to copy and paste your graphs) 19 | * creating interactive reports that you can share with your colleagues and they can load through a web browser 20 | * easily distributing reusable code within your organisation (or your friends - yes the rest of us have used R to analyse our fitbit data too) 21 | 22 | In order to get going with R, you need to download two things: 23 | 24 | * The R language itself. 25 | * An IDE 26 | 27 | When people who use R a lot say "I did that in R", they are referring to the language itself. However, when they then go to show you the code that they wrote to do it, and how it executes, they will show it to you _through an IDE_. 28 | 29 | IDE stands for integrated development environment. This is a fancy way of saying that it's a desktop application that helps us to develop in our given programming language. 30 | 31 | R has two main IDE's. However, here at Mango we think that the best IDE for those new to R is called RStudio. 32 | 33 | ___Thus, in order to download and use R on your own machine, you need to download both R and RStudio. This guide will show you how to do both.___ 34 | 35 | ## Windows 36 | 37 | ### Installing R 38 | 39 | To download R itself, go to: 40 | https://cran.r-project.org/bin/windows/base/ 41 | Click on the link for "Download R 3.3.1 for Windows" (choosing to save the file if you get a popup with save or open options). 42 | 43 | Once the download is complete, open a file explorer window and go to your downloads folder (or the location you have downloaded the file to if you chose to put it somewhere else). 44 | 45 | If you have administration rights on your machine, right click on the executable and select "run as administrator"; if you don't, just double click on the file. 46 | 47 | This will install R on your machine. 48 | 49 | ### Installing RStudio 50 | 51 | To download RStudio go to: 52 | https://www.rstudio.com/products/rstudio/download/ 53 | 54 | Scroll down to the "Installers", and click the one for Windows (choosing to save the file if you get a popup with save or open options). 55 | 56 | Run this executable just as you did the R one above. 57 | 58 | ___Awesome! You are now ready to start using R!___ 59 | 60 | ## Mac 61 | 62 | ### Installing R 63 | 64 | If you are running Marvericks or higher, you need to download this file: 65 | 66 | http://cran.us.r-project.org/bin/macosx/R-3.3.1.pkg 67 | 68 | If you are running 10.6 (Snow Leopard) - 10.8 (Mountain Lion) you need this file: 69 | 70 | http://cran.us.r-project.org/bin/macosx/R-3.2.1-snowleopard.pkg 71 | 72 | Go to your downloads folder and double click the file. This should start the installer. 73 | 74 | ### Installing RStudio 75 | 76 | To download RStudio go to: 77 | https://www.rstudio.com/products/rstudio/download/ 78 | 79 | Scroll down to the "Installers", and click the one for Mac (choosing to save the file if you get a option to do so). 80 | 81 | Install this file in the same way as you installed R. 82 | 83 | ___Awesome! You are now ready to start using R!___ 84 | --------------------------------------------------------------------------------