[R] cgi/servlets/httpd in R
Samuelson, Frank*
FWS4 at CDRH.FDA.GOV
Thu May 6 17:01:25 CEST 2004
Here's a related question: Do any of the mentioned R-web interfaces
(Rweb, R-Online, CGIwithR, RSPerl) support reusing the same R process,
eliminating the startup overhead? This would be useful to me as well.
Currently I use such a method on my computing cluster: All 40
compute nodes run an R process/compute server that listens at a socket for
any
connection and subsequent commands from another computer.
When the master process disconnects, the R processes go back to listening
at the socket. Connecting to the R compute servers this way
takes < 2 milliseconds rather than the typical ~2 second R startup time.
Thanks for any tips.
-Frank
-----Original Message-----
From: Christian Lederer [mailto:christian.lederer at imse.med.tu-muenchen.de]
Sent: Thursday, May 06, 2004 10:04 AM
To: r-help at stat.math.ethz.ch
Subject: Re: [R] cgi/servlets/httpd in R
Hi,
if found that the easiest way for me doing CGI with R was
using the RSPerl package. So i could do all the CGI related things
in Perl and call R functions from Perl to do the statistics.
You can get RSPerl from http://www.omegahat.org.
If loading the data each time gives a performance problem,
i guess that you could use RSPerl together with fastcgi,
so the R initialization and loading the data would happen only
once. If you try this, i would be very interrested in your experiences.
The RSPerl package is somewhat outdated, but it worked well together
with R 1.6.0 (i didn't try newer versions).
Christian :-)
David Firth wrote:
> On Wednesday, May 5, 2004, at 18:09 Europe/London, foobar wrote:
>
>> Hi R-helpers
>>
>> Has anyone had any experience doing CGI or Servlets or using an httpd
>> server in R?
>>
>>
>
> yes. See the R FAQ, section 4. (Or maybe you already have, in which
> case I misunderstood the question...)
>
> Best wishes,
> David
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list