cache_clear: Clear the cache

View source: R/ui-caching.R

cache_clearR Documentation

Clear the cache


Clears the cache that stores which files are already styled. You won't be able to undo this. Note that the file corresponding to the cache (a folder on your file system) won't be deleted, but it will be empty after calling cache_clear.


cache_clear(cache_name = NULL, ask = TRUE)



The name of the styler cache to use. If NULL, the option "styler.cache_name" is considered which defaults to the version of styler used.


Whether or not to interactively ask the user again.


Each version of styler has its own cache by default, because styling is potentially different with different versions of styler.

See Also

Other cache managers: cache_activate(), cache_info(), caching

krlmlr/styler documentation built on June 5, 2023, 12:46 p.m.