powered by
To be used with optparse_parameters. This function tells the provided parameter is to be parsed as an integer.
optparse_parameters
optparse_integer(help = "No documentation yet.", short = NULL, default = 0)
The help string to display when --help is triggered
The shortcut fir this parameter. For example for a --output param, we could use optparse_flag(short = "-o", ...) to set the "-o" shortcut.
optparse_flag(short = "-o", ...)
The default value this parameter will hold.
L.Pavot
optparse_parameters()
str(optparse_parameters( a_parameter = optparse_integer(), args = list("--a-parameter", "42") ))
Run the code above in your browser using DataLab