jalvesaq / Nvim-R

Vim plugin to work with R
GNU General Public License v2.0
968 stars 126 forks source link

Cannot install nvimcom for R on windows #782

Closed RomaLzhih closed 11 months ago

RomaLzhih commented 11 months ago

Hi there,

It seems that the nvimcom failed to be installed on windows using gcc-13.2.0:

RInitOut
* checking for file 'C:/Users/res0luti0n/AppData/Local/nvim-data/lazy/Nvim-R/R/nvimcom/DESCRIPTION' ... OK 
* preparing 'nvimcom': * checking DESCRIPTION meta-information ...
 OK 
* cleaning src 
* checking for LF line-endings in source and make files and shell scripts 
* checking for empty or unneeded directories 
* building 'nvimcom_0.9-159.tar.gz' 
gcc  -I"C:/PROGRA~1/R/R-43~1.2/include" -DNDEBUG     -I"c:/rtools43/x86_64-w64-mingw32.static.posix/include"  -D`C:/PROGRA~1/R/R-43~1.2/bin/R --slave -e 'cat(Sys.info()[[1]])'` -DLWS_NO_FORK  -DWIN32   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c nvimcom.c -o nvimcom.o 
Why build nvimcom
Nvimcom not installed
RInitErr
.build_packages() exit status 0 
* installing to library 'C:/Users/res0luti0n/AppData/Local/R/win-library/4.3' 
* installing *source* package 'nvimcom' ... 
** using staged installation 
** libs 
gcc: error: unrecognized command-line option '--slave' 
make: *** [C:/PROGRA~1/R/R-43~1.2/etc/x64/Makeconf:265: nvimcom.o] Error 1 
ERROR: compilation failed for package 'nvimcom' 
* removing 'C:/Users/res0luti0n/AppData/Local/R/win-library/4.3/nvimcom' 
Error in do_exit(status = status) : .install_packages() exit status 1 
Error in do_exit(status = status) : .install_packages() exit status 1 
Execution halted 

Any suggestions?

jalvesaq commented 11 months ago

Please, search the word "slave" in Nvim-R documentation (doc/Nvim-R.txt).