Learn R Programming

Capsule (version 0.2.0)

snapshot_workflow: 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
)

Value

List containing paths to generated files

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.

Examples

Run this code
if (FALSE) {
# Create complete workflow snapshot
snapshot_workflow(
  snapshot_name = "analysis_v1",
  analysis_name = "main_analysis",
  source_script = "analysis.R",
  description = "Initial analysis run"
)
}

Run the code above in your browser using DataLab