RE: [R] cgi/servlets/httpd in R

About this list Date view Thread view Subject view Author view Attachment view

From: Samuelson, Frank* (FWS4@CDRH.FDA.GOV)
Date: Fri 07 May 2004 - 01:01:25 EST


Message-id: <644D9337A02FC24689647BF9E48EC39E08ABB7E6@drm556>

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@imse.med.tu-muenchen.de]
Sent: Thursday, May 06, 2004 10:04 AM
To: r-help@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@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@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@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


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:08 EST