call_args | R Documentation |
Extract arguments from a call
call_args(call)
call_args_names(call)
call |
A defused call. |
A named list of arguments.
fn_fmls()
and fn_fmls_names()
call <- quote(f(a, b))
# Subsetting a call returns the arguments converted to a language
# object:
call[-1]
# On the other hand, call_args() returns a regular list that is
# often easier to work with:
str(call_args(call))
# When the arguments are unnamed, a vector of empty strings is
# supplied (rather than NULL):
call_args_names(call)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.