我在让ggplot2、tikzDevice和knitr协同工作时遇到了问题。我正在使用RStudio,并试图在Latex文档中包含一些R图形。begin{document}
<<fig1,eval=TRUE,echo=FALSE,dev='tikz'>>= library(tikzDevice* The string makes use of LaTeX commands provided by a package and
the <e
我试图使用选项复制dev='tikz',这会产生以下错误: LaTeXLuaLaTeX found in the PATH using the command: lualatexError in tikzDeviceloaded via a namespace (and not attached):
[1] compiler