Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/69.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 在Shining应用程序的UI中向文本添加新行_R_Shiny - Fatal编程技术网

R 在Shining应用程序的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(

在通过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(
      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()