当我将我的应用程序发布到shinyapps.io时,我发现了以下问题:
输出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在本地闪亮的服务器上安装PhantomJS之后,我可以成功地创建PDF,但是,我不知道如何在shinyapps.io上解决它。
发布于 2018-11-05 20:26:57
来自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
https://stackoverflow.com/questions/53071531
复制相似问题