Removes the checkpoint files that crosstab_banner(checkpoint = TRUE) keeps
under tools::R_user_dir(). A finished run clears its own checkpoint, so
anything left is from a run that was interrupted and never repeated; this
empties the folder in one call.
Details
Only checkpoints the package named for itself are stored there. A checkpoint
you pointed somewhere yourself (checkpoint = "my-run.rds") is your file and
is never touched, by this function or by a completed run.
Examples
# in your own session this is the whole call:
# clear_checkpoints()
# here it runs against a throwaway cache, so the example leaves yours alone
withr::with_envvar(c(R_USER_CACHE_DIR = tempdir()), clear_checkpoints())
#> Removed 0 checkpoint file(s).
