Skip to contents

Reads a file produced by sus_rap_export() and reconstructs a live rap_object containing session metadata, configurable parameters, and the pipeline step list. The result can be inspected with sus_rap_inspect(), re-executed with sus_rap_run(), or patched with sus_rap_update().

Usage

sus_rap_read(file_path, lang = "pt", validate = TRUE)

Arguments

file_path

character(1) - Path to an .R, .Rmd, or .qmd file exported by sus_rap_export().

lang

character(1) - Language for messages: "pt" (default), "en", or "es".

validate

logical(1) - Check structural integrity. Default TRUE.

Value

A rap_object list with fields $metadata, $params, $steps, $structure, $source, $format, and $raw.

Examples

if (FALSE) { # \dontrun{
rap <- sus_rap_read("pipeline_sp.R")
print(rap)
} # }