用额外的行显示的帮助文本 (R Shiny)

Ket*_*tty 2 r shiny

当我使用以下代码时,每个代码之间都有一条线。请参阅所附图片。在此处输入图片说明

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"),
Run Code Online (Sandbox Code Playgroud)

我怎样才能在没有附加行的情况下显示结果?

San*_*osh 6

它显示添加额外的行,因为您正在使用多个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")
Run Code Online (Sandbox Code Playgroud)

结果:

在此处输入图片说明