Chapter 1 Installing R and Rstudio

R can be installed via the following website: http://cran.r-project.org](http://cran.r-project.org). Navigating to this website will take you to the following screen. Under Download and Install R there are 3 options to download R for Linux, Mac, and Windows respectively.
Cran R

Figure 1.1: Cran R

1.1 Windows installation R

To install R on a Windows computer press the download link for Windows. Then you will get to a new screen that asks you where exactly what you want to install R. Press the blue link here that says install R for the first time. Then you will get to the next screen and you will have to press the blue link of Download R 4.0.2 (note: version may be different at this time) for Windows.
Cran R

Figure 1.2: Cran R

Next, an .exe file will be downloaded and you can click on it when it has finished downloading. You will then be asked what language will be used to install it, select English here and press Ok. Then press next and you will be asked where you want to download R on your computer or laptop. You can select a specific folder for this by clicking browse, but otherwise the setup will probably be in C:/ under Program files. Click on next again and then you will be taken to the user installation which asks which components need to be installed. You can use default settings and repeatedly click on next. When the installation is finished you can press Finish.

1.2 Installing RStudio

RStudio can be downloaded from rstudio.com/products/rstudio/download. Scroll down a bit and you will get to the following screen.
Cran R

Figure 1.3: Cran R

At 2. RStudio will already indicate what version you need for your system (in my case Windows). Click this download button and a .exe file will be downloaded again. When it’s finished downloading, open it. Then an installation wizard will be started and you have to press next. Just like when downloading R you will be asked where exactly you would like to install RStudio, if you don’t change it it will be saved on the C disk under Program files. Click on next again, and then click on next again to create a shortcut. Finally you get the option to install, press next again and then RStudio will start installing (this will take about 1 to 2 minutes). When this is finished you can press finish and after this RStudio will also be downloaded on your system.