r语言 - 安装软件包"rio"因为羽毛



我尝试在R中安装CRAN包"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:softwareRpackages" C:UsersBJRNAU~1AppDataLocalTempRtmp6rf71B/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:UsersBjørnAugustAppDataLocalTempRtmp6rf71Bdownloaded_packages’

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

这是在最新版本的rio中导入羽毛的意外结果。它将很快在rio到CRAN的下一个版本(v0.4.11(中正确发布,该版本应于2016年8月10日发布。与此同时,你有几个选择。

1( 使用以下内容从GitHub安装开发版本:

devtools::install_github("leeper/rio")
# or
remotes::install_github("leeper/rio")

此版本(0.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(。

最新更新