with_retries: Try evaluating an expression multiple times before erroring.

Description Usage Arguments Value

View source: R/utils.R

Description

Lifted from https://github.com/peterhurford/handlr/blob/master/R/try_stack.R

Usage

1
with_retries(expr, num_tries = 1, sleep = 0.001)

Arguments

expr

expression. The expression to evaluate with retries.

num_tries

numeric. The number of attempts.

sleep

numeric. How long to wait between attempts.

Value

TRUE if the expression gets evaluated successfully on some attempt.


abelcastilloavant/csmpi documentation built on May 24, 2019, 7:21 p.m.