retrieveFunctionArgumentNames {wyz.code.offensiveProgramming} | R Documentation |
Retrieve Function Argument Names.
Description
Retrieve function argument names from a function or a primitive.
Usage
retrieveFunctionArgumentNames(fun_f_1)
Arguments
fun_f_1 |
a function or primitive. Not a string! |
Value
A vector
of strings
that are the function names.
Author(s)
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
See Also
See retrieveFunctionArguments
.
See formalArgs
.
Examples
# typical test on a primitive
retrieveFunctionArgumentNames(sin)
#[1] "x"
# typical test on a function
retrieveFunctionArguments(ls)
#[1] "name" "pos" "envir" "all.names" "pattern" "sorted"
[Package wyz.code.offensiveProgramming version 1.1.24 Index]