Learn R Programming

reproducible (version 0.2.9)

retry: A wrapper around try that retries on failure

Description

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

Usage

retry(..., sleep = 0.5, retries = 5)

Arguments

...

Passed to try

sleep

Passed to Sys.sleep, the default delay in seconds bewteen repeated tries

retries

Numeric. The maximum number of retries.

Details

The same as try