Skip to content

RSPerl and Statistics::R

3 messages · Daniel Klein, Duncan Temple Lang, Stefan Evert

#
RSPerl is not abandonded, but I haven't had much time to work on it.

If you can send me an example to reproduce the race condition, we can 
probably think about a solution.

  D.
Daniel Klein wrote:
#
I have been using RSPerl for quite a long time, and for the same  
purpose as you (i.e. I'm only interested in running R from Perl, not  
vice versa).  I've had to hack practically every release of RSPerl to  
get it to build and install on my computers, especially on Mac OS X  
(where the R build process is completely at odds with universal  
binaries and the default Perl configuration).  Once installed, it's  
been very fast and reliable, though, at least for simple operations  
(basically, I want to pass numeric vectors between R and Perl and  
apply R functions to them).

When I became aware of Statistics::R, I was surprised about its  
extremely simple approach, because I expected this design to run afoul  
of all sorts of race conditions, buffers not being flushed, etc.;  
which your posting appears to confirm.  In my own software, I use  
Perl's Expect module as a fallback, but this is _extremely_ inefficient.
With all the problems that RSPerl has -- and they're mostly related to  
using R from Perl AFAIK -- I'm wondering if it wouldn't make for  
people like us to develop a Perl client for the Rserve protocol (see http://www.rforge.net/Rserve/) 
.


Best,
Stefan Evert

[ stefan.evert at uos.de | http://purl.org/stefan.evert ]