#' Delete your entire cache
#'
#' @param really set this to TRUE if you actually want to delete
#'
#' @return an empty cache folder
#' @export
#'
#' @examples
#' \dontrun{delete_cache(TRUE)}
delete_cache <- function(really = FALSE) {
if (really) {
write("deleting cache for good!", file = stderr())
file.remove(dir(get_cache_dir(), full.names = TRUE))
}
invisible(NULL)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.