I am trying to use the following simple code in r 4.2.1
using rstudio 2022.07.1 Build 554
but it crashes due to tikzdevice (tried in both r GUI
& rstudio and both crash):
library(tikzDevice)
tikz('simpleEx.tex', width = 3.5, height = 3.5)
plot(1, main = 'Hello World!')
dev.off()
I am getting the same error after re-installation of tikzdevice.
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
Re-installation of r and tikzdevice solved the issue.