title: How can I reinstall all R packages from the superuser to the user?
body: <p>I'm using R in Ubuntu. I've realised that I have packages installed in both <code>/usr/local/lib/R/site-library/</code> and <code>/home/sparhawk/R/x86_64-pc-linux-gnu-library/3.0/</code>. I'd prefer them all in my user directory.</p>
  
  <p>How can I move all the (non-base) packages to the user directory? I'm happy to reinstall R and/or the packages if necessary.</p>
  
  <p>I've also tried <code>sudo apt-get purge r-base</code>, but this didn't touch the root directory listed above.</p>