You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to suppress the warnings everytime we use theme_fira in ggplot?
It looks like these have to do with the fonts but the plot renders fine.
library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 4.1.3
library(firatheme)
ggplot(mtcars, aes(x=mpg*0.43, y=wt*0.4535924, colour=factor(cyl))) +
geom_point(size=2) + geom_smooth(se=FALSE) +
labs(title="Car weight vs efficiency",
x="Efficiency (km/l)",
y="Weight (1000 kg)",
colour="Cylinders") +
theme_fira()
#> Scanning ttf files in C:/Users/cygei/R/win-library/4.1/firatheme/font ...#> Extracting .afm files from .ttf files...#> C:\Users\cygei\R\win-library\4.1\firatheme\font\FiraSans-Bold.ttf#> Warning in system2(enc2native(ttf2pt1), c(args, shQuote(ttfiles[i]),#> shQuote(tmpfiles[i])), : running command '"C:/Users/cygei/#> R/win-library/4.1/Rttf2pt1/exec/ttf2pt1.exe" -a -G fAe "C:#> \Users\cygei\R\win-library\4.1\firatheme\font\FiraSans-Bold.ttf" "C:#> \Users\cygei\AppData\Local\Temp\RtmpaUAXf9/fonts/FiraSans-Bold"' had status 5#> : No FontName. Skipping.#> C:\Users\cygei\R\win-library\4.1\firatheme\font\FiraSans-BoldItalic.ttf#> Warning in system2(enc2native(ttf2pt1), c(args, shQuote(ttfiles[i]),#> shQuote(tmpfiles[i])), : running command '"C:/Users/cygei/R/win-#> library/4.1/Rttf2pt1/exec/ttf2pt1.exe" -a -G fAe "C:\Users\cygei\R\win-#> library\4.1\firatheme\font\FiraSans-BoldItalic.ttf" "C:#> \Users\cygei\AppData\Local\Temp\RtmpaUAXf9/fonts/FiraSans-BoldItalic"' had#> status 5#> : No FontName. Skipping.#> C:\Users\cygei\R\win-library\4.1\firatheme\font\FiraSans-Italic.ttf#> Warning in system2(enc2native(ttf2pt1), c(args, shQuote(ttfiles[i]),#> shQuote(tmpfiles[i])), : running command '"C:/Users/cygei/#> R/win-library/4.1/Rttf2pt1/exec/ttf2pt1.exe" -a -G fAe "C:#> \Users\cygei\R\win-library\4.1\firatheme\font\FiraSans-Italic.ttf" "C:#> \Users\cygei\AppData\Local\Temp\RtmpaUAXf9/fonts/FiraSans-Italic"' had status 5#> : No FontName. Skipping.#> C:\Users\cygei\R\win-library\4.1\firatheme\font\FiraSans-Medium.ttf#> Warning in system2(enc2native(ttf2pt1), c(args, shQuote(ttfiles[i]),#> shQuote(tmpfiles[i])), : running command '"C:/Users/cygei/#> R/win-library/4.1/Rttf2pt1/exec/ttf2pt1.exe" -a -G fAe "C:#> \Users\cygei\R\win-library\4.1\firatheme\font\FiraSans-Medium.ttf" "C:#> \Users\cygei\AppData\Local\Temp\RtmpaUAXf9/fonts/FiraSans-Medium"' had status 5#> : No FontName. Skipping.#> C:\Users\cygei\R\win-library\4.1\firatheme\font\FiraSans-MediumItalic.ttf#> Warning in system2(enc2native(ttf2pt1), c(args, shQuote(ttfiles[i]),#> shQuote(tmpfiles[i])), : running command '"C:/Users/cygei/R/win-#> library/4.1/Rttf2pt1/exec/ttf2pt1.exe" -a -G fAe "C:\Users\cygei\R\win-#> library\4.1\firatheme\font\FiraSans-MediumItalic.ttf" "C:#> \Users\cygei\AppData\Local\Temp\RtmpaUAXf9/fonts/FiraSans-MediumItalic"' had#> status 5#> : No FontName. Skipping.#> C:\Users\cygei\R\win-library\4.1\firatheme\font\FiraSans-Regular.ttf#> Warning in system2(enc2native(ttf2pt1), c(args, shQuote(ttfiles[i]),#> shQuote(tmpfiles[i])), : running command '"C:/Users/cygei/#> R/win-library/4.1/Rttf2pt1/exec/ttf2pt1.exe" -a -G fAe "C:#> \Users\cygei\R\win-library\4.1\firatheme\font\FiraSans-Regular.ttf" "C:#> \Users\cygei\AppData\Local\Temp\RtmpaUAXf9/fonts/FiraSans-Regular"' had status 5#> : No FontName. Skipping.#> Found FontName for 0 fonts.#> Scanning afm files in C:/Users/cygei/R/win-library/4.1/extrafontdb/metrics#> `geom_smooth()` using method = 'loess' and formula 'y ~ x'#> Warning in grid.Call(C_stringMetric, as.graphicsAnnot(x$label)): font family not#> found in Windows font database#> Warning in grid.Call(C_stringMetric, as.graphicsAnnot(x$label)): font family not#> found in Windows font database#> Warning in grid.Call(C_stringMetric, as.graphicsAnnot(x$label)): font family not#> found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call(C_stringMetric, as.graphicsAnnot(x$label)): font family not#> found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y, :#> font family not found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database#> Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : font#> family not found in Windows font database
Is there a way to suppress the warnings everytime we use
theme_fira
in ggplot?It looks like these have to do with the fonts but the plot renders fine.
Created on 2022-06-27 by the reprex package (v2.0.1)
Session info
The text was updated successfully, but these errors were encountered: