Re: [R] Flushing print buffer

2010-05-04 Thread jim holtman
I should have also had you read FAQ 7.16 On Tue, May 4, 2010 at 12:43 PM, jim holtman wrote: > explicitly print your data: > > print(head(object,...)) > On Tue, May 4, 2010 at 12:23 PM, Marshall Feldman wrote: > >> Hello, >> >> I have a function with these lines: >> >>test <- function(objec

Re: [R] Flushing print buffer

2010-05-04 Thread jim holtman
explicitly print your data: print(head(object,...)) On Tue, May 4, 2010 at 12:23 PM, Marshall Feldman wrote: > Hello, > > I have a function with these lines: > >test <- function(object,...){ > cat("object: has ",nrow(object),"labels\n") > cat("Head:\n") > head(obje

[R] Flushing print buffer

2010-05-04 Thread Marshall Feldman
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 ou