[R] Controlling print width settings for 'print' on command line

Joshua Wiley jwiley.psych at gmail.com
Tue Dec 7 06:53:56 CET 2010

Hi Matt,

I'm not certain if this will work with PuTTy, but in general (and on
Konsole/other terminals I've run R in) you can set it with the "width"
argument of options() see:


I believe it is 80 by default, so something like:

options(width = 160)

might be about right.



On Mon, Dec 6, 2010 at 9:48 PM, Matthew Pettis <matthew.pettis at gmail.com> wrote:
> Hi,
> I'm using R interactively from a PuTTy command line, and when I print a
> dataframe (default, but just entering the name of the data frame), the
> display is using only half of the available horizontal width in which to
> print columns.  How to I tell R how many columns it can/should use for
> printing?
> Thanks,
> Matt
>        [[alternative HTML version deleted]]
> ______________________________________________
> 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.

Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles

More information about the R-help mailing list