Learn R Programming

targets (version 1.7.1)

tar_pipeline: Declare a pipeline (deprecated).

Description

Functions tar_pipeline() and tar_bind() are deprecated. Instead, simply end your target script file (default: _targets.R) with a list of target objects. You can nest these objects however you like.

Usage

tar_pipeline(...)

Value

A pipeline object.

Arguments

...

Targets or lists of targets defined with tar_target().

Details

Deprecated on 2021-01-03.

Examples

Run this code
# In _targets.R:
library(targets)
list( # You no longer need tar_pipeline() here.
  tar_target(data_file, "data.csv", format = "file"),
  list( # Target lists can be arbitrarily nested.
    tar_target(data_object, read.csv(data_file)),
    tar_target(analysis, analyze(data_object))
  )
)

Run the code above in your browser using DataLab