targets package is a Make-like pipeline toolkit for Statistics and data science in R. With
targets, you can maintain a reproducible workflow without repeating yourself.
targets learns how your pipeline fits together, skips costly runtime for tasks that are already up to date, runs only the necessary computation, supports implicit parallel computing, abstracts files as R objects, and shows tangible evidence that the results match the underlying code and data. For deep dives into why and how to use
targets, please see the user manual.
drake package is an older and more established R-focused pipeline toolkit. It is has become a key piece of the R ecosystem, and development will continue. However, nearly four years of community feedback have exposed major user-side limitations regarding data management, collaboration, and parallel efficiency. Unfortunately, these limitations are permanent. Solutions in
drake itself would make the package incompatible with existing projects that use it, and the internal architecture is too copious, elaborate, and mature for such extreme refactoring. That is why
targets was created. The
targets package borrows from past learnings, user suggestions, discussions, complaints, success stories, and feature requests, and it improves the user experience in ways that will never be possible in
drake. Please see the statement of need for details.
Install the GitHub development version to access the latest features and patches.
targetspackage and why it was created alongside
targetclass and its fields.