retry: Function to retry failed functions after a time out of 5...

View source: R/refinitiv.r

retryR Documentation

Function to retry failed functions after a time out of 5 seconds. Especially useful for failed api calls.

Description

Function to retry failed functions after a time out of 5 seconds. Especially useful for failed api calls.

Usage

retry(retryfun, max = 2, init = 0)

Arguments

retryfun

function to retry.

max

maximum number of retries, default = 2

init

initial state of retries should always be left zero, default = zero

Value

None

Examples

 retry(sum(1,"a"), max = 2)

GreenGrassBlueOcean/RefinitivR documentation built on Feb. 1, 2024, 1:37 a.m.