Shinyapps.io发布问题:缺少Webshot依赖库“ PhantomJS”

时间:2018-10-30 19:24:43

标签: r shiny shinyapps

当我将应用程序发布到Shinyapps.io时,遇到了以下问题:

  • PhantomJS
  • file(con,“ rb”):无法打开连接

输出pdf文件中的完整日志:

PhantomJS not found. You can install it with webshot::install phantomjs(). If it is installed, please make sure the phantomjs executable can be found via the PATH variable.
Warning in normalizePath(f2): path[1]="./webshot6c3d201217.pdf": No such file or directory 
Warning in file(con, "rb"): cannot open file ’./webshot6c3d201217.pdf’: No such file or directory
 Error in file(con, "rb"): cannot open the connection
A tibble: 0 x 2
... with 2 variables: group <chr>, sort.order <dbl>
PhantomJS not found. You can install it with webshot::install phantomjs(). If it is installed, please make sure the phantomjs executable can be found via the PATH variable.
Warning in normalizePath(f2): path[1]="./webshot6c23dc44d3.pdf": No such file or directory
Warning in file(con, "rb"): cannot open file ’./webshot6c23dc44d3.pdf’: No such file or directory
Error in file(con, "rb"): cannot open the connection

在我的本地Shiny服务器上安装PhantomJS之后,我可以成功创建PDF,但是,我不知道如何在Shinyapps.io上解决它。

1 个答案:

答案 0 :(得分:0)

从RStudio:

“对于Shinapapps.io上软件包的所有缺少的系统依赖关系,我们要求您在此处的存储库中提交问题:https://github.com/rstudio/shinyapps-package-dependencies明确说明所需的依赖关系以及您要安装的特定软件包。这很紧急,我们建议您按照此处的步骤提交拉取请求:https://github.com/rstudio/shinyapps-package-dependencies/blob/master/CONTRIBUTING.md

我的跟进:

https://github.com/rstudio/shinyapps-package-dependencies/pull/180