LaTex failed to compile a CV file

I was using Rstudio Desktop to practice compiling a CV file to PDF, yet RStudio failed. The CV file was created in R Markdown, I checked the info in Render, the message below was the info:
! sh: pdflatex: command not found

錯誤(Error): LaTeX failed to compile CV-Example.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See CV-Example.log for more info.
此外(Besides): 警告訊息(Warning):
於 system2(..., stdout = if (use_file_stdout()) f1 else FALSE, stderr = f2):

Besides install 'tinytex' packages, what else I can do? Thank you!

Can you run rmarkdown::render() for your document inside the R console ? And if it errors can you run traceback() and share results ?

thanks you!

Thank you for your help. I have applied your suggestion and got the results below:

錯誤發生在 xfun::file_ext(input):缺少引數 "input",也沒有預設值
5: character(length(x))
4: xfun::file_ext(input)
3: tolower(xfun::file_ext(input))
2: tolower(xfun::file_ext(input)) %in% c("r", "rmd", "rmarkdown",
1: rmarkdown::render()

I appreciate your effort on this, and looking forward to learning from this opportunity.

Sorry for not being clear. By rmarkdown::render()I meant with a file like this rmarkdown::render('your-input.Rmd')

錯誤發生在 abs_path(input):The file 'your-input.Rmd' does not exist.
此外: 警告訊息:
於 normalizePath(path, winslash = winslash, mustWork = mustWork):
path[1]="your-input.Rmd": No such file or directory

After running the code you provided, it showed "No such file or directory".

You need to change your-input.RmdBy your own file name. You can read the doc of the function render() to understand how it works.

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.