Open GoogleCodeExporter opened 8 years ago
There are a few things I've discovered in trying to solve this problem. The
class RCaller could benefit from a couple of changes:
the method runAndReturnResultOnline loops until a clean parse is established.
Unforunately, it currently appends the output file command on each iteration,
so they build up in the script that is sent to R. I modified this loop to only
append the most current output file name. This helps.
The code currently does not test for an outputFile length of 0 after it exits
from the "processKilled" loop, so if the maxWaitTime is achieved then it hangs.
Testing for outputFile.length() == 0 should throw an exception and let the
handleRFaileure deal with it.
So, with these changes I've been able to run successfully while dealing with
RScript errors.
Original comment by cszamu...@gmail.com
on 26 Jun 2014 at 9:21
Original issue reported on code.google.com by
cszamu...@gmail.com
on 25 Jun 2014 at 6:30