Rstudio安装包“无法在貯藏處https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib中读写索引”问题
在安装"devtools"包是遇到。继续尝试安装包,安装成功。
·
在安装"devtools"包是遇到install.packages("devtools")报错:
Warning in install.packages :
无法在貯藏處https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib中读写索引:
cannot open URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES'
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/

解决办法:R语言:library不可写,contrib中读写索引读写索引的问题 | 码农家园
设置setRepositories,具体代码如下:
setRepositories(addURLs =c(CRANxtras = "http://cran.at.r-project.org/"))
继续尝试安装包,安装成功
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)