I'm writing a book with Morgan & Claypool. Until today, their book template and style files (morgan-defs.sty and morgan2.sty) worked perfectly with knitr and ggplot graphs. After an update to my LaTeX packages this morning, I'm receiving errors of the form
Package xcolor Error: Undefined color `fgcolor'.
when including ANY R code chunk that creates a ggplot graph. (I do not receive the error when compiling the book on a computer whose LaTeX packages have not been updated.)
A MWE Rstudio project that demonstrates the error can be found at https://github.com/MatthewHeun/Possible-knitr-error. You can switch include=TRUE to include=FALSE on the code chunk to eliminate the error.
Despite the error, when include=TRUE, the graph is created correctly in the figure directory, and the .pdf file is created correctly in the main directory. However, the error prevents the .pdf file from opening automatically.
Any help would be appreciated.
Thanks!