# typical test on a primitive
retrieveFunctionArguments(sin)
#$x
#
# typical test on a function
retrieveFunctionArguments(ls)
#$name
#$pos
#-1L
#$envir
#as.environment(pos)
#$all.names
#[1] FALSE
#$pattern
#
#$sorted
#[1] TRUE
Run the code above in your browser using DataLab