title: Outputting multiple lines of text with renderText() in R shiny
body: <p>I want to output multiple lines of text using one <code>renderText()</code> command. However, this does not seem possible. For example, from the <a href="http://www.rstudio.com/shiny/lessons/Lesson-4/" rel="noreferrer">shiny tutorial</a> we have truncated code in <code>server.R</code>:</p>
  
  <pre><code>shinyServer(
    function(input, output) {
      output$text1 &lt;- renderText({paste("You have selected", input$var)
      output$text2 &lt;- renderText({paste("You have chosen a range that goes from",
        input$range[1], "to", input$range[2])})
    }
  )
  </code></pre>
  
  <p>and code in <code>ui.R</code>:</p>
  
  <pre><code>shinyUI(pageWithSidebar(
  
    mainPanel(textOutput("text1"),
              textOutput("text2"))
  ))
  </code></pre>
  
  <p>which essentially prints two lines:</p>
  
  <pre><code>You have selected example
  You have chosen a range that goes from example range.
  </code></pre>
  
  <p>Is it possible to combine the two lines <code>output$text1</code> and <code>output$text2</code> into one block of code? My efforts so far have failed, e.g.</p>
  
  <pre><code>output$text = renderText({paste("You have selected ", input$var, "\n", "You have chosen a range that goes from", input$range[1], "to", input$range[2])})
  </code></pre>
  
  <p>Anyone have any ideas?</p>