简体   繁体   English

在shinyapps 中立即断开与服务器的连接,本地工作,未报告错误

[英]immediate disconnect from Server in shinyapps, local working, no errors reported

After successfully deploying to shinyapps.io from Rstudio, the website initially loads, but then disconnects within 1-2 seconds.从 Rstudio 成功部署到 shinyapps.io 后,网站最初会加载,但随后会在 1-2 秒内断开连接。

The app runs fine locally, and no calculations should be performed before the "calculate network" action button is clicked.该应用程序在本地运行良好,在单击“计算网络”操作按钮之前不应执行任何计算。 I've checked similar questions here (eg this ), however they don't seem applicable for such a small app.我在这里检查了类似的问题(例如this ),但是它们似乎不适用于这么小的应用程序。 Is it anything to do with the github packages or D3?与 github 包或 D3 有什么关系? Any ideas?有任何想法吗?

Based on CJ Yetman's observation, I deactivated all unused packaged and reintroduced them one at a time to test.根据 CJ Yetman 的观察,我停用了所有未使用的打包并一次重新引入它们以进行测试。 That narrowed the problem down to chorddiag , which it turns out needs to be attached by library() in both server.R and ui.R , even if none of its functions are be used in the app.这将问题缩小到chorddiag ,事实证明需要通过library()server.Rui.R中附加它,即使应用程序中没有使用它的任何功能。

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

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