title: How can I load a server's specific R installation (environment module) when launching a local installation of emacs?
body: <p>I am using a cluster with <a href="http://modules.sourceforge.net/" rel="nofollow noreferrer">environment modules</a>. This means that I must specifically load any R version other than the default (2.13) so to load R 3.0.1, I have to specify </p>
  
  <pre><code>module load R/3.0.1
  R
  </code></pre>
  
  <p>I have added <code>module load R/3.0.1</code> to <code>.bashrc</code>, so that if I ssh into the server and load R, it opens 3.0.1 by default. But when I open R on the server (<code>M-x R</code>, starting data directory: <code>/ssh:myserver</code>), it loads the default R installation (2.13).</p>
  
  <p>This question is similar to previous questions except that I am accessing R on a server using a local installation of emacs.  (<a href="https://stackoverflow.com/questions/5906909/ess-to-call-different-installations-of-r">ESS to call different installations of R</a> and <a href="https://stackoverflow.com/questions/12574738/how-can-i-specify-the-r-version-opened-by-ess-session-in-emacs">How can I specify the R version opened by ESS session in emacs?</a>) </p>