I have an odd issue with RMarkdown PDF.
I have a file that was knitting without any problems. I added some changes and got some error. I reverted everything back via Ctrl+Z, but the error persisted. I reverted the file version, but it was still there. However when I copypasted the whole text into a new file, it run without any issues. I feel like this relates to this issue: r - RMarkdown - all cells run without error but when document is knitted errors occur - Stack Overflow