
Package Pipeline Deliverables into a Structured Zip Archive
Source:R/bundle_deliverables.R
package_deliverables.RdTraverses computational pipeline objects (or explicit file lists), gathers all rendered reports and data deliverables, verifies existence on disk, organizes them into stage-prefixed folders, and builds a distribution ZIP file.
Arguments
- pipeline_objects
A list of
FilePath/FileOutputsobjects (e.g. from the compute graph). Thestageof eachFileOutputsbecomes a folder name in the archive: path separators and the characters a file name cannot hold on Windows become-, and leading or trailing dots, dashes and spaces are dropped ("../x"gives"x").- output_formats
Character vector of report formats to include (
"pdf","docx","html", or"all").- data_deliverables
Optional list or vector of
FilePathobjects or file paths for data spreadsheets/RDS files.- zip_path
Destination path for the generated zip archive. If NULL, defaults to a timestamped archive. Deliverables that share a file name within a folder are kept, the later ones with a numeric suffix (and a warning), rather than overwriting each other.
- include_pipeline_graph
Logical; whether to include static/interactive pipeline DAG graphs (default: TRUE).
- stamp
Logical, `Date`, or character string (default `FALSE`). When `TRUE`, appends the current date (`YYYY-MM-DD`) to the archive name (and records `attr(path, "stamp")`). A custom date or version string (e.g. `"2026-10-17"`) may also be supplied.