library(shiny)
ui <- fluidPage(
actionButton("quit", "quit")
)
server <- function(input, output, session) {
observeEvent(input$quit, stopApp())
}
shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.