Nothing
#' Clear the fred cache
#'
#' Deletes all locally cached FRED data files. The next call to any data
#' function will re-download from the FRED API.
#'
#' @return Invisible `NULL`.
#'
#' @family configuration
#' @export
#' @examples
#' \donttest{
#' op <- options(fred.cache_dir = tempdir())
#' clear_cache()
#' options(op)
#' }
clear_cache <- function() {
cache_dir <- fred_cache_dir()
if (dir.exists(cache_dir)) {
unlink(cache_dir, recursive = TRUE)
cli::cli_inform("Cache cleared.")
} else {
cli::cli_inform("No cache to clear.")
}
invisible(NULL)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.