This is a simple example research compendium to practice refactoring a project to use targets
. To refactor this project to use targets
:
- run
targets::use_targets()
to set up some infrastructure - turn the analysis scripts into functions saved in .R files in a
R/
folder - edit
_targets.R
to load necessary packages - edit
_targets.R
to write analysis steps as targets withtar_target()
- check workflow with
tar_manifest()
andtar_visnetwork()
- run workflow with
tar_make()
- possibly debug functions and targets workflow
Create a report.Rmd
or report.Qmd
document that includes plots and the ANOVA results and render it in the targets pipeline with tar_render()
or tar_quarto()
.
("answers" are in the refactor branch)