title: Specify different library path for different R version
body: <p>Different versions of R have installed in the cluster. How can I set different library path for different R version?</p>
  
  <p>UPDATE:
  Thanks to @nicola, <strong>.libPaths()</strong> or <strong>library</strong> can set library path and help R find the specific location of packages. 
  Is there any way to do this in a system wide, like some system environment value. So I can start R and find the specific location automatically.</p>