retry_api_call: Retry an API call with exponential backoff

View source: R/pubmed_search.R

retry_api_callR Documentation

Retry an API call with exponential backoff

Description

This function retries a failed API call with exponential backoff.

Usage

retry_api_call(fun, ..., verbose = FALSE, retry_count = 3, retry_delay = 1)

Arguments

fun

Function to call

...

Arguments to pass to the function

verbose

Logical. If TRUE, prints progress information

retry_count

Integer. Number of times to retry

retry_delay

Integer. Initial delay between retries in seconds

Value

Result of the function call or NULL if all retries fail


LBDiscover documentation built on June 16, 2025, 5:09 p.m.