title: Integrating Rserve Into A Rails Application
body: <p>This question is a follow-up to a question I posted earlier this year.</p>
  
  <p><a href="https://stackoverflow.com/questions/9287265/r-statistical-package-gem-for-a-rails-application">Integrating R Statistical Package into Rails Application</a></p>
  
  <p>Based upon the response I received, I have landed on Rserve as the means to integrate R into my rails application.  Specifically, I will:</p>
  
  <ol>
  <li>Download and <a href="http://www.r-project.org/" rel="nofollow noreferrer">Install R</a> </li>
  <li>Install the Rserve package #you install this like other R packages.</li>
  <li>Install the <a href="https://github.com/clbustos/Rserve-Ruby-client" rel="nofollow noreferrer">Rserve-Ruby Client</a></li>
  <li>Install <a href="https://github.com/jtprince/rserve-simpler" rel="nofollow noreferrer">rserver-simpler</a>  #this gems is a simpler interface to the Rserve-Ruby client.</li>
  </ol>
  
  <p>I'm running jruby via torque box and plan to use R with the mlogit package.</p>
  
  <p>My questions are:</p>
  
  <ol>
  <li>Has anyone followed a similar approach and what has been your experience. What are the gotchas</li>
  <li>How is the performance. Rserve_Ruby Client is supposed to be performant.</li>
  <li>What R packages have you used? Have you used the mlogit package.</li>
  <li>Please share any additional information you think may be helpful.</li>
  </ol>
  
  <p>Thanks for your input. </p>