server <- function(input, output, session)
{
# data to react to
mydata <- reactive({mtcars})
# choose columns to display
output$myheaders <- renderTable({mtcars[, c("mpg", input$show_vars) ,drop=FALSE]}, colnames = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.