Skip to content

Enable progressr if output is connected to a TTY - a slight improvement to interactive mode #197

Description

@HenrikBengtsson

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 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions