getting the below error while compiling the markdown file into pdf.
output file: movielens.knit.md
/Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS movielens.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output movielens.tex --lua-filter /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/rmarkdown/rmarkdown/lua/latex-div.lua --self-contained --highlight-style tango --pdf-engine pdflatex --variable graphics --variable 'geometry:margin=1in'
! Undefined control sequence.
l.347 ...by adding the computed (b_{i}) to (\mr
).
Error: LaTeX failed to compile movielens.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See movielens.log for more info.
Execution halted