Description Usage Arguments Details Value Examples
If a call returns an error, run it again.
1 |
call |
call to retry |
max.iter |
maximum number of iterations after which failure is declared |
fail |
object to return in case of failure |
verbose |
logical flag whether to print iterations as messages |
Iterative calling of a function that can return a random error can crash a process or at the very least result in incomplete data. To alleviate the impact of random errors the failed call will be rerun until it succeeds or until a limit of attempts is reached. If all attempts fail, a backup value will be returned.
retry
returns the same as the function in call
or as defined by fail
.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.