A command line parser inspired by Python's 'optparse' library to be used with Rscript to write "#!" shebang scripts that accept short and long flag/options.

Documentation

Manual: optparse.pdf
Vignette: optparse Command Line Option Parsing

Maintainer: Trevor L Davis <trevor.l.davis at gmail.com>

Author(s): Trevor L Davis. Some documentation and examples ported from Allen Day's getopt package. Some documentation from the optparse Python module by the Python Software Foundation. Contributions from Steve Lianoglou, Jim Nikelski, Kirill Müller, Peter Humburg, and Rich FitzJohn.

Install package and any missing dependencies by running this line in your R console:

install.packages("optparse")

Depends R (>= 2.9.0)
Imports methods, getopt(>=1.19)
Suggests knitr, stringr, testthat
Enhances
Linking to
Reverse
depends
Reverse
imports
REPTILE, SafeQuant
Reverse
suggests
enveomics.R
Reverse
enhances
Reverse
linking to

Package optparse
Materials
URL https://github.com/trevorld/optparse
Task Views
Version 1.3.2
Published 2015-10-03
License GPL (>= 2)
BugReports https://github.com/trevorld/optparse/issues
SystemRequirements
NeedsCompilation no
Citation
CRAN checks optparse check results
Package source optparse_1.3.2.tar.gz