argGetPos: Parse an argument with the given position

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

View source: R/argparse.R

Description

Get the value of an named argument with the given position

Usage

1
argGetPos(opt, ind = 1L, default = NULL, choices = NULL)

Arguments

opt

name of the argument to be parsed

ind

index of the argument to be parsed, starting from 1.

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. If the argument accepts only one value, users can also call argGet(opt, 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, argGet, and argPresent

Examples

1
## Not run: argGetPos("thresholds", ind=2)

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