Hi all
Before using DESeq2, I have to install SummarizedExperiment package before.
But I load it, I get the below error message.
This is my first time to use R in Mac. I tried many ways to solve this problem, but they don't work, including re-downloading DESeq2 and restarting my computer and downloading gfortran and XQuartz.
Error: package or namespace load failed for ‘SummarizedExperiment’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/DelayedArray/libs/DelayedArray.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/DelayedArray/libs/DelayedArray.so, 0x0006): Library not loaded: '/Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libR.dylib'
Referenced from: '/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/DelayedArray/libs/DelayedArray.so'
Reason: tried: '/Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file)
Any thoughts?
Is this via RStudio? Does the same happen if you do it via the R console? So open a terminal, type
R
and then enter this? It seems it is looking for this library in the wrong place (in the 4.2 R folder rather than 4.3). What is the output of.libPaths()
? The hard solution is probably to remove/Library/Frameworks/R.framework/
entirely and then install R freshly from scratch. When you sayfirst time
does that mean that R 4.2 has never been installed on this Mac before?Thank you for helping. Yes it's via RStudio and it happens when I use R console. I had tried to remove the entire R framework and reinstall R and RStudio, but nothing changed. The first time means R 4.2 was never used on this Mac.