[R] Display on Windows console from script

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jul 27 11:55:42 CEST 2004


Please consult the rw-FAQ, specifically Q6.3 whose subject looks a perfect 
fit for your question (and whose answer contains the answer).

On Tue, 27 Jul 2004, Laetitia Marisa wrote:

> When I launch a script under windows it does not display sequentially  
> my cat calls or maybe the console is not refreshed at every line of my 
> script.
> 
> For instance with that code
>   cat("\n\n================== IMPORT DATA FROM FILE 
> ===================\n\n")
> fileschosen <- choose.files(caption="Select gpr files", filters = 
> matrix(c("genepix file","*.gpr"), nc=2, byrow=T))
> 
> The popup browse window is first displayed and once I've selected my 
> files the cat "IMPORT..."  is displayed.
> 
> What can I do to make my displays appear at the right time?

-- 
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




More information about the R-help mailing list