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.3
Imports: stats
Suggests: covr, testthat
Published: 2019-03-22
Author: Trevor L Davis [aut, cre], Allen Day [aut] (Original package author), Roman Zenka [ctb]
Maintainer: Trevor L Davis <trevor.l.davis at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Materials: README NEWS
CRAN checks: getopt results


Reference manual: getopt.pdf


Package source: getopt_1.20.3.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): getopt_1.20.3.tgz, r-release (x86_64): getopt_1.20.3.tgz, r-oldrel: getopt_1.20.3.tgz
Old sources: getopt archive

Reverse dependencies:

Reverse depends: HadoopStreaming
Reverse imports: artMS, optparse


Please use the canonical form to link to this page.