[R] source, echo...and clicking the mouse
murdoch.duncan at gmail.com
Fri Jul 1 00:30:55 CEST 2011
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.
> 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