[R] Fwd: THANK YOU: Updating R version

John C Frain frainj at gmail.com
Sat Jul 14 18:01:20 CEST 2007


Everyone using R in Windows should look at these batch files.  Some of
them are pure genius and will speed the process.  Thanks

John

On 14/07/07, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:
> Note that the batchfiles distribution on CRAN has two batch
> programs:
>
> copydir.bat
> movedir.bat
>
> that simplify the copying portion of the procedure you
> discuss below.  They can copy or move (copying
> preserves the old directory but moving is much faster)
> each package but will not overwrite existing packages
> so the new versions of packages are preserved while the
> old ones are added.  Here is an example using copydir.
> Replace copydir with movedir below to move rather than copy:
>
>  cd \Program Files\R
>  copydir R-2.4.1\library R-2.5.0\library
>
> See the batchfiles' home page at:
>
>  http://code.google.com/p/batchfiles/
>
> The README file contains the instructions given above (and more) and
> also a number of alternative procedures that do not involve the use of
> the batchfiles.
>
> On 7/13/07, John C Frain <frainj at gmail.com> wrote:
> > ---------- Forwarded message ----------
> > From: John C Frain <frainj at gmail.com>
> > Date: 13-Jul-2007 22:30
> > Subject: Re: [R] THANK YOU: Updating R version
> > To: "Christopher W. Ryan" <cryan at binghamton.edu>
> >
> >
> > When I update R the following has worked for me (Windows XP)
> >
> > 1. Install the new version to a new directory (say C:\Program Files\R\R-2.5.1).
> >
> > 2 Rename the new library subdirectory  to library2.
> >
> > 3 Copy the entire contents of the old library subdirectory (say
> > C:\Program Files\R\R-2.4.0\library\ to the new R root to create
> > C:\Program Files\R\R-2.5.1\library\ .
> >
> > 4 Copy the contents of library2 to library to update your basic library.
> >
> > 5 Now start your new version of R and update packages from the GUI or
> > from the R console.  (You may need to firs check Rprofile .site to
> > ensure that no packages have been loaded)
> >
> > 6. On occasion I have got warning messages when I tried to load
> > packages after this procedure.  This has been cleared by running
> >
> > update.packages(checkBuilt = TRUE)
> >
> > This checks that your packages have been built with the latest
> > version.  When I do this I  agree to install all available updates.
> >
> > 7 You may wish to copy various autoloads etc from your old
> > Rprofile.site to your new Rprofile.site.  I understand that there are
> > some compatibility problems with 2.5.1 and SciViews so be careful.
> >



More information about the R-help mailing list