Description Usage Arguments Details Value See Also Examples
Fill a recursive structure with command-line arguments
1 | opt_fill(x, opts = commandArgs(), style = getOption("optigrab")$style)
|
x |
list-like (recursive)) object with names to use as a template. |
opts |
character command-line option list (Default: commandArgs() ) |
style |
string; the command-line style (Default: getOption('optigrab')$style |
opt_fill
uses x
as a template of values to be retrieved. Named elements
of x
are retrieved from the command line using opt_get()
. Values are
coerced to the type/class of the elements of x.
This gives a handy way of defining and retrieving all setting at once overridding the defaults.
opt_fill
is similar to utils::modifyList()
but does not work recursively.
(A copy of) x
, with values filled from the command-line. If
x
is a reference structure, this is done by reference, returning
the object invisibly.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.