This is useful for functions that are "flaky", such as curl, which may fail for unknown reasons that do not persist.

retry(expr, retries = 5, silent = FALSE)

Arguments

expr Expression to run. Numeric. The maximum number of retries. Logical indicating whether to try silently.