powered by
Returns the API key set via fred_set_key() or the FRED_API_KEY environment variable. Raises an error if no key is found.
fred_set_key()
FRED_API_KEY
fred_get_key()
Character. The API key.
Other configuration: clear_cache(), fred_cache_info(), fred_request(), fred_set_key()
clear_cache()
fred_cache_info()
fred_request()
# \donttest{ op <- options(fred.cache_dir = tempdir()) try({ fred_get_key() }) options(op) # }
Run the code above in your browser using DataLab