To run the pipeline:
Clone the repo:
cd desired_directorygit clonethe SSH url
To run the code on your local machine:
-
Set your working directory to the root of the project folder
- In Rstudio console:
setwd("../benefit-cost")
- In Rstudio console:
-
Confirm your working directory is at the root of the project directory
- In Rstudio console:
getwd()
- In Rstudio console:
-
Singular task(s)
- Manually
- In Rstudio console,
setwd("task-name"); source("src/task-name.r")
- In Rstudio console,
- Manually
-
Alternatively, you can run the desired task as a local job by
- Opening the local jobs pane (
Tools->Jobs->Start Local Job) after opening the task's script- Selecting the task directory as the working directory
- Clicking
start
The order to run tasks in is as described in the makefile i.e.
download_and_clean_crime_costsinflation_adjust_crime_costcalculate_cost_of_violencerun_models
The other tasks do not need to be rerun