Description Usage Arguments Details Value Author(s) Examples
Build a default AnalysisPageParam for one argument
1 |
name |
Name of the parameter |
prototype |
Default value on which the parameter should be built. |
... |
Further arguments passed to the constructor for the appropriate parameter type. For example,
you can include |
You provide the name of the argument and default and I build an AnalysisPageParam. The magic here is as follows:
Named lists become compound.param
, with default.param()
then called recursively.
Unnamed lists of become array.param
, with default.param()
called
on the first element of the list to build the prototype. The length of the list
is taken as the start value. min/max default to 0/Inf. (Advanced Note: the name is copied to the sub-element)
Vectors of length > 1 become select.param
s
Vectors of length 0 or 1 and NULLs become simple.param
s
On any other type of argument it throws an error.
AnalysisPageParam
Brad Friedman
1 | default.param(name = "word", prototype = c("foo", "bar", "baz"), label = "Choose a word")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.