From Gregor.Gorjanc at bfro.uni-lj.si  Mon Jun 27 16:06:02 2005
From: Gregor.Gorjanc at bfro.uni-lj.si (Gorjanc Gregor)
Date: Mon, 27 Jun 2005 16:06:02 +0200
Subject: [Rd] Wish/suggestion: Install packages on fly via library()
Message-ID: <7FFEE688B57D7346BC6241C55900E730F3188F@pollux.bfro.uni-lj.si>

Hello!

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.



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