Skip to content

getopt

C-Like 'getopt' Behavior

v1.20.4 · Sep 30, 2023 · GPL (>= 2)

Description

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.

Downloads

31.6K

Last 30 days

656th

127.1K

Last 90 days

401.7K

Last year

Trend: +39.8% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (3)

imports

suggests

Dependency Network

Dependencies Reverse dependencies optparse SoilR treestructure getopt

Version History

new 1.20.4 Mar 10, 2026
updated 1.20.4 ← 1.20.3 diff Sep 30, 2023
updated 1.20.3 ← 1.20.2 diff Mar 21, 2019
updated 1.20.2 ← 1.20.1 diff Feb 15, 2018
updated 1.20.1 ← 1.20.0 diff Nov 29, 2017
updated 1.20.0 ← 1.19.1 diff Aug 29, 2013
updated 1.19.1 ← 1.19.0 diff Mar 3, 2013
updated 1.19.0 ← 1.17 diff Nov 17, 2012
updated 1.17 ← 1.16 diff Sep 25, 2011
updated 1.16 ← 1.15 diff May 1, 2011
updated 1.15 ← 1.14 diff Apr 27, 2010
updated 1.14 ← 1.12 diff Apr 29, 2008
updated 1.12 ← 1.11 diff Apr 22, 2008
updated 1.11 ← 1.1 diff Apr 15, 2008
new 1.1 Apr 13, 2008