When I use the render{rmarkdown} to produce pdf file from .Rmd file on my Mac, an error message says
pandoc: pdflatex not found. pdflatex is needed for pdf output.
I had a similar issue as I wasn't able to knit pdf file & solved it by installing & running tinitex packages using those commands in the console -- not the terminal
enter code here
install.packages("tinytex") tinytex::install_tinytex()
install.packages("tinytex")
tinytex::install_tinytex()