From ebebfc3a871024e7c2161063923a90e3f9d1e428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Tue, 21 Nov 2023 14:07:36 +0100 Subject: [PATCH] Fully qualify R_user_dir Otherwise it does not work in pak. --- R/cache-dirs.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/cache-dirs.R b/R/cache-dirs.R index 9bca8dd9..87aa5df8 100644 --- a/R/cache-dirs.R +++ b/R/cache-dirs.R @@ -16,7 +16,7 @@ get_user_cache_dir <- function() { # R_PKG_CACHE_DIR first. R_user_dir uses R_USER_CACHE_DIR, if set. if (cdir == "") { - cdir <- R_user_dir("pkgcache", "cache") + cdir <- tools::R_user_dir("pkgcache", "cache") } else { cdir <- file.path(cdir, "R", "pkgcache") }