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 Thanks a lot! -- S?bastien Durand Ma?trise en biologie Universit? de Montr?al (514) 343-6864 Universit? du Qu?bec ? Montr?al (514) 987-3000 (1572#)
Prof Brian Ripley
2005-Apr-17 07:20 UTC
[R] MacOS delayed output (was Unlogical phenomenon caused by locator)
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 at 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