在把app部署到shiny官网的云端上时,出现错误:"reticulate is in use, but python was not specified".
描述:
这个问题在GitHub的rsconnect上已经有讨论。传送门:https://github.com/rstudio/rsconnect/issues/330
这个问题是app中的包依赖了reticulate这个包,可以通过命令“rsconnect::appDependencies()”查看依赖了rsconnect的所有包。
解决问题:
之前通过重装reticulate,python等都没有解决这个问题。
查看了https://community.rstudio.com/t/deploying-to-shinyapps-io-halted-reticulate-in-use-python-not-specified/22593上的讨论之后,尝试将rsconnect降级。
移除现有的rsconnect,并且重新安装低版本的rsconnect。
devtools::install_github("rstudio/rsconnect", ref='737cd48')
重新部署app,长时间等待之后,成功^_^