title: C Stack usage error while using RSRuby with rails
body: <p>I try to use RSRuby to execute some R script within my rails project. I created a method inside a module, I call this module from a model and want to store the return value. </p>
  
  <p>When I execute this method (from the model > module) using the rails console everything works fine. But when I try to execute this same method within my rails application I get the following error:</p>
  
  <pre><code>Error: C stack usage  17589268476924 is too close to the limit
  Error: C stack usage  17589268476972 is too close to the limit
  Error: C stack usage  17589268476876 is too close to the limit
  Fatal error: unable to initialize the JIT
  </code></pre>
  
  <p>This error is not related to the R Script (I tried several very simple scripts, but get the same error regardless of the R code I execute). Does anybody have an idea how I could fix this problem?</p>
  
  <p>Apart from this error I found RSRuby the most suitable way to integrate R within Ruby, I had other problems when trying to use RinRuby (a gem load error when starting the rails server, because R could not be found). Executing code from the CLI seems inefficient and returns the output as a string, which is in this case also not feasible.</p>