[R] Java/C interface with R

Prof Brian D Ripley ripley at stats.ox.ac.uk
Thu Sep 16 19:14:24 CEST 1999

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.

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

More information about the R-help mailing list