Installing dplyr gives me older version

Ricky picture Ricky · Feb 19, 2015 · Viewed 8.8k times · Source

I am trying to install the latest dplyr (version 0.4.1) . But every attempt of install.packages("dplyr") over several different days result in version 0.2 installed.

> install.packages("dplyr")
Installing package into ‘C:/Users/Ricky/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://mran.revolutionanalytics.com/snapshot/2014-10-01/bin/windows/contrib/3.1/dplyr_0.2.zip'
Content type 'application/zip' length 2235535 bytes (2.1 Mb)
opened URL
downloaded 2.1 Mb

Is there any step I'm missing? Is this peculiar to Revolution Analytics user?

Session info below in case of use.

> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_Singapore.1252  LC_CTYPE=English_Singapore.1252    LC_MONETARY=English_Singapore.1252
[4] LC_NUMERIC=C                       LC_TIME=English_Singapore.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] devtools_1.6

loaded via a namespace (and not attached):
[1] tools_3.1.1

Edit: .libPaths() output added

> .libPaths()
[1] "C:/Users/Ricky/Documents/R/win-library/3.1" "C:/Program Files/RRO/R-3.1.2/library" 

Answer

Derek McCrae Norton picture Derek McCrae Norton · Feb 20, 2015

The issue is that you are using one of the snapshots of MRAN as your repository. These snapshots are put in place to make it easier to ensure reproducibility. this was probably set if you made use of the checkpoint package.

If you don't want this then you need to change your repository to not use the snapshot. For example:

install.packages("dplyr", repos = "http://mran.revolutionanalytics.com")