Re: [R] MacOS delayed output (was Unlogical phenomenon caused by locator)

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sun 17 Apr 2005 - 17:20:37 EST

I believe this is a function of the Mac console (I presume you are using the console, but you did not say). Please ask Mac-specific questions on R-sig-mac (or at the very least put `MacOS' in your subject line).

I believe that adding flush.console() after the cat() call works on Mac as it does on Windows. (If not, it is intended that it should in 2.1.0.)

[On Windows it is FAQ Q6.3.]

On Sat, 16 Apr 2005, Sebastien Durand wrote:

> I was wondering if someone could help me!
>
> Here is what I don't understand!
> Why the text in the function isn't showing up before the locator action?
>
> ###########
> plot(1:10)

> toto<-function(){
> cat("Why this text isn't showing up before the point selection !!!!!!!!")
> point<-locator(2)
> return(point)
> }
>
> toto()
>
> P.S.: I am using the most recent version of R for mac

                                                ^^^^^^^^^

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Apr 17 17:28:45 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:13 EST