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] (<https://orcid.org/0000-0001-6341-4639>), Allen Day [aut] (Original package author), Roman Zenka [ctb]
MaintainerTrevor L Davis <trevor.l.davis@gmail.com>
LicenseGPL (>= 2)
Version1.20.4
URL https://github.com/trevorld/r-getopt
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("getopt")

Try the getopt package in your browser

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

getopt documentation built on Oct. 1, 2023, 9:07 a.m.