Optional Readonlycodethe formal evaluated with the change in effect, absent for the local_* variants
Optional Readonlynewthe formal holding a list of the new values (list(digits = 3)), other named arguments are values too
Readonlyparamsthe formals in order, used to bind the arguments
Optional Readonlypreservethe scope changes nothing, it only restores the state afterward (with_preserve_seed)
Readonlystatethe state the scope changes; the keyed ones (options, environment variables, locale) take the entries the call names
A scoped state change (
withr,rlang):with_*undoes it after its code,local_*when the calling function returns.