Skip to content

Commit 580031b

Browse files
file.remove does not work on Windows for directories.
Co-authored-by: Kirill Müller <[email protected]>
1 parent 51b5ac0 commit 580031b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/zzz.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ remove_cache_old_versions <- function() {
3939
return()
4040
}
4141
purrr::walk(old_package_dirs, function(dir) {
42-
cache_clear(basename(dir), ask = FALSE)
43-
file.remove(dir)
42+
unlink(dir, recursive = TRUE, force = TRUE)
4443
})
4544
}

0 commit comments

Comments
 (0)