Removes all memoized grid results from the internal cache environment.
See also
Other package options and caches:
clear_fitted_cache(),
create_grid_polygons_cached(),
spatialkit_quiet()
Examples
library(sf)
bnd <- st_sf(geometry = st_sfc(st_polygon(list(rbind(
c(0, 0), c(100, 0), c(100, 100), c(0, 100), c(0, 0)
))), crs = 32632))
g1 <- create_grid_polygons_cached(bnd, target_cells = 9)
g2 <- create_grid_polygons_cached(bnd, target_cells = 9) # cache hit
clear_grid_cache() # returns the number of entries removed, invisibly
print(clear_grid_cache()) # 0: already empty
#> [1] 0