Learn R Programming

wyz.code.metaTesting (version 1.1.4)

computeArgumentsCombination: Compute Function Arguments Combination

Description

Computes a priori legal combinations of function arguments, according to the function definition (see formals).

Allows to foresee test complexity for a function, as this is in narrow relationship, with the number of various call signatures that could be used. The number of signatures is in itself a good indicator of complexity.

Usage

computeArgumentsCombination(fun_f_1)

Arguments

fun_f_1

an R function

Value

A list holding names, number and signatures, each of them are list.

The names provides names of mandatory arguments, ellipsis (…) arguments and of default arguments.

The number provides the number of replacements per argument.

The signatures are the resulting textual argument combinations.

Details

Computes an a priori legal list of argument signatures for the provided function.

See Also

Refer to testFunction

Examples

Run this code
# NOT RUN {
# typical example
computeArgumentsCombination(append)

computeArgumentsCombination(kronecker)
# }

Run the code above in your browser using DataLab