Learn R Programming

wyz.code.metaTesting (version 1.1.22)

computeArgumentsCombination: Compute Function Arguments Combination

Description

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

Usage

computeArgumentsCombination(fun_f_1)

Value

A list containing following named list

namesnames of mandatory arguments, ellipsis (...) arguments and of default arguments.
numberThe number provides the number of replacements per argument.
signaturesThe signatures are the resulting textual argument combinations.

Arguments

fun_f_1

an R function

Author

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

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

Details

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

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

See Also

Refer to testFunction

Examples

Run this code
# typical example
computeArgumentsCombination(append)

computeArgumentsCombination(kronecker)

Run the code above in your browser using DataLab