Package: defineOptions 0.9

defineOptions: Define and Parse Command Line Options

Parses command line arguments and supplies values to scripts. Users can specify names to which parsed inputs are assigned, value types into which inputs are cast, long options or short options, input splitters and callbacks that define how options should be specified and how input values are supplied.

Authors:Toshihiro Umehara [aut, cre]

defineOptions_0.9.tar.gz
defineOptions_0.9.zip(r-4.5)defineOptions_0.9.zip(r-4.4)defineOptions_0.9.zip(r-4.3)
defineOptions_0.9.tgz(r-4.4-any)defineOptions_0.9.tgz(r-4.3-any)
defineOptions_0.9.tar.gz(r-4.5-noble)defineOptions_0.9.tar.gz(r-4.4-noble)
defineOptions_0.9.tgz(r-4.4-emscripten)defineOptions_0.9.tgz(r-4.3-emscripten)
defineOptions.pdf |defineOptions.html
defineOptions/json (API)

# Install 'defineOptions' in R:
install.packages('defineOptions', repos = c('https://niceume.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/niceume/defineoptions/issues

On CRAN:

2.70 score 4 scripts 140 downloads 6 exports 0 dependencies

Last updated 1 years agofrom:4ecdd33ae4. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 05 2024
R-4.5-winOKNov 05 2024
R-4.5-linuxOKNov 05 2024
R-4.4-winOKNov 05 2024
R-4.4-macOKNov 05 2024
R-4.3-winOKNov 05 2024
R-4.3-macOKNov 05 2024

Exports:define_optionnew_parser_defopt_optional_input_disallowedopt_optional_input_requiredopt_required_input_requiredparse_with_defs

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Define and Parse Command Line OptionsdefineOptions-package defineOptions
Built-in callbacks for option definitionscallbacks opt_optional_input_disallowed opt_optional_input_required opt_required_input_required
Function to define an option for argument parsingdefine_option define_option,ParserDef,list-method
Constructor of ParserDef classnew_parser_def
Function to parse command line arguments with ParserDef S4 objectparse_with_defs parse_with_defs,ParserDef,character-method
ParserDef S4 classParserDef ParserDef-class
Summarize parsed_result S3 objectsummary.parsed_result