Closed Hallo951 closed 2 years ago
AFAIK, the only progress update solution that works with foreach + doFuture, is the one provided by the progressr package. This solution is not specific to doFuture, but rather future.
The doSNOW solution will (obviously) only work for doSNOW and is different in the sense that it's not giving near-live updates from the parallel workers, but only signal progress when a worker is done and the results have been collected.
For the record, the issue regarding progressr crashing in RStudio was moved to https://github.com/HenrikBengtsson/progressr/issues/133.
Is it possible to update a text progressbar with the function option.future like it was possible with doPar with the snow package?
Here is an example how I had it so far. I would like to do this again:
I tried the same construct with doFuture and the function option.future in the foreach loop but unfortunately this does not work. The use of packages like progressr or progress caused me significant instabilities (Rstudio crashed several times) so I can't use them.
If there is another stable option, can you give me a short minimal example of it? Thanks :)
Edit 1: Oh, I just see that the package "progressr" is also from them. I have tried this but R (R-Studio) crashes regularly when I use this package. Without this everything works without errors. That is why my question about the other solution.
I tried the following with the progessr package:
Unfortunately, it was always unstable for me.
Here my session: