pbapply icon indicating copy to clipboard operation
pbapply copied to clipboard

Show progress in terms of number of items out of total

Open BlueDrink9 opened this issue 2 months ago • 4 comments

Is it possible to customize the bar such that it shows, either instead of or beside the time remaining, the absolute value that has processed through the input? For example, for 1:1000, would it be possible to show and update on each loop like "240/1000"?

BlueDrink9 avatar Oct 20 '25 21:10 BlueDrink9

This should be possible because the % is based on n_finished/n_total.

psolymos avatar Oct 21 '25 14:10 psolymos

I meant is it possible with user customisation code as-is? Or are you saying it should be feasible to change the code so that it is?

This would be useful for long-running tasks where there are far more than 100 items, and you want the bar to update more than just 100 times. Another alternative would be to have decimal percentage displaying

BlueDrink9 avatar Oct 22 '25 02:10 BlueDrink9

Right now you can change the progress type to simple percentage without the time estimate with pboptions(type="txt"). Adding the remaining count vs total count of jobs would require change to the code.

psolymos avatar Oct 22 '25 04:10 psolymos

Darn, in that case please consider this a feature request!

BlueDrink9 avatar Oct 22 '25 08:10 BlueDrink9