[R] Progress Monitor in R
Clint Bowman
clint at ecy.wa.gov
Tue Oct 24 23:29:40 CEST 2006
Or change the \n to \r so that the lines overwrite one another rather than
producing a list that scrolls off the top.
Clint Bowman INTERNET: clint at ecy.wa.gov
Air Dispersion Modeler INTERNET: clint at math.utah.edu
Air Quality Program VOICE: (360) 407-6815
Department of Ecology FAX: (360) 407-7534
USPS: PO Box 47600, Olympia, WA 98504-7600
Parcels: 300 Desmond Drive, Lacey, WA 98503-1274
On Tue, 24 Oct 2006, Weiwei Shi wrote:
> the way i do is like this
>
> for (i in 1:1000){
>
> if (i %% 100){ # you can change this number
> cat("process monitor: i =", i, "\n");
> }
>
> }
>
> hth,
>
> w.
>
> On 10/24/06, Xiaofan Cao <cao at stat.colostate.edu> wrote:
> > Hi there,
> >
> > I'm writing a program in R that has a few nested loops. I'd like to
> > monitor the progress when the program is running and be able to estimate
> > the remaining time.
> >
> > I'd highly appreciate it if anyone can shed a light on this issue. Thanks
> > for your time!
> >
> > Best Regards,
> > Martha Cao
> >
> > ______________________________________________
> > R-help at 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
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
>
> --
> Weiwei Shi, Ph.D
> Research Scientist
> GeneGO, Inc.
>
> "Did you always know?"
> "No, I did not. But I believed..."
> ---Matrix III
>
> ______________________________________________
> R-help at 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
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list