| dracor_api_available | R Documentation |
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.
dracor_api_available(dracor_api_url = NULL, timeout = 10)
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. |
TRUE if 'DraCor' API is available, FALSE otherwise.
dracor_api_info
dracor_api_available()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.