请单击注销按钮后,请共享功能或默认方法以清除或删除绘图图和数据表。
当我单击注销按钮时,将调用特定函数,例如clearUI<-函数((,其中包含以下代码
output$sumofissue = renderPlotly({NULL})
output$averageeffort =renderPlotly({NULL})
output$averageissue= renderPlotly({NULL})
output$Datatable =DT::renderDataTable({NULL})
一旦实现了此方法。 它不会触发事件反应函数,而是无法为同一用户再次加载图形和数据表
而不是传递 NULL 值。 有没有办法清除R闪亮中图形和数据表的输出?
空绘图图可以用以下代码渲染:
renderPlotly({
plotly_empty()
})
完全非交互式的空绘图图可以像下面这样渲染:
library(tidyverse)
renderPlotly({
plotly_empty() %>%
config(staticPlot = TRUE)
})
我认为几乎所有情况都首选第二种。