install.packages("-6ren">
gpt4 book ai didi

r - R包安装错误 "This version of R is not set up to install source packages"

转载 作者:行者123 更新时间:2023-12-02 03:11:23 25 4
gpt4 key购买 nike

我想通过biocManager下载topGO。然后我遇到了“SparseM”包编译失败的问题。我尝试用brew升级gcc。但是,升级后,我无法安装任何软件包。

> install.packages("shiny")
Installing package into ‘/usr/local/lib/R/3.5/site-library’
(as ‘lib’ is unspecified)
Error in install.packages : This version of R is not set up to install source packages
If it was installed from an RPM, you may need the R-devel RPM
Warning message:
In .rs.normalizePath(libPaths) :
path[2]="/usr/local/Cellar/r/3.5.1/lib/R/library": No such file or directory

最佳答案

在终端上执行 brew Upgrade 命令后,我在使用 RStudio 时遇到了同样的问题。我只需重新启动 RStudio,它就可以正常工作。

关于r - R包安装错误 "This version of R is not set up to install source packages",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57482853/

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