Skip to content

Commit edf399c

Browse files
Merge pull request #1129 from MichaelChirico/patch-3
avoid warning when missing R cache dir
2 parents c38d7f9 + 3a13ef6 commit edf399c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/zzz.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ delete_if_cache_directory <- function(path) {
3636
if (getRversion() < package_version("4.0.0")) {
3737
return(FALSE)
3838
}
39-
designated_cache_path <- normalizePath(tools::R_user_dir("R.cache", which = "cache"))
39+
designated_cache_path <- normalizePath(tools::R_user_dir("R.cache", which = "cache"), mustWork = FALSE)
4040
is_in_tools_cache <- startsWith(path, designated_cache_path)
4141
temp_dir <- normalizePath(dirname(tempdir()))
4242
is_in_generic_cache <- startsWith(path, temp_dir)

0 commit comments

Comments
 (0)