我在部署闪亮应用程序时收到错误“应用程序无法启动(以代码 1 退出)”。
\n\n\n\nPreparing to deploy application...DONE\nUploading bundle for application: 365672...DONE\nDeploying bundle: 1444503 for application: 365672 ...\nWaiting for task: 533366947\nbuilding: Parsing manifest\nbuilding: Building image: 1457861\nbuilding: Fetching packages\nbuilding: Installing packages\nbuilding: Installing files\nbuilding: Pushing image: 1457861\ndeploying: Starting instances\nrollforward: Activating new instances\nsuccess: Stopping old instances\nApplication successfully deployed to \nhttps://programmingrpython.shinyapps.io/shinyapp/\nRun Code Online (Sandbox Code Playgroud)\n\n该应用程序在本地运行。但是,当我运行应用程序时,我在控制台中收到这些消息:
\n\nThe following object is masked from \xe2\x80\x98package:ggplot2\xe2\x80\x99:\n\nlast_plot\n\nThe following object is masked from \xe2\x80\x98package:stats\xe2\x80\x99:\n\nfilter\n\nThe following object is masked from \xe2\x80\x98package:graphics\xe2\x80\x99:\n\nlayout\n\nWarning in origRenderFunc() :\nIgnoring explicitly provided widget ID "52982fb160e2"; Shiny doesn\'t use them\nWarning in origRenderFunc() :\nIgnoring explicitly provided widget ID "5298324e516f"; Shiny doesn\'t use them\nRun Code Online (Sandbox Code Playgroud)\n\n我使用的软件包是:
\n\nlibrary(shiny)\nlibrary(plotly)\nlibrary(data.table)\nRun Code Online (Sandbox Code Playgroud)\n\n是因为警告信息吗?\n我已关注https://github.com/ropensci/plotly/issues/985但我仍然收到此警告。
\n\n任何人都可以建议为什么部署后显示错误消息吗?
\n小智 2
setwd()您的应用程序开头有一个函数吗?您需要在部署应用程序之前对其进行评论或删除。我总是#comment它。
注释代码中指定计算机目录本地路径的任何部分