powered by
Use this function to set a generation context
setGenerationContext(replacementNumber_ui_1 = sample(0:3L, 1), homogeneousTypeReplacement_b_1 = FALSE, allowList_b_1 = TRUE, forceList_b_1 = FALSE)
A list containing all the provided arguments, accessible through names homogeneous_type, number_replacements, and allow_list.
list
homogeneous_type
number_replacements
allow_list
Predefined variables named established_replacement_context and erc
established_replacement_context
erc
hold most common definition cases. Very helpfull as it simplifies reuses and reduces code length.
a single positive integer expressing the number of arguments to generate.
integer
A single boolean expressing willingness to replace chosen argument with same type arguments, or not. Useful when dealing with ....
boolean
a single boolean , expressing the desired result. When TRUE result is a list, a vector otherwise.
TRUE
vector
a single boolean , expressing the desire to get the result as a list.
tools:::Rd_package_author("wyz.code.metaTesting")
Maintainer: tools:::Rd_package_maintainer("wyz.code.metaTesting")
# a typical instanciation egc <- list( setGenerationContext(homogeneous = TRUE), setGenerationContext(allowList = FALSE) ) # uses predefined variable print(erc$homo_vector[[2]])
Run the code above in your browser using DataLab