Skip to content

Commit

Permalink
gotta force import here as it's in tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcaseb committed Aug 15, 2024
1 parent 1a6d3e0 commit dc1db07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
if(!memoise_option %in% c("memory", "filesystem", "off")) memoise_option <- "memory"

if(memoise_option == "filesystem"){
backports::import(pkgname, "R_user_dir")
cache_dir <- R_user_dir("nflplotR", "cache")
backports::import(pkgname, "R_user_dir", force = TRUE)
cache_dir <- backports::R_user_dir("nflplotR", "cache")
if (!dir.exists(cache_dir)) dir.create(cache_dir, recursive = TRUE, showWarnings = FALSE)
cache <- cachem::cache_disk(dir = cache_dir)
}
Expand Down

0 comments on commit dc1db07

Please sign in to comment.