I have a fix for your concurrency issues between R writing results to xml and java reading them:
Essentially I add another R command (in RCode.java) following the cat of xml, to rename the file once writing has finished (an atomic operation), then in RCaller.java I adjust the outputFile handle to point to the expected new file and check for it's existence in the while loop (line 286)
For more info or files etc... feel free to mail: richard_maskell_1@hotmail.co.uk
I have a fix for your concurrency issues between R writing results to xml and java reading them:
ReplyDeleteEssentially I add another R command (in RCode.java) following the cat of xml, to rename the file once writing has finished (an atomic operation), then in RCaller.java I adjust the outputFile handle to point to the expected new file and check for it's existence in the while loop (line 286)
For more info or files etc... feel free to mail: richard_maskell_1@hotmail.co.uk