GetParamWidgets {hivEstimatesAccuracy}R Documentation

GetParamWidgets

Description

Generates a list of Shiny widgets for all parameters specified in paramSpecs. It is based on knit_params_ask function.

Usage

GetParamWidgets(paramSpecs, params = NULL, skipParamNames = c(),
  ns = function(x) x)

Arguments

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: function(x) x.

Value

List of Shiny html controls

Examples

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)


[Package hivEstimatesAccuracy version 1.0.1 Index]