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.

Version: 1.20.2
Imports: stats
Suggests: testthat
Published: 2018-02-16
Author: Allen Day. Contributions from Trevor L Davis and Roman Zenka.
Maintainer: Trevor L Davis <trevor.l.davis at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Materials: NEWS
CRAN checks: getopt results


Reference manual: getopt.pdf
Package source: getopt_1.20.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X El Capitan binaries: r-release: getopt_1.20.2.tgz
OS X Mavericks binaries: r-oldrel: getopt_1.20.1.tgz
Old sources: getopt archive

Reverse dependencies:

Reverse depends: HadoopStreaming
Reverse imports: argparse, optparse


Please use the canonical form to link to this page.