错误:软件包“ digest”是由内部版本不同的R版本安装的;需要重新安装该版本R才能使用此版本

时间:2019-02-13 11:32:25

标签: r shiny shiny-server

我将闪亮的应用程序托管在还安装了RStudio服务器的Ubuntu 16.04服务器上。可以使用localhost:3838上的演示应用程序成功访问闪亮服务器的欢迎页面。但是,当我尝试运行一个简单的应用程序(默认的闪亮的老忠实间歇泉数据):localhost:3838/test时,我得到了An error has occurred The application failed to start。应用程序在初始化期间退出。

这是在我从R.3.4升级到3.5.2之后出现的

我已经取出了一个应用程序日志,上面写着:"Error: package ‘digest’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version Execution halted"。我采取了以下步骤,但仍然是相同的错误:

  1. 完全从目录路径中卸载摘要包,然后重新安装。
  2. 卸载rjava软件包并重新安装
  3. 删除整个闪亮的服务器并重新安装

shiny-server.log:

[2019-02-13T12:03:33.048] [INFO] shiny-server - Starting listener on http://[::]:3838
[2019-02-13T12:14:20.757] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2019-02-13T12:24:50.935] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2019-02-13T12:25:32.009] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2019-02-13T12:26:14.637] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2019-02-13T12:30:02.063] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[2019-02-13T13:22:45.655] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.

shiny-application.log:

Error: package ‘digest’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
Execution halted

没有软件包失败或无法加载,但是闪亮的应用程序无法正常工作,并给出了错误。预期的输出是闪亮服务器上正在运行的应用程序

有任何帮助吗?

1 个答案:

答案 0 :(得分:0)

在R中运行此代码(在Ubuntu中使用sudo R命令)对我有用:

update.packages(checkBuilt=TRUE, ask=FALSE)

来自RStudio论坛here