Whenever I try to knit on R I get this error
processing file: rmkdfile.Rmd
|.......... | 14%
ordinary text without R code
|.................... | 29%
label: setup (with options)
List of 1
$ include: logi FALSE
|.............................. | 43%
ordinary text without R code
|........................................ | 57%
label: cars
|.................................................. | 71%
ordinary text without R code
|............................................................ | 86%
label: pressure (with options)
List of 1
$ echo: logi FALSE
|......................................................................| 100%
ordinary text without R code
/private/var/folders/dh/y2pg6bw54xq1by18cx81z8t40000gn/T/AppTranslocation/07777596-15E8-44F3-AD90-2E6EDF8CC52F/d/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS rmkdfile.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output rmkdfile.tex --lua-filter /Library/Frameworks/R.framework/Versions/4.1/Resources/library/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /Library/Frameworks/R.framework/Versions/4.1/Resources/library/rmarkdown/rmarkdown/lua/latex-div.lua --self-contained --highlight-style tango --pdf-engine pdflatex --variable graphics --variable 'geometry:margin=1in'
output file: rmkdfile.knit.md
! sh: pdflatex: command not found
Error: LaTeX failed to compile rmkdfile.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See rmkdfile.log for more info.
In addition: Warning message:
In system2(..., stdout = if (use_file_stdout()) f1 else FALSE, stderr = f2) :
error in running command
Execution halted
No LaTeX installation detected (LaTeX is required to create PDF output). You should install a LaTeX distribution for your platform: Get LaTeX - Mac OS, Windows, Linux