title: Add values to a reactive table in shiny
body: <p>I want users of my shiny app to be able to add elements to a table iteratively, but I can't work out how to hold the values. </p>
  
  <p>In this example, I want the user to be able to add values in the text boxes, which should get added to the bottom of the table in the main panel. At the moment the previously added values are lost.</p>
  
  <pre><code>library(shiny)
  
  runApp(list(
    ui=pageWithSidebar(headerPanel("Adding entries to table"),
                       sidebarPanel(textInput("text1", "Column 1"),
                                    textInput("text2", "Column 2"),
                                    actionButton("update", "Update Table")),
                       mainPanel(tableOutput("table1"))),
    server=function(input, output, session) {
      tableStart &lt;- data.frame(Column1 = NA, Column2 = NA)
      newEntry &lt;- reactive({
        input$update
        newLine &lt;- isolate(c(input$text1, input$text2))
        })
      output$table1 &lt;- renderTable({rbind(tableStart, newEntry())})
    }))
  </code></pre>