Skip to contents

Dynamically build the targets pipeline for the project.

Usage

build_targets_pipeline(
  targets_notebook_name = "_target_notebook.Rmd",
  targets_file_name = "_targets.R",
  pkg_name = "SWMadagascar",
  vignette_name = "pipeline-definition.Rmd",
  overwrite = FALSE
)

Value

1

Details

This function sets up the targets pipeline by defining a local _targets.R file and using tar_tangle() to create the necessary targets from an Rmd file. The Rmd file is, itself, this vignette — Pipeline Definition.

Examples

#build_targets_pipeline()