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]]
______________________________________________
[email protected] 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.