View source: R/optparse_helper.R
optparse_list | R Documentation |
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
optparse_list(
help = "No documentation yet.",
short = NULL,
default = "",
of = "character",
sep = ",",
truevalues = c("TRUE", "true", "1", "t", "T")
)
help |
|
short |
|
default |
|
of |
|
sep |
|
truevalues |
|
L.Pavot
optparse_parameters()
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"
)
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.