argGet: Parse an argument

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/argparse.R

Description

Get the value of an named argument

Usage

1
argGet(opt, default = NULL, choices = NULL)

Arguments

opt

name of the argument to be parsed

default

default values to be returned if the argument is not provided

choices

a character vector of accepted values; if a string outside the vector is provided, the function will stop and print error message

Details

The parsing is performed at C-level. It is an abbreiviation of argGetPos(opt, ind=1, default=NULL, choices=NULL)

Value

A character string representing the value of the argument

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

See Also

argParse, argGetPos, and argPresent

Examples

1
## Not run: argGet("infile")

bedapub/ribiosArg documentation built on Nov. 4, 2021, 1:12 p.m.