Skip to content
Back to formatted view

Raw Message

Message-ID: <1128515751.5576.14.camel@localhost.localdomain>
Date: 2005-10-05T12:35:50Z
From: Marc Schwartz
Subject: R and Java
In-Reply-To: <200510051408.49503.jourdren@gmail.com>

On Wed, 2005-10-05 at 14:08 +0200, Laurent Jourdren wrote:
> > I am a grad student and am working on a project where i need to integrate
> > java and R. I have a front end in java and i need to call R functions and
> > be able to dispaly the plots and graphs produced by R on my java front end.
> > I came across some tools like SJava and rserve...but am not sure which best
> > suits my application. Your suggestion will be really helpful.
> 
> 
> 	The only valuable choice to integrate java and R is rserve.
> 
> 	With RSjava,  data don't persist between 2 two commands, so you can't set a 
> variable in R from java in one instruction and re-use this data in the next 
> instruction.
> 
> 	Rserve is an client/server library, client is pure java (you can easily 
> deploy it  on *nix and Windows) and each connection has its own object space 
> in R (only under *nix).
> 
> 	Laurent.


You might also want to look at JGR (a Java GUI for R) to see how they
have done things:

  http://stats.math.uni-augsburg.de/JGR/

HTH,

Marc Schwartz