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/europe-covid-forecast documentation built on Jan. 15, 2025, 8:57 p.m.