Build a repeatable R pipeline
Organize an R analysis into stages so completed, unchanged work can be reused when the pipeline runs again.
Skill: targets
Example prompt
/dss-agent-skills:targets
Turn the data preparation, model fitting, and figure generation into a targets pipeline. Make the input files explicit dependencies and check which stages rerun after a figure-only change.Use this after installing the collection. Adapt the filenames and research decisions to your project.
What the agent does
- Defines independently runnable stages with explicit dependencies.
- Runs and inspects the pipeline using the project’s environment.
- Diagnoses unnecessary reruns and explains what can resume after interruption.
Requirements
R with targets; crew for parallel workers when needed. Uses the project’s existing software environment.