What is the proper set up instructions for enabling gfortran for packages? My set up is
macOS Mojave 10.14.1
/Library/Developer/CommandLineTools # xcode-select -p
XQuartz 2.7.11
Microsoft R Open Feather Spray 3.5.1
clang version 6.0.0
GNU Fortran (Homebrew GCC 8.2.0) 8.2.0 # I have 6.1 in /usr/local/gfortran
Attempting to install any package that relies on gfortran gives
It may be as simple as moving /usr/local/gfortran closer to the top of $PATH. I went through something similar in August. Sorry I didn't keep notes, but I don't recall any special trauma.
The best way is to edit .profile or .bash_profile to move your preferred version path to the head of the line. I'll assume, for the sake of illustration that it lives in /usr/bin.
The issue is that I don't know where gfortran 6.1 gets installed. I use the pkg image and it indicates the version should be available at /usr/local/bin/gfortran but every time I check it calls the system on
Tardis:~ jbsc$ gfortran --version
GNU Fortran (Homebrew GCC 8.2.0) 8.2.0
I'm working on using a standalone gfortran installer to make sure it doesn't break anything before recommending it to you. In the meantime, is there a reason why you're using Microsoft R Open Feather Spray 3.5.1 rather than the CRAN Mac binary? The Comprehensive R Archive Network Finally, what's an example of a gfortran package that throws this error?