[R] R as a daemon?
mjr at stats.mth.uea.ac.uk
Wed Jan 3 12:05:46 CET 2001
kmself at ix.netcom.com writes:
> I have a GNU/Linux / Unix application in which I'd like to have an R
> process running in a persistant state, while receiving instructions (and
> data) from another process, and returning results to this process.
> Has anyone experimented with this or developed a similar solution?
I intend to work on a similar thing from Perl for release 5 of Rcgi,
but that's a little way off just yet. (Release 4 should be out this
week.) The benefits of this are obvious: one of the heaviest bits of
Rcgi is the repeated start-up of R; if maybe not as great as first
thought: after the first start, most of R will be cached in memory if
you have a reasonable amount and there's a performance loss from the
My first thought is to connect it to a local socket via a process
doing access control, some stupidity checking (such as not passing
EOFs on to R) and housekeeping. Is that sane?
MJR (Not an official statement)
Please note changes of address http://stats.mth.uea.ac.uk/
r-help 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-help-request at stat.math.ethz.ch
More information about the R-help