available_languages returns a list of all languages supported by the DeepL API Pro.

available_languages(auth_key)

Arguments

auth_key

A string representing the authentication key for the DeepL API Pro. If not provided, the function will attempt to retrieve the key from the environment variable DEEPL_API_KEY. You can set this variable using Sys.setenv(DEEPL_API_KEY = "your_key") or define it in your .Renviron file for persistent use.

Details

To use this function, you must obtain an authentication key by registering for a DeepL API Pro account at DeepL API Pro. The function makes an API call to retrieve the list of supported languages and returns them in a structured format.

Examples

if (FALSE) { # \dontrun{
available_languages()
} # }