httr icon indicating copy to clipboard operation
httr copied to clipboard

Error in retry doc

Open persep opened this issue 2 years ago • 0 comments

In the file retry.R it says:

#' @param pause_base,pause_cap This method uses exponential back-off with
#'   full jitter - this means that each request will randomly wait between 0
#'   and `pause_base * 2 ^ attempt` seconds, up to a maximum of
#'   `pause_cap` seconds.

When it should say :

#' @param pause_base,pause_cap This method uses exponential back-off with
#'   full jitter - this means that each request will randomly wait between 1
#'   and `pause_base * 2 ^ attempt` seconds, up to a maximum of
#'   `pause_cap` seconds.

As per the backoff_full_jitter function definition where pause_min = 1:

backoff_full_jitter <- function(i, resp, pause_base = 1, pause_cap = 60,
                                pause_min = 1, quiet = FALSE)

persep avatar Sep 10 '22 12:09 persep