progress icon indicating copy to clipboard operation
progress copied to clipboard

Print total duration on completion

Open jarauh opened this issue 5 years ago • 1 comments

It would be good if the progress bar could report the total duration. At least, it could make the starting time available publicly. Or there could be a method that provides the running time so far (and the total duration on completion).

jarauh avatar Oct 04 '18 12:10 jarauh

Or there could be a method that provides the running time so far (and the total duration on completion).

Indeed, this would be helpful when combined with clear = FALSE. During the actual computation, I want to know :eta. But after the computation is done, I would like to know how long it took. I prefer not to use both :elapsed and :eta.

scottkosty avatar Jun 09 '22 16:06 scottkosty

I believe this is possible with the cli package, which we prefer now for progress bars: https://cli.r-lib.org/reference/index.html#progress-bars

gaborcsardi avatar Nov 01 '23 14:11 gaborcsardi

Thanks for the pointer to cli, @gaborcsardi. Just for curiosity, who is "we" (in "we prefer" cli)? Do you consider progress to be deprecated?

jarauh avatar Nov 06 '23 09:11 jarauh

"we" is the r-lib/tidyverse team. progress is de facto superseded by cli, it will be formally superseded soon. It is not going away, and we'll fix serious bugs, but won't add new features.

gaborcsardi avatar Nov 06 '23 10:11 gaborcsardi

Thank you, good to know.

jarauh avatar Nov 06 '23 11:11 jarauh