Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cct-datascience/targets-refactor

Repository files navigation

targets-refactor

This is a simple example research compendium to practice refactoring a project to use targets. To refactor this project to use targets :

  1. run targets::use_targets() to set up some infrastructure
  2. turn the analysis scripts into functions saved in .R files in a R/ folder
  3. edit _targets.R to load necessary packages
  4. edit _targets.R to write analysis steps as targets with tar_target()
  5. check workflow with tar_manifest() and tar_visnetwork()
  6. run workflow with tar_make()
  7. possibly debug functions and targets workflow

Bonus challenge exercise:

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)

About

Practice refactoring this project to use {targets}

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /