按钮标签中的 R 闪亮断线

R shiny break line in button label

请看下面的玩具示例。 任何帮助将不胜感激!谢谢!

shinyApp(
ui = fluidPage(
    actionButton("btnId", "I want a line break here <br/> since the label is too long")),
server = function(input, output){})

您可以像这样使用 HTML 函数:

library(shiny)

    shinyApp(
      ui = fluidPage(
        actionButton("btnId", HTML("I want a line break here <br/> since the label is too long"))),
      server = function(input, output){})