Learn R Programming

streamConnect (version 0.0-4)

retry: 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)

Value

the result of the expression f

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.

Examples

Run this code
retry(1)

Run the code above in your browser using DataLab