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
dplyr release 1.0.1 breaks simple ggvis demo: layer_lines and layer_points produce no output. #5456
Comments
|
I did manage to There's quite a bit in that 'first bad' commit. |
|
Fixed in rstudio/ggvis#485 Install the branch with: remotes::install_github("lionel-/ggvis@fix-dplyr-1-0-0")But I think we should also fix this in dplyr. |
|
Thanks. I finally confirmed that this does work. It's not really my business, but, personally, I'd make the new test more explicitly based on a boolean value, rather than a function returning a value of 0. If I could test it, I'd propose a change, but I can't - and you should ignore my comment if I'm writing in the face of the project style guide. I also think that it is a better api to return an empty list if there are no groups, rather than null. R is weakly typed language, so it's not possible to have things like MAYBE types of Haskell to catch errors of not checking for changes in returned type. |
It is of course possible. There is a whole dynamically typed language funded on this kind of option type: lisp and nil punning. I agree it is better to return |
I realise that ggvis is in limbo, but I, and presumably others, have some shiny code in end devices that's not easy to update and it's taken a while to confirm that there is an issue and near where to place it.
So I thought that I'd at least document the issue, and potential fix, here. I first found a mention here:
https://bit.ly/3k5KO2w.From an engineering point of view, there may be some sort of regression as the failure is very quiet.
ggvis layers stop working. I'm afraid that I couldn't get reprex to work with rstudio-server, so I've put some code below.
I'd expect this to produce the "usual" plot. However, there are no points.

However, this does work:
And the plot with points appears.

I did try to
git bisectbetween 0.8.5 and 1.0.0, but the commit for 0.8.5 didn't seem to be in the clone from github, so I couldn't.The text was updated successfully, but these errors were encountered: