[Rd] Wish/suggestion: Install packages on fly via library()

From: Gorjanc Gregor <Gregor.Gorjanc_at_bfro.uni-lj.si>
Date: Mon 27 Jun 2005 - 14:06:02 GMT


I thought that installation of missing packages on fly via library() would be a nice thing to have. Something like this:

if (missing(pkg) && getOption("installOnFly")) {   install.packages(pkg, ...)

I did look into library() function to find appropriate place for code similar to on above but library() it's massively long and I really don't ... you know.

Thanks for remarkable tool.

Lep pozdrav / With regards,

    Gregor Gorjanc

University of Ljubljana
Biotechnical Faculty        URI: http://www.bfro.uni-lj.si/MR/ggorjan
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, Europe

"One must learn by doing the thing; for though you think you know it,  you have no certainty until you try." Sophocles ~ 450 B.C.

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Jun 28 00:10:29 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:22 GMT