Skip to content

configuring progress messages #459

Closed
@mkoohafkan

Description

@mkoohafkan

it appears that there are three ways to enable/disable progress messages:

  1. req_progress() allows you to enable progress messages and specify a direction, but does not allow you to disable them.
  2. req_options(noprogress = TRUE) looks like it can disable progress messages, but it is unclear as req_options() documentation states that these are curl options, not httr2 options.
  3. req_perform_*() functions (e.g., req_perform_paralle()) have a boolean progress argument.

It is unclear how these options interact. It appears that req_progress() is just a wrapper around req_options(noprogress = FALSE), but the documentation specifies that req_options() is for configuring curl options rather than httr2 options. It also appears that the progress argument to the multi-request functions req_perform_*() is a separate progress bar for the request batch, and unrelated to the progress bar for individual requests (so you could end up with nested progress bars, or disable the progress for the request batch but not the individual requests, or vice versa).

I have two suggestions:

  1. Add support req_progress(type = "none") so that request progress can be enabled/disabled from a single entry point, rather than requiring req_options() to disable and req_progress() to enable.
  2. Clarify the documentation on the progress argument to multiple request functions to differentiate it from req_progress().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions