Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/73.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
R 包e1071未能下载_R_Rstudio_Cran - Fatal编程技术网

R 包e1071未能下载

R 包e1071未能下载,r,rstudio,cran,R,Rstudio,Cran,我希望安装VIM软件包,以便在RStudio中输入一些缺失的数据,但我发现相关e1071软件包有一个错误 VIM软件包安装正常,但相关e1071因以下原因失败: > install.packages("e1071", dependencies = T) Installing package into ‘C:/Users/John/Documents/R/win-library/3.3’ (as ‘lib’ is unspecified) There is a binary versi

我希望安装VIM软件包,以便在RStudio中输入一些缺失的数据,但我发现相关e1071软件包有一个错误

VIM软件包安装正常,但相关e1071因以下原因失败:

> install.packages("e1071", dependencies = T)
Installing package into ‘C:/Users/John/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)

  There is a binary version available but the source version is later:
      binary source needs_compilation
e1071  1.6-7  1.6-8              TRUE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/e1071_1.6-7.zip'
Warning in install.packages :
  cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/e1071_1.6-7.zip': HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/e1071_1.6-7.zip'
Warning in install.packages :
  download of package ‘e1071’ failed

安装此软件包需要执行哪些操作?

您似乎被困在
e1071
软件包的CRAN更新之间。当您的R会话询问哪个版本的
e1071
是当前版本时,它报告(并缓存)版本1.6-7;然而,在1.6-8版被上传到CRAN之后不久。因此,R会话尝试下载1.6-7,但失败,因为当时只有1.6-8可用


重新启动R应该会清除本地包列表缓存,让您上路。

看起来
e1071
最近更新过,所以您可能需要重新启动R,然后再试一次。@Kevin Ushey,谢谢您的回答,是的,成功了!如果你想把这个作为答案,我会接受的。非常感谢。