title: Paste multiple values into output of renderText
body: <p>I have a shiny code like this</p>
  <pre><code>library(shiny)
  ui &lt;- fluidPage(
  titlePanel(&quot;censusVis&quot;),
  sidebarLayout(
      sidebarPanel(
          helpText(&quot;Create demographic maps with
             information from the 2010 US Census.&quot;),
         
          selectInput(&quot;var&quot;,
                      label = &quot;Choose a variable to display&quot;,
                      choices = c(&quot;Percent White&quot;,
                                  &quot;Percent Black&quot;,
                                  &quot;Percent Hispanic&quot;,
                                  &quot;Percent Asian&quot;),
                      selected = &quot;Percent White&quot;,multiple = T),
         
          sliderInput(&quot;range&quot;,
                      label = &quot;Range of interest:&quot;,
                      min = 0, max = 100, value = c(0, 100))
      ),
       mainPanel(textOutput(&quot;selected_var&quot;))))
  
   server &lt;- function(input, output) {
  
  output$selected_var &lt;- renderText({
      paste(&quot;You have selected&quot;, input$var)})}
   shinyApp(ui = ui, server = server)
  </code></pre>
  <p>When I am choosing multiple selection it is coming as &quot;You have selected xxxx You have selected yyyy &quot;.</p>
  <p>How to paste these output as like this:</p>
  <pre><code>You have selected xxxx yyyyy
  </code></pre>