| fred_set_key | R Documentation |
Sets the API key used to authenticate requests to the FRED API. The key
persists for the current R session. Alternatively, set the
FRED_API_KEY environment variable in your .Renviron file.
fred_set_key(key)
key |
Character. A 32-character FRED API key. |
Register for a free API key at https://fredaccount.stlouisfed.org/apikeys.
Invisible NULL.
Other configuration:
clear_cache(),
fred_get_key(),
fred_request()
op <- options(fred.cache_dir = tempdir())
fred_set_key("your_api_key_here")
options(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.