Re: [Rd] Feature request: txtProgressBar with ability to write to arbitrary stream

2011-03-16 Thread Andreas Borg
Thanks for all the suggestions. However, I was not really looking for a solution but I want to propose this (in my view useful) change to be included in a future version of R. For the time being I will include a modified version in my package. Best regards, Andreas -- Andreas Borg Medizinis

Re: [Rd] Feature request: txtProgressBar with ability to write to arbitrary stream

2011-03-15 Thread Greg Snow
801.408.8111 > -Original Message- > From: r-devel-boun...@r-project.org [mailto:r-devel-bounces@r- > project.org] On Behalf Of Andreas Borg > Sent: Tuesday, March 15, 2011 4:37 AM > To: R-devel@r-project.org > Subject: [Rd] Feature request: txtProgressBar with a

Re: [Rd] Feature request: txtProgressBar with ability to write to arbitrary stream

2011-03-15 Thread Duncan Murdoch
On 15/03/2011 8:46 AM, Matt Shotwell wrote: Here's a temporary fix; reassign 'cat' in the environment of 'txtProgressBar': tpbEnv<- new.env() assign("cat", function(...) cat(file=stderr(),...), tpbEnv) environment(txtProgressBar)<- tpbEnv I would suggest renaming the function as well. What's

Re: [Rd] Feature request: txtProgressBar with ability to write to arbitrary stream

2011-03-15 Thread Matt Shotwell
Here's a temporary fix; reassign 'cat' in the environment of 'txtProgressBar': tpbEnv <- new.env() assign("cat", function(...) cat(file=stderr(),...), tpbEnv) environment(txtProgressBar) <- tpbEnv Best, Matt On 03/15/2011 05:37 AM, Andreas Borg wrote: Hi all, I use txtProgressBar to monitor

[Rd] Feature request: txtProgressBar with ability to write to arbitrary stream

2011-03-15 Thread Andreas Borg
Hi all, I use txtProgressBar to monitor progress of large computations. What I miss is the ability to redirect the progress bar to a stream other than stdout, specifically to the message stream. This would be useful for running Sweave scripts: When redirected to stderr, the bar could be visib