yihui/knitr — Issue #154: setting dpi, latex output goes wild
Author: baptiste
Created: 2012-02-26 22:33:34+00:00
State: open

I don't quite understand what exactly is causing a problem, but when I knit the following file TeX runs out of memory (! TeX capacity exceeded, sorry [input stack size=5000]) and produces 4986 pages, all but the first being blank.

```r
\documentclass{article}
\begin{document}

%\SweaveOpts{dpi=150}

<>=
plot(1, 1)
@

\end{document}
```

Setting the dpi in a chunk header in another document also had the same problem, though I cannot reproduce it here with chunk a.

I'm using today's version from github.