R

R will be the main language for this course.

Note

Even if you are not a native English speaker, it is strongly recommended that you specify English as the operating language for R during installation, and later for installing RStudio as well.

Go to https://cloud.r-project.org/ and find the download link for your operatring system. Make sure you are clicking on a R version later than 4.2.

Windows users: Just keep clicking and you will be fine. But you have one additional tool to install. Go to https://cran.r-project.org/bin/windows/Rtools/rtools42/rtools.html and install RTools. Windows does not ship with a appropriate compiling toolchain so you need this to install R packages that contains C or C++ code. If you do not have RTools installed, later you will see an error message saying "Rtools is required to build R pacakges but is not currently installed".

Mac users: There are two download options R-4.2.1.pkg and R-4.2.1-arm64.pkg. If you are on a Mac with Apple silicons (M1), you could use the R-4.2.1-arm64.pkg package, otherwise you should use the R-4.2.1.pkg package without the “arm”.

Linux users: I guess you know what you’re doing.

To verify your R installation and path variables, type R --version in the terminal. If the output looks like the following you are good to go.

> R --version

R version 4.2.0 (2022-04-22) -- "Vigorous Calisthenics"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: aarch64-apple-darwin20 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.