The pboptions function modifies the pboptions value in the global options via options(), which helps avoid repeatedly configuring progress bars. However, in R package development, this approach may alter the user's global options and lead to unintended side effects. Is it possible to use customized progress bars without modifying global options?
I think one possible solution is to add a pb argument to the *apply functions.
- By default, pb = getOption("pboptions"), which preserves the existing behavior.
- When pb = "none", no progress bar is displayed.
- In addition, users can pass a list object to pb, for example pb = list(char = "="), to customize the progress bar without changing global options.
The pboptions function modifies the pboptions value in the global options via options(), which helps avoid repeatedly configuring progress bars. However, in R package development, this approach may alter the user's global options and lead to unintended side effects. Is it possible to use customized progress bars without modifying global options?
I think one possible solution is to add a pb argument to the *apply functions.