Re: [R] R-Terminal

From: Martin Kaffanke <technik_at_roomandspace.com>
Date: Wed, 05 Mar 2008 12:56:17 +0100

Thats really great, but now the sink() uses also this width. Is it possible to make sink using another width (i.e. 80 characters)?

Thanks,
Martin

Am Dienstag, den 04.03.2008, 13:23 +0100 schrieb Martin Elff:
> 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(...){
> options(width=Sys.getenv("COLUMNS"))
> TRUE
> }
>
> addTaskCallback(.adjustwidth)
>
> After that, the output width is adapted to the actual terminal width
> each time one hits return.
>
>
> Just my 20 cents.
> Best,
> Martin
>
> ______________________________________________
> 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.

-- 
Ihr Partner für Webdesign, Webapplikationen und Webspace.
http://www.roomandspace.com/
Martin Kaffanke +43 650 4514224

______________________________________________ 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.

Received on Wed 05 Mar 2008 - 12:05:16 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 - 13:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive