Description Usage Arguments Value Author(s)
View source: R/assignFormals.R
...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.
1 | assignFormals(fun, envir = .GlobalEnv)
|
fun |
Function from which to extract defaults |
envir |
Environment in which to assign the default values of the arguments |
Nothing (invisible()
). The function is only used for its side-effects.
Kasper Skytte Andersen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.