Learn R Programming

GetoptLong (version 1.1.0)

Parsing Command-Line Arguments and Simple Variable Interpolation

Description

This is a command-line argument parser which wraps the powerful Perl module Getopt::Long and with some adaptations for easier use in R. It also provides a simple way for variable interpolation in R.

Copy Link

Version

Install

install.packages('GetoptLong')

Monthly Downloads

204,304

Version

1.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Zuguang Gu

Last Published

November 28th, 2025

Functions in GetoptLong (1.1.0)

qq

Simple variable interpolation in texts
qqcat

Print a string which has been intepolated with variables
subCommands

Setting sub commands
get_scriptdir

Directory of current script
GetOptions

Wrapper of the Perl module Getopt::Long in R
GetoptLong

Wrapper of the Perl module Getopt::Long in R
get_scriptname

File name of current script
qq.options

Global options for qq() related functions
source_script

Source the R script with command-line arguments
GetoptLong.options

Global options for GetoptLong()