gpt4 book ai didi

Radiant R 无法在 Shiny 的服务器上运行

转载 作者:太空宇宙 更新时间:2023-11-03 16:56:59 24 4
gpt4 key购买 nike

根据 website 上的说明,我使用以下命令在 Ubuntu 服务器上安装了 Radiant 包。

install.packages("radiant", repos = "https://radiant-rstats.github.io/minicran/")

然后从 here 克隆 repo并将其放在 shiny server 的/srv/shiny server/文件夹中。

我可以从插件和 RStuodio 中运行 radiant,但是只要我将浏览器指向 ipaddress:3838/inst/app,我就会在浏览器中收到以下错误。

An error has occurred
The application failed to start.
The application exited during initialization.

Shiny 的服务器日志产生以下错误:

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
namespace ‘shiny’ 0.14.2 is already loaded, but >= 1.0 is required
Calls: runApp ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
Execution halted

我检查了 Shiny 的版本,它确实是最新版本,我无法确定问题所在,任何帮助。

最佳答案

就像我在评论中提到的,通常它有助于在 R 外部安装包(从命令行)。如果你有本地可用的包,你可以使用 R CMD INSTALL shiny_1.0.3.tar.gz .如果您在本地没有它,您可以使用例如 wget 下载它来自 https://cran.r-project.org/src/contrib/shiny_1.0.3.tar.gz .

关于Radiant R 无法在 Shiny 的服务器上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44131143/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com