Search code examples
rplotlatexrstudiotikzdevice

R 4.2.1 crashes with tikzDevice


I am trying to use the following simple code in 4.2.1 using 2022.07.1 Build 554 but it crashes due to (tried in both GUI & and both crash):

library(tikzDevice)
tikz('simpleEx.tex', width = 3.5, height = 3.5)
plot(1, main = 'Hello World!')
dev.off()

enter image description here

I am getting the same error after re-installation of .

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 

Solution

  • Re-installation of and solved the issue.