The targets
package is a Make-like pipeline tool for statistics and data science in R. With targets
, you can maintain a reproducible workflow without repeating yourself. targets
skips costly runtime for tasks that are already up to date, orchestrates the necessary computation with implicit parallel computing, and abstracts files as R objects. An up-to-date targets
pipeline is tangible evidence that the output aligns with the code and data, which substantiates trust in the results. Unfortunately, however, the automation that enhances scale and reproducibility also makes troubleshooting more difficult than in the interactive R console. This presentation demonstrates several techniques to discover and solve issues in targets
pipelines.
The following R scripts walk through the debugging techniques discussed at https://books.ropensci.org/targets/debugging.html. To practice, step through the code files in the following order.
demo_small.R
demo_browser.R
demo_workspace.R