set.args | R Documentation |
Function to set a list of arguments without having to remove commas.
Useful for troubleshooting. For example, if attempting to run a function
(particualrly one with many arguments) line by line,
set.args
can be used to set a list of arguments in one go, by copying a
comma-separated set of arguments from an existing function call or a new call to args(fn)
.
set.args(args, envir = sys.frame(which = 0L))
args |
A named list of arguments. |
envir |
The environment in which these arguments will set. |
Please note that unless the envir
argument is changed from its default (sys.frame
),
any arguments set with set.args
will over-ride any values currently assigned to those names.
Caitlin Collins caitiecollins@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.