
Write current process presets out to a .Rprofile
Source: R/process_preset.R
persist_process_presets.RdSyncs the in-session add_process_preset() registry out to a
.Rprofile file, so it's available again in future sessions. This is
what persist = TRUE on add_process_preset()/remove_process_preset()/
amend_process_preset() calls internally; call it directly to persist
several in-session changes (each made with persist = FALSE) in one
write/confirmation instead of one per change. See the CRAN-policy notes
in add_process_preset() – in particular, this always errors instead
of writing anything when rlang::is_interactive() is FALSE.
Arguments
- ask
<
logical(1)> Whenpersist = TRUE, ask for interactive confirmation before writing? (default:TRUE; only ever consulted whenrlang::is_interactive()is alreadyTRUE)- profile
<
character(1)> Where to persist to whenpersist = TRUE:"project"(default,.Rprofileingetwd()),"user"(the user-level profile), or a literal file path.
Examples
if (FALSE) { # \dontrun{
add_process_preset(~ .x %>% as_xpdb_x(), name = "convert", persist = FALSE)
persist_process_presets()
} # }