Description Usage Arguments Value Author(s) Examples
View source: R/setDefaultArgumentsGenerationContext.R
Use method setDefaultArgumentsGenerationContext
to set default arguments generation context.
1 2 | setDefaultArgumentsGenerationContext(useDefaultArguments_b_1 = TRUE,
useAllDefaultArguments_b_1 = FALSE)
|
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 |
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, 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 9 | # a typical instanciation
mydgc <- list(
setDefaultArgumentsGenerationContext(FALSE, FALSE),
setDefaultArgumentsGenerationContext(TRUE, FALSE),
setDefaultArgumentsGenerationContext(TRUE, TRUE)
)
# uses predefined variable
print(dac$partial)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.