This repo is intended as a minimal demo of using the targets
R
package for workflow management
using data from the palmerpenguins
package.
- Explore the files in
data/
andR/
- Explore the workflow definition in
_targets.R
- Load the
targets
package withlibrary(targets)
- View the dependency graph with
tar_visnetwork()
- Run the workflow with
tar_make()
and then view the dependency graph again - In
R/fit_models.R
, change the response variable fromflipper_length_mm
tobill_length_mm
and runtar_visnetwork()
again - Run
tar_make()
and notice which steps are skipped
Check out the manual for instructions on how to run the pipeline.
See also: an exercise in refactoring "ordinary" analysis code into a targets
pipeline