# Module UI
#' @title Module to provide simple bias parameters
#' @description A shiny Module to treat simple bias analysis parameters (selection,
#' misclassification).
#'
#' @param id shiny id
#' @param input internal
#' @param output internal
#' @param session internal
#'
#' @rdname mod_parms
#'
#' @keywords internal
#' @export
#' @importFrom shiny NS tagList
mod_parms_ui <- function(id, label_parms, value){
ns <- NS(id)
tagList(
sliderInput(ns("bias_parms"), label_parms,
value = value, min = 0, max = 1,
width = "600px")
)
}
# Module Server
#' @rdname mod_parms
#' @export
#' @keywords internal
mod_parms_server <- function(input, output, session){
ns <- session$ns
input$bias_parms
}
## To be copied in the UI
# mod_parms_ui("parms_ui_1")
## To be copied in the server
# callModule(mod_parms_server, "parms_ui_1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.