Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
突然可以';t在R中安装或更新软件包_R_Windows - Fatal编程技术网

突然可以';t在R中安装或更新软件包

突然可以';t在R中安装或更新软件包,r,windows,R,Windows,我在更新和安装R软件包时遇到问题。直到最近我才能够这样做,但当我尝试连接到CRAN镜像时,突然收到以下错误消息: *--- Please select a CRAN mirror for use in this session --- Warning: failed to download mirrors file (cannot open URL 'https://cran.r-project.org/CRAN_mirrors.csv'); using local file 'C:/PROGR

我在更新和安装R软件包时遇到问题。直到最近我才能够这样做,但当我尝试连接到CRAN镜像时,突然收到以下错误消息:

*--- Please select a CRAN mirror for use in this session ---
Warning: failed to download mirrors file (cannot open URL 'https://cran.r-project.org/CRAN_mirrors.csv'); using local file 'C:/PROGRA~1/R/R-33~1.1/doc/CRAN_mirrors.csv'
Warning: unable to access index for repository https://cloud.r-project.org/src/contrib:
  cannot open URL 'https://cloud.r-project.org/src/contrib/PACKAGES'
Warning: unable to access index for repository     http://www.stats.ox.ac.uk/pub/RWin/src/contrib:
  cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'
Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) : 
  no packages were specified
   In addition: Warning message:
   In download.file(url, destfile = f, quiet = TRUE) :
      InternetOpenUrl failed: ''*
  • 我曾尝试使用base R和RStudio安装软件包,但两者都不起作用
  • 我已经检查了防火墙/代理设置,它们很好
  • 我以管理员身份打开了R和RStudio,但它不起作用
  • 我检查了整个R文件夹和程序文件中的所有子文件夹是否可写
  • 我目前正在使用R i386 3.3.1,但尝试在R 3.2.5中安装软件包,结果相同
  • 我目前正在使用Windows7
有人能提出替代方案吗?我不知道下一步该怎么办

更新为包含
sessionInfo()
输出:

R version 3.3.1 (2016-06-21)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=English_South Africa.1252  LC_CTYPE=English_South Africa.1252   
[3] LC_MONETARY=English_South Africa.1252 LC_NUMERIC=C                         
[5] LC_TIME=English_South Africa.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] tools_3.3.1

什么是
库(RCurl);exists(“google.com”)
return?>library(RCurl);exists(“google.com”)返回以下内容:库中错误(RCurl):没有名为“RCurl”的包显然您需要先安装该包。。。而你不能。我的错。您可以尝试发送ping请求吗?尝试使用
http://
镜像,而不是
https://
。例如:
options(repos=c(CRAN=)http://cloud.r-project.org"));  available.packages()
@zx8754我已经用要求的信息更新了我的帖子。我正在尝试安装软件包“lgcp”。