-
Notifications
You must be signed in to change notification settings - Fork 153
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
install_github() does not enforce remotes dependency #475
Comments
Thinking some more about this, I probably should set a proper version restriction on the ggplot2 dependency, but the issue remains. Now the install fails, but the problem is hidden in a bunch of error messages and there is no easy way to see that it was caused by my choice to not upgrade packages.
|
There is not much to be done about this unfortunately, if you want to you can list your install instructions as |
I think there are ways to improve the situation. This is a user interface issue, so you could do one or more of the following:
Of these, I like the second the most. It makes it clear whether upgrading packages is optional or required. |
Unfortunately all of these options would require non-trivial amounts of refactoring of the current code and I unfortunately don't have the time to do so. This isn't an issue particular to the If people willfully decline to update packages it is on them to debug the subsequent failures. The only way you can be absolutely sure you have the proper versions is to upgrade all dependencies to the latest versions. |
Wouldn't my option 1 only require a simple string replacement from Line 592 in f1270b6
Line 601 in f1270b6
If I got this right, I'm happy to prepare a PR. I understand that it's not worth it to do a major refactoring of the code, but if there's a small modification to the message the user sees that may guide novice users, I think that's a worthwhile improvement. |
Ok, I agree with you about #1! Though I am somewhat concerned about the wording, as some people might misinterpret |
How about changing the menu title? After "Which would you like to update?", it could say something like "(It is usually best to update all)" or "(We recommend to update all)". |
Yep, that is what I ended up doing in 092e56a |
Super, thanks! In this way, if people get strange errors, at least they may remember that they didn't follow the recommendation. |
For my ggtext package, I find myself fielding tons of bug reports where people are not running the latest development version of ggplot2 (e.g.: wilkelab/ggtext#13 wilkelab/ggtext#14 wilkelab/ggtext#21). However, I have correctly specified ggplot2 in remotes.
What I think is happening is that when people run
remotes::install_github("wilkelab/ggtext")
, they are given the option to not install the development version of ggplot2, and there is no indication that that may cause problems. The following screenshot indicates what it looks like from an enduser's perspective.I'm not sure what the best approach would be, but at a minimum there should be some sort of indication that not upgrading ggplot2 may cause trouble.
The text was updated successfully, but these errors were encountered: