I am very new to R and R studio with only basic understanding. I am having trouble installing and loading bkmr package. I have updated my Mac iOS software, R, and R studio. Removed and re-installed bkmr package every time. I keep getting the following error. Of note, I put in **** where my username is to hide it.
Error: package or namespace load failed for ‘bkmr’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users//Library/R/x86_64/4.1/library/gmm/libs/gmm.so':
dlopen(/Users//Library/R/x86_64/4.1/library/gmm/libs/gmm.so, 6): Library not loaded: /usr/local/gfortran/lib/libgomp.1.dylib
Referenced from: /Users/****/Library/R/x86_64/4.1/library/gmm/libs/gmm.so
Reason: image not found