added R path to use the most recent version of R
modified so that I can load necessary packages using 'lib.loc' parameter