Skip to content

Commit

Permalink
tolerate cache creation error on load (#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed May 22, 2024
1 parent 9fd23e5 commit c462750
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/cache.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ renv_cache_init <- function() {
if (!file.exists(root))
return()

# try to create cache directories
caches <- renv_paths_cache()
ensure_directory(caches)
status <- catch(ensure_directory(caches))
if (inherits(status, "error"))
return()

# if the cache appears to be within the project directory,
# then drop a '.renvignore' file within so it's not scanned
Expand Down

0 comments on commit c462750

Please sign in to comment.