[英]Cannot install RcppArmadillo with R 4.0.3 and RedHat Linux 6.10
我刚刚在计算集群上的本地目录中安装了 R 4.0.3。
我正在使用 gcc 5.1.0 并且我已经设置了 Sys.setenv("PKG_CXXFLAGS"="-std=c++11")
rcpp 安装正常。
但是使用 RcppArmadillo,我收到了数百行这样的错误消息
../inst/include/armadillo_bits/gmm_full_meat.hpp:169:3: error: ‘rw’ is not a member of ‘arma::access’
access::rw(hefts) = in_hefts;
^
../inst/include/armadillo_bits/gmm_full_meat.hpp: In member function ‘void arma::gmm_priv::gmm_full<eT>::set_means(const arma::Base<eT, T1>&)’:
../inst/include/armadillo_bits/gmm_full_meat.hpp:191:3: error: ‘rw’ is not a member of ‘arma::access’
access::rw(means) = in_means;
^
../inst/include/armadillo_bits/gmm_full_meat.hpp: In member function ‘void arma::gmm_priv::gmm_full<eT>::set_fcovs(const arma::BaseCube<eT, T1>&)’:
../inst/include/armadillo_bits/gmm_full_meat.hpp:216:3: error: ‘rw’ is not a member of ‘arma::access’
access::rw(fcovs) = in_fcovs;
^
../inst/include/armadillo_bits/gmm_full_meat.hpp: In member function ‘void arma::gmm_priv::gmm_full<eT>::set_hefts(const arma::Base<eT, T1>&)’:
../inst/include/armadillo_bits/gmm_full_meat.hpp:246:28: error: ‘rw’ is not a member of ‘arma::access’
eT* hefts_mem = access::rw(hefts).memptr();
^
../inst/include/armadillo_bits/gmm_full_meat.hpp:253:3: error: ‘rw’ is not a member of ‘arma::access’
access::rw(hefts) /= accu(hefts);
^
../inst/include/armadillo_bits/gmm_full_meat.hpp: In member function ‘bool arma::gmm_priv::gmm_full<eT>::load(std::__cxx11::string)’:
../inst/include/armadillo_bits/gmm_full_meat.hpp:289:36: error: ‘arma_binary’ was not declared in this scope
bool status = storage.load(name, arma_binary);
^
../inst/include/armadillo_bits/gmm_full_meat.hpp:315:3: error: ‘rw’ is not a member of ‘arma::access’
access::rw(means) = storage_means;
^
../inst/include/armadillo_bits/gmm_full_meat.hpp:316:3: error: ‘rw’ is not a member of ‘arma::access’
access::rw(hefts) = storage_hefts;
^
../inst/include/armadillo_bits/gmm_full_meat.hpp:329:5: error: ‘rw’ is not a member of ‘arma::access’
access::rw(fcovs).slice(g) = storage_fcov;
^
../inst/include/armadillo_bits/gmm_full_meat.hpp: In member function ‘bool arma::gmm_priv::gmm_full<eT>::save(std::__cxx11::string) const’:
我完全迷失了。 请帮忙!
我在 RedHat 7.5 上的 R 4.0.3 上遇到了同样的问题这对我有用:
install.packages("RcppArmadillo", repos="https://rcppcore.github.io/drat")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.