Hello,

I have a function with these lines:

    test <- function(object,...){
          cat("object: has ",nrow(object),"labels\n")
          cat("Head:\n")
          head(object,...)
          cat("\nTail:\n")
          tail(object,...)
      }

If I feed it a data frame object, it only prints out the tail part. If I 
comment out the last two lines of the function, it does print the head 
part. Obviously there's a buffer not being flushed between the head and 
the tail calls, but I don't know how to flush it. Can someone help me?

Thanks.

     Marsh Feldman



	[[alternative HTML version deleted]]

