gpt4 book ai didi

R Shiny : How to debug deployed app?

转载 作者:行者123 更新时间:2023-12-01 03:40:25 28 4
gpt4 key购买 nike

我创建了一个 R Shiny 的应用程序,它在我的机器上完美运行。它也在 Shinyapps.io 服务器上成功部署。但是,当我尝试单击其中一个按钮来执行任务时,屏幕会变灰(挂起)。当我在本地运行我的应用程序时,完成了相同的任务。我看不到错误在哪里,因为它在我的本地机器上成功运行。有什么想法可以调试吗?

这是我的应用程序的日志:

2015-07-07T21:52:53.949714+00:00 shinyapps[50164]: 
2015-07-07T21:52:53.950026+00:00 shinyapps[50164]:
2015-07-07T21:52:53.839040+00:00 shinyapps[50164]: The following object is masked from ‘package:stats’:
2015-07-07T21:52:53.949719+00:00 shinyapps[50164]:
2015-07-07T21:52:53.960914+00:00 shinyapps[50164]: isNamespaceLoaded
2015-07-07T21:52:53.949718+00:00 shinyapps[50164]: Attaching package: ‘pkgmaker’
2015-07-07T21:52:53.960916+00:00 shinyapps[50164]:
2015-07-07T21:52:53.950023+00:00 shinyapps[50164]: The following object is masked from ‘package:S4Vectors’:
2015-07-07T21:52:54.666591+00:00 shinyapps[50164]: NMF - BioConductor layer [OK] | Shared memory capabilities [NO: bigmemory] | Cores 15/16
2015-07-07T21:52:54.666968+00:00 shinyapps[50164]: To enable shared memory capabilities, try: install.extras('
2015-07-07T21:52:54.666971+00:00 shinyapps[50164]: NMF
2015-07-07T21:52:54.666973+00:00 shinyapps[50164]: ')
2015-07-07T21:52:54.672080+00:00 shinyapps[50164]:
2015-07-07T21:52:54.672084+00:00 shinyapps[50164]:
2015-07-07T21:52:54.672634+00:00 shinyapps[50164]: The following object is masked from ‘package:Rgraphviz’:
2015-07-07T21:52:54.672636+00:00 shinyapps[50164]:
2015-07-07T21:52:54.672637+00:00 shinyapps[50164]: name
2015-07-07T21:52:54.672638+00:00 shinyapps[50164]:
2015-07-07T21:52:54.676643+00:00 shinyapps[50164]: The following objects are masked from ‘package:topGO’:
2015-07-07T21:52:54.676645+00:00 shinyapps[50164]:
2015-07-07T21:52:54.672083+00:00 shinyapps[50164]: Attaching package: ‘NMF’
2015-07-07T21:52:54.676647+00:00 shinyapps[50164]:
2015-07-07T21:52:54.680862+00:00 shinyapps[50164]: The following object is masked from ‘package:IRanges’:
2015-07-07T21:52:54.680864+00:00 shinyapps[50164]:
2015-07-07T21:52:54.680865+00:00 shinyapps[50164]: compare
2015-07-07T21:52:54.680866+00:00 shinyapps[50164]:
2015-07-07T21:52:54.682353+00:00 shinyapps[50164]: The following objects are masked from ‘package:S4Vectors’:
2015-07-07T21:52:54.682355+00:00 shinyapps[50164]:
2015-07-07T21:52:54.682356+00:00 shinyapps[50164]: compare, nrun
2015-07-07T21:52:54.705236+00:00 shinyapps[50164]: Loading required package: KEGGgraph
2015-07-07T21:52:54.713283+00:00 shinyapps[50164]: Loading required package: XML
2015-07-07T21:52:54.676646+00:00 shinyapps[50164]: algorithm, algorithm<-
2015-07-07T21:52:54.682357+00:00 shinyapps[50164]:
2015-07-07T21:52:54.974597+00:00 shinyapps[50164]:
2015-07-07T21:52:54.974601+00:00 shinyapps[50164]: Attaching package: ‘XML’
2015-07-07T21:52:54.974602+00:00 shinyapps[50164]:
2015-07-07T21:52:54.975059+00:00 shinyapps[50164]: The following object is masked from ‘package:graph’:
2015-07-07T21:52:54.975061+00:00 shinyapps[50164]:
2015-07-07T21:52:54.975062+00:00 shinyapps[50164]: addNode
2015-07-07T21:52:54.975063+00:00 shinyapps[50164]:
2015-07-07T21:52:55.046069+00:00 shinyapps[50164]:
2015-07-07T21:52:55.046423+00:00 shinyapps[50164]: The following object is masked from ‘package:NMF’:
2015-07-07T21:52:55.046426+00:00 shinyapps[50164]: name<-
2015-07-07T21:52:55.046427+00:00 shinyapps[50164]:
2015-07-07T21:52:55.046425+00:00 shinyapps[50164]:
2015-07-07T21:52:55.046064+00:00 shinyapps[50164]:
2015-07-07T21:52:55.046068+00:00 shinyapps[50164]: Attaching package: ‘KEGGgraph’
2015-07-07T21:52:55.235031+00:00 shinyapps[50164]: Warning in run(timeoutMs) :
2015-07-07T21:52:55.235050+00:00 shinyapps[50164]: replacing previous import by ‘dendextend::%>%’ when loading ‘NMF’
2015-07-07T21:52:55.235175+00:00 shinyapps[50164]: Warning in run(timeoutMs) :
2015-07-07T21:52:55.235177+00:00 shinyapps[50164]: replacing previous import by ‘dendextend::cutree’ when loading ‘NMF’

谢谢

最佳答案

显然,这是一个内存问题,500MB 的内存不足以用于此应用程序。我将实例大小从中等(免费用户的默认值)更改为 xx 大并且它起作用了。

大概 Warning in run(timeoutMs)在日志中表示您的内存不足。

关于R Shiny : How to debug deployed app?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31279714/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com