2.6 {targets}
Slides
Open the slides in a new tab here.
Exercises
- Clone this repo to your computer as a new R project.
- Examine the file structure, the code, the
_targets.R
file. - Run
tar_make()
. - Examine everything again and see what’s new.
- Put the Poisson regression and table you made yesterday (look in your
R/regression-examples.R
file in your in-class R project!) into functions and add to the appropriate folders. - Add
tar_target()
calls to_targets.R
. - Add a code chunk to output the table in
my-analysis.qmd
. - Run
tar_outdated()
. - Run
tar_make()
.
Resources
- The user manual is a great resource for learning more