| ScalarParameter-class {oppr} | R Documentation |
Scalar parameter prototype
Description
This prototype is used to represent a parameter has a single value. Only experts should interact directly with this prototype.
Fields
- $id
characteridentifier for parameter.- $name
charactername of parameter.- $value
numericscalar value.- $default
numericscalar default value.- $class
charactername of the class that$valueshould inherit from (e.g.integer).- $lower_limit
numericscalar value that is the minimum value that$valueis permitted to be.- $upper_limit
numericscalar value that is the maximum value that$valueis permitted to be.- $widget
functionused to construct ashiny::shiny()interface for modifying values.
Usage
x$print()
x$show()
x$validate(x)
x$get()
x$set(x)
x$reset()
x$render(...)
Arguments
- x
object used to set a new parameter value.
- ...
arguments passed to
$widget.
Details
print the object.
- show
show the object.
- validate
check if a proposed new set of parameters are valid.
- get
extract the parameter value.
- set
update the parameter value.
- reset
update the parameter value to be the default value.
- render
create a
shiny::shiny()widget to modify parameter values.