View source: R/retry_patiently.R
retry_patiently | R Documentation |
Waits progressively longer before each next try (at least by default; wait times can be customized).
retry_patiently(
expr,
max_wait_times = c(0, 3^c(0:4)),
min_wait_frac = 0.5,
verbose = FALSE
)
expr |
expression to evaluate |
max_wait_times |
vector of maximum wait times, in seconds, before trying the 1st, 2nd, etc. time. The length of this vector is the maximum number of tries. |
min_wait_frac |
numeric between 0 and 1. If < 1, the actual wait time
before try |
verbose |
logical. Should informational messages be printed? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.