79329521

Date: 2025-01-04 20:04:06
Score: 0.5
Natty:
Report link

This is a limitation of the default RMarkdown rendering engine. ggplot2 can access Windows system fonts just fine when you create a plot from the R terminal or R script, but it doesn't have access to them when you render a Quarto or RMarkdown chunk. You can fix it by changing the backend rendering engine to ragg. Install the ragg package with install.packages("ragg") and then add knitr::opts_chunk$set(dev = "ragg_png") at the top of your RMarkdown file to select ragg as your engine.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Christopher Carroll Smith