opt_expand: Expand opts to full vector

Description Usage Arguments Details Note See Also Examples

View source: R/opt_expand.R

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") ) 
  

decisionpatterns/optigrab documentation built on Jan. 8, 2019, 3:28 a.m.