trevorld/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

Maintainer
LicenseGPL (>= 2)
Version1.20.4
URL https://github.com/trevorld/r-getopt
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("trevorld/getopt")
trevorld/getopt documentation built on Oct. 10, 2023, 10:14 p.m.