Error in my code

Hi Rstudio community:
I am new to the community and I am 'R' learning on my own but I get this message and even though I already loaded the extrafont library still gives me this error message:

In grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
font family not found in Windows font database

any ideas in what to do??

Hello, and welcome to the RStudio Community! We're glad you're here. :slight_smile:

Have you seen our guide to creating a minimal reproducible example (reprex)?

It's admittedly a bit long, but the TL;DR is that it's extremely helpful to post the actual code you used to generate the error, preferably in a form that can be directly copied and pasted into someone else's IDE and run.

Reading the code formatting FAQ may also be helpful:

When working with extrafont you have to import your fonts with font_import() at least once and then every time you add new fonts, also, on each R session, you have to also load the fonts with loadfonts() (if you are on windows you have to use loadfonts(device = "win")).

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