Re: [R] R-Terminal

From: Martin Elff <>
Date: Tue, 04 Mar 2008 13:23:23 +0100

On Tuesday 04 March 2008 (12:34:47), Peter Dalgaard wrote:
> Martin Kaffanke wrote:
> > Hi there!
> >
> > I use an gnome-terminal for using R. When I resize the termial to the
> > maximum size, R uses only the left side of the window. Can I tell R to
> > use the whole window somehow?
> This seems to do it:
> options(width=Sys.getenv("COLUMNS"))
> (Surprisingly, at least to me, the COLUMNS environment variable appears
> to be automagically updated by gnome-terminal even after R is started. I
> was expecting to have to play with system("tset") and suchlike.)

That seems to work also with KDE's "Konsole".

It may be worthwile considering
to implement some automatic width-adjustment like:

.adjustwidth <- function(...){




After that, the output width is adapted to the actual terminal width each time one hits return.

Just my 20 cents.
Martin mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 04 Mar 2008 - 12:36:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 05 Mar 2008 - 12:30:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive