R Shiny中的应用程序无法启动(以代码1退出)

时间:2018-06-23 09:47:59

标签: r shiny

在部署闪亮的应用程序时,出现错误“应用程序无法启动(代码1退出)”。

Error Message 该错误消息已附加。在控制台中,部署后我收到以下消息:

Preparing to deploy application...DONE
Uploading bundle for application: 365672...DONE
Deploying bundle: 1444503 for application: 365672 ...
Waiting for task: 533366947
building: Parsing manifest
building: Building image: 1457861
building: Fetching packages
building: Installing packages
building: Installing files
building: Pushing image: 1457861
deploying: Starting instances
rollforward: Activating new instances
success: Stopping old instances
Application successfully deployed to 
https://programmingrpython.shinyapps.io/shinyapp/

应用程序在本地运行。但是,运行应用程序时,我会在控制台中收到以下消息:

The following object is masked from ‘package:ggplot2’:

last_plot

The following object is masked from ‘package:stats’:

filter

The following object is masked from ‘package:graphics’:

layout

Warning in origRenderFunc() :
Ignoring explicitly provided widget ID "52982fb160e2"; Shiny doesn't use them
Warning in origRenderFunc() :
Ignoring explicitly provided widget ID "5298324e516f"; Shiny doesn't use them

我正在使用的软件包是:

library(shiny)
library(plotly)
library(data.table)

是因为警告消息吗? 我已关注https://github.com/ropensci/plotly/issues/985,但仍收到此警告。

请问为什么部署后会显示错误消息?

2 个答案:

答案 0 :(得分:0)

我有同样的问题。我评论了创建应用程序并成功部署该应用程序的library(Shiny)行。

答案 1 :(得分:-1)

应用程序开头是否有setwd()功能?在部署应用程序之前,您需要评论或删除它。我总是#comment它。

注释代码的任何部分,这些部分在您的计算机目录中指定本地路径