My R Markdown Document Won't Knit to a PDF

When I try to knit my document, the error message reads:

! Missing { inserted.

\setbox
l.122 formula: pt. est. (\pm (z*)(SE_\widehat p
)). The point estimate,

Error: LaTeX failed to compile Homework09-KWC.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See Homework09-KWC.log for more info.
Execution halted

It was knitting fine until I went back and added a sentence, and since then I have not been able to knit the document, even after I went back and deleted the change, reverting the document to how it was when it was able to knit. If anyone can tell me what I can do to fix this, please let me know. Thank you!!

Although I didn't figure out how to get the R Markdown to knit to a pdf, I tried knitting it to a Word document, and for some reason it worked. Although, I would like to know why it wasn't knitting to a pdf, if anyone knows.

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