You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have discovered a bug in renv::init() of [email protected] or a change in expected behvior from [email protected] for a specific set of circumstances.
A package is installed in the User (or System) Library
The same package is not in the renv cache.
It appears that hydrate() in [email protected] is not properly linking packages into the project library. init() and hydrate() do not show any errors or warnings. This change in behavior happened between 1.0.11 and 1.1.0.
Reprex:
Start with an empty project. WIth one source file.
install.packages("remotes")
remotes::install_version("renv", version="1.0.11")
.rs.restartR()
# Ensure that `dplyr` is in the User (or System) Library
install.packages("dplyr")
# Clear `dplyr` from renv cacherenv::purge("dplyr")
renv::init()
renv::status()
# No issues found
Now, we reset our project to its original pre-renv state.
install.packages("renv")
packageVersion("renv")
# [1] ‘1.1.2’renv::init()
renv::status()
# The following package(s) are used in this project, but are not installed:# - dplyr
Thank you for the bug report and especially for taking the time to provide a reproducible example! I've reproduced the issue locally as well; I'll investigate and get this fixed.
We have discovered a bug in
renv::init()
of[email protected]
or a change in expected behvior from[email protected]
for a specific set of circumstances.renv
cache.It appears that
hydrate()
in[email protected]
is not properly linking packages into the project library.init()
andhydrate()
do not show any errors or warnings. This change in behavior happened between 1.0.11 and 1.1.0.Reprex:
Start with an empty project. WIth one source file.
To show what is expected behavior, let's use
[email protected]
Now, we reset our project to its original pre-renv state.
Then we install the latest renv and initialize.
hydrate() is not working as it used to
We took a look inside
hydrate()
and further intorenv_hydrate_link_packages()
and found the following difference:The text was updated successfully, but these errors were encountered: