optparse
https://www.rdocumentation.org/packages/optparse
R

In R language, optparse is a package that provides a flexible and user-friendly way to handle command-line options and arguments in R scripts. It simplifies the process of defining, parsing, and handling command-line inputs, allowing R programmers to create robust and customizable command-line interfaces for their scripts or applications.

optparse offers a set of functions that enable developers to define command-line options, specify default values, handle positional arguments, and generate usage help messages. It supports a wide range of option types, including logical, numeric, character, and file options. It also allows for the creation of subcommands, providing a modular and organized approach to command-line interfaces.

By utilizing optparse, R users can easily capture and process command-line inputs, making their scripts more interactive and versatile. It facilitates the integration of R scripts into command-line workflows, automation pipelines, and batch processing systems.

optparse is widely used in various domains such as data analysis, bioinformatics, and scientific computing, where command-line interfaces are commonly employed for script execution and parameter configuration.