Skip to contents

Verifies whether the IUCN Red List API is accessible and the provided API key is valid. This function checks both the presence of an API key in the environment and its validity.

Usage

rl_check_api()

Value

Invisibly returns TRUE if the API is working properly. If not, the function will abort with an appropriate error message.

See also

Examples

if (FALSE) { # \dontrun{
# Check if API is properly set up
rl_check_api()
} # }