Description Usage Arguments Value Author(s) Examples
View source: R/setGenerationContext.R
Use this function to set generation context.
1 2 3 4 | setGenerationContext(replacementNumber_ui_1 = sample(0:3L, 1),
homogeneousTypeReplacement_b_1 = FALSE,
allowList_b_1 = TRUE,
forceList_b_1 = FALSE)
|
replacementNumber_ui_1 |
a single unsigned integer expressing the number of arguments to generate. |
homogeneousTypeReplacement_b_1 |
A single boolean expressing willingness to replace chosen argument with same type arguments, or not. Useful when dealing with .... |
allowList_b_1 |
a single boolean, expressing the desired result. When |
forceList_b_1 |
a single boolean, expressing the desire to get the result as
a |
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, and therefore greatly eases use and simplify writing.
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
1 2 3 4 5 6 7 8 | # a typical instanciation
egc <- list(
setGenerationContext(homogeneous = TRUE),
setGenerationContext(allowList = FALSE)
)
# uses predefined variable
print(erc$homo_vector[[2]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.