Preparation for Lesson 1

To do before the first class

Author

Hannah Metzler

1 Download and install R

  • R is the data analysis program we will use: https://cran.rstudio.com/

  • Click on Download R for [insert your operating system]. Then choose the latest release. If anything should be unclear, here are more detailed instructions:

    • Windows: click on base, then Download R-4.4.2 for Windows, then install.
    • For macOS 11 & higher: click on R-4.4.2-arm64.pkg, for earlier versions: R-4.4.2-x86_64.pkg, then install
    • Ubuntu: follow the provided instructions (copy each code line into your Bash Terminal (=Console) & press enter, enter your Laptop log in password when prompted.

2 Download and install Rstudio

  • Rstudio is the visual interface: https://posit.co/download/rstudio-desktop/

  • Choose your operating system (Windows, MacOS etc)

  • Install the most recent release.

    • for Ubuntu: make sure the file is in your Downloads folder, then execute in your Terminal: sudo apt-get install ~/Downloads/rstudio-2024.12.0-467-amd64.deb
  • Open Rstudio to see if it worked.

  • If you have trouble installing, write to me at metzler[at]csh.ac.at latest before January 30 noon.

3 Configure Rstudio

  • Under the Tools menu, go to Global Options… and uncheck the box that says Restore .RData into workspace at startup, and set this to Never.

  • This ensures you always start with a clear workspace, instead of loading data from your last coding session.

  • More explanations on why this is useful in section 1.3.3 here.