R/reset_image_cache.R

Defines functions reset_image_cache

Documented in reset_image_cache

#' Reset 'gridpattern' image cache
#'
#' [grid.pattern_image()] and [grid.pattern_placeholder()] store images in a cache
#' (so we won't download image URLs over and over).
#' `reset_image_cache()` resets this cache.
#' @export
reset_image_cache <- function() {
    memoise::forget(img_read_memoised)
}

Try the gridpattern package in your browser

Any scripts or data that you put into this service are public.

gridpattern documentation built on Oct. 26, 2023, 1:07 a.m.