包e1071无法下载

时间:2017-02-05 21:56:50

标签: r rstudio cran

我希望安装VIM软件包以在RStudio中输入一些丢失的数据,但我收到相关e1071软件包的错误。

VIM包安装O.K.但相关的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

安装此软件包需要做什么?

1 个答案:

答案 0 :(得分:2)

看起来你陷入e1071包的CRAN更新之间。当您的R会话询问当前的e1071版本是什么时,它会报告(和缓存)版本1.6-7;然而,在1.6-8版本上传到CRAN之后不久。因此,R会话尝试下载1.6-7,但失败,因为只有1.6-8可用。

重新启动R应清除本地软件包列表缓存并让您继续使用。