Learn R Programming

fred (version 0.3.1)

fred_get_key: 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()

Arguments

Value

Character. The API key.

See Also

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

Examples

Run this code
# \donttest{
op <- options(fred.cache_dir = tempdir())
try({
  fred_get_key()
})
options(op)
# }

Run the code above in your browser using DataLab