Hello!
I recently updated R and R-studio to the newest version of R. However, now that I've done so, I am unable to load any packages. For example, after installing edgeR, I get the following error:
Loading required package: limma
Error: package or namespace load failed for ‘edgeR’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/edgeR/libs/edgeR.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/edgeR/libs/edgeR.so, 0x0006): Library not loaded: '/opt/gfortran/lib/gcc/x86_64-apple-darwin20.0/12.2.0/libgfortran.5.dylib'
Referenced from: '/Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/library/edgeR/libs/edgeR.so'
Reason: tried: '/opt/gfortran/lib/gcc/x86_64-apple-darwin20.0/12.2.0/libgfortran.5.dylib' (no such file), '/usr/local/lib/libgfortran.5.dylib' (no such file), '/usr/lib/libgfortran.5.dylib' (no such file)
I have tried uninstalling and reinstalling R and R studio, as well as trying to run these commands in R instead of R studio, but I still get the same error.
Any help is much appreciated! Thank you!