安装程序包“rio”是因为

安装程序包“rio”是因为,r,cran,R,Cran,我尝试在R中安装CRAN软件包,但收到以下错误: 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

我尝试在R中安装CRAN软件包,但收到以下错误:

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’

有人能帮我安装这些软件包吗?

这是在最新版本的rio中导入feather的意外结果。它将很快在rio至CRAN v0.4.11的下一版本中正确发布,该版本应在2016年8月10日之前提供。同时,你有两个选择

1从GitHub安装开发版本,方法如下:

devtools::install_github("leeper/rio")
# or
remotes::install_github("leeper/rio")
此版本v0.4.11使feather成为可选版本,因此可在较旧的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