I am working on vitae template using the R Markdown, I have been trying to knit the outcome but it keeps giving this error. I have installed and loaded this packages tinytex, vitae before I started and still hasn't changed.
sh: pdflatex: command not found
Error: LaTeX failed to compile Untitled.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See Untitled.log for more info.
In addition: Warning message:
In system2(..., stdout = if (use_file_stdout()) f1 else FALSE, stderr = f2) :
error in running command