dracor_api_available: Check whether 'DraCor' API is available

View source: R/core.R

dracor_api_availableR Documentation

Check whether 'DraCor' API is available

Description

dracor_api_available() sends a light request (the list of corpora) to 'DraCor' API and checks whether it responds. It never throws an error, so it can be used to run code that needs 'DraCor' API only if the API is available.

Usage

dracor_api_available(dracor_api_url = NULL, timeout = 10)

Arguments

dracor_api_url

Character, 'DraCor' API URL. If NULL (default), the current 'DraCor' API URL is used.

timeout

Numeric, maximum number of seconds to wait for the response. Default value is 10.

Value

TRUE if 'DraCor' API is available, FALSE otherwise.

See Also

dracor_api_info

Examples

dracor_api_available()

rdracor documentation built on Oct. 22, 2026, 1:07 a.m.