因为羽毛安装包“rio”

问题描述 投票:0回答:1

我尝试在 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:\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’

谁能帮我安装包?

r cran r-rio
1个回答
4
投票

这是在最新版本的 rio 中导入羽毛的意外结果。它将在 CRAN 的下一个 rio 版本(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)。

© www.soinside.com 2019 - 2024. All rights reserved.