Learn R Programming

wyz.code.offensiveProgramming (version 1.1.24)

retrieveFunctionArguments: Retrieve Function Arguments.

Description

Retrieve function arguments to get arguments from a function or a primitive.

Usage

retrieveFunctionArguments(fun_f_1)

Value

A pairlist.

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
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