validate.labeled.param.value: validate.labeled.param.value

Description Usage Arguments Details Value Author(s)

View source: R/validate.param.list.R

Description

Validate a labeled AnalysisPageParam value

Usage

1
validate.labeled.param.value(app, val, transform.labeled = FALSE)

Arguments

app

AnalysisPageParam

val

Candidate value

transform.labeled

Logical. See details.

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.

Value

Candidate value, possibly transformed into list.

Author(s)

Brad Friedman


AnalysisPageServer documentation built on April 28, 2020, 6:32 p.m.