Outputting multiple lines of text with renderText() in R shiny

后端 未结 3 453
青春惊慌失措
青春惊慌失措 2020-11-30 23:11

I want to output multiple lines of text using one renderText() command. However, this does not seem possible. For example, from the shiny tutorial we have trunc

3条回答
  •  隐瞒了意图╮
    2020-11-30 23:35

    If you mean that you don't care for the line break:

    output$text = renderText({
      paste("You have selected ", input$var, ". You have chosen a range that goes 
      from", input$range[1], "to", input$range[2], ".")
    })
    

提交回复
热议问题