R Statistical Package Gem For A Rails Application
I'm looking to integrate the R Statistical package into my rails application. My research has uncovered RSRuby, RinRuby and the Rserve Ruby client. It would be great to get some feedback from those of you who have you used these or other options and to get a better ideas of the pluses and minuses of each option. I have also heard Gauss is an alternative, but I am not aware of any ruby interfaces at this point.
My primary applications will be multinomial logit and probit models. If that's helpful.
Thanks in advance for your input.
RSRuby takes the approach of embedding the R interpreter into Ruby as a C extension. It only works on specific versions of ruby, so if you are using JRuby or Rubinius this is not really an option for you. It is definitely the fastest, although some class conversions get a little weird.
RinRuby and Rserve Ruby both use TCP/IP sockets, although Rserve claims to be 5-10 times faster.
I would giving RSRuby a try, and if you encounter problems with your ruby version or such, switching to Rserve. I am not familiar with Gauss.
Heads up- as far as I know, none of these solutions support multi threading, largely because R doesn't play nice with other instances of itself.
链接地址: http://www.djcxy.com/p/61712.html