Knitting error pdflatex: command not found

We probably need to see some code. We need a reproducible example (reprex)