View source: R/retrieveFunctionArguments.R
retrieveFunctionArguments | R Documentation |
Retrieve function arguments to get arguments from a function or a primitive.
retrieveFunctionArguments(fun_f_1)
fun_f_1 |
a function or primitive. Not a string! |
A pairlist
.
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
See retrieveFunctionArguments
.
See formalArgs
.
# 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.