Error installing text2vec package


#1

I am trying to install text2vec package using the command:
install.packages("text2vec", lib = "/usr/share/R/library")

I am getting the error:

In file included from Corpus.h:17,
from HashCorpus.h:17,
from HashCorpus.cpp:17:
SparseTripletMatrix.h: In member function ‘Rcpp::S4 SparseTripletMatrix::get_sparse_triplet_matrix(Rcpp::CharacterVector&, Rcpp::CharacterVector&) [with T = float]’:
HashCorpus.h:53: instantiated from here
SparseTripletMatrix.h:91: warning: unused variable ‘n’
SparseTripletMatrix.h: In member function ‘Rcpp::S4 SparseTripletMatrix::get_sparse_triplet_matrix(Rcpp::CharacterVector&, Rcpp::CharacterVector&) [with T = int]’:
HashCorpus.h:58: instantiated from here
SparseTripletMatrix.h:91: warning: unused variable ‘n’
make: *** [HashCorpus.o] Error 1
ERROR: compilation failed for package ‘text2vec’

  • removing ‘/usr/share/R/library/text2vec’

The downloaded source packages are in
‘/tmp/RtmpEpLvyr/downloaded_packages’
Warning message:
In install.packages("text2vec", lib = "/usr/share/R/library") :
installation of package ‘text2vec’ had non-zero exit status

I tried uninstalling Rcpp, reinstalling Rcpp - no luck.
Please help.
Thanks
GK