Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Make renv::status() check configurabe for dev dependencies #1760

Open
MSHelm opened this issue Nov 21, 2023 · 0 comments
Open
Labels
feature a feature request or enhancement status 🔮

Comments

@MSHelm
Copy link

MSHelm commented Nov 21, 2023

Hey everyone,

In my workflow, I snapshot development dependencies into the lockfile using renv::snapshot(type = "explicit, dev = TRUE). Whenever I open the project, I get the message, that the project is out of sync. I think this is because renv::status() shows that there are several packages that are installed and recorded but not used, as expected.
When I run renv::status(dev = TRUE) , it correctly returns that the lockfile is up to date.

Would it be a possibility to make the default for the dev argument of renv::status() configurable, similar to what I can do with the settings for snapshot.type? This could prevent quite some confusion, as e.g. code reviewers or colleagues do not necessarily immediately know why the message is shown.

Reprex:

devtools::create("newpackage", open = TRUE)
renv::init(bare = TRUE)
renv::install("usethis", prompt = FALSE)
usethis::use_package("usethis", type = "Suggests")
renv::snapshot(type = "explicit", dev = TRUE, prompt = FALSE)
renv::status()
#> The following package(s) are in an inconsistent state:
#> ...
renv::status(dev = TRUE)
#> No issues found -- the project is in a consistent state.

Maybe related to #1019

Thank for the consideration!
Martin

@kevinushey kevinushey added feature a feature request or enhancement status 🔮 labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement status 🔮
Projects
None yet
Development

No branches or pull requests

2 participants