[R] Print Page by Page

Prof Brian D Ripley ripley at stats.ox.ac.uk
Fri Apr 28 23:34:32 CEST 2000

On Sat, 29 Apr 2000, Ko-Kang Wang wrote:

> Hi there,
> I'm using R1.0.1 Windows 98 version.
> Sometimes, ok very often, we need to analyse data that will generate a
> lot of outputs.  For example, the function "aov()" will print out lots
> of outputs on screen.  I am just wondering, if it is possible to make
> these outputs shown page by page instead of throwing everything on
> screen and I have to scroll back up.  I know in UNIX this is simliar to
> the command "more", can I do this in R?

First, this is not `printing': no printer is involved.  Second, aov()
prints/outputs nothing at all: that is done by print.aov. And as
example(aov) generates less than 100 lines, that is hardly `lots of
outputs', I believe.

There is no way to run a pager inside Rgui (if that is what you are using).
It _is_ possible to run output of Rterm through `less' or `more' on
Windows. However, you can always use sink to rediect output to a file, and
display that file in a pager (e.g. from the File menu in Rgui).

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list