getopt: C-like getopt behavior.

Package designed to be used with Rscript to write ``#!'' shebang scripts that accept short and long flags/options. Many users will prefer using instead the packages optparse or argparse which add extra features like automatically generated help option and usage, support for default values, positional argument support, etc.

Install the latest version of this package by entering the following in R:
AuthorAllen Day. Contributions from Trevor L Davis.
Date of publication2013-08-30 10:36:29
MaintainerTrevor L Davis <>
LicenseGPL (>= 2)

View on CRAN

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.