-
Notifications
You must be signed in to change notification settings - Fork 758
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
check_dots_used() gives false errors in install_deps() #2109
Comments
A workaround (or permanent fix) is to use |
I don't really see a solution either, this will also happen with the |
I'd suggest removing the |
Coming at this as an idealist, the conclusion that But I feel like devtools wrappers are generally supposed to be the safer, more interactively-focused version of functions like |
I guess I feel like this is simply a regression, and a bug - |
I'm saying that, in an ideal world, we (in the vague R sense) wouldn't have embraced a convention ( So, yes, your call |
So the planned workaround is to add a function equivalent to We can then use this in devtools. This will still alert the user that something might be fishy if they have misspelled arguments, but it won't fail for cases where we return early like this one. |
I'm not sure that's the right workaround. The caller of Is it not possible to modify And even if this workaround is implemented, people won't want warnings issued when they're not warranted. I coach my team to not leave warnings unfixed, or else we stop paying attention to all the noise - stuff like this makes that harder for us to do. |
I hit this problem in our project as well, and I agree with @kenahoo that false "Warnings" are not a great workaround. Could you capture the This would allow you to preserve the typo-checking behavior @jennybc was describing while also avoiding false positives. |
You can now control the behavior of ellipsis in devtools by setting the option If you want devtools to produce no output when you specify arguments that are not used you can set |
Okay, that will mask the issue (unless someone else upstream does the same thing you did and turns warnings into errors...) and get builds succeeding again. I'd still be happier if you just removed IMO the right place to check for unused arguments is at the leaves of the call tree. I'd say this is a (small) bug in Anyway, since I can go around and change all our code to use |
remotes has no hard dependencies and cannot have dependencies, we can't do it in remotes. |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
If I call
devtools::install_deps()
and pass someINSTALL_opts
arguments (which would be used byutils::install.packages()
), but there's no installing to do, then I get an error:IMO that shouldn't throw an error.
I don't see how you'd solve this problem without changing the approach used by
check_dots_used()
, though - maybe it also needs to check whether...
itself was ever evaluated?The text was updated successfully, but these errors were encountered: