snapshot_workflow: Create Complete Workflow Snapshot

View source: R/workflow.R

snapshot_workflowR Documentation

Create Complete Workflow Snapshot

Description

Create a comprehensive snapshot of the entire workflow including session info, packages, data, parameters, and generate all reproducibility artifacts.

Usage

snapshot_workflow(
  snapshot_name = NULL,
  analysis_name = "analysis",
  source_script = NULL,
  description = NULL,
  generate_docker = TRUE,
  generate_script = TRUE,
  generate_report = TRUE
)

Arguments

snapshot_name

Character. Name for this snapshot. Default is timestamp.

analysis_name

Character. Name of the analysis

source_script

Character. Path to main analysis script

description

Character. Description of this workflow

generate_docker

Logical. Generate Docker configuration. Default TRUE.

generate_script

Logical. Generate reproducible script. Default TRUE.

generate_report

Logical. Generate reproducibility report. Default TRUE.

Value

List containing paths to generated files

Examples

## Not run: 
# Create complete workflow snapshot
snapshot_workflow(
  snapshot_name = "analysis_v1",
  analysis_name = "main_analysis",
  source_script = "analysis.R",
  description = "Initial analysis run"
)

## End(Not run)

Capsule documentation built on Nov. 11, 2025, 5:14 p.m.