Applies targeted patches to the editable params <- list(...) block of an
exported RAP file without re-exporting from scratch. A .bak backup is
created before any modification.
Arguments
- rap
A
rap_objectreturned bysus_rap_read().- ...
Named parameters to update (e.g.
uf = "\"RJ\"",years = "2021:2024"). Values are treated as raw R code strings.- backup
logical(1)- Create a.bakbackup before writing. DefaultTRUE.- lang
character(1)- Language for messages.
Examples
if (FALSE) { # \dontrun{
rap <- sus_rap_read("pipeline_sp.R")
rap_rj <- sus_rap_update(rap, uf = '"RJ"', years = "2021:2024")
} # }