Learn R Programming

optigrab (version 0.9.2.1)

optigrab: Optigrab

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.

Arguments

See Also

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
  opt_get( c("foo","f"))
# }
# NOT RUN {
  opts <- c( "--flag", "bar" ) 
  flag <- opt_get( c("foo","f"), opts=opts )  # bar

# }

Run the code above in your browser using DataLab