Skip to the content.

R instructions

You need to have R installed in order to do the exercises. It will also be useful to have Rstudio installed, to run all your commands. Both of these works on computers running Linux, Windows and Macintosh operative systems. R-studio is a set of tools as well as an editor that facilitates the use of R and in many ways create a superior environment to integrate directly with R. Over the last years it has become a very popular tool and in many ways become a de-facto standard for working with R.

Note that on same operative systems it will be easier to install and run R and R-studio if you are administrator of your own computer and hence are allowed to install software on your machine. If you do not have these privileges please ask your system administrator to install the latest version of R and R-studio.

Install R

  1. Go to CRAN
  2. Click on the link corresponding to your operative system
  3. Download the recommended files for your system.
  4. Run the installer or move the downloaded files to suitable place on your computer.
Details for Windows

Once you clicked on the “Download R for Windows” you will come to a new web page where you will have a set of options. Click on the first link named “base”. This will take you to the web page entitled “R-3.3.3 for Windows” (the numbers might be different depending on what is the most recent version) where you can download the “R-3.3.3-win.exe” that will can be run to install R on your computer.

Details for Macintosh

Once you clicked on the “Download R for Macintosh” you will come to a new web page where you will have a set of options. Unless you have an old version of your operative system you should select the first link named “R-3.3.3.pkg” (the numbers might be different depending on what is the most recent version) that will download R to your computer. If you are not sure what version you are running click the apple on the top left of your screen and select “About this mac” (Om den här datorn).

You can then double-click the downloaded package that will prompt you with some questions for installation details. Stick with the default settings and you should be fine.

Details for Linux

Once you clicked on the “Download R for Linux” you will come to a new web page where you can select the linux version you use. On most distributions this will be via a software install system like yum or apt-get. If you run this make sure that you update your information to the installer first, otherwise you might end up installing at outdated version of R. For some systems you might need to install not only r-base, but also r-devel or you will lack important features of your R installation.

Install R-studio

Go to the web page rstudio download the installer corresponding to your operative system. Unpack the installer and install the app on a suitable place on your system.

Useful R online resources

If you need to touch up on your R-skills before the course start, the following links goes to some useful material on using R.