“empty data message” in renderTable
问题 I user renderTable to show some data. However, sometimes the data table is empty, in which case I'd like to print "No data to show" or something similar. the default by renderTable is to show nothing for empty data. can this be changed? how? 回答1: You can use a condition into a renderUi to render either a message or a "tableOutput" (you can't render directly the table) datas <- data.frame() shiny::runApp(list( ui = pageWithSidebar( headerPanel("Example"), sidebarPanel( selectInput("dataset",