Demo and examples of targets pipelines

Let’s look at our demo {targets} pipeline and, afterwards, some examples to see what a real-world pipeline looks like including figures, model, output, tables and a manuscript object.

Demo

With our example {targets} pipeline (open /projects/example-targets-workflow/example-targets-workflow.Rproj), and go through the following steps:

  1. Visualize the pipeline’s steps and interdependencies.
tar_visnetwork()
  1. Run the workflow
tar_make()
  1. Explore the results

  2. Look at the rendered manuscript document

Open the rendered document in the paper/ directory.

  1. Now to make some changes

    1. Edit the raw-data file, for example by adding new rows to mimic more data being collected. Note: please do not edit raw data, this is just to illustrate how {targets} tracks external files for changes. Rerun tar_make().
    2. Delete an output figure. Rerun tar_make().
    3. Add a filter step before the group counts target. Rerun tar_make().

Examples of real-world pipelines

Check out some examples of full {targets} pipelines that we’ve developed to get a sense for the various applications and approaches that can be used.