Want to solve programming problems and get paid for it? If that sounds interesting to you then contact us.
I researched alot and i got solution for your issue.
Firstly try to run below command to ensure the fonts are existing:
loadfonts(dev="win")
After that need to call the following to ensure the name you are calling is same as R knows:
windowsFonts()
Or else try the following:
library(extrafont) extrafont::font_import()
The above solution fixed problems for me.