Entering edit mode
I'm seeing a build issue with the current BiocParallel binary on macOS x86:
BiocManager::install("BiocParallel")
# Works in R, but fails in RStudio.
library(BiocParallel)
Error: package or namespace load failed for ‘BiocParallel’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/site-library/BiocParallel/libs/BiocParallel.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/site-library/BiocParallel/libs/BiocParallel.so, 0x0006): Library not loaded: /Library/Frameworks/R.framework/Versions/4.3/Resources/lib/libR.dylib
Referenced from: <BE9EB1DB-DF61-3612-B689-0B341783A2EC> /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/site-library/BiocParallel/libs/BiocParallel.so
Reason: tried: '/Library/Frameworks/R.framework/Versions/4.3/Resources/lib/libR.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/R.framework/Versions/4.3/Resources/lib/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.3/Resources/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file, not in dyld cache)
The binary build is attempting to locate libR.dylib
in the incorrect place, which should be /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libR.dylib
Best, Mike
I don't think 1.33.12 is current -- does
BiocManager::valid()
report TRUE?On my Apple Silicon Mac I just tried:
And this is working inside of RStudio. I'll check on my Intel Mac that installed 1.33.12.
On my Intel Mac, seeing this:
Aha I see the problem, the binaries are outdated:
Here's a temporary fix in case anybody else hits this:
I think this means that your RStudio has a different
.libPaths()
than your R, probably because of a configuration file, maybe~/.Rprofile
on your system.The problem here is that current binaries aren't available on macOS:
http://bioconductor.org/packages/release/bioc/html/BiocParallel.html
Safe to close when 1.34.0 is updated in the repo
Yes, thanks the build systems don't (currently... they must have at one point) have Rmpi installed so I've asked to have that corrected.
I'm not sure that this explains differences between R versus RStudio, though, which was your original question. I guess these are actually different R? Or as mentioned earlier different
.libPaths()
(you only provided one.libPaths()
above...)Sorry should have been clearer -- libPaths are the same in R and RStudio. There's something weird going on between R and RStudio's handling of missing
ldpaths
.I moved Rmpi to the 'Enhances' field, so the BiocParallel binary propagated for macOS (actually all platforms).
Does this address the problems you were having, or are there remaining issues?