# NOT RUN {
tar_dir({
tar_script(
tar_pipeline(
tar_target(y1, 1 + 1),
tar_target(y2, 1 + 1),
tar_target(z, y1 + y2)
)
)
tar_make()
# Remove some targets from the pipeline.
tar_script(tar_pipeline(tar_target(y1, 1 + 1)))
# Keep only the remaining targets in the data store.
tar_prune()
})
# }
Run the code above in your browser using DataLab