Serialises the essential information of a rap_object - parameters,
pipeline steps, and package versions - into a compact YAML file (typically
under 50 lines). The recipe can be shared with colleagues and re-imported
with sus_rap_from_recipe().
Usage
sus_rap_recipe(
rap,
file_path = NULL,
include_data_hash = TRUE,
lang = "pt",
overwrite = FALSE
)Arguments
- rap
A
rap_objectreturned bysus_rap_read()orsus_rap_export().- file_path
character(1)- Output path for the.yamlfile. IfNULL, a timestamped file is created in the working directory.- include_data_hash
logical(1)- Compute and embed a hash of the input parameters for traceability. DefaultTRUE.- lang
character(1)- Language for messages.- overwrite
logical(1)- Overwrite existing file. DefaultFALSE.
Examples
if (FALSE) { # \dontrun{
rap <- sus_rap_read("pipeline_sp.R")
sus_rap_recipe(rap, "pipeline_sp.yaml")
} # }