This function attempts to execute code multiple times with random delays between attempts. It's particularly useful for handling transient failures in operations that may succeed on subsequent attempts, such as network requests or file operations.
Arguments
- x
The code to execute (as an expression)
- times
Integer, the maximum number of attempts to make. Defaults to 2
- delay_seconds_min
Numeric, the minimum delay in seconds between attempts. Defaults to 5
- delay_seconds_max
Numeric, the maximum delay in seconds between attempts. Defaults to 10
- verbose
Logical, whether to show progress information. Defaults to
FALSE