Skip to content

Demo of the {targets} R package for workflow managment

Notifications You must be signed in to change notification settings

cct-datascience/targets-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Demo of the {targets} R package for workflow managment

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages