R-alpha: autoload?

Kurt Hornik (Kurt.Hornik@ci.tuwien.ac.at)
Fri, 28 Mar 1997 10:19:43 +0100


Date: Fri, 28 Mar 1997 10:19:43 +0100
Message-Id: <199703280919.KAA14563@aragorn.ci.tuwien.ac.at>
From: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
To: r-testers@stat.math.ethz.ch
Subject: R-alpha: autoload?

I know it's Easter and not Christmas, but here is something that may be
nice in future releases of R:

* A way of autoloading symbols from library packages, similar to the way
Emacs does this.  E.g., if I think that I need Surv() before I can do
anything else with the survival library, I could put something like

	autoload("Surv", "survival", TRUE)

in my .Rprofile, and survival would be loaded only after I first call
Surv().

* It would also be nice if Thomas' require() and a perhaps something
like provide() would be available.

-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-