how to insert new line in R shiny string

前端 未结 5 2016
一整个雨季
一整个雨季 2020-12-01 15:50

In shiny, I have the following:

  output$sequenceText <- renderText({
    showSequence()
  })

showSequence <- reactive({
  selectedSeqs <- as.numer         


        
5条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 16:32

    for anyone reading this, you might also want to use tags$br(), which you simply have to insert as argument after a piece of text. For example,

    tags$div(
        "a piece of text", tags$br(),
        "this will start from the new line now", tags$br(),
        "and this as well",
        "but not this" )
    

提交回复
热议问题