library(shiny)
ui <- fluidPage(
selectInput('select', 'Select',
choices=1:20,
multiple = TRUE
)
)
server <- function(input, output, session) {
observeEvent(input$select, ignoreNULL = FALSE, {
print(input$select)
})
}
shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.