Step 1: Install R

The instructions for obtaining R largely depend on the user’s hardware and operating system. The R Project has written an R Installation and Administration manual with complete, precise instructions about what to do, together with all sorts of additional information. The following is just a primer to get a person started.

Visit one of the links below to download the latest version of R for your operating system:

Microsoft Windows: http://cran.r-project.org/bin/windows/base/

MacOS: http://cran.r-project.org/bin/macosx/

Linux: http://cran.r-project.org/bin/linux/

On Microsoft Windows, click the R-x.y.z.exe installer to start installation. When it asks for “Customized startup options”, specify Yes. In the next window, be sure to select the SDI (single document interface) option.

Step 2: RStudio

To make it easier to work with R, install RStudio from

RStudio: https://www.rstudio.com/products/rstudio/download3/

Step 3: Swirl

After downloading RStudio, open RStudio and install Swirl Swirl by typing:

install.packages("swirl")

Once it finishes installation, run

library(swirl)

Then you will be prompted to type:

swirl()

Follow now the prompts. Once you are asked which course you want to choose, pick “R Programming”.

Now follow the prompts and go through the programming course.

To read about Swirl, check out http://swirlstats.com/students.html