Skip to content

Commit

Permalink
Add recursion when creating cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan authored Apr 25, 2021
1 parent 7f5c478 commit ab544ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils_names.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ esp_hlp_cachedir <- function(cache_dir = NULL) {

# Create cache dir if needed
if (isFALSE(dir.exists(cache_dir))) {
dir.create(cache_dir)
dir.create(cache_dir, recursive = TRUE)
}
return(cache_dir)
}
Expand Down

0 comments on commit ab544ea

Please sign in to comment.