getObjectFunctionArgumentNames {wyz.code.offensiveProgramming}R Documentation

Retrieve Function Arguments.

Description

Retrieve function argument names from an object.

Usage

getObjectFunctionArgumentNames(object_o_1, allNames_b_1 = TRUE)

Arguments

object_o_1

the object to analyze.

allNames_b_1

A boolean value. Passed to function getObjectFunctionNames to restrict output if needed.

Value

A list. Entries are named with function names. Each entry is of type character, and holds function argument names. Could be empty if function takes no argument.

Author(s)

Fabien Gelineau <neonira@gmail.com>

Maintainer: Fabien Gelineau <neonira@gmail.com>

See Also

See is.object.

Examples

# typical test
MyEnv <- function() {
     self <- environment()
     class(self) <- append('MyEnv', class(self))
     f <- function(x_3, y_3n) x_3 + y_3n
     self
}

getObjectFunctionArgumentNames(MyEnv())
#$f
#[1] "x_3" "y_3n"


[Package wyz.code.offensiveProgramming version 1.1.24 Index]