Error creating a PDF. Tinytex:. Help please!! I'm new in R

Hi, im new to this program and I wanted to use the R markdown to create the example PDF. I can create a html but it doesnt work with PDF. It shows me the error shown below:
Please I need some help, i don't know what to do, maybe its because of my accent in my name Julián that has the name in the C:/Users but it should work with accent too right?

==> rmarkdown::render('C:/Users/Juli\u{e1}n/Documents/hola.Rmd', encoding = 'UTF-8');

processing file: hola.Rmd

"C:/RStudio/resources/app/bin/quarto/bin/tools/pandoc" +RTS -K512m -RTS hola.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output hola.tex --lua-filter "C:\Users\Julián\AppData\Local\R\win-library\4.3\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "C:\Users\Julián\AppData\Local\R\win-library\4.3\rmarkdown\rmarkdown\lua\latex-div.lua" --embed-resources --standalone --highlight-style tango --pdf-engine pdflatex --variable graphics --variable "geometry:margin=1in"
output file: hola.knit.md

! ...ulián\AppData\Roaming\TinyTeX\bin\windows\runscript.tlu:941: ...ulián\AppData\Roaming\TinyTeX\bin\windows\runscript.tlu:864: no appropriate script or program found: fmtutil

! kpathsea: Running mktexfmt pdflatex.fmt

Error: LaTeX failed to compile hola.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See hola.log for more info.
Además: Warning messages:
1: In strsplit(info, "\n") :
unable to translate 'User data directory: C:\Users\Julin\AppData\Roaming\pandoc' to a wide string
2: In strsplit(info, "\n") : input string 4 is invalid
Ejecución interrumpida

Hi, perhaps try tinytex::install_tinytex() - with more information here ( 1.2 Install LaTeX (TinyTeX) for PDF reports | R Markdown Cookbook (bookdown.org)) or the debugging tips The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉

Hi I already look into this web and I have install and reinstalled tinytex so many times, in other PC its works but it mine doesnt. Maybe because I have an accent in my User but I dont know if I can change the directory or something please need help

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.