daqana / tikzDevice

A R package for producing graphics output as PGF/TikZ code for use in TeX documents.
https://daqana.github.io/tikzDevice
132 stars 26 forks source link

generated .tex file truncated at 128 kbytes #201

Closed jsegarraf closed 4 years ago

jsegarraf commented 4 years ago

When generating a large .tex file, it grows no more than 131072 bytes (128 kbytes), resulting in an invalid (apparently truncated) file. No error/warning is generated.

It happens with tikzdevice 0.12.3 (Debian package r-cran-tikzdevice 0.12.3-1) , at least, with the following command: 'tikz(file="l2pad1024-2048.tex",width=4,height=4) ; last_plot() ; dev.off()`

Previous version 0.12 was able to generate the same file (larger than 128 kbytes) perfectly.

jsegarraf commented 4 years ago

Tried again and now seems to work, maybe there was some iterfering option...