get_airnow_token()
returns the configured AirNow API token or
errors if it is not set.
set_airnow_token()
sets the AirNow API token to the given
value for the current session. To use this permanently, save it as
AIRNOW_API_KEY
in your ~/.Renviron
file.
Usage
get_airnow_token(ask = is_interactive())
set_airnow_token(token = NULL, ask = is_interactive())
Arguments
- ask
Whether or not to ask for the key if none is provided. Note that this only works for interactive sessions.
- token
Token to use