opt_expand {optigrab}R Documentation

Expand opts to full vector

Description

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

Usage

opt_expand(opts = commandArgs())

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

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

[Package optigrab version 0.9.2.1 Index]