plotly.R icon indicating copy to clipboard operation
plotly.R copied to clipboard

Warning message with geom_vline and geom_hline

Open gschifman opened this issue 2 years ago • 2 comments

I'm seeing a strange warning message when I use the geom_hline and geom_vline functions in plotly 4.10.0. It pops up when I run the first example from this page:

library(plotly)
library(ggplot2)

p <- ggplot(data=mtcars, aes(x=wt, y=mpg)) + geom_point() +
		geom_vline(xintercept = 3)

ggplotly(p)

Here's the warning message I get:

Warning message:
`gather_()` was deprecated in tidyr 1.2.0.
Please use `gather()` instead.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.

This message pops up even when the tidyr package isn't loaded. At the same time, the example chart looks fine, so this would seem to be a warning without an actual error.

gschifman avatar May 19 '22 02:05 gschifman

Think this was fixed in https://github.com/plotly/plotly.R/pull/2125, though it's not on CRAN as of yet.

pdiakumis avatar Jun 22 '22 14:06 pdiakumis

any ETA on when the fix will be on CRAN?

MikeWLloyd avatar Jul 20 '22 15:07 MikeWLloyd