Error in Grid Call

Hi, when trying to run the following code and make a plot, the following error appears. Can someone help me?

Install Tidyverse


##Get map data


ggplot(mpg,aes(manufacturer)) + geom_bar()


Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
polygon edge not found
In addition: There were 50 or more warnings (use warnings() to see the first 50)

You might take a look here:

Running the most current preview version of Rstudio seems to be a (mostly) fix.


The plot renders normally with the latest stable release and the preview version as well, Could you give us more information about your setup?

#> [1] ‘1.2.1335.1’
ggplot(mpg, aes(x = manufacturer)) +

Created on 2019-08-18 by the reprex package (v0.3.0)

Hi andresrcs,

Thanks for the quick answer, I´m new to this. By setup you mean what version of Rstudio is installed? If so find it below. Also find a pic attached

#> [1] ‘1.2.1335’


I´ve tried to update it and it keep showing the same error.

Thanks Pete,

I´ve already unisnstalled Rstudio and installed it again, but it won´t work.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.