validate.labeled.param.value {AnalysisPageServer} | R Documentation |
Validate a labeled AnalysisPageParam value
validate.labeled.param.value(app, val, transform.labeled = FALSE)
app |
AnalysisPageParam |
val |
Candidate value |
transform.labeled |
Logical. See details. |
Validate a labeled AnalysisPageParam value. Currently the labeled param types are "combobox" and "select".
Unnamed scalars are OK and named scalars are also OK.
If the scalar is unnamed then its own name will be applied: names(val) <- val
.
If transform.labeled
is set then instead of returning
the candidate value as-is, it is transformed into
list(v=real.value, r=readable.value)
.
If $allow.multiple == TRUE
then length(val) > 1
is OK.
The encoding is simply list(v=real.values, r=readable.values)
,
where real.values
and readable.values
are equal-length vectors.
Candidate value, possibly transformed into list.
Brad Friedman