我在R中尝试安装CRAN-packages“rio”但收到以下错误:
install.packages("rio", dependencies = TRUE)
Installing package into ‘C:/software/Rpackages’
(as ‘lib’ is unspecified)
also installing the dependency ‘feather’
There is a binary version available but the source
version is later:
binary source needs_compilation
rio 0.4.0 0.4.8 FALSE
Package which is only available in source form, and may
need compilation of C/C++/Fortran: ‘feather’
These will not be installed
installing the source package ‘rio’
trying URL 'https://cran.rstudio.com/src/contrib/rio_0.4.8.tar.gz'
Content type 'application/x-gzip' length 40366 bytes (39 KB)
downloaded 39 KB
ERROR: dependency 'feather' is not available for package 'rio'
* removing 'C:/software/Rpackages/rio'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-32~1.4RE/bin/x64/R" CMD INSTALL -l "C:\software\Rpackages" C:\Users\BJRNAU~1\AppData\Local\Temp\Rtmp6rf71B/downloaded_packages/rio_0.4.8.tar.gz' had status 1
Warning in install.packages :
installation of package ‘rio’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\BjørnAugust\AppData\Local\Temp\Rtmp6rf71B\downloaded_packages’
有人可以帮我安装软件包吗?
答案 0 :(得分:4)
这是在最新版本的rio中导入羽毛的意外后果。它将很快在下一个版本的rio中发布到CRAN(v0.4.11),该版本将于2016年8月10日之前发布。与此同时,您有几个选择。
1)使用以下内容从GitHub安装开发版本:
devtools::install_github("leeper/rio")
# or
remotes::install_github("leeper/rio")
此版本(v0.4.11)使羽毛可选,因此可以在较旧的Windows版本上安装。
2)安装旧版本的rio:
packageurl <- "https://cran.r-project.org/src/contrib/Archive/rio/rio_0.4.6.tar.gz"
install.packages(packageurl, repos=NULL, type="source")
但请注意,这可能需要手动安装软件包依赖项。
3)升级到最新版本的R(v3.3.1),以便安装feather(以及rio)。