У меня установлен R 2.15.2 в Linux Red Hat 6.2, и я хочу установить пакет pROC, но получаю ошибку, связанную с пакетом Rcpp. Затем я попытался установить Rcpp безуспешно. Как этого добиться? Я уже установил самую последнюю версию EPEL (epel-release-6-8.noarch.rpm). Спасибо!
> install.packages("pROC") Installing package(s) into "/usr/lib64/R/library" Warning: dependency "Rcpp" is not available trying URL 'http://cran.parentingamerica.com/src/contrib/pROC_1.7.3.tar.gz' Content type 'application/x-gzip' length 93082 bytes (90 Kb) opened URL ================================================== downloaded 90 Kb * installing *source* package "pROC" ... ** package "pROC" successfully unpacked and MD5 sums checked ** libs g++ -m64 -I/usr/include/R -DNDEBUG -I/usr/local/include -I"/usr/lib64/R/library /Rcpp/include" -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c RcppExports. cpp -o RcppExports.o RcppExports.cpp: In function "SEXPREC* pROC_delongPlacementsCpp(SEXPREC*)": RcppExports.cpp:15: error: "input_parameter" is not a member of "Rcpp::traits" RcppExports.cpp:15: error: expected primary-expression before ">" token RcppExports.cpp:15: error: "::type" has not been declared RcppExports.cpp:15: error: expected ";" before "roc" RcppExports.cpp:16: error: "roc" was not declared in this scope RcppExports.cpp: In function "SEXPREC* pROC_rocUtilsPerfsAllC(SEXPREC*, SEXPREC* , SEXPREC*, SEXPREC*)": RcppExports.cpp:30: error: "input_parameter" is not a member of "Rcpp::traits" RcppExports.cpp:30: error: expected primary-expression before ">" token RcppExports.cpp:30: error: "::type" has not been declared RcppExports.cpp:30: error: expected ";" before "thresholds" RcppExports.cpp:31: error: "input_parameter" is not a member of "Rcpp::traits" RcppExports.cpp:31: error: expected primary-expression before ">" token RcppExports.cpp:31: error: "::type" has not been declared RcppExports.cpp:31: error: expected ";" before "controls" RcppExports.cpp:32: error: "input_parameter" is not a member of "Rcpp::traits" RcppExports.cpp:32: error: expected primary-expression before ">" token RcppExports.cpp:32: error: "::type" has not been declared RcppExports.cpp:32: error: expected ";" before "cases" RcppExports.cpp:33: error: "input_parameter" is not a member of "Rcpp::traits" RcppExports.cpp:33: error: expected primary-expression before ">" token RcppExports.cpp:33: error: "::type" has not been declared RcppExports.cpp:33: error: expected ";" before "direction" RcppExports.cpp:34: error: "thresholds" was not declared in this scope RcppExports.cpp:34: error: "controls" was not declared in this scope RcppExports.cpp:34: error: "cases" was not declared in this scope RcppExports.cpp:34: error: "direction" was not declared in this scope make: *** [RcppExports.o] Error 1 ERROR: compilation failed for package "pROC" * removing "/usr/lib64/R/library/pROC" The downloaded source packages are in "/tmp/RtmpGVsd3V/downloaded_packages" Updating HTML index of packages in '.Library' Making packages.html ... done Warning message: In install.packages("pROC") : installation of package "pROC" had non-zero exit status > > install.packages("Rcpp") Installing package(s) into "/usr/lib64/R/library" (as "lib" is unspecified) Warning message: package "Rcpp" is not available (for R version 2.15.2) > > R.version platform x86_64-redhat-linux-gnu arch x86_64 os linux-gnu system x86_64, linux-gnu status major 2 minor 15.2 year 2012 month 10 day 26 svn rev 61015 language R version.string R version 2.15.2 (2012-10-26) nickname Trick or Treat [root@*********:~]$ lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: RedHatEnterpriseServer Description: Red Hat Enterprise Linux Server release 6.2