assignFormals: Extract and assign the default values of arguments (formals)...

Description Usage Arguments Value Author(s)

View source: R/assignFormals.R

Description

...and assign them to objects with the same names in an environment (global is default). This is useful for testing and developing a function by running its source code line by line.

Usage

1
assignFormals(fun, envir = .GlobalEnv)

Arguments

fun

Function from which to extract defaults

envir

Environment in which to assign the default values of the arguments

Value

Nothing (invisible()). The function is only used for its side-effects.

Author(s)

Kasper Skytte Andersen


KasperSkytte/ksatools documentation built on April 7, 2021, 4:26 p.m.