[R] Persistent state of R

Warnes, Gregory R gregory_r_warnes at groton.pfizer.com
Tue Nov 25 16:35:47 CET 2003


Starting up R and loading libraries can be very time consuming.  For my
RSOAP system (http://www.analytics.washington.edu/Zope/projects/RSOAP/)  I
took the step of pre-starting the R process, including the loading of some
libraries, and then handing work of to the pre-started process.  You should
be able to use RSOAP from perl, and it would be a simple change to have it
add the bioconductor packages to the pre-loaded set.

Alternatively, I suppose that one could force R to dump core and then start
it from the core image...

-G

-----Original Message-----
From: michael watson (IAH-C)
To: 'r-help at stat.math.ethz.ch'
Sent: 11/25/03 8:54 AM
Subject: [R] Persistent state of R

Hi

I am using R as a back-end to some CGI scripts, written in Perl.  My
platform is Suse Linux 8.2, Apache 1.3.7.  So the CGI script takes some
form parameters, opens a pipe to an R process, loads up some
Bioconductor libraries, executes some R commands and takes the ouput and
creates a web page.  It is all very neat and works well.

I am trying to make my cgi scripts quicker and it turns out that the
bottle-neck is the loading of the libraries into R - for example loading
up marrayPlots into R takes 10-20 seconds, which although not long, is
long enough for users to imagine it is not working and start clicking
reload....

So I just wondered if anyone had a neat solution whereby I could somehow
have the required libraries permanently loaded into R - perhaps I need a
persistent R process with the libraries in memory that I can pipe
commands to?  Is this possible?

Thanks
Mick

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}




More information about the R-help mailing list