powered by
Remove outdated model files from the cache directory to comply with CRAN policies about actively managing cached content and keeping sizes small.
edge_clean_cache( cache_dir = NULL, max_age_days = getOption("edgemodelr.cache_max_age_days", 30), max_size_mb = getOption("edgemodelr.cache_max_size_mb", 5000), use_lru = TRUE, ask = TRUE, verbose = TRUE )
Invisible list of deleted files
Cache directory path (default: user cache directory)
Maximum age of files to keep in days (default: option edgemodelr.cache_max_age_days or 30)
Maximum total cache size in MB (default: option edgemodelr.cache_max_size_mb or 5000)
If TRUE, evict least-recently-used files when size exceeds limit
Whether to ask for user confirmation before deletion (only in interactive sessions)
Whether to print status messages (default: TRUE)
if (FALSE) { # Clean cache files older than 30 days edge_clean_cache() # Clean cache with custom settings edge_clean_cache(max_age_days = 7, max_size_mb = 100) }
Run the code above in your browser using DataLab