R:包dplyr的编译失败

时间:2015-08-20 20:03:31

标签: r dplyr

我试图在R版3.1.1上为RHEL安装dplyr:

    > sessionInfo()
    R version 3.1.1 (2014-07-10)
    Platform: x86_64-unknown-linux-gnu (64-bit)

    locale:
     [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
     [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
     [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
     [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
     [9] LC_ADDRESS=C               LC_TELEPHONE=C
    [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

    attached base packages:
    [1] stats     graphics  grDevices utils     datasets  methods   base

我在这里下载了dplyr的存档版本,该版本应兼容:https://cran.r-project.org/src/contrib/Archive/dplyr

    xxxxx-2.desktop% wget https://cran.r-project.org/src/contrib/Archive/dplyr/dplyr_0.2.tar.gz

但是,当我尝试安装软件包时,会出现此编译错误:

    xxxxx-2.desktop% R CMD INSTALL dplyr_0.3.tar.gz
    * installing to library â/home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1â
    * installing *source* package âdplyrâ ...
    ** package âdplyrâ successfully unpacked and MD5 sums checked
    ** libs
    g++ -I/usr/share/R-3.1.1/include -DNDEBUG -I../inst/include -DCOMPILING_DPLYR -I/usr/local/include -I"/home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include" -I"/home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/BH/include"   -fpic  -g -O2  -c RcppExports.       cpp -o RcppExports.o
    /home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/Date.h: In member function âvoid Rcpp::Date::update_tm()â:
    /home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/Date.h:108: warning: converting to âtime_tâ from âdoubleâ
    /home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/Date.h: In function âRcpp::Date Rcpp::operator+(const Rcpp::Date&, int)â:
    /home/xxxxx/R/x86_64-unknown-linux-gnu-library/3.1/Rcpp/include/Rcpp/Date.h:139: warning: converting to âtime_tâ from âdoubleâ
    ../inst/include/dplyr/JoinVisitorImpl.h: In constructor âdplyr::JoinFactorStringVisitor::JoinFactorStringVisitor(const Rcpp::IntegerVector&, const Rcpp::CharacterVector&)â:
    ../inst/include/dplyr/JoinVisitorImpl.h:177: error: invalid conversion from âconst int*â to âint*â
    ../inst/include/dplyr/JoinVisitorImpl.h: In constructor âdplyr::JoinStringFactorVisitor::JoinStringFactorVisitor(const Rcpp::CharacterVector&, const Rcpp::IntegerVector&)â:
    ../inst/include/dplyr/JoinVisitorImpl.h:238: error: invalid conversion from âconst int*â to âint*â
    make: *** [RcppExports.o] Error 1
    ERROR: compilation failed for package âdplyrâ

编辑:其他帖子提示这可能是编译器问题(https://github.com/hadley/dplyr/issues/1317),有没有办法让我更新我的编译器?

0 个答案:

没有答案