title: Compiling R from source: RStudio doesn't find the libraries if started directly
body: <p>I have compiled R 4.1.0 from source against the Intel MKL.</p>
  <p>I have put:</p>
  <pre><code>source /opt/intel/oneapi/mkl/latest/env/vars.sh intel64
  </code></pre>
  <p>in <code>~/.bashrc</code>.</p>
  <p>If I open a <code>.R</code> file with RStudio, no problem.</p>
  <p>But if I open RStudio directly, it is unable to start R correctly, giving me the error:</p>
  <pre><code>/usr/lib/rstudio/bin/rsession: error while loading shared libraries: libmkl_gf_lp64.so.1: cannot open shared object file: No such file or directory
  </code></pre>
  <p>Why is that? Doesn't RStudio run <code>~/.bashrc</code> when started directly?</p>
  <p>I am running Fedora 34 Workstation.</p>