[R] R as a server on Linux

Dirk Eddelbuettel edd at debian.org
Tue Apr 24 20:40:34 CEST 2007

On Tue, Apr 24, 2007 at 02:15:43PM -0400, Markus Loecher wrote:
> Hi,
> I am trying to avid the somewhat costly startup overhead of launching 
> a separate R executable for each "client" request on Linux.
> My current architecture is such that My Java client explicitly calls 
> R in batch mode and passes it certain parameters. The initital 
> startup takes almost 10 seconds because R has to load a bunch of 
> libraries as well as a moderately large, previously created workspace.
> I am thinking that it would be so much more eficient to instead have 
> R act as a server and fork off a thread for each client query. Is 
> that possible at all ?

Yes. Google for 

       RServe		-- headless R server, has Java interface
       RApache		-- R added to Apache
Hth, Dirk       
Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison

More information about the R-help mailing list