not able to install snahelper because of its dependency on graphlayouts
tedmoorman opened this issue · comments
This is the message I received from a system admin. Please let me know if I could provide more details:
"not able to install snahelper because its dependency 'graphlayouts' kept giving me an error. I tried installing a lower version of graphlayouts, but still no luck"
If you give me the exact error message, then I can have a look what goes wrong. Hard to say otherwise.
Here is the complete error message:
- installing source package ‘graphlayouts’ ...
** package ‘graphlayouts’ successfully unpacked and MD5 sums checked
** libs
sparseStress.cpp: In function ‘Rcpp::NumericMatrix sparseStress(Rcpp::NumericMatrix, Rcpp::NumericMatrix, Rcpp::List, Rcpp::IntegerVector, arma::sp_mat, int)’:
sparseStress.cpp:72:7: error: ‘const_col_iterator’ is not a member of ‘arma::sp_mat {aka arma::SpMat}’
arma::sp_mat::const_col_iterator start = A.begin_col(i);
^
sparseStress.cpp:72:40: error: expected ‘;’ before ‘start’
arma::sp_mat::const_col_iterator start = A.begin_col(i);
^
sparseStress.cpp:73:7: error: ‘const_col_iterator’ is not a member of ‘arma::sp_mat {aka arma::SpMat}’
arma::sp_mat::const_col_iterator end = A.end_col(i);
^
sparseStress.cpp:73:40: error: expected ‘;’ before ‘end’
arma::sp_mat::const_col_iterator end = A.end_col(i);
^
sparseStress.cpp:74:11: error: ‘const_col_iterator’ is not a member of ‘arma::sp_mat {aka arma::SpMat}’
for(arma::sp_mat::const_col_iterator k = start; k != end; ++k){
^
sparseStress.cpp:74:44: error: expected ‘;’ before ‘k’
for(arma::sp_mat::const_col_iterator k = start; k != end; ++k){
^
sparseStress.cpp:74:55: error: ‘k’ was not declared in this scope
for(arma::sp_mat::const_col_iterator k = start; k != end; ++k){
^
sparseStress.cpp:74:60: error: ‘end’ was not declared in this scope
for(arma::sp_mat::const_col_iterator k = start; k != end; ++k){
^
make: *** [sparseStress.o] Error 1
ERROR: compilation failed for package ‘graphlayouts’
hmm this may be a problem unrelated to the graphlayouts package. Maybe you need to update the RcppArmadillo package? What version are you using? Also, are you on Windows/Mac or Linux?
RcppArmadillo package is the 2018-Mar-01 version. I'll see if I can get that updated.
As for R, it's 3.5.3, and it's on Linux.
that version could be too old. please let me know if updating fixes it so I can update the DESCRIPTION file
In the words of my admin, "That worked! (for 3.5.3 and the majority of the R versions we have)". Thank you for the suggestion!