You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This currently results in in empty list l, but when I run the code directly in an rstudio console:
> library(ggplot2)
>data<-data.frame(x=letters[1:5], y= runif(5))
> ggplot(data, aes(x, y)) + geom_bar()
Error:Mappingavariabletoyandalsousingstat="bin".Withstat="bin", itwillattempttosettheyvaluetothecountofcasesineachgroup.Thiscanresultinunexpectedbehaviorandwillnotbeallowedinafutureversionofggplot2.Ifyouwantytorepresentcountsofcases, usestat="bin"anddon't map a variable to y. If you want y to represent values in the data, use stat="identity". See ?geom_bar for examples. (Defunct; last used in version 0.9.2)
The text was updated successfully, but these errors were encountered:
@JanSchulz could you please start adding language tags to your code blocks for syntax highlighting? it’s easier to read that way. for R, simply start your code blocks with ````r`
Closing this since it's been ~8 years and you've presumably figured it out, but I suspect it's something to do with the implicit print that is needed to accurately generate the message since adding an explicit print() makes the problem go away. (i.e. it might be a problem with your custom output handler)
In irkernel, we got a bugreport (IRkernel/IRkernel#184) that not all output is captured and we use evaluate under the hood to implement the kernel.
In this case it is a call to ggplot:
This currently results in in empty list
l
, but when I run the code directly in an rstudio console:The text was updated successfully, but these errors were encountered: