Open ccb60 opened 1 year ago
Further investigation shows the behavior is also triggered by saving the plot using ggsave()
. The plot is saved, but the PDF fails to knit, with the same message. But showing the saved graphic does not cause a problem.
Similar behavior (failure to knit if the Rmarkdown document shows or saves a mosaic plot) occurs when knitting to a Word document, but not when knitting to an HTML document or github_document.
Even a very simple RMarkdown document that knits to PDF fails to compile to a PDF. If I run a *.Rmd file with just the following contents:
It generates the following error message:
No Problem with
ggplot2
graphicsI know that knitting, LaTeX rendering, and PDF output are all prone to hidden conflicts, but I have no trouble generating PDF output of other
ggplot2
graphics.The Set Up
RStudio 2022.12.0+353 "Elsbeth Geranium" Release (7d165dcfc1b6d300eb247738db2c7076234f6ef0, 2022-12-03) for Windows Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36
R version 4.2.2 (2022-10-31 ucrt) -- "Innocent and Trusting"
knitr version 1.41 markdown Vesion 1.4 tinytex version 0.43