title: RCaller throws java.io.IOException/ExecutionException
body: <p>When I want to run some code through RCaller, Java throws the following exception:</p>
  
  <pre><code>Exception in thread "JavaFX Application Thread" com.github.rcaller.exception.ExecutionException: Can not send the source code to R file due to: java.io.IOException: The pipe is being closed Maximum number of retries exceeded.
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>protected void initialize(){
      if (!System.getProperty("os.name").contains("Windows")){
          rscript = rscript.replace("\\","/");
          r = r.replace("\\","/");
      }
      out.println(rscript + "\n" + r);
      caller = RCaller.create(RCallerOptions.create(rscript,r,FailurePolicy.RETRY_1,500,500,RProcessStartUpOptions.create()));
  }
  
  private void calculateIntegral(String newValue){
      RCode rCode = RCode.create();
      rCode.addRCode("func &lt;- function (x) (" + newValue + ")");
      rCode.addRCode("x &lt;- integrate(func," + from.getValue() + "," + to.getValue() + ")");
      caller.setRCode(rCode);
      caller.runAndReturnResult("x"); &lt;- This is where I get the Exception
      value.setText(String.valueOf(caller.getParser().getAsDoubleArray("x")[0]));
  }
  </code></pre>
  
  <p>I checked my R installation and it seems to be fine</p>
  
  <p>Edit:
  <br>
  I also tried concatenating rscript and r with "\"" like so:</p>
  
  <pre><code>rscript =  "\"" + rscript +  "\"";
  r =  "\"" + r +  "\"";
  </code></pre>
  
  <p>And it didn´t work either :(</p>
  
  <p>Edit 2:
  <br>
  When I try generating a plot like this:</p>
  
  <pre><code>rCode.addRCode("plot(func)");
  </code></pre>
  
  <p>Java still throws an exception but also generates a pdf with the plot inside</p>
  
  <p>Also...I´m slowly giving up on R...is there another method of calculating integrals from a mathematical function given as a string in Java?</p>