I've never used LaTeX, but have only ever heard nightmares about it.
My advice for people in a similar position today who need to knit RMarkdown documents to PDF:
1) avoid LaTeX
2) use {pagedown} to knit to HTML and the chrome_print() function to convert to PDF