title: R libgfortran.3.dylib not properly linked
body: <p>I am on Mac OS X El Capitan. I have gcc. After installing <code>R</code> using homebrew - <code>brew install r</code> I am unable to get it working. This is the error I am getting: </p>
  
  <pre><code>dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/6/libgfortran.3.dylib
  Referenced from: /usr/local/Cellar/r/3.3.0_1/R.framework/Versions/3.3/Resources/lib/libR.dylib
  Reason: image not found
  Trace/BPT trap: 5
  </code></pre>
  
  <p>When I looked into the folder I found that there is only one gcc - 5. i.e.</p>
  
  <pre><code>$ ls /usr/local/opt/gcc/lib/gcc
    5
  </code></pre>
  
  <p>How can I tell R to use the above gcc rather than to look for it in 6?</p>