title: cannot allocate vector of size n MB in R while executing through Java
body: <p>I am facing an error while executing R code through java using Rengine. I don't know how to set max memory in java code using Rengine. Is there a way to set max memory for Rengine? May be like below</p>
  
  <pre><code>Rengine re = getREngine();
  re.eval("options(java.parameters = '-Xmx10g')", false);
  </code></pre>
  
  <p>I know this is wrong syntax. Kindly guide me how to set this.</p>