View source: R/assign_argument_defaults.R
assignArgumentDefaults | R Documentation |
Assign Argument Default Values in the Global Environment
assignArgumentDefaults(FUN)
FUN |
a function (a closure or a primitive). If |
# Assign the default values of breakInSequence() in the global environment
assignArgumentDefaults(kwb.utils::breakInSequence)
# The argument "expectedDiff" is now in the global environment
ls()
# Its value is 1 which is the default value defined in the function definition
expectedDiff
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.