tar_bind: Combine pipeline objects (deprecated).

View source: R/tar_bind.R

tar_bindR Documentation

Combine pipeline objects (deprecated).

Description

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

Usage

tar_bind(...)

Arguments

...

Pipeline objects or nested lists of pipeline objects. You can generate a pipeline object with tar_pipeline().

Details

Deprecated on 2021-01-03.

Examples

# In your target script file (default: _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))
  )
)

targets documentation built on Oct. 12, 2023, 5:07 p.m.