in reply to Peculiar Perl/R Problem - Memory?
Most likely you are running against IPC buffering. The likely case is, that somewhere in between your program and R, all your commands stack in a buffer that waits for more input, and your read call waits for more input as well.
I would look if the R module maybe has some flush command to flush all buffers after your send sequence. If there is no such facility, you will have to either create it yourself, by grabbing into the guts of R::Statistics and changing the file handle used for communication to autoflush, or by tearing down the communication after each batch of commands. Maybe you should simply batch-send all your commands one after another, and only then start reading the results in.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Peculiar Perl/R Problem - Memory?
by maybeD (Sexton) on Aug 08, 2005 at 13:55 UTC | |
by maybeD (Sexton) on Aug 10, 2005 at 10:45 UTC | |
|
Re^2: Peculiar Perl/R Problem - Memory?
by anonymized user 468275 (Curate) on Aug 08, 2005 at 13:14 UTC |