I library DirichletMultinomial (v. 1.13.3) won't load with R 3.3.0.
This is the error I get:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/DirichletMultinomial/libs/DirichletMultinomial.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.3/Resources/library/DirichletMultinomial/libs/DirichletMultinomial.so, 6): Library not loaded: /usr/local/lib/libgsl.0.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.3/Resources/library/DirichletMultinomial/libs/DirichletMultinomial.so
Reason: image not found
Error: package or namespace load failed for ‘DirichletMultinomial’
Any suggestions how to solve thi issue?
I already installed gsl using Homebrew (brew install gsl), but I still get the same error.
DirichletMultinomial is looking for the library in /usr/local/lib but brew probably installs it in a different place (under /opt). So I'd recommend removing the brew installation of gsl and installing the one from research.att.com as described above. This is the version of gsl used on CRAN and Bioconductor build systems (which do not use brew) so it should work.
So I tried what you recommended, but it is still the same. I am starting to be quite desperate. But anyways thanks for help.
So I tried what you recommended, but it is still the same. I am starting to be quite desperate. But anyways thanks for help.
Even after uninstalling the brew version and installing how you recommended I do not have file /usr/local/lib/libgsl.0.dylib
If you have Xcode command line tools installed then try installing DirichletMultinomial from source:
library(BiocInstaller)
biocLite("DirichletMultinomial", type="source")