I updated Rstudio to 2022.02.3 build 492 on my MacBook Pro w/ M1 chip and find that Rstudio won't create ggplot2 plots. The following simple graph won't complete.
library(ggplot2)
library(dplyr)
aa <- tibble(a=1:100, b=runif(100))
aa %>%
ggplot() +
geom_line(aes(x=a,y=b))
I updated to the latest base R to solve the issue, but it did not resolve the problem.
R.version _
platform aarch64-apple-darwin20
arch aarch64
os darwin20
system aarch64, darwin20
status
major 4
minor 2.1
year 2022
month 06
day 23
svn rev 82513
language R
version.string R version 4.2.1 (2022-06-23) nickname Funny-Looking Kid
EDITED: Running the few lines of code above on the R command line does not solve the problem. This suggests it's an R issue (and not related to Rstudio).
Does anyone have any suggestions that might help me figure out why this is occurring or how to resolve this issue?
UPDATE: I've installed the latest base R and Rstudio and rebooted. I now receive the dreaded "Error in grid.Call" message when I try to generate the graphic.
From Error in grid.Call(L_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : Polygon edge not found
it seems the issue is that R can't access to Arial font, for some reason. The very last comment in that post is key. It suggests adding +theme(text=element_blank()) [removing all text from the plot].
A graphic is generated, confirming the font issue. The problem is none of the suggestions that post seem to clear the problem.