Closed
Description
it appears that there are three ways to enable/disable progress messages:
req_progress()
allows you to enable progress messages and specify a direction, but does not allow you to disable them.req_options(noprogress = TRUE)
looks like it can disable progress messages, but it is unclear asreq_options()
documentation states that these arecurl
options, nothttr2
options.req_perform_*()
functions (e.g.,req_perform_paralle()
) have a booleanprogress
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:
- Add support
req_progress(type = "none")
so that request progress can be enabled/disabled from a single entry point, rather than requiringreq_options()
to disable andreq_progress()
to enable. - Clarify the documentation on the
progress
argument to multiple request functions to differentiate it fromreq_progress()
.