Skip to contents

Detects whether an API key is available in the current session. An existing environment variable is preserved. Otherwise, a key stored permanently with aemet_api_key() is loaded.

Usage

aemet_detect_api_key(...)

aemet_show_api_key(...)

Arguments

...

Ignored.

Value

TRUE if an API key is available and FALSE otherwise. aemet_show_api_key() displays stored API keys.

See also

AEMET API authentication: aemet_api_key()

Examples


aemet_detect_api_key()
#> [1] TRUE

# Caution: This may reveal API keys.
if (FALSE) {
  aemet_show_api_key()
}