Learn R Programming

wyz.code.offensiveProgramming (version 1.1.24)

retrieveFunctionArgumentNames: Retrieve Function Argument Names.

Description

Retrieve function argument names from a function or a primitive.

Usage

retrieveFunctionArgumentNames(fun_f_1)

Value

A vector of strings that are the function names.

Arguments

fun_f_1

a function or primitive. Not a string!

Author

tools:::Rd_package_author("wyz.code.offensiveProgramming")

Maintainer: tools:::Rd_package_maintainer("wyz.code.offensiveProgramming")

See Also

See retrieveFunctionArguments. See formalArgs.

Examples

Run this code
# 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