![]() ![]() And it additionally included the -include-in-header argument to pandoc. However, after I restarted my R session and re-ran rmarkdown::render("toy_ex.Rmd"), it suddenly worked. The RStudio Knit button version included -include-in-header "C:\Users\john\AppData\Local\Temp\RtmpOObyVC\rmarkdown-strcc20ea115d.html". See toy_ex.log for more info.Ĭomparing the two calls to pandoc, there was only one difference. "C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS toy_ex.utf8.md -to latex -from markdown+autolink_bare_uris+tex_math_single_backslash -output toy_ex.tex -self-contained -highlight-style tango -pdf-engine pdflatex -variable graphics -lua-filter "C:/Users/john/Documents/R/win-library/4.0/rmarkdown/rmd/lua/a" -lua-filter "C:/Users/john/Documents/R/win-library/4.0/rmarkdown/rmd/lua/a" -variable "geometry:margin=1in"Įrror: LaTeX failed to compile toy_ex.tex. I then ran rmarkdown::render() in the R console: processing file: toy_ex.Rmd The call to pandoc is below: "C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS toy_ex.utf8.md -to latex -from markdown+autolink_bare_uris+tex_math_single_backslash -output toy_ex.tex -self-contained -highlight-style tango -pdf-engine pdflatex -variable graphics -lua-filter "C:/Users/john/Documents/R/win-library/4.0/rmarkdown/rmd/lua/a" -lua-filter "C:/Users/john/Documents/R/win-library/4.0/rmarkdown/rmd/lua/a" -variable "geometry:margin=1in" -include-in-header "C:\Users\john\AppData\Local\Temp\RtmpOObyVC\rmarkdown-strcc20ea115d.html" ![]() This caused TinyTeX to install lots of TeX packages. I knit the Rmd file using the RStudio Knit button. I was able to reproduce this behavior on Windows 10. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |