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
extra housekeeping.
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?