optparse_list {W4MRUtils} | R Documentation |
optparse_list - define a command parameter as a list of objects
Description
To be used with optparse_parameters
. This function tells
the provided parameter is to be parsed as a list of objects.
The of
parameter tells what type are elements of the list.
Each element must be separated by a separator. This separator must
be the value given in the sep
parameter
Usage
optparse_list(
help = "No documentation yet.",
short = NULL,
default = "",
of = "character",
sep = ",",
truevalues = c("TRUE", "true", "1", "t", "T")
)
Arguments
help |
|
short |
|
default |
|
of |
|
sep |
|
truevalues |
|
Author(s)
L.Pavot
See Also
Examples
str(optparse_parameters(
a_parameter = optparse_list(of="numeric"),
b_parameter = optparse_list(of="integer"),
c_parameter = optparse_list(of="logical"),
args = list(
"--a-parameter", "42.7,72.5",
"--b-parameter", "42.7,72.5",
"--c-parameter", "TRUE,FALSE,FALSE,TRUE"
)
))
[Package W4MRUtils version 1.0.0 Index]