helpText显示额外的行(R Shiny)

时间:2017-11-01 19:39:17

标签: r shiny

当我使用以下代码时,每个代码之间都有一条线。请参阅附图。 enter image description here

CODE:

 helpText("method 1 = TwoStepCluster (Complete)"),
 helpText("method 2 = TwoStepCluster (Ward.D2)"),
 helpText("method 3 = TwoStepCluster (none)"),
 helpText("method 4 = Fixed Solution used as a starting point"),

如何在没有其他行的情况下显示结果?

1 个答案:

答案 0 :(得分:2)

它显示添加额外的行,因为您使用多个helpText。您只需使用一个helpText和多个换行符br()即可获得所需的结果:

helpText("method 1 = TwoStepCluster (Complete)", 
           br(),
          "method 2 = TwoStepCluster (Ward.D2)",
           br(),
          "method 3 = TwoStepCluster (none)",
           br(),
          "method 4 = Fixed Solution used as a starting point")

<强>结果:

enter image description here