View source: R/setDefaultArgumentsGenerationContext.R
setDefaultArgumentsGenerationContext | R Documentation |
Set default arguments generation context
setDefaultArgumentsGenerationContext(useDefaultArguments_b_1 = TRUE,
useAllDefaultArguments_b_1 = FALSE)
useDefaultArguments_b_1 |
a single |
useAllDefaultArguments_b_1 |
A single |
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.
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
# 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.