| .capture_args | R Documentation |
Returns a named list of the bound formal arguments (excluding ...) of the
calling function, suitable for passing to .report_api_error() /
.report_api_warning(). Tolerates functions with empty or ...-only
formals (where names(formals()) is NULL), unlike the inline
mget(setdiff(names(formals()), "...")) pattern that errors with
mget: invalid first argument for arg-less wrappers.
.capture_args()
Caller usage:
some_wrapper <- function(...) {
.args <- .capture_args()
...
}
Named list. Empty list if the caller has no non-... formals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.