Change the color and font of text in Shiny App

前端 未结 4 1818
心在旅途
心在旅途 2020-12-08 04:19

I am using below code in server.R to display the text in the main panel. This is working exactly the way it should work.

output$text1 <- rend         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 04:59

    If only want to change a certain part of the returning string, one can use htmlOutput instead of textOutput

    On server side just return

    output$text1 <- renderText({ paste("hello input is","", input$n, "") })
    

    In this way, Shiny UI will perform HTML.

提交回复
热议问题