我正在尝试使用 R 中的shiny web 应用程序创建交互式地图。在创建应用程序并将其部署到我的shiny.io 帐户后,应用程序的URL 实际上不显示地图,而只显示侧面板和主面板。打开网页约15秒后,会提示已与服务器断开连接。
\n以下是 shint 应用程序的链接:https://www.shinyapps.io/admin/#/application/2621249
\n这是shiny.io的日志:
\n2020-07-29T02:44:56.206023+00:00 shinyapps[2621249]: Loaded GDAL runtime: GDAL 2.2.2, released 2017/09/15\n2020-07-29T02:44:56.206025+00:00 shinyapps[2621249]: Loaded PROJ runtime: Rel. 4.9.2, 08 September 2015, [PJ_VERSION: 492]\n2020-07-29T02:44:56.206025+00:00 shinyapps[2621249]: Path to PROJ shared files: (autodetected)\n2020-07-29T02:44:56.206025+00:00 shinyapps[2621249]: Linking to sp version:1.4-2\n2020-07-29T02:44:56.223035+00:00 shinyapps[2621249]: The following object is masked _by_ \xe2\x80\x98.GlobalEnv\xe2\x80\x99:\n2020-07-29T02:44:56.222229+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.223036+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.222232+00:00 shinyapps[2621249]: Attaching package: \xe2\x80\x98ggplot2\xe2\x80\x99\n2020-07-29T02:44:56.222232+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.223037+00:00 shinyapps[2621249]: mpg\n2020-07-29T02:44:56.223037+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.753980+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.753982+00:00 shinyapps[2621249]: Attaching package: \xe2\x80\x98plotly\xe2\x80\x99\n2020-07-29T02:44:56.753983+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.754327+00:00 shinyapps[2621249]: The following object is masked from \xe2\x80\x98package:ggplot2\xe2\x80\x99:\n2020-07-29T02:44:56.754641+00:00 shinyapps[2621249]: filter\n2020-07-29T02:44:56.754640+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.754328+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.754639+00:00 shinyapps[2621249]: The following object is masked from \xe2\x80\x98package:stats\xe2\x80\x99:\n2020-07-29T02:44:56.754949+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.754329+00:00 shinyapps[2621249]: last_plot\n2020-07-29T02:44:56.754950+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.754950+00:00 shinyapps[2621249]: layout\n2020-07-29T02:44:56.772112+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.772476+00:00 shinyapps[2621249]: The following objects are masked from \xe2\x80\x98package:stats\xe2\x80\x99:\n2020-07-29T02:44:56.772114+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.772476+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.754329+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.772477+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.754641+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.772113+00:00 shinyapps[2621249]: Attaching package: \xe2\x80\x98dplyr\xe2\x80\x99\n2020-07-29T02:44:56.754948+00:00 shinyapps[2621249]: The following object is masked from \xe2\x80\x98package:graphics\xe2\x80\x99:\n2020-07-29T02:44:56.772808+00:00 shinyapps[2621249]: The following objects are masked from \xe2\x80\x98package:base\xe2\x80\x99:\n2020-07-29T02:44:56.772808+00:00 shinyapps[2621249]: \n2020-07-29T02:44:56.772809+00:00 shinyapps[2621249]: intersect, setdiff, setequal, union\n2020-07-29T02:44:56.772477+00:00 shinyapps[2621249]: filter, lag\n2020-07-29T02:44:56.772809+00:00 shinyapps[2621249]: \n2020-07-29T02:45:08.209263+00:00 shinyapps[2621249]: trying URL \'https://www2.census.gov/geo/tiger/GENZ2018/shp/cb_2018_us_state_500k.zip\'\n2020-07-29T02:45:08.390900+00:00 shinyapps[2621249]: downloaded 3.2 MB\n2020-07-29T02:45:08.390902+00:00 shinyapps[2621249]: \n2020-07-29T02:45:08.459882+00:00 shinyapps[2621249]: OGR data source with driver: ESRI Shapefile \n2020-07-29T02:45:08.459895+00:00 shinyapps[2621249]: Source: "/srv/connect/apps/USMapWithCountyPolygon/cb_2018_us_state_500k.shp", layer: "cb_2018_us_state_500k"\n2020-07-29T02:45:08.459896+00:00 shinyapps[2621249]: with 56 features\n2020-07-29T02:45:08.459896+00:00 shinyapps[2621249]: It has 9 fields\n2020-07-29T02:45:08.459908+00:00 shinyapps[2621249]: Integer64 fields read as doubles: ALAND AWATER \n2020-07-29T02:45:11.681534+00:00 shinyapps[2621249]: Warning: `arrange_()` is deprecated as of dplyr 0.7.0.\n2020-07-29T02:45:11.681536+00:00 shinyapps[2621249]: Please use `arrange()` instead.\n2020-07-29T02:45:11.681537+00:00 shinyapps[2621249]: See vignette(\'programming\') for more help\n2020-07-29T02:45:11.681538+00:00 shinyapps[2621249]: This warning is displayed once every 8 hours.\n2020-07-29T02:45:11.681538+00:00 shinyapps[2621249]: Call `lifecycle::last_warnings()` to see where this warning was generated.\n2020-07-29T02:45:31.135291+00:00 shinyapps[system]: Out of memory!\nRun Code Online (Sandbox Code Playgroud)\n最后一行表示shinyapps 系统内存不足。在这种情况下我应该做什么来解决它?
\n您可以尝试使用仪表板或使用以下代码来增加内存大小。
rsconnect::configureApp("APPNAME", size="xlarge")
默认情况下,shinyapp.io 应用程序有 1024MB,xlarge 则高达 2048MB。最大的是xxxlarge,有8192MB。
我假设该应用程序在本地运行时可以正常工作。在本地运行时,您可以使用任务管理器或类似工具来查看应用程序的内存使用情况。您可能需要优化应用程序的内存使用情况。
| 归档时间: |
|
| 查看次数: |
4173 次 |
| 最近记录: |