setDefaultArgumentsGenerationContext: Set default arguments generation context.

View source: R/setDefaultArgumentsGenerationContext.R

setDefaultArgumentsGenerationContextR Documentation

Set default arguments generation context.

Description

Set default arguments generation context

Usage

setDefaultArgumentsGenerationContext(useDefaultArguments_b_1 = TRUE,
                                     useAllDefaultArguments_b_1 = FALSE)

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.

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.

Author(s)

Fabien Gelineau <neonira@gmail.com>

Maintainer: Fabien Gelineau <neonira@gmail.com>

Examples

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

# uses predefined variable
print(dac$partial)

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