Skip to content

Commit

Permalink
fix issue with reporting caching of installed packages (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Nov 21, 2024
1 parent 12f7d7b commit 3ab8c65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

# renv 1.1.0 (UNRELEASED)

* Fixed an issue where `renv` erroneously reported that installed packages were
cached when the cache was not writable. (#2041).

* `renv` now supports updating of currently-installed packages via `renv::install()`
when configured to use `pak`. (#2037)

Expand Down
5 changes: 3 additions & 2 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,9 @@ renv_install_package <- function(record) {

# link into cache
if (renv_cache_config_enabled(project = project)) {
renv_cache_synchronize(record, linkable = linkable)
feedback <- paste0(feedback, " and cached")
cached <- renv_cache_synchronize(record, linkable = linkable)
if (cached)
feedback <- paste(feedback, "and cached")
}

verbose <- config$install.verbose()
Expand Down

0 comments on commit 3ab8c65

Please sign in to comment.