Description Usage Arguments Details Note See Also Examples
Expand option vector to split names from values. This is an internal function and should generally not be called directly.
1 | opt_expand(opts = commandArgs())
|
opts |
character vector of arguments. (Default: |
opt_expand
does two things:
#1. Removes values preceding and including --args
.
#2. Splits and value containing an equal ('=“) sign.
non-exported
opt_grab()
base::commandArgs()
1 2 3 | optigrab:::opt_expand()
optigrab:::opt_expand( opts=c( "--foo", "bar") )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.