[R] source, echo...and clicking the mouse
Steven Wolf
wolfste4 at msu.edu
Fri Jul 1 03:12:57 CEST 2011
Ok, I think I see how flush.console() works. Just put it in and whatever
has been done so far (and stored in the buffer) pops out. Unfortunately,
I'm doing an optimization, and the process is slow. So that is where the
"Misc|Buffered output" option is helpful.
Thanks!
-Steve
-----Original Message-----
From: Duncan Murdoch [mailto:murdoch.duncan at gmail.com]
Sent: Thursday, June 30, 2011 6:31 PM
To: Greg Snow
Cc: Steven Wolf; 'David Winsemius'; r-help at r-project.org
Subject: Re: [R] source, echo...and clicking the mouse
On 30/06/2011 5:33 PM, Greg Snow wrote:
> On some operating systems (which we don't know yours, see the posting
guide) the output is buffered and including a call to flush.console() will
flush all the output from the buffer to the console. Put the function call
throughout the script and when it is run it will stop buffering for a bit.
The OP said he's running in Windows 7. In that case, there's the
"Misc|Buffered output" option, which makes things appear as soon as they are
printed. It appears to work for source(..., echo=TRUE) as well.
Duncan Murdoch
>
> The other possibility is that your script does some plotting and that is
what is pausing until you click. In that case you need to use a different
graphics device or methodology to avoid this (see ?interactive).
>
More information about the R-help
mailing list