Pheatmap 有时无法在 Shiny 中渲染
我有一个复杂的 Shiny 应用程序,其中包含数百个反应元素。问题是有时 pheatmap 绘图无法渲染,我必须重新启动应用程序才能使其工作。对于不同 R 版本以及 Shiny Server 和 RStudio Connect 上没有共享数据或代码的所有不同 pheatmap 绘图来说,情况都是如此。发生这种情况时,它会影响所有用户,因此与我的系统无关。日志中没有任何内容,并且我无法通过跟踪反应性跟踪找到任何内容。可能使用了十几个绘图包,只有 pheatmap 存在这个问题。我无法提供可重现的示例,因为它在 90% 以上的时间都有效。关于这是怎么回事有任何提示吗?
I have a complex Shiny app with hundreds of reactive elements. The problem is that sometimes pheatmap plots don't render, and I have to restart the app to make it work. This has been the case with all different pheatmap plots with no shared data or code, across different R versions, and both on Shiny Server and RStudio Connect. When this happens it affects all users, so it's not anything to do with my system. There is nothing in the logs and I haven't been able to find anything by following the reactivity trace. There are probably a dozen plotting packages used and it's only pheatmap that has this problem. I can't provide a reproducible example, because it works 90+% of the time. Any hints at all on how this can be?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我一直在处理同样的问题,讽刺的是,在运行应用程序之前清除 rstudio 中的“绘图”选项卡似乎可以解决问题。您还可以
dev.off()
任何以前生成的图形。I have been dealing with the same issue and ironically enough, clearing the "plots" tab in rstudio before running your app seems to resolve the problem. You can also
dev.off()
any previous graphics generated.