gpt4 book ai didi

r - 无法在最新版本的 RStudio 和 R Version.3.1.1 中安装软件包

转载 作者:行者123 更新时间:2023-12-03 05:34:33 26 4
gpt4 key购买 nike

我无法通过最新版本的 RStudio and R Version.3.1.1. 安装软件包请帮忙。我收到如下错误:

Example:
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.1
Installing package into ‘C:/Users/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.1
Warning in install.packages :
package ‘reshape’ is not available (for R version 3.1.1)

最佳答案

不能 100% 确定您有同样的问题,但我发现我的工作阻止了提供的每个镜像站点选项,并且我收到了如下错误:

Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Error in download.file(url, destfile = f, quiet = TRUE) :
unsupported URL scheme
Warning: unable to access index for repository https://rweb.crmda.ku.edu/cran/src/contrib
Warning message:
package ‘ggplot2’ is not available (for R version 3.2.2)

解决方法(我使用的是 CentOS)...

install.packages('package_name', dependencies=TRUE, repos='http://cran.rstudio.com/')

我希望这可以帮助某些人避免几个小时的挫败感。

关于r - 无法在最新版本的 RStudio 和 R Version.3.1.1 中安装软件包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25599943/

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