The repana package enhances the setup and management of
analysis environments, particularly integrating with
targets, a pipeline tool for computationally demanding
projects. This vignette outlines how to use repana in
conjunction with targets to streamline your workflows.
targets with repanarepana includes the function
targets_structure(), which prepares a directory layout
compatible with targets:
The .gitignore file is update (or created if missing) to exclude from the Git repository the dat/, out/ and _targets directories.
To manage project artifacts efficiently, repana provides
utilities to clear previous results and reset the analysis
environment:
tar_destroy() from
targets deletes all existing artifacts, clearing the
project’s state.clean_structure() from
repana cleans up all output directories, ensuring no
residual files interfere with new runs.Once the environment is set up and cleaned, you can run the analysis using:
tar_make() executes the analysis pipeline, processing
only the necessary components that have changed or are not up to date.
This ensures your analyses are both fast and reliable.
Integrating repana with targets not only
simplifies the setup and management of your projects but also enhances
the efficiency and reliability of your workflows. By organizing project
elements into a structured directory layout and providing tools for
managing artifacts, repana ensures that your analyses are
robust and your results are trustworthy.