GetParamWidgets {hivEstimatesAccuracy} | R Documentation |
Generates a list of Shiny widgets for all parameters specified in paramSpecs
.
It is based on knit_params_ask
function.
GetParamWidgets(paramSpecs, params = NULL, skipParamNames = c(), ns = function(x) x)
paramSpecs |
List of parameter specifications. Required. |
params |
List of parameters. Optional. Default = NULL. |
skipParamNames |
Vector of parameter names for which widgets are not to be created. Optional. Default = c(). |
ns |
Function for creating namespace. It must return a string. Optional.
Default: |
List of Shiny html controls
paramSpecs <- list( nimp = list( name = "nimp", label = "Number of imputations", input = "numeric", value = 2L ), chk = list( name = "chk", label = "Checkbox", input = "select", choices = c("A" = "A", "B" = "B"), multiple = TRUE ) ) GetParamWidgets(paramSpecs)