[R] Java/C interface with R

Lionel Siau cyls98 at doc.ic.ac.uk
Fri Sep 17 13:00:24 CEST 1999


Hi,

Are are u activating the R process via web browser with a CGI(Perl? C?) or java
servlet or rmi?

I'm thinking of writing a application for data mining/statistical analysis using
JavaBeans which access R(with JNI) and display some fancy Java graphics. Everything
to be done on a linux system. Is there anything similar going on?

Lionel

> Prof Brian D Ripley wrote:
> >
> > On Thu, 16 Sep 1999, Thomas Lumley wrote:
> >
> > > On Thu, 16 Sep 1999, Lionel Siau wrote:
> > >
> > > > Hi,
> > > >
> > > > I'm rarther curious if it is possible to interface C or Java GUIs with
> > > > the underlying R statistical engine. SPLUS has something like this in
> > > > S+SDK.
> > >
> > > Up to a point.  The Gnome and Windows ports use R as a backend library and
> > > feed commands to it from a GUI frontend. You could do something similar.
> >
> > (The Windows version has a documented plug-in interface for its DLL. It is
> > not quite as simple as Thomas paints it, as both the front and back ends
> > need to run event loops.)
> >
> > > Also, a .Java() interface may be available Real Soon Now to allow popping
> > > up Java things from R functions.  I am currently doing something like this
> > > only less elegant with sockets to control dynamic graphics in Java.
> >
> > I think the future of this has to be inter-process communications,
> > like CORBA or (shudder) (D)COM.  There is some example code for the latter
> > on Windows, which should appear in the next release: we can let you
> > see a version shortly if you really want to get on with it. (It works well,
> > but it does not handle errors well yet).  And an R/CORBA interface
> > is also under construction, I understand.
>
> That's really exciting! I am creating (another) R web interface,
> this time using an long-running R subprocess(the other existing
> R web servers start one R process per request). But the subprocess
> will end if the submited source has any error. An R/CORBA interface
> with good error handling will be great for web integration.
>
> >
> > --
> > Brian D. Ripley,                  ripley at stats.ox.ac.uk
> > Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> > University of Oxford,             Tel:  +44 1865 272861 (self)
> > 1 South Parks Road,                     +44 1865 272860 (secr)
> > Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> >
> > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> > Send "info", "help", or "[un]subscribe"
> > (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list