R/assign_argument_defaults.R
assignArgumentDefaults.Rd
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()#> character(0)# Its value is 1 which is the default value defined in the function definition expectedDiff#> [1] 1