Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

retry

Retry


Description

Retry an expression. This is useful for situations where a web resource is not yet available. You can set options("crunch_retry_wait" = X) some number larger than the default 0.1 in your script if you are working with large exports.

Usage

retry(
  expr,
  wait = getOption("crunch_retry_wait", default = 0.1),
  max.tries = 10
)

Arguments

expr

An expression

wait

The time in seconds to wait before retrying the expression. Defaults to 0.1.

max.tries

The number of times to retry the expression


crunch

Crunch.io Data Tools

v1.28.0
LGPL (>= 3)
Authors
Greg Freedman Ellis [aut, cre], Jonathan Keane [aut], Mike Malecki [aut], Neal Richardson [aut], Gordon Shotwell [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.