2.1 Install R and R Studio

  • “R” is a programming language used for statistical computing while “RStudio” provides a graphical user interface
  • “R” may be used without “RStudio”, but “RStudio” may not be used without “R”
  • Both, “R” and “RStudio” are free of charge and there are no licencse fees
  • When you later make an analysis and visualizations, you only work in the graphical user interface “RStudio”

2.1.1 Download and Install R


Windows

  1. Open https://cran.r-project.org/bin/windows/base/ and press the link “Download R…”
  2. Run the downloaded installer file and follow the installation wizard

The wizard will install “R” into your Program Files folders and adds a shortcut in your Start menu. Note that you will need to have all necessary administration rights to install new software on your machine.


Mac OSX
1. Open https://cran.r-project.org/bin/macosx/ and download the latest *.pkg file 1. Run the downloaded installer file and follow the installation wizard

The installer allows you to customize your installation. However the default values will be suitable for most users.


Linux
“R” is part of many Linux distributions, therefore you should check with your Linux package management system if it’s already installed.

The CRAN website provides files to build “R” from source on Debian, Redhat, SUSE, and Ubuntu systems under the link “Download R for Linux”

The exact installation procedure will vary depending on your Linux operating system. CRAN supports the process by grouping each set of source files with documentation or README files that explain how to install on your system.

2.1.2 Download and Install RStudio

  1. Open https://rstudio.com/products/rstudio/download/ and download “RStudio Desktop Open Source”
  2. Follow the on-screen instructions
  3. Once you have installed “R Studio”, you can run it like any other application by clicking the program icon