powered by
Expand option vector to split names from values. This is an internal function and should generally not be called directly.
opt_expand(opts = commandArgs())
character vector of arguments. (Default: base::commandArgs() )
base::commandArgs()
opt_expand does two things:
opt_expand
#1. Removes values preceding and including --args. #2. Splits and value containing an equal (`=``) sign.
--args
opt_grab()
# NOT RUN { optigrab:::opt_expand() optigrab:::opt_expand( opts=c( "--foo", "bar") ) # }
Run the code above in your browser using DataLab