Re: [R] re-direct to "more" or "less"

From: Søren Højsgaard <Soren.Hojsgaard_at_agrsci.dk>
Date: Thu 29 Jun 2006 - 17:26:09 EST


Something like

less <- function(a){
  fn <- paste(tempdir(),"\\dataframe.txt",sep='',collapse='')   write.table(a, quote=F, file=fn)
  system(paste("less ",fn))
}

could perhaps help you (assuming that you have less on your computer). I agree that it would be very nice to have a built-in version... Regards
Søren  

> -----Oprindelig meddelelse-----
> Fra: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] På vegne af Mike Wolfgang
> Sendt: 29. juni 2006 04:29
> Til: R-help list
> Emne: [R] re-direct to "more" or "less"
>
> Dear list,
>
> sometimes my function generates too much data and shows them
> on screen, i cannot view first several lines until program
> ends and I have to scroll my mouse up to get them. Is there
> any re-direction function in R to pipeline outputs to "more"
> or "less" type functions?
> Thanks
>
> mike
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
>
https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 29 17:33:31 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 29 Jun 2006 - 20:12:22 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.