Hey There,
I follow all the steps given by github and website but its not going to install the package. however the error I am getting as " installation of package ‘C:/Users/name/Downloads/MetaboAnalystR_3.0.3.tar.gz’ had non-zero exit status"
Could you share the code you used?
Did you try to remove any old installation if you had?
Hi, can you please provide complete R outputs?
Well, I then install R.4.2.2 an run it as administrator so now it’s working but it’s not working in R.4.2.1
Hi,
Having a similar issue- this is hwat I get:
devtools::install_github(“xia-lab/MetaboAnalystR”)
Downloading GitHub repo xia-lab/MetaboAnalystR@HEAD
checking for file ‘C:\Users\Ohm\AppData\Local\Temp\Rtmp0eF5E0\remotes3d80773dfdb\xia-lab-MetaboAnalystR-ffdb096/DESCRIPTION’ …
─ preparing ‘MetaboAnalystR’: (8.5s)
checking DESCRIPTION meta-information …
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts (1.3s)
─ checking for empty or unneeded directories
─ building ‘MetaboAnalystR_3.2.0.tar.gz’
Installing package into ‘C:/Users/Ohm/AppData/Local/R/win-library/4.2’
(as ‘lib’ is unspecified)
- installing source package ‘MetaboAnalystR’ …
** using staged installation
** libs
rm -f fortran/decorana.o c/Internal_utils_batch.o c/util.o cpp/melt.o c/fastmatch.o c/nncgc.o c/mzROI.o c/xcms_binners.o Exports.o
gfortran -fno-optimize-sibling-calls -O2 -mfpmath=sse -msse2 -mstackrealign -c fortran/decorana.f -o fortran/decorana.o
gcc -I"C:/PROGRA~1/R/R-42~1.0/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c c/Internal_utils_batch.c -o c/Internal_utils_batch.o
c/Internal_utils_batch.c: In function ‘do_decorana’:
c/Internal_utils_batch.c:114:3: warning: this ‘for’ clause does not guard… [-Wmisleading-indentation]
114 | for (i = 0, nid = 0; i < nr*nc; i++)
| ^~~
c/Internal_utils_batch.c:118:5: note: …this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
118 | int *ibegin = (int *) R_alloc(nr, sizeof(int));
| ^~~
gcc -I"C:/PROGRA~1/R/R-42~1.0/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c c/util.c -o c/util.o
g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-42~1.0/include" -DNDEBUG -I"C:/RBuildTools/4.2/x86_64-w64-mingw32.static.posix/include" -fopenmp -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c cpp/melt.cpp -o cpp/melt.o
cpp/melt.cpp:1:10: fatal error: Rcpp.h: No such file or directory
1 | #include <Rcpp.h>
| ^~~~~~~~
compilation terminated.
make: *** [C:/PROGRA~1/R/R-42~1.0/etc/x64/Makeconf:259: cpp/melt.o] Error 1
ERROR: compilation failed for package ‘MetaboAnalystR’ - removing ‘C:/Users/Ohm/AppData/Local/R/win-library/4.2/MetaboAnalystR’