Script progress bar in R that works with purrr and in batch mode

Here is how to create a progress bar in R that is versatile when working with loops, for example, by using package purrr or the function lapply. Sometimes there is also necessary to see progress when running R scripts in batch mode from the command line and remove unnecessary messages.

Exit mobile version