assignArgumentDefaults: Assign Argument Default Values in the Global Environment

View source: R/assign_argument_defaults.R

assignArgumentDefaultsR Documentation

Assign Argument Default Values in the Global Environment

Description

Assign Argument Default Values in the Global Environment

Usage

assignArgumentDefaults(FUN)

Arguments

FUN

a function (a closure or a primitive). If FUN is a character string then the function with that name is found and used.

Examples

# 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


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.