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.
2 parents aeaa1fa + b6a750d commit e8836fdCopy full SHA for e8836fd
R/zzz.R
@@ -38,7 +38,7 @@ delete_if_cache_directory <- function(path) {
38
}
39
designated_cache_path <- normalizePath(tools::R_user_dir("R.cache", which = "cache"))
40
is_in_tools_cache <- startsWith(path, designated_cache_path)
41
- temp_dir <- normalizePath(Sys.getenv("TMPDIR", Sys.getenv("TMP")))
+ temp_dir <- normalizePath(dirname(tempdir()))
42
is_in_generic_cache <- startsWith(path, temp_dir)
43
if (is_in_tools_cache || is_in_generic_cache) {
44
all_files <- list.files(path,
0 commit comments