wincowgerDEV / OpenSpecy-package

Analyze, Process, Identify, and Share, Raman and (FT)IR Spectra
http://wincowger.com/OpenSpecy-package/
Creative Commons Attribution 4.0 International
23 stars 11 forks source link

[Bug]: Can't download OpenSpecy #142

Closed valentinavan closed 11 months ago

valentinavan commented 11 months ago

Guidelines

Project Version

No response

Platform and OS Version

macOS 12.6.8

Existing Issues

No response

What happened?

The download fails either from the CRAN and GitHub, this is the error:

Downloading GitHub repo wincowgerDEV/OpenSpecy-package@HEAD
── R CMD build ─────────────────────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘/private/var/folders/q1/jvn9rtj91mq_pdyfpmjgrllr0000gn/T/RtmpH57OqR/remotes79c232269c4/wincowgerDEV-OpenSpecy-package-f4c2107/DESCRIPTION’ ...
─  preparing ‘OpenSpecy’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘OpenSpecy_1.0.2.tar.gz’

* installing *source* package ‘OpenSpecy’ ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/imager/libs/imager.so':
  dlopen(/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/imager/libs/imager.so, 0x0006): Library not loaded: '/opt/X11/lib/libX11.6.dylib'
  Referenced from: '/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/imager/libs/imager.so'
  Reason: tried: '/opt/X11/lib/libX11.6.dylib' (no such file), '/Library/Frameworks/R.framework/Resources/lib/libX11.6.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-17.0.1+12/Contents/Home/lib/server/libX11.6.dylib' (no such file)
Calls: <Anonymous> ... asNamespace -> loadNamespace -> library.dynam -> dyn.load
Execution halted
ERROR: lazy loading failed for package ‘OpenSpecy’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/OpenSpecy’
Warning message:
In i.p(...) :
  installation of package ‘/var/folders/q1/jvn9rtj91mq_pdyfpmjgrllr0000gn/T//RtmpH57OqR/file79c284dd4e1/OpenSpecy_1.0.2.tar.gz’ had non-zero exit status

Steps to reproduce

1.install.packages("OpenSpecy")

  1. if (!require(devtools)) install.packages("devtools") devtools::install_github("wincowgerDEV/OpenSpecy-package")

Expected behavior

To install it

Attachments

No response

Screenshots or Videos

No response

Additional Information

No response

zsteinmetz commented 11 months ago

Thanks @valentinavan for sharing this issue.

I'm not very familiar with macOS but I guess you're just lacking an extra dependency from your operating system. Could you try to install xquartz on your machine before having another go for the OpenSpecy installation.

Pasting brew install xquartz into your terminal should do the job.

valentinavan commented 11 months ago

Thanks @zsteinmetz . It worked by installing it from GitHub (not from the CRAN)