# NOT RUN {
file <- tar_target(data_file, "data.csv", format = "file")
object <- tar_target(data_object, read.csv(data_file))
analysis <- tar_target(analysis, analyze(data_object))
pipeline <- tar_pipeline(file, object, analysis)
print(pipeline)
# Equivalent:
target_list <- list(
tar_target(data_file, "data.csv", format = "file"),
tar_target(data_object, read.csv(data_file)),
tar_target(analysis, analyze(data_object))
)
pipeline <- tar_pipeline(target_list)
# }
Run the code above in your browser using DataLab