retry: Retry an Expression that Fails

View source: R/retry.R

retryR Documentation

Retry an Expression that Fails

Description

Retries and expression that fails. This is mainly used to retry establishing a connection.

Usage

retry(f, times = 5, wait = 1, verbose = FALSE, operation = NULL)

Arguments

f

expression

times

integer; number of times

wait

number of seconds to wait in between tries.

verbose

logical; show progress and errors.

operation

name of the operation used in the error message.

Value

the result of the expression f

Examples

retry(1)

streamConnect documentation built on June 22, 2024, 9:55 a.m.