MiscParameter-class {oppr} | R Documentation |
Miscellaneous parameter prototype
Description
This prototype is used to represent a parameter that can be any object. Only experts should interact directly with this prototype.
Fields
- $id
character
identifier for parameter.- $name
character
name of parameter.- $value
tibble::tibble()
object.- $validator
list
object containing afunction
that is used to validate changes to the parameter.- $widget
list
object containing afunction
used to construct a 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 parameter is 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.