make_function_safe_slow_insistent: Makes a function slow (delay before it's called) insistent...

View source: R/scrapurrr.R

make_function_safe_slow_insistentR Documentation

Makes a function slow (delay before it's called) insistent (retries execution on fail) and safe (return error message instead of stopping)

Description

Makes a function slow (delay before it's called) insistent (retries execution on fail) and safe (return error message instead of stopping)

Usage

make_function_safe_slow_insistent(.function, delay = 0, attempts = 3)

Arguments

.function

A function to be made slow, insistent and safe

delay

numeric scalar giving the number of seconds to wait before the function is called

attempts

numeric scalar giving the number of retry attempts if the function fails

Value

Returns a function


m-g-h/scrapurrr documentation built on Aug. 2, 2022, 9:43 a.m.