RE: [Rd] R as shared library

From: Warnes, Gregory R <gregory_r_warnes_at_groton.pfizer.com>
Date: Thu 26 Aug 2004 - 07:08:02 EST

Jeff,

Does apache use threads? If it does, I would recommend *not* directly putting R into the apache server for the simple reason that R is not thread-safe.

You might find it simpler (and cleaner) to use the RSOAP (http://rsoap.sf.net) interface to connect R with apache. I originally created RSOAP to get allow me to connect the ZOPE web application system's web server to R.

-Greg

> -----Original Message-----
> From: r-devel-bounces@stat.math.ethz.ch
> [mailto:r-devel-bounces@stat.math.ethz.ch]On Behalf Of Jeffrey Horner
> Sent: Friday, August 20, 2004 3:17 PM
> To: Byron Ellis
> Cc: r-devel@stat.math.ethz.ch
> Subject: Re: [Rd] R as shared library
>
>
> Byron Ellis wrote:
> > Building the callbacks is possible. Basically, you need to
> construct a
> > fake DllInfo object for Apache and then use
> R_registerRoutines to attach
> > the callbacks to R as it if were a normal R package registering its
> > routines.
> >
> > I might have a simple example of this lying around, I'll
> see if I can
> > find it (especially since it seems I'll be needing it
> myself soon :-))
>
> Yes. I thought about that, but that solution may break on future R
> releases and may hinder porting to other platforms outside of
> the UNIX
> family. I'm going to try Duncan's suggestion of a third dll
> which will
> install like a traditional R package.
>
> --
> Jeffrey Horner Computer Systems Analyst School
> of Medicine
> 615-322-8606 Department of Biostatistics Vanderbilt
> University
>
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

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



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Aug 26 07:19:05 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 08:59:23 EST