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: add a configuration or setting for dev in dependencies, status and snapshot #1695

Open
jabenninghoff opened this issue Sep 20, 2023 · 2 comments
Labels
feature a feature request or enhancement

Comments

@jabenninghoff
Copy link

jabenninghoff commented Sep 20, 2023

With #1636, dependencies, status and snapshot all support a dev parameter that supports inclusion of development dependencies. I love this new feature!

Would you consider adding (or accepting a pull request) a configuration or setting that sets the default value for the dev parameter across all three functions (as TRUE or FALSE)? This would be handy for ensuring consistent behavior.

This seems like it would fit in settings.

Thanks!

@jabenninghoff jabenninghoff changed the title Feature request: add a configuration or setting for dev in dependencies , status and snapshot Feature request: add a configuration or setting for dev in dependencies, status and snapshot Sep 20, 2023
@jabenninghoff
Copy link
Author

jabenninghoff commented Sep 21, 2023

After doing some additional research, this feature probably only makes sense for status and snapshot; adding a setting that changes the behavior of these two functions to pre-1.0.0.

Also, such a setting seems needed to suppress the following message at start when using renv::snapshot(dev = TRUE):

- The project is out-of-sync -- use `renv::status()` for details.

@kevinushey
Copy link
Collaborator

Would you consider adding (or accepting a pull request) a configuration or setting that sets the default value for the dev parameter across all three functions (as TRUE or FALSE)? This would be handy for ensuring consistent behavior.

This seems like a good idea to me. It also makes sense since renv::status() might get confused if it saw a lockfile created with renv::snapshot(dev = TRUE).

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
Projects
None yet
Development

No branches or pull requests

2 participants