aemet_detect_api_key: Check if an AEMET API Key is present for the current session

View source: R/aemet-api-key.R

aemet_detect_api_keyR Documentation

Check if an AEMET API Key is present for the current session

Description

Detects whether an API key is available in the current session:

  • If an API key is already set as an environment variable, it is preserved.

  • If no environment variable is set and an API key has been stored permanently via aemet_api_key(), it is loaded.

Usage

aemet_detect_api_key(...)

aemet_show_api_key(...)

Arguments

...

Ignored.

Value

TRUE or FALSE. aemet_show_api_key() displays your stored API keys.

See Also

Other aemet_auth: aemet_api_key()

Examples


aemet_detect_api_key()

# CAUTION: This may reveal API Keys
if (FALSE) {
  aemet_show_api_key()
}

climaemet documentation built on March 24, 2026, 1:06 a.m.