api_status: Function to test whether an API is down and if so, throw an...

View source: R/api_status.R

api_statusR Documentation

Function to test whether an API is down and if so, throw an error.

Description

Function to test whether an API is down and if so, throw an error.

Usage

api_status(test_fn, tlimit = 120)

Arguments

test_fn

The function call to test

tlimit

= 120 A timeout in seconds

Value

logical

Examples

## Not run: 
api_status(eol_search('Salix'))

## End(Not run)

ropensci/ropensciToolkit documentation built on May 18, 2022, 7:30 p.m.