We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d042b8f commit f0a897fCopy full SHA for f0a897f
R/zzz.R
@@ -26,6 +26,9 @@
26
remind_removing_old_cache <- function() {
27
if (interactive() && getOption("styler.interactive_ask_remove_old_caches", TRUE)) {
28
dirs <- list.dirs(R.cache::getCachePath("styler"), recursive = FALSE)
29
+ if (length(dirs) < 1) {
30
+ return()
31
+ }
32
dirs <- dirs[unname(sapply(dirs, function(x) length(list.files(x)) > 0))]
33
package_versions <- package_version(basename(dirs), strict = FALSE)
34
package_versions <- package_versions[!is.na(package_versions)]
0 commit comments