2009/10/25 Uwe Ligges <lig...@statistik.tu-dortmund.de> > > > Rainer M Krug wrote: > >> Hi >> >> I am using Ubuntu Hardy, and I installing many packages from source. I am >> keeping my R packages fairly up to date. >> >> My question is: is there a way, of keeping the source packages, so that >> when >> I am installing a new version of R, an update.packages(checkBuilt=TRUE) >> will >> only fetch the packages when newer ones are available, but otherwise will >> use the local copies? >> >> To rephrase it, is it possible to have some kind of local repository for >> the >> source packages which are installed, so that only packages are downloaded >> when newer ones are available? I could use destdir to specify the >> directory >> in which to save the source files of the packages, but how can I use this >> directory as a first choice, and only download if a newer version exists? >> >> Rainer >> >> > > Hi Uwe
> I think it won't work out of the box, but you can do it with little > efforts. The probably easiest way is to > > That's a pity - I think it would be an usefull feature, if this could be done automatically. > 1) make the local directory of source packages a repository by adding a > PACKAGES file using write_PACKAGES() from package tools, > 2) choose your local repository first on the list of repositories and > second a repository on a CRAN and/or BioC mirror etc., > 3) use update.packages() and it will grab from your first repository if > there is no repository with a newer version number. > > This sounds easy enough - I'll look into that. Thanks a lot, Rainer > Best, > Uwe Ligges > > > > -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)721 151 334 888 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.com [[alternative HTML version deleted]] ______________________________________________ R-help@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.