1 Install latest Base-R und RStudio versions on your computer

Please install Base-R and RStudio prior to the course.

Step 1: Install Base-R
Windows, Mac, Mac (M1)

Step 2: Install RStudio
Windows, Mac

2 Install packages

You will be using several R “packages” in this course that you need to install in your R session. To make sure that there aren’t any installation issues, please run the following line of code in R — If you don’t know how to run code in R yet, ask a friend, a member of your IT staff, or me :)
Note: If you R asks you whether to install from source and don't understand what this means, just choose “no”; this will avoid potential problems.

install.packages(c("tidyverse", "tidymodels", "rpart", "rpart.plot","doParallel", "ranger", "randomForest", "glmnet", "keras"), dependencies = TRUE)

This may take a bit of time! You may receive some warnings (which is fine in most cases) or errors when running the code. If so, please see next point on optional software!

Optional: Install additional Software

If you run into problems with the package installation, try installing these Software and then rerun package installation.

Windows: Rtools plus installation guide
Mac: gfortran, clang-7.0.0

3 Install tensorflow

You will be using tensorflow, in this course, which is a Python-based library for neural networks. One after the other, run the following commands in the R console. If the final command returns an error, reporting that the “tf” Python is already in use, restart R using the menu item “Session/Restart R” and try again. Note that installation may fail for Mac M1 users, when not using the arm64 distribution.

reticulate::conda_create("tf")
keras::install_keras(envname = "tf")
reticulate::use_condaenv("tf")

4 Project

Please download this R project, unpack its contents, and move it to some suitable location on your local harddrive.

5 Zoom

The workshop will be held over Zoom. If you do not have an account yet, please register here, download and install the client.

The course will start at 9.00am sharp. Please be there 5-10min prior to the beginning of the course so that we can rule out any technical difficulties and start on time. During the workshop, please be so kind to have your video on. Feel free to use a custom background. Also please keep your microphone off, unless you want to comment or ask a question. Feel free to unmute yourself at any time.




return to course page