R 在Shining应用程序的UI中向文本添加新行
在通过UI输入文本时,是否有方法添加新行 我现在有一些R 在Shining应用程序的UI中向文本添加新行,r,shiny,R,Shiny,在通过UI输入文本时,是否有方法添加新行 我现在有一些 mainPanel( h3("This is my app!\n\n"), h4("Download your data using the choose file button\n\n"), h4("Thank you for using the app!") ) 但是新的线路似乎不起作用 \n在闪亮的应用程序中不起作用。 对于新行,可以使用HTML标记: mainPanel( HTML( paste(
mainPanel(
h3("This is my app!\n\n"),
h4("Download your data using the choose file button\n\n"),
h4("Thank you for using the app!")
)
但是新的线路似乎不起作用
\n
在闪亮的应用程序中不起作用。
对于新行,可以使用HTML标记
:
mainPanel(
HTML(
paste(
h3("This is my app!"),'<br/>',
h4("Download your data using the choose file button"),'<br/>',
h4("Thank you for using the app!")
)
)
)
主面板(
HTML(
粘贴(
h3(“这是我的应用!”),“
”,
h4(“使用选择文件按钮下载数据”),“
”,
h4(“感谢您使用该应用程序!”)
)
)
)
您可以尝试br()