I think cat() will print immediately from inside a loop.

-  tom blackwell  -  u mihigan medical school  -  ann arbor  -

On Tue, 3 Jun 2003, Gilda Garibotti wrote:

> Hi,
> I would like to know if it is possible to get printed output while a loop is taking 
> place.
> Example:
> for(i in 1:10){
>  print(i)
>  some long process
> }
>
> This will print the values of i only after the loop is finished, what I would like 
> is to
> see them when the process enters the i-th iteration to keep track of how the
> program is running.
>
> Thank you,
> Gilda
>
> ______________________________________________
> [EMAIL PROTECTED] mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to