Hi. I'm fairly new to RStudio, and am struggling to use the lmerTest package. The issue appears to involve the installation of the minqa package. I installed gfortran via Homebrew via Terminal, but when I attempt to install minqa, the program is looking for gfortran in the wrong location.
homebrew is installed in the following location: /opt/homebrew/bin/brew
minqa installer is looking here, which results in an error code: /opt/R/arm64/bin/gfortran -mtune=native -fno-optimize-sibling-calls -fPIC -Wall -g -O2 -c altmov.f -o altmov.o
make: /opt/R/arm64/bin/gfortran: No such file or directory
make: *** [altmov.o] Error 1
ERROR: compilation failed for package ‘minqa’
- removing ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/minqa’
Warning in install.packages :
installation of package ‘minqa’ had non-zero exit status
I've tried telling R to look in a different location (although I'm not sure about the code), but when I try to install minqa, nothing changes:
old_path <- Sys.getenv("PATH")
Sys.setenv(PATH = paste(old_path, "/opt/homebrew/bin/brew", sep = ":"))
Any help would be greatly appreciated. I'm trying to re-use and improve some old code, but can't seem to get past the install phase.