optigrab: Optigrab

Description See Also Examples

Description

The optigrab packages providesa function opt_grab to retrieve options/arguments from the command line. It is useful for running R in batch mode with R CMD BATCH ... or Rscript.

GNU-, Java- and Microsoft-style command line options are supported. GNU-style is the default.

See the optigrab vignettes or the github README file for details.

See Also

Examples

1
2
3
4
5
6
7
## Not run:  
  opt_get( c("foo","f"))

## End(Not run)

  opts <- c( "--flag", "bar" ) 
  flag <- opt_get( c("foo","f"), opts=opts )  # bar

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