Hi,
I'm trying to use the pipe function to read data from another process
on my server.

Here is the code I have tried.

con <- pipe("/var/matlab/scripts/stream.pl")
while(con_read <- readLines(con)) {
  print(con_read)
}

Problem is that the data from the perl script just keeps appending to
con_read and it never gets to the print function. Which makes sense,
but I would like to be able to perform calculations on con_read, while
the script continues to read from the perl script.


Any help is appreciated.

-Joe

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to