# UI Function
slider_mod_UI <- function(id) {
ns = NS(id)
sliderInput(ns("dvar"), "Decision", min = 1, max = 100, step= 1, value = 2)
}
# Server function
slider_mod <- function(input, output, session) {
vals <- reactive({input$dvar})
return(vals)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.