From ripley at stats.ox.ac.uk  Tue Oct 21 17:00:04 2003
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue Oct 21 16:59:08 2003
Subject: [Rd] Console in RGui does not do CR on \r (PR#4705)
In-Reply-To: <200310211421.h9LELx0P000324@pubhealth.ku.dk>
Message-ID: <Pine.LNX.4.44.0310211556590.4160-100000@gannet.stats>

Not a bug, but intentional.  To be a bug, it would need to 
be documented to work, and it is not.

In Rgui other threads (e.g. a tcltk button) can be writing to the console 
too.  Implementing \r would be very complicated, and not worthwhile 
(Windows has a perfectly good progress-meter widget!)

On Tue, 21 Oct 2003 david.lenn@rtsson.com wrote:

> Full_Name: David Lennartsson
> Version: 1.7.1, 1.8.0
> OS: Windows XP
> Submission from: (NULL) (62.119.45.80)
> 
> 
> 
> A very minor bug, but here it comes. On doing something as simple as cat("1st
> test string\r2nd\n") the console in RGui on Windows do not perform a CR on '\r'.
> This is very annoying if you for example want to have a simple progress meter
> when running a batch job. It works fine in Rterm. 

I tis nothing to do with Rterm, but terminal in which Rterm is running.


> The same goes for using Rprintf() in a compiled function. Rterm honours '\r' but
> not Rgui.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] Console in RGui does not do CR on \r (PR#4705)
Prof Brian Ripley