Validates that an API key is non-empty. Throws an informative error directing the user to set the appropriate environment variable.
See also
Other config-utils:
api_config(),
config-utils
Examples
if (FALSE) { # \dontrun{
key <- Sys.getenv("ART_GEMINI_KEY")
api_key_required(key, "GEMINI")
} # }
