My R was working just fine on my command line until I tried to upgrade it with brew so I can install an R package that wasnt getting installed. After I upgraded r using
brew upgrade r
I encountered this error when I tried to call r again after the upgrade and I am not sure whats going on or how to return it back to how it was. will appreciate your help.
dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/7/libgfortran.4.dylib Referenced from: /usr/local/Cellar/r/3.4.3/lib/libR.dylib Reason: image not found Trace/BPT trap: 5