This is a draft strategy. It is based on based on Tal Galili's R-Statistics Blog post. "How to upgrde R on windows xp - another strategy" but modified to accomodate syncing of the R Library across multiple computers using Dropbox
0. If you've set this up already, go to step 8
1. Install R
2. Install Dropbox
3. Set up a folder in dropbox for R Library
e.g., "C:\users\rich\Dropbox\RLibrary"
4. Copy contents of R Library to folder in #3
R Library is something like
C:\Program Files\R\R-2.15.1\library\
5. Remove the original folder in #4
6. Set up a junction
This can be done by typing ...
... in a DOS shell
c:\> junction "c:\Program Files\R\R-2.15.1\library" "C:\users\rich\Dropbox\RLibrary"
> junction "c:\Program Files\R\R-2.15.1\library" "C:\users\rich\Dropbox\RLibrary"
"c:\Program Files\R\library" is a `global library folder' in the sense of Tal Galili's R-Statistics Blog post. In this version, this global library folder is actually a fake folder that points to the RLibrary folder on dropbox
7. If you upgrading to a new version of R:
open your old R and run:
source("http://www.r-statistics.com/wp-content/uploads/2010/04/upgrading-R-on-windows.r.txt")
Old.R.RunMe()
8. Open your new R and run
source("http://www.r-statistics.com/wp-content/uploads/2010/04/upgrading-R-on-windows.r.txt")
New.R.RunMe()
9. From now on, whenever upgrading R, just do step 8