Gorjanc Gregor
2005-Jan-05 01:42 UTC
[Rd] Option for "Delete downloaded files (y/N)?" in install.packages()
Hello! I have a wish/proposal. Is it possible to include some option in install.packages() for Delete downloaded files (y/N)? at the end of that process. It can be quite anoying if you must install several packages and wait meanwhile to type y/n for each package separately. -- Lep pozdrav / With regards, Gregor GORJANC --------------------------------------------------------------- University of Ljubljana Biotechnical Faculty URI: http://www.bfro.uni-lj.si Zootechnical Department email: gregor.gorjanc <at> bfro.uni-lj.si Groblje 3 tel: +386 (0)1 72 17 861 SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia
Thomas Lumley
2005-Jan-05 01:47 UTC
[Rd] Option for "Delete downloaded files (y/N)?" in install.packages()
On Wed, 5 Jan 2005, Gorjanc Gregor wrote:> Hello! > > I have a wish/proposal. > > Is it possible to include some option in install.packages() for > Delete downloaded files (y/N)? at the end of that process. It can > be quite anoying if you must install several packages and wait > meanwhile to type y/n for each package separately. >It's been done already for the next version. The NEWS file has install.packages() no longer asks if downloaded packages should be deleted: they will be deleted at the end of the session anyway (and can be deleted by the user at any time). -thomas
Prof Brian Ripley
2005-Jan-05 07:30 UTC
[Rd] Option for "Delete downloaded files (y/N)?" in install.packages()
On Wed, 5 Jan 2005, Gorjanc Gregor wrote:> Hello! > > I have a wish/proposal. > > Is it possible to include some option in install.packages() for > Delete downloaded files (y/N)? at the end of that process. It can > be quite anoying if you must install several packages and wait > meanwhile to type y/n for each package separately.It does happen at the end of the process: you are using one call for the several packages? Something like install.packages(c("pkg1, "pkg2", "pkg3"))? In R-devel you are not asked at all, and even now you will not be asked if you specify destdir. -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Gregor GORJANC
2005-Jan-05 08:19 UTC
[Rd] Option for "Delete downloaded files (y/N)?" in install.packages()
Hello! Thanks to Thomas and Brian for answers! Prof Brian Ripley wrote: ...>> Is it possible to include some option in install.packages() for >> Delete downloaded files (y/N)? at the end of that process. It can >> be quite anoying if you must install several packages and wait >> meanwhile to type y/n for each package separately. > > It does happen at the end of the process: you are using one call for the > several packages? Something like install.packages(c("pkg1, "pkg2", > "pkg3"))?Yes, it does happen at the end of the process, but I wrote a simple script, which installs all favourite packages and it does one by one. I could modify it to use the whole list at once also, but there is apparently no need since my wish/proposal is already solved in R-devel.> > In R-devel you are not asked at all, and even now you will not be asked > if you specify destdir.Yes, I know for the last one, but then you must delete them by "hand"! -- Lep pozdrav / With regards, Gregor GORJANC --------------------------------------------------------------- University of Ljubljana Biotechnical Faculty URI: http://www.bfro.uni-lj.si Zootechnical Department mail: gregor.gorjanc <at> bfro.uni-lj.si Groblje 3 tel: +386 (0)1 72 17 861 SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia