in reply to Re: Peculiar Perl/R Problem - Memory?
in thread Peculiar Perl/R Problem - Memory?
->Eliminating the read commands did not affect the problem. The script still halts at arbitrary points in the loop even without the 'read from R' element.
->Restarting R at the end of the foreach loop (using the command $R -> restartR();) prevented the random halting. However, as you might expect the script is very slow with this workaround in place, since it has to load R anew with each iteration of the loop.
I am somewhat new to the use of modules in my scripts, and completely so to IPC buffering, so any more guidance you could provide into how to implement the autoflush would be very much appreciated.
Thanks for your help, M
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Peculiar Perl/R Problem - Memory?
by maybeD (Sexton) on Aug 10, 2005 at 10:45 UTC |