-
Notifications
You must be signed in to change notification settings - Fork 163
Description
Upgrading from renv 1.14 to 1.17.
We ran `renv::upgrade()' and the message told us to reformat the lock file to renv 1.17, which we did. This worked fine.
We re-ran the upgrade command. Executing our tests afterwards, we found that all our libraries that had been installed from local libraries, were no longer installed. Is this a bug or a feature? It does not seem desireable that upgrading should lose these.
We ran snapshot and the resulting lock file was close to empty, so maybe it's nearly all libraries that were lost, not just local. All that was present was the header showing that the new version of R had been detected as 4.5.2 (required to update MASS) and then the details of the renv and MASS packages. So it looks like most of the libraries disappeared in the upgrade. Output of snapshot is
Running update yielded
I'm guessing this only updates what's in the lock file, so if there are lots of libraries missing from the lock file, then update won't re-populate them. Running `renv::status()' did not return anything. It was blank. I had to delete the renv library to solve the issues and re-install all libraries from scratch.