This is a duplicate of this 5 year old question, because the answers there don't work (for me).
Has someone managed to get knitr for Sweave documents (not RMarkdown) running with LuaLaTex as an engine? RStudio only lets you choose between PdfLaTex und XeLaTex, which unfortunately don't work for my purposes.
I'm running Mac OS 14.0 (Sonoma). Setting the environment variable RSTUDIO_PDFLATEX = "LuaLaTeX" in ~/.Rprofile unfortunately has no effect.
I would be grateful for any suggestions.