# typical test on a primitive
retrieveFunctionArgumentNames(sin)
#[1] "x"
# typical test on a function
retrieveFunctionArguments(ls)
#[1] "name" "pos" "envir" "all.names" "pattern" "sorted"
Run the code above in your browser using DataLab