[R] source, echo...and clicking the mouse

Greg Snow Greg.Snow at imail.org
Fri Jul 1 19:04:12 CEST 2011

OK, I missed that he did state the OS, my apologies to Steven.

Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org

> -----Original Message-----
> From: Duncan Murdoch [mailto:murdoch.duncan at gmail.com]
> Sent: Thursday, June 30, 2011 4: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