When I try to knit a .Rmd file to PDF in RStudio, I get the following error:
Output created: regression.pdf
Error in tools::file_path_as_absolute(output_file) :
file 'regression.pdf' does not exist
Calls: <Anonymous> -> <Anonymous>
In addition: Warning messages:
1: running command '"pdflatex" -halt-on-error -interaction=batchmode "regression.tex"' had status 1
2: In readLines(logfile) : incomplete final line found on 'regression.log'
Execution halted
I have previously tried a couple of things as per other suggestions on here (installing MiKTeX; installing Pandoc) and installing whatever packages are suggested in previous error messages I have seen. Does anybody know a way around this issue? I have seen various posts about difficulties with Knit to PDF on here, but none identical to this one.