[R] locator and print

Thomas Roth thomas.k.roth at googlemail.com
Mon Jan 4 16:18:30 CET 2010


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.

Thanks in advance,

Thomas



More information about the R-help mailing list