View source: R/optparse_helper.R
optparse_flag | R Documentation |
To be used with optparse_parameters
. This function tells
the provided parameter is a trigger (logical - TRUE/FALSE).
When the trigger parameter is not provided in the command line,
the value is FALSE. Otherwise, it is TRUE.
optparse_flag(help = "No documentation yet.", short = NULL, default = FALSE)
help |
|
short |
|
default |
|
a list to give to optparse_parameters
to build the
whole command line parsing tool.
L.Pavot
optparse_parameters()
str(optparse_parameters(
a_parameter = optparse_flag(),
args = list("--a-parameter")
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.