I just reinstalled—and updated—TinyTex. I'm trying to compile the most basic notebook as a pdf (html works fine). The code is:
---
title: "R Notebook"
output:
pdf_document: default
---
```{r}
plot(cars)
``` # no other code
Knitr compiles words, code, and latex equations into a pdf perfectly. As soon as I try plot, knitr can no longer compile into a pdf and can only do html. If I try compiling as a pdf it gives the error: Package pdftex.def Error: File `Test_files/figure-latex/unnamed-chunk-1-1.pdf' not found: using draft setting.
Yeah! Sorry! That's not actually in the code. I added it since if I didn't add the fake comment this site wouldn't show the closing triple accent mark (```) and I wanted to make it obvious that I had closed off the code block in the actual file.