I´m having some problems with R interpretation of symbols.
For example, when typing the backslash, it writes down the Yen symbol.
This is how the code is copied and pasted, you can see there are no yen symbols, just backslash.
"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS PEC1.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output PEC1.tex --lua-filter "C:\Users\pablo\OneDrive\Documentos\R\win-library\4.1\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "C:\Users\pablo\OneDrive\Documentos\R\win-library\4.1\rmarkdown\rmarkdown\lua\latex-div.lua" --self-contained --highlight-style tango --pdf-engine pdflatex --variable graphics --variable "geometry:margin=1in"
And here you can see how it's printed by the R software: