Hi, On my laptop, R is installed on windows XP SP2 at D:\Program Files\R\R-2.8.0, and all add-on packages are installed at D:\Program Files\R\R-2.8.0.libs. In addition, I have created two environment enviroment to ease upgrading and installation of packages. Packages installed is a mix of those from CRAN, Bioconductor and local zips. D:\My Document\My Desktop>echo %R_HOME% D:/Program Files/R/R-2.8.0 D:\My Document\My Desktop>echo %R_LIBS% D:/Program Files/R/R-2.8.0.libs My plans for upgrade. Please give your precious comments to make it as easy as possible, and error free. 1) Download R-2.8.1 and install at D:\Program Files\R\R-2.8.1. 2) Create a new folder D:/Program Files/R/R-2.8.1.libs, and copy all the packages from D:/Program Files/R/R-2.8.0.libs to the new one. 3) Update the two environment variables %R_HOME% and %R_LIBS% to point to the new R-2.8.1 and library 4) Execute R 5) Update CRAN packages via update.packages() 6) Update Bioconductor packages via source("http://bioconductor.org/biocLite.R") update.packages(repos=biocinstallRepos(), ask=FALSE) 7) Update local zip packages via Go to menu -> Packages -> Install packages from local zip -> select the zip file. 8) Done!!!> sessionInfo()R version 2.8.0 (2008-10-20) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 attached base packages: [1] grid tools stats graphics grDevices utils datasets methods base
I am on Vista so some of this might be slightly different on XP but I only keep one 2.8.x version, one 2.7.x version, etc. For me, all 2.8.x versions of R go into: %ProgramFiles%\R\R-2.8.x so installing R-2.8.1 is just a matter of installing it over R-2.8.0 and there is nothing more to do. In general, I let R choose the location of the libraries. It creates two libraries (one for the packages that come with R and one for the ones that I download): %ProgramFiles%\R\R-2.8.x\library %USERPROFILE%\Documents\R\win-library\2.8 I do keep separate R-2.6.x, R-2.7.x, R-2.8.x, etc. and for the corresponding libraries in win-library I use copydir.bat or movedir.bat from batchfiles. See http://batchfiles.googlecode.com I also use Rgui.bat, also from batchfiles, to start R or else click on the R icon on the Desktop. I don't make any change to my PATH nor do I create nor change any environment variables. (Rgui.bat, copydir.bat, movedir.bat, etc. can simply be placed anywhere on the existing path.) On Sat, Feb 28, 2009 at 6:23 AM, Daren Tan <darentan76 at gmail.com> wrote:> Hi, > > On my laptop, R is installed on windows XP SP2 at D:\Program > Files\R\R-2.8.0, and all add-on packages are installed at D:\Program > Files\R\R-2.8.0.libs. In addition, I have created two environment > enviroment to ease upgrading and installation of packages. Packages > installed is a mix of those from CRAN, Bioconductor and local zips. > > D:\My Document\My Desktop>echo %R_HOME% > D:/Program Files/R/R-2.8.0 > > D:\My Document\My Desktop>echo %R_LIBS% > D:/Program Files/R/R-2.8.0.libs > > My plans for upgrade. Please give your precious comments to make it as > easy as possible, and error free. > 1) Download R-2.8.1 and install at D:\Program Files\R\R-2.8.1. > 2) Create a new folder D:/Program Files/R/R-2.8.1.libs, and copy all > the packages from D:/Program Files/R/R-2.8.0.libs to the new one. > 3) Update the two environment variables ?%R_HOME% and %R_LIBS% to > point to the new R-2.8.1 and library > 4) Execute R > 5) Update CRAN packages via > update.packages() > 6) Update Bioconductor packages via > source("http://bioconductor.org/biocLite.R") > update.packages(repos=biocinstallRepos(), ask=FALSE) > 7) Update local zip packages via > Go to menu -> Packages -> Install packages from local zip -> select > the zip file. > 8) Done!!! > >> sessionInfo() > R version 2.8.0 (2008-10-20) > i386-pc-mingw32 > > locale: > LC_COLLATE=English_United States.1252;LC_CTYPE=English_United > States.1252;LC_MONETARY=English_United > States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 > > attached base packages: > [1] grid ? ? ?tools ? ? stats ? ? graphics ?grDevices utils > datasets ?methods ? base > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Daren Tan wrote:> Hi, > > On my laptop, R is installed on windows XP SP2 at D:\Program > Files\R\R-2.8.0, and all add-on packages are installed at D:\Program > Files\R\R-2.8.0.libs. In addition, I have created two environment > enviroment to ease upgrading and installation of packages. Packages > installed is a mix of those from CRAN, Bioconductor and local zips. > > D:\My Document\My Desktop>echo %R_HOME% > D:/Program Files/R/R-2.8.0 > > D:\My Document\My Desktop>echo %R_LIBS% > D:/Program Files/R/R-2.8.0.libs > > My plans for upgrade. Please give your precious comments to make it as > easy as possible, and error free. > 1) Download R-2.8.1 and install at D:\Program Files\R\R-2.8.1. > 2) Create a new folder D:/Program Files/R/R-2.8.1.libs, and copy all > the packages from D:/Program Files/R/R-2.8.0.libs to the new one. > 3) Update the two environment variables %R_HOME% and %R_LIBS% to > point to the new R-2.8.1 and library > 4) Execute R > 5) Update CRAN packages via > update.packages() > 6) Update Bioconductor packages via > source("http://bioconductor.org/biocLite.R") > update.packages(repos=biocinstallRepos(), ask=FALSE) > 7) Update local zip packages via > Go to menu -> Packages -> Install packages from local zip -> select > the zip file. > 8) Done!!!That sounds fine. If you upgrade to a new major release, you might want to run update.packages(checkBuilt=TRUE) instead. Best, Uwe Ligges>> sessionInfo() > R version 2.8.0 (2008-10-20) > i386-pc-mingw32 > > locale: > LC_COLLATE=English_United States.1252;LC_CTYPE=English_United > States.1252;LC_MONETARY=English_United > States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252 > > attached base packages: > [1] grid tools stats graphics grDevices utils > datasets methods base > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.