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.

Getting started

Package details

AuthorTrevor L Davis [aut, cre], Allen Day [aut] (Original package author), Roman Zenka [ctb]
MaintainerTrevor L Davis <>
LicenseGPL (>= 2)
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the getopt package in your browser

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

getopt documentation built on May 2, 2019, 6:36 a.m.