opt_expand: Expand opts to full vector

Description Usage Arguments Details Note See Also Examples

Description

Expand option vector to split names from values. This is an internal function and should generally not be called directly.

Usage

1

Arguments

opts

character vector of arguments. (Default: base::commandArgs() )

Details

opt_expand does two things:

#1. Removes values preceding and including --args. #2. Splits and value containing an equal ('=“) sign.

Note

non-exported

See Also

Examples

1
2
3
  optigrab:::opt_expand()
  optigrab:::opt_expand( opts=c( "--foo", "bar") ) 
  

optigrab documentation built on May 2, 2019, 2:10 a.m.