getopt: C-like getopt behavior.
Version 1.19.1

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 package optparse which adds extra features (automatically generated help option and usage, support for default values, basic positional argument support).

Getting started

Package details

AuthorAllen Day Contributions from Trevor L Davis
Date of publication2013-03-01 22:49:51
MaintainerTrevor L Davis <>
LicenseGPL (>= 2)
Package repositoryView on R-Forge
Installation Install the latest version of this package by entering the following in R:
install.packages("getopt", repos="")

Try the getopt package in your browser

Any scripts or data that you put into this service are public.

getopt documentation built on May 31, 2017, 2:22 a.m.