title: Update a package and keep it from reverting to the original
body: <p>I want to upgrade the package ggplot2:</p>
  
  <pre><code>library(ggplot2)
  packageDescription("ggplot2")["Version"]
  &gt; 0.8.3
  </code></pre>
  
  <p>But the current version is 0.8.7.</p>
  
  <p>I tried update.packages(), which seemed to work OK.  But it still returned older version 0.8.3.</p>
  
  <p>So I downloaded and installed the package source from Cran, which says 0.8.7 in the download page.
  I then install it via the GUI menu in R.  It returns </p>
  
  <pre><code>** building package indices ...
  * DONE (ggplot2)
  </code></pre>
  
  <p>I then run:</p>
  
  <pre><code>packageDescription("ggplot2")["Version"]
  &gt; 0.8.3
  </code></pre>
  
  <p>And still I have the older version!</p>
  
  <p>I don't know why this is not working, what's more I had already come across this problem before and solved it (I can't remember exactly what) but now it has gone back to the older version!  What's the easiest way to keep packages like this updated automatically and not have them refer back to older packages?</p>