flowCore R包安装报错

flowCore




                 from RcppExports.cpp:4:

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/BH/include/boost/get_pointer.hpp:48:40: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]

 template<class T> T * get_pointer(std::auto_ptr<T> const& p)

                                        ^~~~~~~~

In file included from /share/work/biosoft/gcc/gcc-v6.4.0/include/c++/6.4.0/memory:81:0,

                 from /share/work/biosoft/R/R-v4.2.0/lib64/R/library/RProtoBufLib/include/google/protobuf/stubs/common.h:41,

                 from /share/work/biosoft/R/R-v4.2.0/lib64/R/library/RProtoBufLib/include/google/protobuf/io/coded_stream.h:135,

                 from /share/work/biosoft/R/R-v4.2.0/lib64/R/library/RProtoBufLib/include/cytolib/GatingSet.pb.h:23,

                 from /share/work/biosoft/R/R-v4.2.0/lib64/R/library/cytolib/include/cytolib/calibrationTable.hpp:19,

                 from /share/work/biosoft/R/R-v4.2.0/lib64/R/library/cytolib/include/cytolib/transformation.hpp:17,

                 from /share/work/biosoft/R/R-v4.2.0/lib64/R/library/cytolib/include/cytolib/compensation.hpp:15,

                 from pairVectorRcppWrap.h:10,

                 from flowCore_types.h:12,

                 from RcppExports.cpp:4:

/share/work/biosoft/gcc/gcc-v6.4.0/include/c++/6.4.0/bits/unique_ptr.h:49:28: note: declared here

   template<typename> class auto_ptr;

                            ^~~~~~~~

In file included from /share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo.h:29:0,

                 from pairVectorRcppWrap.h:13,

                 from flowCore_types.h:12,

                 from RcppExports.cpp:4:

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:68:51: error: ‘subview_cols’ in namespace ‘arma’ does not name a template type

     template <typename T> SEXP wrap ( const arma::subview_cols<T>& ) ;

                                                   ^~~~~~~~~~~~

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:68:63: error: expected ‘,’ or ‘...’ before ‘<’ token

     template <typename T> SEXP wrap ( const arma::subview_cols<T>& ) ;

                                                               ^

In file included from /share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo.h:35:0,

                 from pairVectorRcppWrap.h:13,

                 from flowCore_types.h:12,

                 from RcppExports.cpp:4:

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h:57:38: error: ‘subview_cols’ in namespace ‘arma’ does not name a template type

  SEXP arma_subview_wrap( const arma::subview_cols<T>& data, int nrows, int ncols ){

                                      ^~~~~~~~~~~~

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h:57:50: error: expected ‘,’ or ‘...’ before ‘<’ token

  SEXP arma_subview_wrap( const arma::subview_cols<T>& data, int nrows, int ncols ){

                                                  ^

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h: In function ‘SEXPREC* Rcpp::RcppArmadillo::arma_subview_wrap(int)’:

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h:59:38: error: ‘nrows’ was not declared in this scope

             Rcpp::Matrix<RTYPE> mat( nrows, ncols ) ;

                                      ^~~~~

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h:59:45: error: ‘ncols’ was not declared in this scope

             Rcpp::Matrix<RTYPE> mat( nrows, ncols ) ;

                                             ^~~~~

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h:61:31: error: ‘data’ was not declared in this scope

             const T* svcmem = data.colptr(0);

                               ^~~~

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h: At global scope:

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h:99:50: error: ‘subview_cols’ in namespace ‘arma’ does not name a template type

     template <typename T> SEXP wrap( const arma::subview_cols<T>& data ){

                                                  ^~~~~~~~~~~~

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h:99:62: error: expected ‘,’ or ‘...’ before ‘<’ token

     template <typename T> SEXP wrap( const arma::subview_cols<T>& data ){

                                                              ^

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h: In function ‘SEXPREC* Rcpp::wrap(int)’:

/share/work/biosoft/R/R-v4.2.0/lib64/R/library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloWrap.h:100:53: error: ‘data’ was not declared in this scope

         return RcppArmadillo::arma_subview_wrap<T>( data, data.n_rows, data.n_cols ) ;

                                                     ^~~~

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

ERROR: compilation failed for package ‘flowCore’

* removing ‘/share/work/biosoft/R/R-v4.2.0/lib64/R/library/flowCore’



解决:

install.packages("https://cran.r-project.org/src/contrib/Archive/RcppArmadillo/RcppArmadillo_0.9.900.3.0.tar.gz", repos=NULL, type="source")

参考:https://github.com/RcppCore/RcppArmadillo/issues/249


  • 发表于 2023-04-17 13:44
  • 阅读 ( 1029 )
  • 分类:R

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
omicsgene
omicsgene

生物信息

702 篇文章

作家榜 »

  1. omicsgene 702 文章
  2. 安生水 351 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. xun 82 文章
  6. rzx 78 文章
  7. 红橙子 78 文章
  8. CORNERSTONE 72 文章