title: R run old version from command OSX
body: <p>I've got an application that relies on R for some scientific calculations. It is installed in OS X and R is in its default location (<code>/Library/Frameworks/R.framework</code>).</p>
  
  <p>The application needs to start Rserve (R CMD Rserve).</p>
  
  <p>This runs <code>/usr/local/bin/R</code> (which is a script that does various things) and everything works fine.</p>
  
  <p>However, when the user installs a new version of R, (R CMD Rserve) references to the new R version which has not the required packaged installed and may not work due to compatibility issues.</p>
  
  <p>How can I start Rserve in the correct version of R?</p>
  
  <p>I know that I can change all the <code>symlink</code> that link to the current R version in <code>/Library/Frameworks/R.framework</code>, however, I don't want to change the R version globally. Just my application should use the old version..</p>