Learn R Programming

wyz.code.metaTesting (version 1.1.4)

qualifyFunctionArguments: Qualify function arguments.

Description

Use method qualifyFunctionArguments to retrieve information about function arguments.

Usage

qualifyFunctionArguments(fun_f_1)

Arguments

fun_f_1

A constrained vector of function values. Vector length must be 1.

Value

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

arguments

a pairList of argument names and values. See formals

Examples

Run this code
# NOT RUN {
# typical examples

qualifyFunctionArguments(Sys.Date)

qualifyFunctionArguments(cos)

qualifyFunctionArguments(sum)

# }

Run the code above in your browser using DataLab