Skip to contents

Removes cached data files.

Usage

clear_cache(end_year = NULL, type = NULL)

Arguments

end_year

Optional school year to clear. If NULL, clears all years.

type

Optional data type to clear ("enr_tidy", "enr_wide", "grad_tidy", "grad_wide"). If NULL, clears all types.

Value

Invisibly returns the number of files removed

Examples

if (FALSE) { # \dontrun{
# Clear all cached data
clear_cache()

# Clear only 2024 data
clear_cache(2024)

# Clear only graduation tidy data
clear_cache(type = "grad_tidy")
} # }