R/empty_cache.R

Defines functions empty_cache

Documented in empty_cache

#' Empty cache
#'
#' This function removes all objects in the cache, w.r.t. to the current working
#' directory.
#' @return Nothing, invoked for side effects.
#' @export
#'
#' @examples
#' # empty_cache()
empty_cache <- function() {
  lapply(list.files("cache", pattern = "\\.rda$", full.names = TRUE), file.remove)
}
cszang/fridge documentation built on May 14, 2019, 12:26 p.m.