1 follower Follow

Another frustrating Pandoc 43 error

In an R-Markdown document, the following LaTex code knits correctly using html:


But when I try to knit to a .pdf document, I get this unhelpful error message:

! Undefined control sequence.
l.146 \(y_{i}|\vec{\beta},x_{i},\sigma\sim\mathscr

pandoc: Error producing PDF
Error: pandoc document conversion failed with error 43
Execution halted

I haven't a clue what it means.  I've tried double dollar signs as well, and get the same error.

I welcome suggestions.  My thanks

Alan Zelicoff