【问题标题】:Package e1071 fails to download包 e1071 下载失败
【发布时间】:2017-02-05 21:56:49
【问题描述】:

我希望安装 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 好像最近更新了,所以您可能只需要重新启动 R 并重试。
  • @Kevin Ushey,感谢您的回答,是的,成功了!如果您想将此作为答案发布,我会接受。非常感谢。

标签: r rstudio cran


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2020-06-29
    • 1970-01-01
    • 2019-01-04
    • 2011-07-14
    • 2014-08-03
    • 2020-02-02
    • 2017-01-24
    • 2020-11-19
    • 1970-01-01
    相关资源
    最近更新 更多