Shinyapps.io 发布问题:webshot 依赖库 "PhantomJS" 缺失
Shinyapps.io publish issue: webshot dependent library "PhantomJS" missing
当我将我的应用程序发布到 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 上解决它。
来自 RStudio:
"For any missing system dependencies for packages on shinyapps.io, we ask that you file an issue on our repository here: https://github.com/rstudio/shinyapps-package-dependencies clearly stating the dependency needed and the specific package you're trying to install. If this is urgent, we'd recommend filing a pull request following our steps here: https://github.com/rstudio/shinyapps-package-dependencies/blob/master/CONTRIBUTING.md"
我的跟进:
https://github.com/rstudio/shinyapps-package-dependencies/pull/180
当我将我的应用程序发布到 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 上解决它。
来自 RStudio:
"For any missing system dependencies for packages on shinyapps.io, we ask that you file an issue on our repository here: https://github.com/rstudio/shinyapps-package-dependencies clearly stating the dependency needed and the specific package you're trying to install. If this is urgent, we'd recommend filing a pull request following our steps here: https://github.com/rstudio/shinyapps-package-dependencies/blob/master/CONTRIBUTING.md"
我的跟进:
https://github.com/rstudio/shinyapps-package-dependencies/pull/180