Friends

I need to get R reading from a fifo. I want it to block till there is some
data in the fifo, consume what input it gets there, do some thing with it
then loop back and block again.

Very simple.  Yes?  No.

The example in the documentation works OK..

       zz <- fifo("foo-fifo", "w+")
       writeLines("abc", zz)
       print(readLines(zz))
       close(zz)
       unlink("foo-fifo")

But when I tryu my code to *read* and *block*, id does not work.

P <- "Myfoofifo"
C <- fifo(P, "r", blocking=TRUE)

If Myfoofifo does not exist this has an error:

> C <- fifo(P, "r", blocking=TRUE)
Error in fifo(P, "r", blocking = TRUE) : cannot open the connection
In addition: Warning message:
In fifo(P, "r", blocking = TRUE) : cannot open fifo 'Myfoofifo'
>

> C <- fifo(P, "w+", blocking=TRUE)

succeeds but a read...

> Z <- readLines(C)

hangs.  Writing to Myfoofifo from other programmes, opening closing even
deleting it makes no difference.

I am stuck.  I can find no pertinent  examples.  What can I do?

Worik

	[[alternative HTML version deleted]]

