我正在尝试将单个*.Rmd
文件部署到 shinnyapps.io 并在界面中收到以下错误:
An error has occurred The application failed to start (exited with code 1). Error in enforcePackage(name, curVersion) : The rmarkdown package was not found in the library. Calls: local ... eval -> eval -> eval -> <Anonymous> -> enforcePackage Execution halted
应用程序日志如下所示:
2019-03-09T21:34:42.167089+00:00 shinyapps[778397]: Server version: 1.7.0-11 2019-03-09T21:34:42.167117+00:00 shinyapps[778397]: LANG: en_GB.UTF-8 2019-03-09T21:34:42.167118+00:00 shinyapps[778397]: R version: 3.5.2 2019-03-09T21:34:42.167120+00:00 shinyapps[778397]: httpuv version: 1.4.5.1 2019-03-09T21:34:42.167119+00:00 shinyapps[778397]: shiny version: 1.2.0 2019-03-09T21:34:42.167126+00:00 shinyapps[778397]: knitr version: NA 2019-03-09T21:34:42.167125+00:00 shinyapps[778397]: rmarkdown version: NA 2019-03-09T21:34:42.167466+00:00 shinyapps[778397]: Error in enforcePackage(name, curVersion) : 2019-03-09T21:34:42.167468+00:00 shinyapps[778397]: The rmarkdown package was not found in the library. 2019-03-09T21:34:42.167469+00:00 shinyapps[778397]: Calls: local ... eval -> eval -> eval -> <Anonymous> -> enforcePackage 2019-03-09T21:34:42.167131+00:00 shinyapps[778397]: jsonlite version: 1.6 2019-03-09T21:34:42.167137+00:00 shinyapps[778397]: RJSONIO version: NA 2019-03-09T21:34:42.167470+00:00 shinyapps[778397]: Execution halted 2019-03-09T21:34:42.167167+00:00 shinyapps[778397]: htmltools version: 0.3.6
这个应用程序以前可以正常工作,但现在由于某种原因rmarkdown
,服务器上似乎缺少包,我不知道为什么。