闪亮的部署错误

时间:2017-06-07 17:36:43

标签: shiny

当我尝试在shinyapps.io部署我的闪亮应用程序时,我得到以下错误:

> deployApp()
Preparing to deploy application...DONE
Uploading bundle for application: 187055...DONE
Deploying bundle: 857060 for application: 187055 ...
Waiting for task: 416072120
  building: Processing bundle: 857060
  building: Parsing manifest
  building: Building image: 849457
  building: Installing system dependencies
################################ Begin Task Log ################################ 
[2017-06-07T17:28:40.200495546+0000] Execute script: packages/build/nloptr.sh
+ set -e
+ VERSION=2.4.2
+ cd /tmp
+ curl -O http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 416072122 failed: Error building image: Build exited with non-zero status: 56

有没有人遇到过这个错误。感谢有人帮我解决这个问题。我使用的是R版本3.4.0

谢谢,

1 个答案:

答案 0 :(得分:1)

您的应用看起来需要NLopt,但shinyapps.io无法安装该软件包。软件包安装似乎是一些shell脚本,可能无法在shinyapps.io服务器上运行(因为权限等)。

Basically the deployment process scan your file and environment,然后尝试复制服务器中的依赖包。如果您使用CRAN版本,服务器也将安装CRAN版本,不需要从源代码构建或运行某些shell脚本。如果您使用github版本服务器也将尝试使用github版本或从源代码构建,这可能有更多的依赖性要求。

另一种可能性是R包只是界面,你需要安装实际的库,它无法安装在服务器中。

  

R包通常依赖于操作系统包   安装在服务器上。如果您的应用程序恰好使用R   需要未安装的系统库的软件包   默认情况下,请通过提交问题或拉取请求告知我们   shinyapps-package-dependencies