qualifyFunctionArguments: Qualify function arguments.

View source: R/qualifyFunctionArguments.R

qualifyFunctionArgumentsR Documentation

Qualify function arguments.

Description

Retrieve information about function arguments.

Usage

qualifyFunctionArguments(fun_f_1)

Arguments

fun_f_1

A single function, not a string.

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

Author(s)

Fabien Gelineau <neonira@gmail.com>

Maintainer: Fabien Gelineau <neonira@gmail.com>

Examples

# typical examples

qualifyFunctionArguments(Sys.Date)

qualifyFunctionArguments(cos)

qualifyFunctionArguments(sum)


wyz.code.metaTesting documentation built on Sept. 25, 2023, 9:06 a.m.