Software installation

We will use R and RStudio in the course. R is the statistics program itself; RStudio is a front end to R and in practice we will use R via RStudio.

Please make sure that you have installed R and RStudio before the first course day. Please read this instruction BEFORE doing any installation.

R is available from http://www.r-project.org and RStudio is available from http://rstudio.com.

Installation

For Windows users

Download R and RStudio installers from the links above; save the installers in a convenient place, for example on the desktop. At the time of writing the installers are called RStudio-0.98.1091.exe and R-3.1.2-win.exe but the version numbers may have changed when you read this.

Some users do not have full administrative rights to install software on their computer, and this means that they may encounter problems when trying to install R and RStudio in the standard location on the computer which is C:\Program Files on an english version of Windows and c:\Programmer on a Danish Windows version.

To overcome this potential problem we strongly recommend that everybody do as follows:

Double click on the R installer. During the installation process you will be asked where to install R. Instead of simply accepting the suggested location, please enter:

c:\programs\R

Other than that, just accept anything the installer suggests.

Likewise when installing RStudio. Instead of accepting the suggest location, please enter:

c:\programs\RStudio

Other than that, just accept anything the installer suggests.

After completing these steps you will have icons for R and RStudio on your desktop, and you are good to go.

For Mac users

Download R and RStudio installers from the links above; save the installers in a convenient place, for example on the desktop. At the time of writing the installers are called RStudio-0.98.1091.dmg and R-3.1.2-snowleopard.pkg (for OSX Snowleopard) or R-3.1.2-mavericks.pkg (for OSX Mavericks), but the version numbers may have changed when you read this.

First install R (the default options are fine). Afterwards install RStudio (again the defaults are fine).

For Linux users

R is usually available in the package manager. In debian based distros such as Ubuntu and Linux Mint you simply need to install the package r-base.

Afterwards download and install the appropriate RStudio package from the website above. At the time of writing the relevant packages are rstudio-0.98.1091-amd64.deb (for 64 bit Debian, Ubuntu, Linux Mint and friends) and rstudio-0.98.1091-x86_64.rpm (for 64 bit Fedora, RedHat, openSUSE and friends).