Skip to content

MetaboAnalyst R instalation #345

@ezechm

Description

@ezechm

Please help. I try to instal Metaboanalyst R according to the tutorial : https://www.metaboanalyst.ca/MetaboAnalyst/docs/RTutorial.xhtml#1.2%20Installation
But it does not work.
Here is the reporter error:

metanr_packages()
[1] "No new packages added..."
devtools::install_github("xia-lab/MetaboAnalystR", build = TRUE, build_vignettes = FALSE)
Downloading GitHub repo xia-lab/MetaboAnalystR@HEAD
Skipping 9 packages not available: Biobase, pcaMethods, siggenes, MSnbase, impute, fgsea, edgeR, BiocParallel, RBGL
── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────
✔ checking for file 'C:\Users\ezechm\AppData\Local\Temp\RtmpEbwPgB\remotes38ec5204700\xia-lab-MetaboAnalystR-7f2fa2b/DESCRIPTION' ...
─ preparing 'MetaboAnalystR': (770ms)
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts (1s)
─ checking for empty or unneeded directories
─ building 'MetaboAnalystR_4.0.0.tar.gz'

  • installing source package 'MetaboAnalystR' ...
    ** using staged installation
    ** libs
    using C++ compiler: 'G__1.EXE (GCC) 13.3.0'
    using C++11
    rm -f fortran/decorana.o c/Internal_utils_batch.o c/util.o c/fastmatch.o c/nncgc.o cpp/melt.o c/mzROI.o c/xcms_binners.o Exports.o
    gfortran -O2 -mfpmath=sse -msse2 -mstackrealign -c fortran/decorana.f -o fortran/decorana.o
    gcc -I"C:/Users/ezechm/AppData/Local/Programs/R/R-44
    1.2/include" -DNDEBUG -I'C:/Users/ezechm/AppData/Local/Programs/R/R-4.4.2/library/Rcpp/include' -I"C:/RBuildTools/4.4/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -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:/Users/ezechm/AppData/Local/Programs/R/R-441.2/include" -DNDEBUG -I'C:/Users/ezechm/AppData/Local/Programs/R/R-4.4.2/library/Rcpp/include' -I"C:/RBuildTools/4.4/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c c/util.c -o c/util.o
    gcc -I"C:/Users/ezechm/AppData/Local/Programs/R/R-44
    1.2/include" -DNDEBUG -I'C:/Users/ezechm/AppData/Local/Programs/R/R-4.4.2/library/Rcpp/include' -I"C:/RBuildTools/4.4/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c c/fastmatch.c -o c/fastmatch.o
    gcc -I"C:/Users/ezechm/AppData/Local/Programs/R/R-441.2/include" -DNDEBUG -I'C:/Users/ezechm/AppData/Local/Programs/R/R-4.4.2/library/Rcpp/include' -I"C:/RBuildTools/4.4/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c c/nncgc.c -o c/nncgc.o
    c/nncgc.c: In function 'objf':
    c/nncgc.c:57:11: warning: '*c[0]' may be used uninitialized [-Wmaybe-uninitialized]
    57 | return(c[0]);
    | ~~^~~~
    g++ -std=gnu++11 -I"C:/Users/ezechm/AppData/Local/Programs/R/R-44
    1.2/include" -DNDEBUG -I'C:/Users/ezechm/AppData/Local/Programs/R/R-4.4.2/library/Rcpp/include' -I"C:/RBuildTools/4.4/x86_64-w64-mingw32.static.posix/include" -fopenmp -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c cpp/melt.cpp -o cpp/melt.o
    gcc -I"C:/Users/ezechm/AppData/Local/Programs/R/R-441.2/include" -DNDEBUG -I'C:/Users/ezechm/AppData/Local/Programs/R/R-4.4.2/library/Rcpp/include' -I"C:/RBuildTools/4.4/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c c/mzROI.c -o c/mzROI.o
    gcc -I"C:/Users/ezechm/AppData/Local/Programs/R/R-44
    1.2/include" -DNDEBUG -I'C:/Users/ezechm/AppData/Local/Programs/R/R-4.4.2/library/Rcpp/include' -I"C:/RBuildTools/4.4/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c c/xcms_binners.c -o c/xcms_binners.o
    c/xcms_binners.c:11:1: warning: "/
    " within comment [-Wcomment]
    11 | /

    |
    c/xcms_binners.c: In function '_breaks_on_binSize':
    c/xcms_binners.c:361:7: warning: unused variable 'idx' [-Wunused-variable]
    361 | int idx = 0;
    | ^~~
    g++ -std=gnu++11 -I"C:/Users/ezechm/AppData/Local/Programs/R/R-441.2/include" -DNDEBUG -I'C:/Users/ezechm/AppData/Local/Programs/R/R-4.4.2/library/Rcpp/include' -I"C:/RBuildTools/4.4/x86_64-w64-mingw32.static.posix/include" -fopenmp -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c Exports.cpp -o Exports.o
    g++ -shared -s -static-libgcc -o MetaboAnalystR.dll tmp.def fortran/decorana.o c/Internal_utils_batch.o c/util.o c/fastmatch.o c/nncgc.o cpp/melt.o c/mzROI.o c/xcms_binners.o Exports.o -fopenmp -LC:/Users/ezechm/AppData/Local/Programs/R/R-44
    1.2/bin/x64 -lRlapack -LC:/Users/ezechm/AppData/Local/Programs/R/R-441.2/bin/x64 -lRblas -lgfortran -lm -lquadmath -LC:/RBuildTools/4.4/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/RBuildTools/4.4/x86_64-w64-mingw32.static.posix/lib -LC:/Users/ezechm/AppData/Local/Programs/R/R-441.2/bin/x64 -lR
    installing to C:/Users/ezechm/AppData/Local/Programs/R/R-4.4.2/library/00LOCK-MetaboAnalystR/00new/MetaboAnalystR/libs/x64
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    ** building package indices
    ** testing if installed package can be loaded from temporary location
    Error: package or namespace load failed for 'MetaboAnalystR' in namespaceExport(ns, exports):
    undefined exports: Plot.sampletrend, plot_dist
    Error: loading failed
    Execution halted
    ERROR: loading failed
  • removing 'C:/Users/ezechm/AppData/Local/Programs/R/R-4.4.2/library/MetaboAnalystR'
    Warning message:
    In i.p(...) :
    installation of package ‘C:/Users/ezechm/AppData/Local/Temp/RtmpEbwPgB/file38ec43f53b47/MetaboAnalystR_4.0.0.tar.gz’ had non-zero exit status

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions