quanteda / quanteda.textstats

Textual statistics for quanteda
GNU General Public License v3.0
14 stars 2 forks source link

Cant install quanteda.textstats due to compiler problem #76

Open Yann-C-INN opened 6 months ago

Yann-C-INN commented 6 months ago

R version:

platform x86_64-w64-mingw32
arch x86_64
os mingw32
crt ucrt
system x86_64, mingw32
status
major 4
minor 3.2
year 2023
month 10
day 31
svn rev 85441
language R
version.string R version 4.3.2 (2023-10-31 ucrt) nickname Eye Holes

Trying to install quanteda.textstats using tar.gz since regular installation was not working (same issue eventually) : install.packages("https://cran.r-project.org/src/contrib/quanteda.textstats_0.97.tar.gz", repos=NULL, type="source")

The errors I get:

g++ -std=gnu++17  -I"C:/Users/[..]/AppData/Local/Programs/R/R-43~1.2/include" -DNDEBUG  -I'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/Rcpp/include' -I'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/RcppArmadillo/include' -I'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/quanteda/include'   -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include"  -DARMA_64BIT_WORD=1 -DTBB   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++17  -I"C:/Users/[..]/AppData/Local/Programs/R/R-43~1.2/include" -DNDEBUG  -I'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/Rcpp/include' -I'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/RcppArmadillo/include' -I'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/quanteda/include'   -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include"  -DARMA_64BIT_WORD=1 -DTBB   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c collocations.cpp -o collocations.o
In file included from collocations.cpp:1:
C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/quanteda/include/lib.h:5:10: fatal error: RcppParallel.h: No such file or directory
    5 | #include <RcppParallel.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [C:/Users/[..]/AppData/Local/Programs/R/R-43~1.2/etc/x64/Makeconf:272: collocations.o] Error 1
ERROR: compilation failed for package 'quanteda.textstats'
removing 'C:/Users/[..]/AppData/Local/Programs/R/R-4.3.2/library/quanteda.textstats'
Warning in install.packages :
  installation of package ‘C:/Users/[..]/AppData/Local/Temp/RtmpC03gUe/downloaded_packages/quanteda.textstats_0.97.tar.gz’ had non-zero exit status

quanteda is 3.3.1, and i cant seem to install the newest version