Message-ID: <4B420C8A.1040502@stats.uwo.ca>
Date: 2010-01-04T15:43:06Z
From: Duncan Murdoch
Subject: locator and print
In-Reply-To: <4b4206c7.0e0db80a.5127.ffffd5f8@mx.google.com>
On 04/01/2010 10:18 AM, Thomas Roth wrote:
> Hi,
>
> Using the following R-Code the printing via print takes place after locator
> although print is placed before locator
>
> ###
> test = function()
> {
> plot(1:10)
> print("test")
> locator(1)
> }
>
> test
> ###
>
> Is there some way to force the printing before locator is being evaluated. I
> assume that there is some buffer that needs to be turned off? Where do I
> have to look. Locator and print help page don't cover this problem.
>
flush.console() will flush output to the console in systems that support
it. In the Windows GUI, there's a menu item "Misc | Buffered output"
that can control buffering.
Duncan Murdoch
> Thanks in advance,
>
> Thomas
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>