Learn R Programming

AnalysisPageServer (version 1.6.2)

validate.param.value: validate.param.value

Description

Validate a parameter value for an AnalysisPageParam

Usage

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

Arguments

app
AnalysisPageParam
val
Candidate value
transform.labeled
Logical. Should the parameter value be transformed if necessary to have the list(v=value, r=readable.value) format?

Value

The candidate value, possibly transformed. Throws error if the value is invalid.

Details

This function dispatches to the type-specific validator.

transform.labeled is passed on only if that validator accepts such an argument. This should be just combobox and select types, and indicates that the parameter value should be transformed to have the list(v=value, r=readable.value) format.

Examples

Run this code
sp <- simple.param("foo")
validate.param.value(sp, 3)

Run the code above in your browser using DataLab