setGenerationContext {wyz.code.metaTesting} | R Documentation |
Set generation context.
Description
Use this function to set a generation context
Usage
setGenerationContext(replacementNumber_ui_1 = sample(0:3L, 1),
homogeneousTypeReplacement_b_1 = FALSE,
allowList_b_1 = TRUE,
forceList_b_1 = FALSE)
Arguments
replacementNumber_ui_1 |
a single positive |
homogeneousTypeReplacement_b_1 |
A single |
allowList_b_1 |
a single |
forceList_b_1 |
a single |
Value
A list
containing all the provided arguments, accessible through names
homogeneous_type
, number_replacements
, and allow_list
.
Predefined variables named established_replacement_context
and erc
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
egc <- list(
setGenerationContext(homogeneous = TRUE),
setGenerationContext(allowList = FALSE)
)
# uses predefined variable
print(erc$homo_vector[[2]])