【问题标题】:Error in installing "hadley/bigvis"安装“hadley/bigvis”时出错
【发布时间】:2015-01-29 15:20:13
【问题描述】:
find_rtools()

[1] TRUE

Sys.which( "g++" )
g++ 
"C:\\PROGRA~1\\MINGW-~1\\X86_64~1.2-P\\mingw64\\bin\\G__~1.EXE" \
devtools::install_github("hadley/bigvis")\

Downloading github repo hadley/bigvis@master\
Installing bigvis

"F:/PROGRA~1/R-31~1.2/bin/x64/R" --vanilla CMD INSTALL  

  "C:/Users/Qiuyang/AppData/Local/Temp/Rtmp2JMGDL/devtools33f847ad29a4/hadley-bigvis-1cdfdc2"  

  --library="F:/Program files/R-3.1.2/library" --install-tests 

    (omit some lines)

make: *** [group.o] Error 1

Warning: running command 'make -f "Makevars.win" -f "F:/PROGRA~1/R-31~1.2/etc/x64/Makeconf" -f "F:/PROGRA~1/R-31~1.2/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="bigvis.dll" WIN=64 TCLBIN=64 OBJECTS="BigVis.o BinnedVector.o BinnedVectors.o RcppExports.o Summary2d.o condense.o double-diff-sum.o frange.o group.o lowerBound.o smooth-nd.o stats.o summary.o"' had status 2

ERROR: compilation failed for package 'bigvis'

* removing 'F:/Program files/R-3.1.2/library/bigvis'

Error: Command failed (1)

install.packages("bigvis-master", repos = NULL, type = "source")

Warning: invalid package 'bigvis-master'

Error: ERROR: no packages specified

Warning messages:

1: running command '"F:/PROGRA~1/R-31~1.2/bin/x64/R" CMD INSTALL -l "F:\Program files\R-3.1.2\library" "bigvis-master"' had status 1 

2: In install.packages("bigvis-master", repos = NULL, type = "source") :
  installation of package ‘bigvis-master’ had non-zero exit status

以前的答案有链接。但是,它们都不适合我。

Is the bigvis package for R not available for R version 3.0.1?

【问题讨论】:

    标签: r github


    【解决方案1】:

    我遇到了完全相同的问题,我认为这是与最新版本的 Rcpp 不兼容。对我来说,我使用 Rcpp 0.11.3 时安装了 bigvis,可从

    获得

    http://cran.r-project.org/src/contrib/Archive/Rcpp/

    您需要复制 zip 文件并从源代码安装。

    希望它也对你有用。

    【讨论】:

    • 好。至少你给了我一个合理的解释。 :) 但现在我无法安装 rcpp 0.11.3。
    • 这些是我使用的命令: library(installr) install.Rtools() remove.packages("Rcpp") # 编辑下一行的路径,告诉它你在哪里 # 保存 Rcpp_0.11.3 .tar.gz install.packages("Rcpp_0.11.3.tar.gz", repos = NULL, type = "source") devtools::install_github("hadley/bigvis")
    • install.packages("Rcpp_0.11.3.tar.gz",repos=NULL,type="source") (省略) make: *** [Date.o] Error 1 Warning: running command 'make -f "Makevars.win" (省略...) 状态为 2。
    • 你的路径中有 Rtools 吗?
    • > library("devtools") > find_rtools() [1] TRUE
    【解决方案2】:

    我今天遇到了类似的问题,鉴于最终对我有用,请仔细检查您使用的是 RTools 3.1Rcpp 0.11.3

    在 Rcpp 的情况下,我安装了最新版本,然后从上面的链接下载了 0.11.3。无需删除最新版本,我只需输入以下命令:

    install.packages("Rcpp_0.11.3.tar.gz", repos = NULL, type = "source")
    

    一旦我同时拥有 RTools 3.1 和 Rcpp 0.11.3,devtools::install_github('hadley/bigvis') 就可以正常工作了。

    希望这会有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-12
      • 2013-10-05
      • 2013-08-15
      • 2013-11-13
      • 2017-10-02
      相关资源
      最近更新 更多