fred_get_key: Get the current FRED API key

View source: R/auth.R

fred_get_keyR Documentation

Get the current FRED API key

Description

Returns the API key set via fred_set_key() or the FRED_API_KEY environment variable. Raises an error if no key is found.

Usage

fred_get_key()

Value

Character. The API key.

See Also

Other configuration: clear_cache(), fred_request(), fred_set_key()

Examples


op <- options(fred.cache_dir = tempdir())
fred_get_key()
options(op)


fred documentation built on March 19, 2026, 5:09 p.m.