I added loadfonts to my project .Rprofile and got an error saying no function The functions work in blogdown, but not in .Rprofile. I realized after opening the ticket that this is because grDevices does not load before .Rprofile (I think). Below is the error.
library(extrafont)
loadfonts("win", quiet = F)
Error in get(as.character(FUN), mode = "function", envir = envir) :
object 'windowsFonts' of mode 'function' was not found
Calls: <Anonymous> -> match.fun -> get
Execution halted
I was able to fix it with the code below. Closing the issue.
library(grDevices)
library(extrafont)
loadfonts("win", quiet = F)
Registering fonts with R
I added loadfonts to my project .Rprofile and got an error saying no function The functions work in blogdown, but not in .Rprofile. I realized after opening the ticket that this is because grDevices does not load before .Rprofile (I think). Below is the error.
I was able to fix it with the code below. Closing the issue.