Learn R Programming

optigrab (version 0.9.2.1)

opt_expand: 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.

See Also

Examples

Run this code
# NOT RUN {
  optigrab:::opt_expand()
  optigrab:::opt_expand( opts=c( "--foo", "bar") ) 
  
# }

Run the code above in your browser using DataLab