Is it possible to change the default values of formal parameters in an R function at runtime?
Let\'s assume, we have the function
f <- function(x=1) {
UPDATE: 2020-12-13
This method is no longer available
Yes, the Defaults package allows you to do this.