Learn R Programming

wyz.code.metaTesting (version 1.1.22)

setDefaultArgumentsGenerationContext: Set default arguments generation context.

Description

Set default arguments generation context

Usage

setDefaultArgumentsGenerationContext(useDefaultArguments_b_1 = TRUE,
                                     useAllDefaultArguments_b_1 = FALSE)

Value

A list holding the provided values, allowing easy reuse either interactively or programmatically, accessible through names use, and use_all.

Predefined variables named default_arguments_context and dac

hold most common definition cases. Very helpfull as it simplifies reuses and reduces code length.

Arguments

useDefaultArguments_b_1

a single boolean value to specify the usage of default arguments in generated function call

useAllDefaultArguments_b_1

A single boolean value to specify usage of all default valued arguments in generated function call. Second argument is considered only when first argument is TRUE.

Author

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

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

Examples

Run this code
# a typical instanciation
mydgc <- list(
  setDefaultArgumentsGenerationContext(FALSE, FALSE),
  setDefaultArgumentsGenerationContext(TRUE, FALSE),
  setDefaultArgumentsGenerationContext(TRUE, TRUE)
)

# uses predefined variable
print(dac$partial)

Run the code above in your browser using DataLab