library(shiny) shinyUI(pageWithSidebar( headerPanel('Examples of DataTables'), sidebarPanel( checkboxGroupInput('show_vars', 'Columns to show:', names(mtcars), selected = names(mtcars)) ), mainPanel( dataTableOutput("mytable") ) ) )