Learn R Programming

W4MRUtils (version 1.0.0)

optparse_character: optparse_character - define a command parameter as string

Description

To be used with optparse_parameters. This function tells the provided parameter is to be parsed as a single string.

Usage

optparse_character(help = "No documentation yet.", short = NULL, default = 0)

Arguments

help
  • The help string to display when --help is triggered

short
  • The shortcut fir this parameter. For example for a --output param, we could use optparse_flag(short = "-o", ...) to set the "-o" shortcut.

default
  • The default value this parameter will hold.

Author

L.Pavot

See Also

optparse_parameters()

Examples

Run this code

str(optparse_parameters(
  a_parameter = optparse_character(),
  args = list("--a-parameter", "42")
))

Run the code above in your browser using DataLab