Skip to content

Commit

Permalink
Merge pull request #1129 from MichaelChirico/patch-3
Browse files Browse the repository at this point in the history
avoid warning when missing R cache dir
  • Loading branch information
lorenzwalthert authored Nov 24, 2023
2 parents c38d7f9 + 3a13ef6 commit edf399c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ delete_if_cache_directory <- function(path) {
if (getRversion() < package_version("4.0.0")) {
return(FALSE)
}
designated_cache_path <- normalizePath(tools::R_user_dir("R.cache", which = "cache"))
designated_cache_path <- normalizePath(tools::R_user_dir("R.cache", which = "cache"), mustWork = FALSE)
is_in_tools_cache <- startsWith(path, designated_cache_path)
temp_dir <- normalizePath(dirname(tempdir()))
is_in_generic_cache <- startsWith(path, temp_dir)
Expand Down

0 comments on commit edf399c

Please # to comment.