add.argument | R Documentation |
This function is deprecated. Use add_argument
instead.
add.argument(
parser,
arg,
help,
default = NULL,
type = NULL,
flag = NULL,
short = NULL
)
parser |
an |
arg |
argument name (use no prefix for positional arguments,
|
help |
help description for the argument |
default |
default value for the argument [default: NA] |
type |
variable type of the argument (which can be inferred from
|
flag |
whether argument is a flag (and does not consume a value) [default: FALSE] |
short |
short-form for flags and positional arguments; short-forms can be assigned automatically based on the first character of the argument name, unless a conflict arises with an existing short-form; to avoid conflicts, add the argument as early as possible |
an arg.parser
object with the argument added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.