I usually use tikzDevice with the default engine. However, in order to avoid memory problems when generating a figure that requires high-memory usage, I now need to compile it with luatex. However, when I try to use "engine=luatex" with any plotting, I get some errors and a pdf file that contains code instead of an image.
[1{C:/Users/fabricio/AppData/Local/MiKTeX/2.9/pdftex/config/pdftex.map}])
(see the transcript file for additional information)<E:/Programs/MiKTeX 2.9/fon
ts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on test.pdf (1 page, 20691 bytes).
Transcript written on test.log.
Warning messages:
1: running command 'C:\WINDOWS\system32\cmd.exe /c luatex test.tex' had status 1
2: In shell("luatex test.tex") :
'luatex test.tex' execution failed with error code 1
First of all, thanks for this great package!
I usually use tikzDevice with the default engine. However, in order to avoid memory problems when generating a figure that requires high-memory usage, I now need to compile it with luatex. However, when I try to use "engine=luatex" with any plotting, I get some errors and a pdf file that contains code instead of an image.
Here is a minimum reproducible example:
x <- rnorm(10)
y <- rnorm(10)
file_name <- "test.tex"
tikz(file_name, standAlone = TRUE, width=3, height=3, engine="luatex")
plot(y ~ x)
dev.off()
shell("luatex test.tex")
The error message is the following:
The generated ".tex", ".log" and ".pdf" files can be download here: https://expirebox.com/download/3f30d54d03ac03624c8122505453dfb1.html
Thanks in advance for your time!