Skip to content

Create a customized progress bar without modifying global options #76

Description

@WB-Chen-Lab

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions