jennifer.moeller-gulland at de.pwc.com
2012-Sep-21 07:22 UTC
[R] Inclusion of a countdown tool of remaining calculation time possible?
Dear All,
We are currently working with very large datasets which even in R require
a lot of calculation time. Is there an option of including a function/
tool or something alike which shows the remaining time of calculation?
Just to see whether there is any progress or whether anything has crashed
and to get a feeling whether we have to wait for 5 min or 30min...
Any help is greatly appreciated!
Thanks in advance.
Best,
Jennifer
PricewaterhouseCoopers Aktiengesellschaft Wirtschaftsprüfungsgesellschaft
Vorsitzender des Aufsichtsrates
WP StB Dr. Norbert Vogelpoth
Vorstandsmitglieder
WP StB Prof. Dr. Norbert Winkeljohann · WP StB Dr. Peter Bartels
WP StB CPA Markus Burghardt · StB Prof. Dr. Dieter Endres · WP StB Prof.
Dr. Georg Kämpfer
WP StB Harald Kayser · WP RA StB Dr. Jan Konerding · WP StB Andreas Menke
StB Marius Möller · WP StB Martin Scholich
Sitz: Frankfurt am Main - Amtsgericht Frankfurt am Main HRB 44845
Mitglied von PricewaterhouseCoopers International, einer Company limited
by guarantee registriert in England und Wales
______________________________________________________________________
Diese Information ist ausschliesslich fuer den Adressaten bestimmt und kann
vertrauliche oder gesetzlich geschuetzte Informationen enthalten. Wenn Sie nicht
der bestimmungsgemaesse Adressat sind, unterrichten Sie bitte den Absender und
vernichten Sie diese Mail. Anderen als dem bestimmungsgemaessen Adressaten ist
es untersagt, diese E-Mail zu lesen, zu speichern, weiterzuleiten oder ihren
Inhalt auf welche Weise auch immer zu verwenden. Wir verwenden aktuelle
Virenschutzprogramme. Fuer Schaeden, die dem Empfaenger gleichwohl durch von uns
zugesandte mit Viren befallene E-Mails entstehen, schliessen wir jede Haftung
aus.
* * * * *
The information contained in this email is intended only...{{dropped:15}}
Ben Bolker
2012-Sep-21 12:33 UTC
[R] Inclusion of a countdown tool of remaining calculation time possible?
<jennifer.moeller-gulland <at> de.pwc.com> writes:> > Dear All, > > We are currently working with very large datasets which even in R require > a lot of calculation time. Is there an option of including a function/ > tool or something alike which shows the remaining time of calculation? > Just to see whether there is any progress or whether anything has crashed > and to get a feeling whether we have to wait for 5 min or 30min... > > Any help is greatly appreciated! > Thanks in advance. > Best, > Jennifer >apropos("progress") leads you to ?txtProgressBar which sounds like exactly what you need. Ben Bolker
Barry Rowlingson
2012-Sep-21 12:38 UTC
[R] Inclusion of a countdown tool of remaining calculation time possible?
2012/9/21 jennifer.moeller-gulland at de.pwc.com <jennifer.moeller-gulland at de.pwc.com>:> Dear All, > > We are currently working with very large datasets which even in R require > a lot of calculation time. Is there an option of including a function/ > tool or something alike which shows the remaining time of calculation? > Just to see whether there is any progress or whether anything has crashed > and to get a feeling whether we have to wait for 5 min or 30min...I wrote a little stopwatch function that ticks elapsed time for an expression, you can find it here: http://geospaced.blogspot.co.uk/2012/02/stopwatch-in-r.html but it has no way of knowing how long your process is going to take. If you have something like a loop from 1:N you can do progress bars - assorted ones are provided by the packages utils, tcltk, R.utils and plyr - install them and do ??progress for a list of functions. Barry