Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 968 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 968 Bytes

targets-demo

This repo is intended as a minimal demo of using the targets R package for workflow management using data from the palmerpenguins package.

Instructions

  1. Explore the files in data/ and R/
  2. Explore the workflow definition in _targets.R
  3. Load the targets package with library(targets)
  4. View the dependency graph with tar_visnetwork()
  5. Run the workflow with tar_make() and then view the dependency graph again
  6. In R/fit_models.R, change the response variable from flipper_length_mm to bill_length_mm and run tar_visnetwork() again
  7. 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