Skip to content
Prev 19240 / 20628 Next

lme4

Good afternoon,

I'm working on R studio Version 1.4.1625 in MacOs Big Sur 11.2.2.
Trying to load library(lme4) I get this answer:

Error: package or namespace load failed for ?lme4? in dyn.load(file,
DLLpath = DLLpath, ...):
 unable to load shared object
'/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/statmod/libs/statmod.so':

dlopen(/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/statmod/libs/statmod.so,
6): Library not loaded: /opt/R/arm64/gfortran/lib/libgfortran.5.dylib
  Referenced from:
/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/statmod/libs/statmod.so
  Reason: image not found


I already tried all the possible solutions suggested in some websites but
they don't work. How can I solve this problem?

Thanks in advance
Emanuele