opt_style {optigrab} | R Documentation |
Get or set the optigrab style
Description
Get or sets the optigrab style
Usage
opt_style(style)
Arguments
style |
named list; containing the following functions:
If |
Value
If style
is not provided, returns a list of styles, otherwise used
for the side-effect of setting the option
flag_test
Accepts a character vector and returns a logical vector indicating whether the elements are flags.
flag_to_name
Accepts a character vector of flags and turns them into variable names, usually by stripping delimiters that indicate that they are flags
name_to_flag
Accepts a character vector of names and transforms them into the flags that
would appear on the command line. This is used by opt_grab()
.
See Also
gnu_style, java_style or ms_style
Examples
opt_style()
opt_style( optigrab:::gnu_style )
opt_style( optigrab:::java_style )
opt_style( optigrab:::ms_style )