tarakc02 / ratelimitr

Rate limiting for R functions
Other
40 stars 0 forks source link

Keep formal arguments #9

Closed tarakc02 closed 7 years ago

tarakc02 commented 7 years ago

When the following function:

f <- function(x, y = TRUE) if (y) x else -x

gets rate-limited, the resulting function has signature ... = instead of x, y = TRUE. memoise::memoise is an example of how to bring over the signature into the modified function.