# NOT RUN {
library(shiny)
ui <- fluidPage(
use_waitress("red"), # dependencies
sliderInput("set", "percentage", 1, 100, step = 5, value = 1)
)
server <- function(input, output, session){
w <- Waitress$
new()$ # call a waitress
start() # start waitress
observeEvent(input$set, {
w$set(input$set) # set at percentage
})
}
if(interactive()) shinyApp(ui, server)
# }
Run the code above in your browser using DataLab