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

Joshua Wiley
2010-12-07T05:53:56Z

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:

?options

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

options(width = 160)

might be about right.

Cheers,

Josh

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