title: Install.packages("ggplot2") installing older version (1.0.0)
body: <p>So I installed an old version of <code>ggplot2</code> with <code>install_version</code> from <code>devtools</code> (0.9.1 or something) to see how it worked - over the previously installed 2.0.0 version by the way. I then upgraded the version and it surprisingly gave me version 1.0.0, not the current 2.0.0. </p>
  
  <p>Now when I do an <code>install.packages("ggplot2")</code> I get the same 1.0.0. Also selecting "<code>Check for package upgrades..</code>" item from the Rstudio menu it tells me "All packages up to date".</p>
  
  <p>What gives? Isn't the newest version of <code>ggplot</code> now 2.0.0? Here is my session info:</p>
  
  <pre><code>R version 3.2.2 (2015-08-14)
  Platform: x86_64-w64-mingw32/x64 (64-bit)
  Running under: Windows 8 x64 (build 9200)
  
  locale:
  [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
  [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
  [5] LC_TIME=English_United States.1252    
  
  attached base packages:
  [1] stats     graphics  grDevices utils     datasets  methods   base     
  
  other attached packages:
  [1] devtools_1.9.1  ggplot2_1.0.0   dplyr_0.4.3     shiny_0.12.2    RevoUtils_7.5.0
  
  loaded via a namespace (and not attached):
   [1] Rcpp_0.12.2      magrittr_1.5     MASS_7.3-43      munsell_0.4.2    colorspace_1.2-6
   [6] xtable_1.8-0     R6_2.1.1         stringr_1.0.0    plyr_1.8.3       tools_3.2.2     
  [11] parallel_3.2.2   grid_3.2.2       gtable_0.1.2     DBI_0.3.1        htmltools_0.2.6 
  [16] assertthat_0.1   digest_0.6.8     reshape2_1.4.1   memoise_0.2.1    mime_0.4        
  [21] stringi_1.0-1    scales_0.3.0     jsonlite_0.9.19  httpuv_1.3.3     proto_0.3-10    
  &gt; 
  </code></pre>
  
  <p>Here are the repositories it is seeing:</p>
  
  <pre><code>&gt; AP &lt;- available.packages() 
  &gt; apdf &lt;- data.frame(AP)
  &gt; unique(apdf$Repository)
  [1] http://mran.revolutionanalytics.com/snapshot/2014-12-01/src/contrib
  [2] http://www.stats.ox.ac.uk/pub/RWin/src/contrib                     
  2 Levels: http://mran.revolutionanalytics.com/snapshot/2014-12-01/src/contrib ...
  &gt; 
  </code></pre>
  
  <h1>Update:</h1>
  
  <p>Thanks to Dirk, I see what happened. Looks like installing RRO package reset my CRAN repository. I can also sort of see why that had to be, although maybe I should have got a warning about it. From this blog entry I see how to fix it too. <a href="http://www.r-bloggers.com/permanently-setting-the-cran-repository/" rel="nofollow">http://www.r-bloggers.com/permanently-setting-the-cran-repository/</a> </p>