Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

ggvis erros from deprecated dplyr function #486

Closed
lhocke opened this issue Aug 22, 2020 · 9 comments
Closed

ggvis erros from deprecated dplyr function #486

lhocke opened this issue Aug 22, 2020 · 9 comments

Comments

@lhocke
Copy link

lhocke commented Aug 22, 2020

Running into an odd issue attempting to use ggvis where data isn't actually being rendered. I went back to the most basic docs to check my work and even with a simple
faithful %>% ggvis(~eruptions) >%> layer_histograms()
I can get the plot but no actual layer of data.

I do get a couple warning messages though that may be relevant

1: `group_by_()` is deprecated as of dplyr 0.7.0.
Please use `group_by()` instead.
See vignette('programming') for more help
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated. 
2: `mutate_()` is deprecated as of dplyr 0.7.0.
Please use `mutate()` instead.
See vignette('programming') for more help
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated.
@carmemias
Copy link

carmemias commented Sep 16, 2020

Same problem here. This is the calls thread I get:

lifecycle::last_warnings()
[[1]]
<deprecated>
message: `group_by_()` is deprecated as of dplyr 0.7.0.
Please use `group_by()` instead.
See vignette('programming') for more help
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated.
backtrace:
  1. (function (x, ...) ...
  2. ggvis:::print.ggvis(x)
  3. ggvis::view_static(x, ...)
  5. ggvis:::as.vega.ggvis(x, dynamic = FALSE)
  6. ggvis::layer_guess(x)
  7. ggvis:::f(vis, ...)
  8. ggvis::layer_f(...)
  9. ggvis:::fun(vis)
 11. ggvis:::compute_stack.ggvis(v, stack_var = ~count_, group_var = ~x_)
 12. ggvis:::register_computation(...)
 13. ggvis:::transform(parent_data(), args)
 18. ggvis:::compute_stack.data.frame(data, stack_var = ~count_, group_var = ~x_)
 19. dplyr::group_by_(x, group__ = gvar)
 20. dplyr:::lazy_deprec("group_by")

Warning seems to be triggered in ggvis:::compute_stack.data.frame(data, stack_var = ~count_, group_var = ~x_)

@carmemias
Copy link

carmemias commented Sep 16, 2020

In my case the ggvis graph got fixed after updating tibble to version 3.0.3, as indicated here: tidyverse/tibble#798
It may help in your case as well @lhocke

The warnings were not related to the actual problem, afterall.

@jtr13
Copy link

jtr13 commented Sep 16, 2020

I updated tibble and still having problems with histograms. The sample code
mtcars %>% ggvis(~mpg) %>% layer_histograms()
produces a blank plot.
image

@lionel-
Copy link
Contributor

lionel- commented Sep 17, 2020

@jtr13 I think this will be fixed if you install dev ggvis from github.

@jtr13
Copy link

jtr13 commented Sep 21, 2020

Perfect, that worked, thanks!

@carmemias
Copy link

Sorry, I also had installed an older version of dplyr (0.5.0). That was probably what made the difference.

It's great to have a fix in github. Is there a date for when it may be pushed to CRAN? Thanks.

@wch
Copy link
Contributor

wch commented Sep 30, 2020

Hi, we'll try to do a release in the next couple of weeks.

@carmemias
Copy link

That's brilliant, thanks!

@wch
Copy link
Contributor

wch commented Oct 1, 2020

ggvis is on its way to CRAN now.

@wch wch closed this as completed Oct 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants