RStudio Setup

  1. The first step is to install R. R is the free statistical programming language and environment that we will use in this course. You can get a copy from the Comprehensive R Archive Network (CRAN) here, just follow the links under ‘Download and Install R’.



  2. The next step is to install RStudio. Rstudio is an alternative front end for R, which many people prefer to use. It provides an R code editor, R session window, R graphics window and other information, all in a convenient integrated environment. You can get it from here at the foot of the page, under ‘R studio desktop’, or go straight here.



  3. R can be extended using packages. These are collections of functions and data that allow us to re-use code developed by others. We will be using many different packages in this course, but one of the most important will be the rmarkdown package. This package allows us to document data analyses done using R. The workshops and the homework will be done using rmarkdown so you will need to download and install this package in RStudio. We will cover how to do this in the lectures in week one, so please see the materials there if you need more help with this. The steps are:
    1. Open RStudio from the Start menu on your computer.
    2. In the console (bottom left - see the demo in lectures if you are not sure!) type
      install.packages("rmarkdown")
      
      


  4. pandoc is document conversion software that is used by the rmarkdown package to convert files into different formats. To install pandoc, follow instructions here.