WangLab-MSSM / DreamAI

Imputation of missing values of a matrix or data.frame using iterative prediction model
Apache License 2.0
31 stars 7 forks source link

installation issues => ERROR: compilation failed for package 'DreamAI' #11

Closed ihorrible closed 2 years ago

ihorrible commented 2 years ago

Hi everyone! I am would like to use NAguideR (https://github.com/wangshisheng/NAguideR) which requires Dream AI package, but I cannot install the Dream AI because of the following error:

Error dreamai

remotes::install_github("WangLab-MSSM/DreamAI/Code") Downloading GitHub repo WangLab-MSSM/DreamAI@HEAD √ checking for file 'C:\Users\iataraskin\AppData\Local\Temp\RtmpiCzuU7\remotes3594182526e3\WangLab-MSSM-DreamAI-7e395b3\Code/DESCRIPTION' (477ms)

  • preparing 'DreamAI': (1s) √ checking DESCRIPTION meta-information ...
  • cleaning src
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories (339ms)
  • building 'DreamAI_0.1.0.tar.gz'

Устанавливаю пакет в ‘C:/Users/iataraskin/Documents/R/win-library/4.1’ (потому что ‘lib’ не определено)

arch - i386 "c:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-41~1.2/include" -DNDEBUG -I'C:/Users/iataraskin/Documents/R/win-library/4.1/Rcpp/include' -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c dummy.cpp -o dummy.o sh: line 1: c:/rtools40/mingw32/bin/g++: No such file or directory make: [C:/PROGRA~1/R/R-41~1.2/etc/i386/Makeconf:245: dummy.o] Error 127 ERROR: compilation failed for package 'DreamAI'

annapamma commented 2 years ago

Hi @ihorrible !

What version of R are you using? (From the error message, it looks like it might be 4.1. Can you try it with 3.5?)

And do you have Rtools installed?

Thanks!

ihorrible commented 2 years ago

Hi @ihorrible !

What version of R are you using? (From the error message, it looks like it might be 4.1. Can you try it with 3.5?)

And do you have Rtools installed?

Thanks!

Hi @annapamma Yes, I have Rtools installed. Any other options I can leave my version 4.1 ? (3.5 seems to be out of date a little bit))

ihorrible commented 2 years ago

I re-install Rtools and leave my version of R as 4.1 and now everything works )

https://github.com/wangshisheng/NAguideR/issues/2

annapamma commented 2 years ago

Thank you for the update! I'll go ahead and close this then.