Argument | R Documentation |
Create an Argument class object
Argument(name, flag = NULL, choices = NULL, default = NULL, required = FALSE, nargs = 1, action = "", type = "character", help = character())
name |
character name of the argument (required) |
flag |
character the pattern used to search the argument list, by default name |
choices |
a vector of the choices if limited to a listing |
default |
the default value if none provided |
required |
logical, set to TRUE is required otherwise it is optional |
nargs |
the number of arguments (maximum) |
action |
a function name or NULL |
type |
character, one of the following |
help |
character vector of helpful hints |
an ArgumentRefClass object
Other Argument: ArgumentRefClass_getAction
,
ArgumentRefClass_get_usage
,
ArgumentRefClass_get
,
ArgumentRefClass_parse_argument
,
ArgumentRefClass_print_help
,
ArgumentRefClass_show
,
parseArgument
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.