> install.packages("text2vec")
Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/text2vec_0.2.0.tar.gz'
Content type 'application/x-gzip' length 2149487 bytes (2.0 MB)
==================================================
downloaded 2.0 MB
* installing *source* package ‘text2vec’ ...
** package ‘text2vec’ successfully unpacked and MD5 sums checked
** libs
g++ -m64 -std=c++0x -I/usr/include/R -DNDEBUG -I/usr/local/include -I"/usr/lib64/R/library/Rcpp/include" -I"/usr/lib64/R/library/RcppParallel/include" -I"/usr/lib64/R/library/digest/include" -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c GloveFitter.cpp -o GloveFitter.o
In file included from GloveFitter.cpp:1:
GloveFit.h: In member function ‘double GloveFit::partial_fit(size_t, size_t, const RcppParallel::RVector<int>&, const RcppParallel::RVector<int>&, const RcppParallel::RVector<double>&, const RcppParallel::RVector<int>&)’:
GloveFit.h:111: warning: comparison between signed and unsigned integer expressions
g++ -m64 -std=c++0x -I/usr/include/R -DNDEBUG -I/usr/local/include -I"/usr/lib64/R/library/Rcpp/include" -I"/usr/lib64/R/library/RcppParallel/include" -I"/usr/lib64/R/library/digest/include" -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c HashCorpus.cpp -o HashCorpus.o
In file included from Corpus.h:1,
from HashCorpus.h:1,
from HashCorpus.cpp:1:
SparseTripletMatrix.h: In member function ‘SEXPREC* SparseTripletMatrix<T>::get_sparse_triplet_matrix(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)’:
SparseTripletMatrix.h:74: error: expected initializer before ‘:’ token
SparseTripletMatrix.h:83: error: expected ‘)’ before ‘;’ token
In file included from HashCorpus.cpp:1:
HashCorpus.h: In member function ‘void HashCorpus::insert_terms(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, int)’:
HashCorpus.h:58: error: expected initializer before ‘:’ token
HashCorpus.h:95: error: expected primary-expression at end of input
HashCorpus.h:95: error: expected ‘;’ at end of input
HashCorpus.h:95: error: expected primary-expression at end of input
HashCorpus.h:95: error: expected ‘)’ at end of input
HashCorpus.h:95: error: expected statement at end of input
HashCorpus.h:52: warning: unused variable ‘term_index’
HashCorpus.h:52: warning: unused variable ‘context_term_index’
HashCorpus.h:54: warning: unused variable ‘K’
HashCorpus.h:55: warning: unused variable ‘i’
HashCorpus.h:56: warning: unused variable ‘increment’
HashCorpus.h:95: error: expected ‘}’ at end of input
HashCorpus.h: In member function ‘void HashCorpus::insert_document_batch(Rcpp::ListOf<const Rcpp::Vector<16, Rcpp::PreserveStorage> >, int)’:
HashCorpus.h:103: error: expected initializer before ‘:’ token
HashCorpus.h:105: error: expected primary-expression before ‘}’ token
HashCorpus.h:105: error: expected ‘;’ before ‘}’ token
HashCorpus.h:105: error: expected primary-expression before ‘}’ token
HashCorpus.h:105: error: expected ‘)’ before ‘}’ token
HashCorpus.h:105: error: expected primary-expression before ‘}’ token
HashCorpus.h:105: error: expected ‘;’ before ‘}’ token
In file included from Corpus.h:1,
from HashCorpus.h:1,
from HashCorpus.cpp:1:
SparseTripletMatrix.h: In member function ‘SEXPREC* SparseTripletMatrix<T>::get_sparse_triplet_matrix(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&) [with T = float]’:
HashCorpus.h:109: instantiated from here
SparseTripletMatrix.h:73: warning: unused variable ‘n’
SparseTripletMatrix.h: In member function ‘SEXPREC* SparseTripletMatrix<T>::get_sparse_triplet_matrix(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&) [with T = unsigned int]’:
HashCorpus.h:114: instantiated from here
SparseTripletMatrix.h:73: warning: unused variable ‘n’
make: *** [HashCorpus.o] Error 1
ERROR: compilation failed for package ‘text2vec’
* removing ‘/usr/lib64/R/library/text2vec’
The downloaded source packages are in
‘/tmp/RtmptqzYpf/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("text2vec") :
installation of package ‘text2vec’ had non-zero exit status