我试图在R 4.2.1中使用rstudio 2022.07.1 Build 554中的以下简单代码,但由于提克兹装置 (在R GUI & rstudio和两者中都尝试过)而崩溃:
library(tikzDevice)
tikz('simpleEx.tex', width = 3.5, height = 3.5)
plot(1, main = 'Hello World!')
dev.off()

在重新安装提克兹装置之后,我会得到同样的错误。
sessionInfo()
R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8
[2] LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
other attached packages:
[1] tikzDevice_0.12.3.2
loaded via a namespace (and not attached):
[1] compiler_4.2.1 tools_4.2.1 filehash_2.4-3 grid_4.2.1 发布于 2022-09-18 02:17:56
重新安装R和提克兹装置解决了这个问题。
https://stackoverflow.com/questions/73689754
复制相似问题