简体   繁体   English

在renderDataTable下方以闪亮的R格式打印其他内容

[英]print something else below the renderDataTable in shiny, R

I've tried to print some other strings below or above the table in a tab page (via tabPanel, renderDataTable and dataTableOutput) in shiny, R. How to implement it? 我试图在闪亮的R中在选项卡页中的表下方或上方打印其他字符串(通过tabPanel,renderDataTable和dataTableOutput)。如何实现它? Thank you. 谢谢。

Suppose you have: 假设您有:

tabPanel("Table", dataTableOutput("show_data"))

Change to: 改成:

tabPanel("Table", dataTableOutput("show_data"), HTML("My exta text"))

Or is you need more control you could use: 还是您需要更多控制权,可以使用:

tabPanel("Table", dataTableOutput("show_data"), verbatimTextOutput("extra_text"))

where extra_text is a renderText function 其中extra_text是renderText函数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM