How to give breakdown of text prediction sentences in Shiny I have created a text prediction app that displays 10 sentences based on the word searched in the toolbar. However, all the sentences are being displayed in a single toolbar horizontally. I would like the sentences to appear sequentially i.e. vertically, one after another
    ui&lt;- shinyUI(fluidPage(
  
  # Application title
  mainPanel(
   img(src='image.jpg', align = &quot;right&quot;),
 
  #titlePanel(title=div(img(src=&quot;spsimage.jpg&quot;))),
  
  fluidRow(HTML(&quot;&lt;strong&gt; Search Bar&quot;)),
  #fluidRow(HTML(&quot; &lt;strong&gt;Date: 06-29-2020&lt;/strong&gt;&quot;) ),
  
  fluidRow(
    br(),
    p(&quot;Text predictior app &quot;)),
  br(),
  br(),
  
  fluidRow(HTML(&quot;&lt;strong&gt;Enter a word. Press \&quot;Next words\&quot; button to predict the following words&lt;/strong&gt;&quot;) ),
  fluidRow( p(&quot;\n&quot;) ),
  
  # Sidebar layout
  sidebarLayout(
    
    sidebarPanel(
      textInput(&quot;inputString&quot;, &quot;Enter a word here&quot;,value = &quot; &quot;),
      submitButton(&quot;Next words&quot;)
    ),
    
    mainPanel(
      h4(&quot;Predicted Next Word&quot;),
      verbatimTextOutput(&quot;prediction&quot;),
      textOutput('text1'),
      
    )
  )
)))


server &lt;- function(input, output, session) {
  sentences &lt;- reactive({
    make_sentences(input$inputString)
  })
  output$prediction &lt;- renderText({ sentences() })
}

the output is coming as - Angry look for some time for Angry glance, and the duc d’enghien Angry look was a tone or Angry tears. “Lise!” Was that? The Angry tears. “Lise!” Said princess anna Angry look as much as she Angry look for three of the Angry tears. “Lise!” Said to the Angry look fixed on with an Angry glance, and fireworks are not
I would prefer -

1- Angry look for some time for
2- Angry glance, and the duc d’enghien
3- Angry look was a tone or Angry tears. “Lise!” Was that? 
4-The Angry tears. “Lise!” Said princess anna 
5-Angry look as much as she
'''''
Maybe you could put the sentences in a dataframe and used renderTable, something like this:
server &lt;- function(input, output, session) {
  sentences &lt;- reactive({
    data.frame(sentences=make_sentences(input$inputString))
  })
  output$prediction &lt;- renderTable(sentences())
}


[edit]
In order to only have them line by line something like this might work:
server &lt;- function(input, output, session) {
  sentences &lt;- reactive({
    paste(make_sentences(input$inputString),sep='&lt;br/&gt;')
  })
  output$prediction &lt;- renderTable(sentences())
}

Alternatively you could have a numbered list by using the corresponding HTML tags: insert the whole list inside &lt;ol&gt; ... &lt;/ol&gt; and every sentence in a &lt;li&gt; .. &lt;/li&gt;.