try_and_wait: Attempt to Execute an Expression and Retry After Failure #'

View source: R/utils.R

try_and_waitR Documentation

Attempt to Execute an Expression and Retry After Failure #'

Description

Attempt to Execute an Expression and Retry After Failure #'

Usage

try_and_wait(expr, time_to_wait = 120, number_of_attempts = 10)

Arguments

expr

an expression that shell be executed

time_to_wait

time to wait until the next try after a failure

number_of_attempts

numeric, how often shall we try?

Value

outcome of the expression to be evaluated


epiforecasts/covid-german-forecasts documentation built on Jan. 4, 2024, 3:42 p.m.