-
Notifications
You must be signed in to change notification settings - Fork 155
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
renv::install with explicit dependencies = Imports still installs Suggests #1336
Comments
Can you please provide a reprex, or at least show exactly how you are running |
Sorry, I should've been more precise. In a I don't know if this is normal, but I'm trying to install the project "to itself" as a dependency so that my analysis script can require itself instead of using |
And presumably you have a |
If so, this is a duplicate of #1019 |
I think this issue might be slightly different -- it sounds like the |
@kevinushey good catch, I'll add a note to that issue. |
@kevinushey The argument is not ignored, but @hadley Yes, I do. Sorry for not mentioning it. Here's a version with unrelated stuff removed
The idea is to have the "dev" dependencies in |
If I'm trying to install "active project", suggested packages get installed even when I explicitly only request
Imports
to be installed. The following code seems to be responsible:Basically, now if I want to really only install
Imports
packages, I have to use some renv internals to generate a list of the dependencies and then filter out the "dev" dependencies (also I have to setType
in description to some bogus value so the type is not "package").This behaviour is very unintuitive and is not documented anywhere in
install
. I think when user explicitly passes the dependencies parameter, nothing should happen to it and it should be taken as-is.The text was updated successfully, but these errors were encountered: