Skip to content

Suggest renv::hydrate() when packages are used but not installed #2201

@Chr96er

Description

@Chr96er

I just migrated to a new laptop and I'm setting up everything from scratch for the first time in a very long time. For repos where I was working alone and did a poor job snapshotting my library state I'm getting a lot of:

The following packages are used in this project, but not installed:

	ggplot2, htmlwidgets, [...]

Use `renv::restore()` to restore the packages recorded in the lockfile.
Use `renv::status()` afterwards to re-assess the project state.

Looking for a solution I came across renv::hydrate() which was mentioned in this issue as the solution to my state. Wouldn't it make sense to suggest this workflow when the user is in this state?

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