I am new to R and have been taking a course that utilizes tidyverse, dslabs, dplyr. I have reinstalled both R Studio to 1.3.1093 and R 4.0.3. I receive errors that appear to have surfaced in previous releases but have never seen a concrete solution to resolve either. I previously resolved the font issue mentioned below by resolving duplicate fonts but it has resurfaced sponaneously with no duplicate fonts present. Arial font family is installed at system level. The same errors appear in PyCharm so it appears to be an R issue vs R Studio IDE. When running on R command line console the same errors appear but an empty Quartz window opens. Can anyone offer insight as to steps to take to resolve?
library(tidyverse) library(dslabs) data(murders) murders %>% ggplot() + geom_point(aes(x = population/10^6, y = total)) # add points layer to predefined ggplot object p <- ggplot(data = murders) p + geom_point(aes(population/10^6, total)) # add text layer to scatterplot p + geom_point(aes(population/10^6, total)) + geom_text(aes(population/10^6, total, label = abb))
Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
polygon edge not found
In addition: Warning message:
In grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
no font could be found for family "Arial"