Skip to content

Local Libraries Missing in Upgrade from 1.1.4 to 1.1.7 #2219

@sjenkins20

Description

@sjenkins20

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

Image

Running update yielded

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions