2

The title says it all; the screenshot below gives the gory details. (The .Rnw file in the temporary buffer folder is identical to the LaTeX Source in the image.) As you can imagine, knit() won't knit this crap. I cannot for the life of me figure out how to make those ligature breaks go away.

So I guess my question is... Help?

Cyan
  • 135
  • 1
  • 10
  • I suppose I could add a mangled pattern to `knitr`, but I feel that two wrongs don't make a right, even if they would make the right TeX output. This thing is supposed to work straight out of the box... – Cyan Jun 14 '13 at 00:14

1 Answers1

3

You probably did not read the manual, which has instructions on how to input R code in a LyX document: either through Insert --> TeX Code (Ctrl + L), or use the Chunk environment from the drop-down menu on the toolbar. You should not type R code as normal paragraphs in LyX.

Yihui Xie
  • 28,913
  • 23
  • 193
  • 419
  • That's correct, more-or-less. I did read something like that document four years ago during my first attempt at literate programming. (Explicit solution: use a TeX box (preferred) or a Chunk environment.) – Cyan Jun 14 '13 at 12:51