Skip to content

how to run R as a daemon

1 message · Marsland, John

#
As far as I am aware NuSOAP is pure PHP and not based on Python.
The RSOAP server is based on Python. 
My understanding is that, if you want your R server to have some sort of
longevity and manage lots of competing incoming requests or possibly to keep
a session for one user over time, you will need to embed R into something
capable of doing this. It could be a queue of some description or a database
(there's an example using Postgres on the omegahat site) or a server of some
sort (RSOAP uses python here for the things R doesn't have). You could even
embed R in a PHP or an apache module, but as far as I am aware these don't
yet exist yet and would require a fair bit of programming.
R doesn't have an queue manager, but you could just leave R monitoring a
port or a stdin and just refuse requests while the R session is busy - you
run the risk of failing to satisfy some  of your web requests.

John Marsland
********************************************************************** 
This is a commercial communication from Commerzbank AG.\ \ This ... {{dropped}}