Description Usage Arguments Value
Given a list formals
of function arguments, check whether the
arguments provided in ...
and matches the signature given by the list.
If it matches, return the arguments in the same order as formals. If it does
not match, raise an exception.
1 | match_formals(formals, ..., .args = NULL, .force = TRUE)
|
formals |
A list of formal arguments to match. |
... |
Arguments to match against |
.args |
Optional list of arguments to match against |
.force |
Logical; If |
A unlisted list containing correctly ordered arguments from
...
and .args
. Throws an error if this is not possible to do.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.