The default is to enable progress handler per:
enable = getOption("progressr.enable", interactive())
The rationale is that you'll get progress updates when running R interactively, but not in batch mode (e.g. Rscript main.R).
However, it might be more natural to condition it on whether the output is connected to a TTY, e.g. isatty(stdout()) or isatty(stderr()). However, does this logic apply to all progress handlers, or just those outputting to the terminal, or ...
The default is to enable progress handler per:
The rationale is that you'll get progress updates when running R interactively, but not in batch mode (e.g.
Rscript main.R).However, it might be more natural to condition it on whether the output is connected to a TTY, e.g.
isatty(stdout())orisatty(stderr()). However, does this logic apply to all progress handlers, or just those outputting to the terminal, or ...