Hi there! I have a problem I can't get to the bottom of. I have an Rmd document with PDF as output, rendered through lualatex. When I render this using the Knit button, everything works flawlessly, but when I run the exactly same file using the rmarkdown::render() function, it fails with an "undefined control sequence" error.
If someone would have an idea on why this is happening and how I could solve it, that would be a life saver!
Thanks in advance and cheers!