title: Shiny datatable: popup data about selected row in a new window
body: <p>I have a datatable in shiny. When a user selects a certain row, I want to display some other data based on the selected row in a new window. I tried to use shinyBS package but I could not use it without action button and I don't want to include action button. I want the pop up to display when a row is selected. Any ideas?</p>
  
  <pre><code>mymtcars = head(mtcars)
  for_pop_up = 1:6
  
  app &lt;- shinyApp(
    ui = fluidPage(
  
    DT::dataTableOutput("mydatatable")
     ),
  
  
   server =  shinyServer(function(input, output, session) {
  
     mycars = head(mtcars)
     output$mydatatable = DT::renderDataTable(mycars, selection = 'single',  
                                rownames = FALSE, options = list(dom = 't'))
  
  output$popup = renderPrint({
    for_pop_up[input$mydatatable_rows_selected]
    })
  
  
   })
  )
  
  runApp(app)
  </code></pre>