[Rd] patch: automatically adjust width option when terminal is resized

Ralf Goertz r_goertz at web.de
Sat Sep 2 08:35:47 CEST 2017


Am Fri, 1 Sep 2017 14:11:19 -0500 (CDT)
schrieb luke-tierney at uiowa.edu:

> On Fri, 1 Sep 2017, Ralf Goertz wrote:
> 
> 
> > On the other
> > hand, the documentation says
> >
> > 	 ‘width’: controls the maximum number of columns on a line
> > used in …
> > 		  ‘Print.h’ and can be changed by re-compiling R.)
> > Some R consoles automatically change the value when they are
> > resized.  
> 
> 
> Good point.
> 
> The Windows R GUI does this if a preference option is set; I don't
> know what the default is from just a quick look at the sources.
> 
> RStudio does this by default and there is no obvious way, to me at
> least, to turn it off, which is unfortunate given the
> sink/capture.output issues.
> 
> I made changes to R-devel in r73180 to set width if the you set
> options(setWidthOnResize = TRUE). By default this option is not set
> and the width option is not changed. We'll see if it causes any
> problems.
> 
> Best,
> 
> luke


Thanks Luke, appreciate it.

Ralf



More information about the R-devel mailing list