2

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

  • 幻影JS
  • 文件(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 上解决它。

4

1 回答 1

1

来自 RStudio:

“对于 shinyapps.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

于 2018-11-05T20:26:57.440 回答