Data Version Control for the Targets Package

Pipelines with the 'targets' R package (2021, ) skip steps that are up to already date. Although this behavior reduces the runtime of subsequent runs, it comes at the cost of overwriting previous results. So if the pipeline source code is under version control, and if you revert to a previous commit or branch, the data will no longer be up to date with the code you just checked out. Ordinarily, you would need to rerun the pipeline in order to recover the targets you had before. However, 'gittargets' preserves historical output, creating version control snapshots of data store. Each data snapshot remembers the contemporaneous Git commit of the pipeline source code, so you can recover the right data when you navigate the Git history. In other words, 'gittargets' makes it possible to switch commits or branches without invalidating the pipeline. You can simply check out the up-to-date targets from the past instead of taking the time to recompute them from scratch.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.0.1 by William Michael Landau, 6 days ago,

Report a bug at

Browse source code at

Authors: William Michael Landau [aut, cre] , Saras Windecker [rev] , David Neuzerling [rev] , Eli Lilly and Company [cph]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports cli, data.table, gert, processx, stats, targets, tibble, utils, uuid

Suggests knitr, markdown, rmarkdown, testthat

System requirements: Git (>= 2.0.0)

See at CRAN