Hello all: Is there a way to set up R such that, when you have a very long output from a command, it will pause when it has displayed one-screen of information and ask me to press a button to continue displaying? I happen to have one such command and the information I need is at the top of the output - and it's just nowhere to be seen. (If you are familiar with Stata, I'm looking for something equivalent to the -set more on- option there. Thanks a lot! Mingfeng
Not answering your question, But if you where to ask this regarding plots, the answer would be to use: par(ask = T) Best, Tal ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Thu, Apr 22, 2010 at 1:01 AM, Mingfeng Lin <mingfeng.lin@gmail.com>wrote:> Hello all: > > Is there a way to set up R such that, when you have a very long output > from a command, it will pause when it has displayed one-screen of > information and ask me to press a button to continue displaying? I > happen to have one such command and the information I need is at the > top of the output - and it's just nowhere to be seen. > > (If you are familiar with Stata, I'm looking for something equivalent > to the -set more on- option there. > > Thanks a lot! > > Mingfeng > > ______________________________________________ > R-help@r-project.org 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. >[[alternative HTML version deleted]]
There are at least two functions that may be of interest to you in this regard: 'head' (there is also 'tail') 'page' On 21/04/2010 23:01, Mingfeng Lin wrote:> Hello all: > > Is there a way to set up R such that, when you have a very long output > from a command, it will pause when it has displayed one-screen of > information and ask me to press a button to continue displaying? I > happen to have one such command and the information I need is at the > top of the output - and it's just nowhere to be seen. > > (If you are familiar with Stata, I'm looking for something equivalent > to the -set more on- option there. > > Thanks a lot! > > Mingfeng > > ______________________________________________ > R-help at r-project.org 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. >-- Patrick Burns pburns at pburns.seanet.com http://www.burns-stat.com (home of 'Some hints for the R beginner' and 'The R Inferno')