# NOT RUN {
call <- quote(f(a, b))
# Subsetting a call returns the arguments converted to a language
# object:
call[-1]
# See also lang_tail() which returns the arguments without
# conversion as the original pairlist:
str(lang_tail(call))
# On the other hand, lang_args() returns a regular list that is
# often easier to work with:
str(lang_args(call))
# When the arguments are unnamed, a vector of empty strings is
# supplied (rather than NULL):
lang_args_names(call)
# }
Run the code above in your browser using DataLab