retry | R Documentation |
Internal function for handling errors when accessing APIs
retry( expr, isError = function(x) "try-error" %in% class(x), maxErrors = 5, sleep = 0 )
expr |
This is the function you want to catch and handle errors from |
isError |
Function for evaluating if provided expression is throwing an error |
maxErrors |
The maximum number of errrors it should handle from the function |
sleep |
The amount of sleep between a caught error and the next attempt |
The expression that has been either successfully ran or retried maximum number of times
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.