我希望安装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我需要做什么才能安装这个包?
发布于 2017-02-07 08:10:16
看起来你被e1071包的CRAN更新卡住了。当您的R会话询问e1071的当前版本时,它报告(并缓存)版本1.6-7;然而,在版本1.6-8被上传到CRAN之后不久。因此,R会话尝试下载1.6-7,但失败了,因为当时只有1.6-8可用。
重新启动R应该会清除本地软件包列表缓存,并让您上路。
https://stackoverflow.com/questions/42057802
复制相似问题