elbamos / largeVis

An implementation of the largeVis algorithm for visualizing large, high-dimensional datasets, for R
340 stars 62 forks source link

Compilation failed in Rstudio??? #7

Closed ww880412 closed 8 years ago

ww880412 commented 8 years ago

When I use devtools install in Rstudio, It seems that compilation failed:

neighbors.cpp: In function ‘arma::mat searchTrees(const int&, const int&, const int&, const int&, const int&, const mat&, bool)’: neighbors.cpp:114:25: error: ‘regspace’ is not a member of ‘arma’ arma::vec indices = arma::regspacearma::vec(0, N - 1); ^ neighbors.cpp:114:49: error: expected primary-expression before ‘>’ token arma::vec indices = arma::regspacearma::vec(0, N - 1); ^ make: *\ [neighbors.o] Error 1 ERROR: compilation failed for package ‘largeVis’

elbamos commented 8 years ago

What version of RcppArmadillo do you have installed? That's what provides the arma:: functions. I may need up add a version to the dependency.

ww880412 commented 8 years ago

When I updated the RcppArmadillo to latest version, the error has been resolved~ (The previous version is 0.6.400)

elbamos commented 8 years ago

Ok, I will add a min version of RcppArmadillo in a bug patch shortly. You may want to try the bench branch.

elbamos commented 8 years ago

I'm going to close this now. Please reopen if the issue persists.