[R] Redirect/pipe output to less

David Winsemius dwinsemius at comcast.net
Fri Mar 12 17:18:30 CET 2010


On Mar 12, 2010, at 11:15 AM, Ali Tofigh 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?

?capture.output

>
> Cheers,
> /Ali
>

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list