I wanted to generate a PDF-file out of a ".Rmd"-file. I clicked "Knit to PDF". The rendering started and finished. At the end, I read the following red message:
Error: LaTeX failed to compile regression.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See regression.log for more info.
In addition: There were 18 warnings (use warnings() to see them)
Execution halted
The log file has this part at the end:
! Undefined control sequence.
l.864 ...me, et see seos on järgmine: (R=k\cdotI
^{n}).
Here is how much of TeX's memory you used:
12962 strings out of 480313
204473 string characters out of 5897214
505208 words of memory out of 5000000
30544 multiletter control sequences out of 15000+600000
451032 words of font info for 69 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
60i,9n,63p,689b,469s stack positions out of 5000i,500n,10000p,200000b,80000s
! ==> Fatal error occurred, no output PDF file produced!
The corresponding line isn't actually 864 but 217 in my ".Rmd"-file and contains the following code:
Pooljuhi takistus on läbi pooljuhi mineva voolu tugevuse funktsioon *R=f(I)*. Eeldame, et see seos on järgmine: $R=k\cdotI^{n}$. Joonistada graafik, logaritmiline graafik. Leida konstandid *k* ja *n*.
This is the first appearance of LaTex-code in that file at all.
How to solve?