Another approach may be useful. Back in May 2003 I raised a similar query: How to divert R output into a separate X window (in Linux) where it would apear after being piped through 'less'. This has the advantage that, if you choose to do it this way, it leaves your R console untouched. I raised the query in:
https://stat.ethz.ch/pipermail/r-help/2003-May/034147.html (start of thread) and, after a fairly lengthy exchange, I summarised my initial implementation in: https://stat.ethz.ch/pipermail/r-help/2003-May/034230.html with further refinements in: https://stat.ethz.ch/pipermail/r-help/2003-May/034233.html See also the final comment by Greg Snow in: https://stat.ethz.ch/pipermail/r-help/2003-May/034238.html This will cause all invocations of help() or '?', and of help.search() or ??, to be displayed in a separate window using 'less'. To display a large R object, say V, similarly, use page(V), which will open a new window with X displayed in it. You can also do things like 'page(lm(Y ~ X1 + X2))'. However, all that was a long time ago. Check 'page' in your newer R! Ted. On 12-Mar-10 17:06:09, Gabor Grothendieck wrote: > Try the View command. > > On Fri, Mar 12, 2010 at 11:15 AM, Ali Tofigh <alix.tof...@gmail.com> > wrote: >> I'm using R under Linux. Since the help function in R can use the >> program less to display text, I'd like to know if it is possible for a >> user to do the same. It would be very helpful to be able to view large >> objects (matrices/dataframes etc) using less. This is preferable to >> redirecting output to file or to clutter the workspace with too much >> output. I have tried to use functions pipe and sink, but I have had no >> luck getting it to work. Can this be done? >> >> Cheers, >> /Ali >> >> ______________________________________________ >> 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. >> > > ______________________________________________ > 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. -------------------------------------------------------------------- E-Mail: (Ted Harding) <ted.hard...@manchester.ac.uk> Fax-to-email: +44 (0)870 094 0861 Date: 12-Mar-10 Time: 19:27:39 ------------------------------ XFMail ------------------------------ ______________________________________________ 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.