ropensci / crul

R6 based http client for R (for developers)
https://docs.ropensci.org/crul
Other
107 stars 17 forks source link

Add a verbose argument to the retry method? #136

Open maelle opened 4 years ago

maelle commented 4 years ago

Currently crul's HttpClient retries silently which is I think a good default behaviour.

To print messages in https://github.com/ropensci/webmockr/issues/32#issuecomment-608428344 I resorted to using an onwait() function.

Could there be a verbose argument (FALSE by default), to have messages like with httr::RETRY()?

sckott commented 4 years ago

can you clarify what httr does - I don't see a verbose argument in httr::RETRY

maelle commented 4 years ago

It's called quiet in httr https://github.com/r-lib/httr/blob/6f931cf0943f633182bdfb591a7fa478a2ab5121/R/retry.R#L110

sckott commented 4 years ago

okay, i see, yes, can probably do that.