wenbostar / metaX

metaX: a flexible and comprehensive software for processing omics data.
21 stars 11 forks source link

metaX installation problems #1

Closed educhicano closed 6 years ago

educhicano commented 6 years ago

Dear Bo Wen, First of all, let me congratulate you for this awesome work. I’m trying to use your R package, metaX but, unfortunately I was unable to install it neither in Windows nor in OSX. It gives me the following errors in windows (10, professional ed, using RStudio): Installing package into ‘C:/Users/Eduardo Chicano/Documents/R/win-library/3.4’ (as ‘lib’ is unspecified)

These are the messages from console when I try to install in OSX (10.13 macOS High Sierra), also with R 3.4.2 and RStudio:

install.packages("metaX_1.4.16.tar.gz",repos=NULL,type="source") Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) : unknown timezone 'default/Europe/Madrid'

  • installing source package ‘metaX’ ... R inst ** preparing package for lazy loading Error : .onLoad failed in loadNamespace() for 'rgl', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgl/libs/rgl.so': dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgl/libs/rgl.so Reason: Incompatible library version: rgl.so requires version 5.0.0 or later, but libGLU.1.dylib provides version 1.3.0 ERROR: lazy loading failed for package ‘metaX’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/metaX’ Warning in install.packages : installation of package ‘metaX_1.4.16.tar.gz’ had non-zero exit status

What am I doing wrong? I’m currently using R 3.4.2, and I have installed all dependencies required for your package. I’m planning to use this package with Maldi Imaging lipidomics data but I have the data in metaboanalyst format (.csv). As far as I have read, this package loads this csv without problems, isn’t it? Thanks in advance! Best regards

wenbostar commented 6 years ago

Hi @educhicano , I'm sorry for the late reply. In Windows system, you can add the following environment variable to your system:

image

Please let me know if it works.

Bo

educhicano commented 6 years ago

Hi Bo, yes, it works! Thanks!!!!

wenbostar commented 6 years ago

Great, please feel free to let me know if you have any new questions.