当我将我的应用程序发布到 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 上解决它。