Won't knit to PDF


I'm very new to R, and when I try to knit rmd files to PDFs, I get the following message:

I was unable to find any missing LaTeX packages from the error log Homework-2.log.
! Missing endcsname inserted.

l.134 ...{Homework-2_files/figure-latex/#2-1.pdf}

Error: LaTeX failed to compile Homework-2.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See Homework-2.log for more info.
Execution halted

I followed the instructions in the URL given, but it still didn't work. Any advice is much appreciated :slight_smile:

When I knit to word documents as well, it will not show any outputs, just the code

It seems you have a # in the file name ? Is it a # in the chunk label ?

if so this could be the source of the issue maybe.

That fixed it! You are a genius! Thank you SO so much!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.