- Download R. We used v4.0.2. and tidyverse 1.0.x
- We suggest to use R Studio as editor for R codes. (There many other options, too.) You can get R Studio for free.
How to run case studies in R
- Step 1: Set the working directory for your project.
Option A: [Recommended] In case you use
RStudio create a new
Rstudio project for the case studies and load it every time you are working on the project. See the official documentation on how to create and use
Option B: Make sure some other way that your working directory is the root folder of the case study repository.
- Step 2: You will need to set the path to the data repo and save it in the
set-data-directory.Rfile. a. Open
set-data-directory-example.Rand add your path to the data repo where you have or will download datasets. b. Save as
set-data-directory.R(exactly where you found