You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a function which inherits all the parameters from another function, and want to just pass ... on to the next function. But document both complains that ... isn't documented, and it doesn't include the arguments from the other function.
A minimal example of what I'm talking about:
#' @param a an argument
#' @param b a different argument
foo <- function(a=3, b=5) {}
#' @param extra_arg an argument giving the extra functionality
#' @inheritParams foo
bar <- function(extra_arg, ...) {
foo(...)
}
In the docs, it would be useful if bar showed all the arguments of foo, but there doesn't seem to be a way to do this, unless you copy every argument.
The text was updated successfully, but these errors were encountered:
We have a function which inherits all the parameters from another function, and want to just pass
...
on to the next function. But document both complains that...
isn't documented, and it doesn't include the arguments from the other function.A minimal example of what I'm talking about:
In the docs, it would be useful if
bar
showed all the arguments offoo
, but there doesn't seem to be a way to do this, unless you copy every argument.The text was updated successfully, but these errors were encountered: