Learn R Programming

wyz.code.metaTesting (version 1.1.22)

qualifyFunctionArguments: Qualify function arguments.

Description

Retrieve information about function arguments.

Usage

qualifyFunctionArguments(fun_f_1)

Value

A emphlist with following names

argument_names

a character vector of all the function argument names

owns_ellipsis

a boolean. Is TRUE when ... belongs to argument names

symbol_names

a character vector of argument names that are symbols

symbol_indexes

the integer indexes of symbol names in the argument names

stripped_symbol_names

a character vector of argument names that are symbols, not considering ...

stripped_symbol_indexes

the integer indexes of stripped symbol names in the argument names

default_names

a character vector of argument names that owns default values

default_indexes

the integer indexes of default valued arguments names in the argument names

codearguments

a pairList of argument names and values. Refer to formals for more information

Arguments

fun_f_1

A single function, not a string.

Author

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

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

Examples

Run this code
# typical examples

qualifyFunctionArguments(Sys.Date)

qualifyFunctionArguments(cos)

qualifyFunctionArguments(sum)

Run the code above in your browser using DataLab