Skip to content
Prev 65382 / 398513 Next

Rconsole wishlist

The problem is that the commands history is GUI-specific (there are four 
mechanisms, readline on Unix, one for the GUI MacOS X (I believe), one for 
RGui and one for rterm. And we will have to cope with both GNU and BSD 
readline shortly).  We try to keep them consistent, and that means a 
lowest-common denominator approach.

History is *not* intended to be a `command log' but a way to retrieve
recentish commands, and the console buffer is just that, a buffer.  They 
are implemented for fast access backwards and so not really appropriate 
for large logs.  If you want a session log, look at 'split' option to 
sink().

With the advent of multibyte characters (supported in R as from 2.1.0) we 
need to redesign some of this (rterm's command line will not support such 
locales for 2.1.0).  It should be possible to make the default R_HISTSIZE 
unlimited.

The console buffer is less clear: how do you want to be warned?  This 
could happen in the middle of a single print() command: it could even 
happen that a single line of output exceeds the buffer size.

Finally: R-devel is for R development issues, so if people want to pursue 
this, please move there.  (I am trying to be non-technical in this reply, 
and probably not succeeding.)
On Fri, 4 Mar 2005, Kjetil Brinchmann Halvorsen wrote: