Change default arguments of an R function at runtime
UPDATE: 2020-12-13
This method is no longer available
Yes, the Defaults package allows you to do this.
An alternative (shown in a different SO post) is to use the formals
function, e.g.:
formals(f) <- 2